.mtop0{margin-top: 0px;}
.mtop5{margin-top: 5px;}
.mtop10{margin-top: 10px;}
.mtop15{margin-top: 15px;}
.mtop20{margin-top: 20px;}
.mtop30{margin-top: 30px;}
.mtop40{margin-top: 40px;}
.mtop50{margin-top: 50px;}
.mtop60{margin-top: 60px;}
.mtop70{margin-top: 70px;}
.mtop80{margin-top: 80px;}
.mtop90{margin-top: 90px;}
.mtop100{margin-top: 100px;}

.mbot0{margin-bottom: 0px;}
.mbot5{margin-bottom: 5px;}
.mbot10{margin-bottom: 10px;}
.mbot20{margin-bottom: 20px;}
.mbot30{margin-bottom: 30px;}
.mbot40{margin-bottom: 40px;}
.mbot50{margin-bottom: 50px;}
.mbot60{margin-bottom: 60px;}
.mbot70{margin-bottom: 70px;}
.mbot80{margin-bottom: 80px;}
.mbot90{margin-bottom: 90px;}
.mbot100{margin-bottom: 100px;}


/* ============================================================
   pgallery.css
   Styles for both gallery-public.php and gallery-members.php
   All classes prefixed with pgallery- to avoid conflicts.
   ============================================================ */

/* ---- Wrap ------------------------------------------------- */
.pgallery-wrap { padding: 2rem 0; }

/* ---- Filter bar ------------------------------------------ */
.pgallery-filters {
    background: #f5f3ef;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
}
.pgallery-filters-inner {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
}
.pgallery-select {
    padding: 0.5rem 2rem 0.5rem 0.875rem;
    border: 1px solid #e5e5e5; border-radius: 4px;
    font-family: inherit; font-size: 0.875rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    appearance: none; cursor: pointer; color: #1a1a1a;
    transition: border-color 0.2s;
}
.pgallery-select:focus { outline: none; border-color: #b02a26; box-shadow: 0 0 0 3px rgba(176,42,38,0.1); }

.pgallery-fav-toggle {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1rem; border: 1px solid #e5e5e5; border-radius: 4px;
    background: #fff; font-family: inherit; font-size: 0.875rem;
    font-weight: 600; cursor: pointer; color: #595959;
    transition: all 0.2s;
}
.pgallery-fav-toggle:hover { border-color: #b02a26; color: #b02a26; }
.pgallery-fav-toggle--active { background: #b02a26; border-color: #b02a26; color: #fff; }
.pgallery-fav-toggle--active:hover { background: #8c1c18; border-color: #8c1c18; color: #fff; }

.pgallery-count { margin-left: auto; font-size: 0.8rem; color: #595959; font-weight: 600; }

/* ---- Photo grid ------------------------------------------ */
.pgallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem 1.25rem;
    row-gap: 1.75rem;
}
@media (max-width: 900px) { .pgallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pgallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; } }

.pgallery-item {
    border: 1px solid #e5e5e5; border-radius: 6px;
    overflow: visible; background: #fff;
    transition: box-shadow 0.25s, transform 0.25s;
    display: flex; flex-direction: column;
}
.pgallery-item:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.12); transform: translateY(-2px); }

.pgallery-img-wrap {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #1a1a1a;
    line-height: 0;
    border-radius: 6px 6px 0 0;
}
.pgallery-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s;
}
.pgallery-item:hover .pgallery-img { transform: scale(1.04); }

/* Favorites star button — members only */
.pgallery-heart {
    position: absolute; top: 0.5rem; right: 0.5rem;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(0,0,0,0.45); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.8rem; transition: all 0.2s; z-index: 2;
}
.pgallery-heart:hover { background: rgba(176,42,38,0.85); transform: scale(1.15); }
.pgallery-heart--active { background: #b02a26; }
.pgallery-heart--active .fa-star { animation: pgallery-heartbeat 0.3s ease; }
@keyframes pgallery-heartbeat {
    0% { transform: scale(1); } 50% { transform: scale(1.35); } 100% { transform: scale(1); }
}

/* Expand overlay — members */
.pgallery-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0);
    border: none; cursor: pointer; color: #fff; font-size: 1.25rem;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.25s; z-index: 1;
}
.pgallery-overlay i { display: none; }
.pgallery-item:hover .pgallery-overlay { background: rgba(0,0,0,0.15); }
.pgallery-item:hover .pgallery-overlay i { display: block; }

/* Expand overlay — public */
.pgallery-overlay--expand {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0); border: none; cursor: pointer;
    color: transparent; font-size: 1.25rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s; z-index: 1;
}
.pgallery-overlay--expand i { display: none; }
.pgallery-item:hover .pgallery-overlay--expand { background: rgba(0,0,0,0.2); color: #fff; }
.pgallery-item:hover .pgallery-overlay--expand i { display: block; }

/* Tags */
.pgallery-tags { padding: 0.5rem 0.625rem 0; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.pgallery-tag {
    font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.5rem;
    border-radius: 3px; border: none; cursor: pointer;
    text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.2s;
}
.pgallery-tag--model { background: #1a1a1a; color: #fff; }
.pgallery-tag--model:hover { background: #b02a26; }
.pgallery-tag--cat { background: #f0ece3; color: #595959; }
.pgallery-tag--cat:hover { background: #e0d8cb; }

/* Lightbox tags — display only, no button styling */
.pgallery-lb-tag {
    display: inline-block;
    font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.5rem;
    border-radius: 3px; text-transform: uppercase; letter-spacing: 0.5px;
}
.pgallery-lb-tag--model { background: #1a1a1a; color: #fff; }
.pgallery-lb-tag--cat   { background: #f0ece3; color: #595959; }

/* Login prompt — public gallery cards */
.pgallery-login-prompt {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 0.75rem; width: 100%;
    border-top: 1px solid #e5e5e5;
    font-family: inherit; font-size: 0.8rem; color: #595959;
    transition: color 0.2s; margin-top: 0.4rem;
}
.pgallery-login-prompt:hover { color: #b02a26; }

/* Load more */
.pgallery-load-more-wrap { text-align: center; padding: 2.5rem 0 1rem; }
.pgallery-load-more {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.875rem 2.5rem; background: #1a1a1a; color: #fff;
    border: 2px solid #1a1a1a; border-radius: 4px;
    font-family: inherit; font-size: 0.9rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
    transition: all 0.3s;
}
.pgallery-load-more:hover { background: #fff; color: #1a1a1a; }
.pgallery-load-more:disabled { opacity: 0.6; cursor: not-allowed; }

/* Empty state */
.pgallery-empty { text-align: center; padding: 4rem 2rem; color: #595959; }
.pgallery-empty .fas { font-size: 3rem; margin-bottom: 1rem; opacity: 0.3; display: block; }
.pgallery-clear-filters {
    margin-top: 1rem; padding: 0.6rem 1.5rem;
    background: #b02a26; color: #fff; border: none;
    border-radius: 4px; font-family: inherit; font-weight: 700;
    cursor: pointer; transition: background 0.2s;
}
.pgallery-clear-filters:hover { background: #8c1c18; }

/* ---- Subscribe banner — public only ---------------------- */
.pgallery-sub-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1a1a 100%);
    border-radius: 8px; padding: 1rem 1.5rem; margin-bottom: 1.5rem;
}
.pgallery-sub-banner-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
}
.pgallery-sub-banner p { color: #fff; margin: 0; font-size: 0.9rem; }
.pgallery-sub-banner strong { color: #d4af37; }
.pgallery-sub-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1.25rem; background: #b02a26; color: #fff;
    text-decoration: none; border-radius: 4px; font-weight: 700;
    font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1px;
    white-space: nowrap; transition: background 0.2s;
}
.pgallery-sub-btn:hover { background: #8c1c18; }

/* ---- Bottom CTA — public only ---------------------------- */
.pgallery-bottom-cta {
    margin-top: 3rem; padding: 3rem 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1a1a 100%);
    border-radius: 8px; text-align: center;
}
.pgallery-bottom-cta h3 { color: #fff; font-size: 1.5rem; font-weight: 300; margin-bottom: 0.5rem; }
.pgallery-bottom-cta p { color: #ccc; margin-bottom: 1.5rem; }
.pgallery-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.pgallery-cta-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.875rem 2rem; background: #b02a26; color: #fff;
    text-decoration: none; border-radius: 4px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; transition: background 0.2s;
}
.pgallery-cta-primary:hover { background: #8c1c18; }
.pgallery-cta-secondary {
    display: inline-flex; align-items: center;
    padding: 0.875rem 2rem; background: transparent; color: #ccc;
    text-decoration: none; border: 1px solid #555; border-radius: 4px;
    font-size: 0.875rem; transition: all 0.2s;
}
.pgallery-cta-secondary:hover { border-color: #fff; color: #fff; }

/* ---- Guest lightbox — public only ------------------------ */
.pgallery-glb {
    display: none; position: fixed; inset: 0; z-index: 9000;
    align-items: center; justify-content: center;
}
.pgallery-glb.pgallery-glb-open { display: flex; }
.pgallery-glb-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.92); backdrop-filter: blur(4px);
    cursor: pointer;
}
.pgallery-glb-inner {
    position: relative; z-index: 1;
    width: 95vw; max-width: 600px;
    max-height: 95vh; overflow-y: auto;
    display: flex; flex-direction: column; align-items: center;
    padding: 1rem;
}
.pgallery-glb-img {
    width: 100%; height: auto; display: block;
    max-width: 480px; margin: 0 auto;
    border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.pgallery-glb-close {
    position: fixed; top: 1rem; right: 1rem;
    background: rgba(0,0,0,0.7); border: none; color: #fff;
    font-size: 1.25rem; cursor: pointer; padding: 0.5rem 0.75rem;
    border-radius: 4px; transition: background 0.2s; z-index: 9999;
}
.pgallery-glb-close:hover { background: #b02a26; }
.pgallery-glb-prev, .pgallery-glb-next {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); border: none; color: #fff;
    font-size: 1.25rem; padding: 1rem 0.875rem; cursor: pointer;
    transition: background 0.2s; z-index: 2; border-radius: 4px;
}
.pgallery-glb-prev { left: 1rem; }
.pgallery-glb-next { right: 1rem; }
.pgallery-glb-prev:hover, .pgallery-glb-next:hover { background: rgba(176,42,38,0.8); }
.pgallery-glb-caption {
    color: #ccc; font-size: 0.875rem; margin-top: 0.75rem;
    text-align: center; max-width: 480px; width: 100%;
}
.pgallery-glb-cta {
    margin-top: 1rem; display: flex; align-items: center;
    gap: 1.5rem; flex-wrap: wrap; justify-content: center;
}
.pgallery-glb-sub-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.625rem 1.5rem; background: #b02a26; color: #fff;
    text-decoration: none; border-radius: 4px; font-weight: 700;
    font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1px;
    transition: background 0.2s;
}
.pgallery-glb-sub-btn:hover { background: #8c1c18; }
.pgallery-glb-login-link {
    color: #ccc; font-size: 0.8rem; text-decoration: none; transition: color 0.2s;
}
.pgallery-glb-login-link:hover { color: #fff; text-decoration: underline; }

/* ---- Members lightbox ------------------------------------ */
.pgallery-lightbox {
    display: none; position: fixed; inset: 0; z-index: 9000;
    align-items: center; justify-content: center;
}
.pgallery-lightbox.pgallery-lb-open { display: flex; }
.pgallery-lightbox-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.92); backdrop-filter: blur(4px);
}
.pgallery-lightbox-inner {
    position: relative; z-index: 1;
    width: 95vw; max-width: 1200px;
    max-height: 92vh; display: flex; flex-direction: column;
}
@media (max-width: 900px) {
    .pgallery-lightbox-inner {
        max-height: 95vh;
        overflow-y: auto;
        width: 100vw;
    }
}
.pgallery-lb-content {
    display: grid; grid-template-columns: 1fr 320px;
    gap: 0; height: 100%; max-height: 88vh;
    border-radius: 8px; overflow: hidden;
}
@media (max-width: 900px) {
    .pgallery-lb-content {
        grid-template-columns: 1fr;
        max-height: none;
        overflow: visible;
    }
}
.pgallery-lb-close {
    position: fixed; top: 1rem; right: 1rem;
    background: rgba(0,0,0,0.7); border: none; color: #fff;
    font-size: 1.25rem; cursor: pointer; padding: 0.5rem 0.75rem;
    border-radius: 4px; transition: background 0.2s; z-index: 9999;
}
.pgallery-lb-close:hover { background: #b02a26; }
.pgallery-lb-prev, .pgallery-lb-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); border: none; color: #fff;
    font-size: 1.25rem; padding: 1rem 0.875rem; cursor: pointer;
    transition: background 0.2s; z-index: 2; border-radius: 4px;
}
.pgallery-lb-prev { left: -3.5rem; }
.pgallery-lb-next { right: -3.5rem; }
.pgallery-lb-prev:hover, .pgallery-lb-next:hover { background: rgba(176,42,38,0.8); }
@media (max-width: 1300px) {
    .pgallery-lb-prev { left: 0.5rem; }
    .pgallery-lb-next { right: 0.5rem; }
}
.pgallery-lb-img-wrap {
    background: #0a0a0a;
    overflow: hidden;
}
.pgallery-lb-img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 480px;
    margin: 0 auto;
}
@media (min-width: 901px) {
    .pgallery-lb-img {
        max-width: 100%;
        max-height: 88vh;
        object-fit: contain;
    }
}
.pgallery-lb-info {
    background: #1a1a1a;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.pgallery-lb-caption { font-size: 0.875rem; color: #cccccc; }
.pgallery-lb-meta { display: flex; flex-wrap: wrap; gap: 0.3rem; }

/* ---- Photo gallery reaction buttons — card --------------- */
.pgallery-reactions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 14px 14px 14px;
    border-top: 1px solid #e5e5e5;
    margin-top: auto;
    background: #fff;
    border-radius: 0 0 6px 6px;
}

.pgallery-reactions .pgallery-react-btn:last-child {
    margin-right: 2px;
}

.pgallery-react-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    user-select: none;
    line-height: 1;
    white-space: nowrap;
    margin-bottom: 4px;
}

/* Like (thumbs-up) — blue */
.pgallery-react-btn[data-reaction="like"]:hover {
    color: #1877f2;
    border-color: #1877f2;
    background: #f0f6ff;
}
.pgallery-react-btn[data-reaction="like"].pgallery-react-btn--active {
    color: #1877f2;
    border-color: #1877f2;
    background: #e8f0fe;
    font-weight: 600;
}

/* Love (heart) — red */
.pgallery-react-btn[data-reaction="love"]:hover {
    color: #dc2626;
    border-color: #dc2626;
    background: none;
}
.pgallery-react-btn[data-reaction="love"].pgallery-react-btn--active {
    color: #dc2626;
    border-color: #dc2626;
    background: none;
    font-weight: 600;
}

.pgallery-react-count {
    font-size: 13px;
    min-width: 10px;
    text-align: left;
}

/* ---- Photo gallery reaction buttons — lightbox ----------- */
.pgallery-lb-reactions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.pgallery-lb-react-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #ffffff;
    transition: all 0.15s ease;
    user-select: none;
    line-height: 1;
    white-space: nowrap;
}
.pgallery-lb-react-btn[data-reaction="like"]:hover,
.pgallery-lb-react-btn[data-reaction="like"].pgallery-lb-react-btn--active {
    background: #1877f2;
    border-color: #1877f2;
    color: #ffffff;
    font-weight: 600;
}
.pgallery-lb-react-btn[data-reaction="love"]:hover,
.pgallery-lb-react-btn[data-reaction="love"].pgallery-lb-react-btn--active {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    font-weight: 600;
}
.pgallery-lb-react-count {
    font-size: 14px;
    min-width: 10px;
}


/* ============================================================
   VGALLERY — Video gallery styles
   Prefix: .vgallery-*
   ============================================================ */

/* ---- Wrapper & filters ----------------------------------- */
.vgallery-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.vgallery-filters {
    background: #f5f3ef;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
}
.vgallery-filters-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

.vgallery-select {
    padding: 0.5rem 2rem 0.5rem 0.875rem;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    appearance: none;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.2s;
}
.vgallery-select:focus { outline: none; border-color: #b02a26; box-shadow: 0 0 0 3px rgba(176,42,38,0.1); }

.vgallery-fav-toggle {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1rem; border: 1px solid #e5e5e5; border-radius: 4px;
    background: #fff; color: #595959; font-family: inherit;
    font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.vgallery-fav-toggle:hover { border-color: #b02a26; color: #b02a26; }
.vgallery-fav-toggle--active { background: #b02a26; border-color: #b02a26; color: #fff; }
.vgallery-fav-toggle--active:hover { background: #8c1c18; border-color: #8c1c18; color: #fff; }

.vgallery-count { margin-left: auto; color: #595959; font-size: 0.8rem; font-weight: 600; }

/* ---- Grid ------------------------------------------------ */
.vgallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (max-width: 768px) { .vgallery-grid { grid-template-columns: 1fr; } }

/* ---- Card ------------------------------------------------ */
.vgallery-item {
    background: #111; border: 1px solid #2a2a2a; border-radius: 8px;
    overflow: hidden; display: flex; flex-direction: column;
    transition: box-shadow 0.25s, transform 0.25s;
}
.vgallery-item:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.4); transform: translateY(-2px); }

.vgallery-thumb-wrap { position: relative; background: #1a1a1a; }
.vgallery-thumb-inner {
    position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
}
.vgallery-thumb-inner .vgallery-thumb,
.vgallery-thumb-inner .vgallery-thumb-placeholder {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.3s ease, opacity 0.2s;
}
.vgallery-thumb-inner:hover .vgallery-thumb { transform: scale(1.03); opacity: 0.8; }
.vgallery-thumb-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: #1a1a1a; color: #444; font-size: 48px;
}

.vgallery-play-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; cursor: pointer; padding: 0; z-index: 2;
}
.vgallery-play-circle {
    width: 60px; height: 60px; border-radius: 50%;
    background: #DF154D; border: none;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, transform 0.15s; pointer-events: none;
}
.vgallery-play-overlay:hover .vgallery-play-circle,
.vgallery-play-overlay:focus .vgallery-play-circle { background: #b81040; transform: scale(1.1); }
.vgallery-play-overlay:focus { outline: 2px solid #60a5fa; outline-offset: -2px; }
.vgallery-play-circle i { color: #fff; font-size: 22px; margin-left: 3px; }

.vgallery-thumb-inner.vg-playing .vgallery-play-overlay { display: none; }
.vgallery-thumb-inner.vg-playing iframe,
.vgallery-thumb-inner.vg-playing video,
.vgallery-thumb-inner.vg-playing > div {
    position: absolute; inset: 0; width: 100%; height: 100%; border: none;
}

.vgallery-heart {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0,0,0,0.5); border: none; border-radius: 50%;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #fff; font-size: 16px;
    transition: background 0.2s, transform 0.2s; z-index: 3;
}
.vgallery-heart:hover { background: rgba(220,38,38,0.85); transform: scale(1.15); }
.vgallery-heart--active { background: rgba(220,38,38,0.85); }

.vgallery-duration {
    position: absolute; bottom: 8px; right: 10px;
    background: rgba(0,0,0,0.7); color: #fff;
    font-size: 12px; padding: 2px 6px; border-radius: 4px;
    pointer-events: none; z-index: 3;
}

.vgallery-tags { padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 4px; }
.vgallery-tag {
    font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 3px;
    border: none; cursor: pointer; text-transform: uppercase; letter-spacing: 0.4px;
    transition: all 0.2s;
}
.vgallery-tag--model { background: #2d2d2d; color: #e0e0e0; }
.vgallery-tag--model:hover { background: #3d3d3d; color: #fff; }
.vgallery-tag--cat { background: #1e3a5f; color: #bfdbfe; }
.vgallery-tag--cat:hover { background: #1e4a7f; color: #fff; }

/* Card footer */
.vgallery-card-footer {
    padding: 10px 12px;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    background: #111; border-top: 1px solid #222;
}
.vgallery-title { color: #f0f0f0; font-size: 14px; font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vgallery-card-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Login CTA (public) */
.vgallery-login-cta { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #aaa; text-decoration: none; }
.vgallery-login-cta:hover { color: #fff; }

/* ---- Video reaction buttons — card ----------------------- */
.vgallery-reactions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-top: 1px solid #222;
    background: #111;
}

.vgallery-react-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid #444;
    border-radius: 20px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 12px;
    color: #aaa;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    user-select: none;
    line-height: 1;
    white-space: nowrap;
}

/* Like — blue */
.vgallery-react-btn[data-reaction="like"]:hover {
    color: #60a5fa;
    border-color: #60a5fa;
    background: rgba(96,165,250,0.1);
}
.vgallery-react-btn[data-reaction="like"].vgallery-react-btn--active {
    color: #60a5fa;
    border-color: #60a5fa;
    background: rgba(96,165,250,0.15);
    font-weight: 600;
}

/* Love — bright red for dark card background */
.vgallery-react-btn[data-reaction="love"]:hover {
    color: #FC5757;
    border-color: #FC5757;
    background: rgba(252,87,87,0.12);
}
.vgallery-react-btn[data-reaction="love"].vgallery-react-btn--active {
    color: #FC5757;
    border-color: #FC5757;
    background: rgba(252,87,87,0.15);
    font-weight: 600;
}

.vgallery-react-count {
    font-size: 12px;
    min-width: 10px;
}

/* ---- Load more & empty ----------------------------------- */
.vgallery-load-more-wrap { text-align: center; margin: 32px 0; }
.vgallery-load-more {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 28px; border-radius: 6px;
    border: 1px solid #3a3a3a; background: #1a1a1a;
    color: #eee; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.vgallery-load-more:hover { background: #2a2a2a; border-color: #555; color: #fff; }
.vgallery-empty { text-align: center; padding: 60px 20px; color: #aaa; }
.vgallery-empty i { font-size: 48px; margin-bottom: 16px; display: block; opacity: 0.3; }
.vgallery-clear-filters {
    margin-top: 12px; padding: 8px 20px; border-radius: 6px; border: none;
    background: #2563eb; color: #fff; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: background 0.2s;
}
.vgallery-clear-filters:hover { background: #1d4ed8; }


/* ============================================================
   MGALLERY — Music gallery styles
   Prefix: .mgallery-*
   ============================================================ */

/* ---- Wrapper --------------------------------------------- */
.mgallery-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---- Filter bar ------------------------------------------ */
.mgallery-filters {
    background: #f5f3ef; border: 1px solid #e5e5e5;
    border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 2rem;
}
.mgallery-filters-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

.mgallery-select {
    padding: 0.5rem 2rem 0.5rem 0.875rem;
    border: 1px solid #e5e5e5; border-radius: 4px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    appearance: none; color: #1a1a1a; font-family: inherit;
    font-size: 0.875rem; cursor: pointer; transition: border-color 0.2s;
}
.mgallery-select:focus { outline: none; border-color: #b02a26; box-shadow: 0 0 0 3px rgba(176,42,38,0.1); }

.mgallery-fav-toggle {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1rem; border: 1px solid #e5e5e5; border-radius: 4px;
    background: #fff; color: #595959; font-family: inherit;
    font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.mgallery-fav-toggle:hover { border-color: #b02a26; color: #b02a26; }
.mgallery-fav-toggle--active { background: #b02a26; border-color: #b02a26; color: #fff; }
.mgallery-fav-toggle--active:hover { background: #8c1c18; border-color: #8c1c18; color: #fff; }
.mgallery-fav-toggle:focus { outline: none; box-shadow: 0 0 0 3px rgba(176,42,38,0.2); }

.mgallery-count { margin-left: auto; color: #595959; font-size: 0.8rem; font-weight: 600; }

/* ---- Grid ------------------------------------------------ */
.mgallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) { .mgallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .mgallery-grid { grid-template-columns: 1fr; } }

/* ---- Card ------------------------------------------------ */
.mgallery-item {
    background: #111; border: 1px solid #2a2a2a; border-radius: 8px;
    overflow: hidden; display: flex; flex-direction: column;
    transition: box-shadow 0.25s, transform 0.25s;
}
.mgallery-item:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.4); transform: translateY(-2px); }

.mgallery-thumb-wrap { position: relative; background: #1a1a1a; }
.mgallery-thumb-inner {
    position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
}
.mgallery-thumb-inner .mgallery-thumb {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.3s ease, opacity 0.2s;
}
.mgallery-thumb-inner:hover .mgallery-thumb { transform: scale(1.03); opacity: 0.8; }
.mgallery-thumb-inner.mg-playing iframe,
.mgallery-thumb-inner.mg-playing > div,
.mgallery-thumb-inner.mg-playing > * {
    position: absolute; inset: 0; width: 100%; height: 100%; border: none;
}

.mgallery-play-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; cursor: pointer; padding: 0; z-index: 2;
}
.mgallery-play-circle {
    width: 60px; height: 60px; border-radius: 50%;
    background: #DF154D; border: none;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, transform 0.15s; pointer-events: none;
}
.mgallery-play-overlay:hover .mgallery-play-circle,
.mgallery-play-overlay:focus .mgallery-play-circle { background: #b81040; transform: scale(1.1); }
.mgallery-play-overlay:focus { outline: 2px solid #60a5fa; outline-offset: -2px; }
.mgallery-play-circle i { color: #fff; font-size: 22px; margin-left: 3px; }
.mgallery-thumb-inner.mg-playing .mgallery-play-overlay { display: none; }

.mgallery-heart {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0,0,0,0.5); border: none; border-radius: 50%;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #fff; font-size: 16px;
    transition: background 0.2s, transform 0.2s; z-index: 3;
}
.mgallery-heart:hover { background: rgba(220,38,38,0.85); transform: scale(1.15); }
.mgallery-heart--active { background: rgba(220,38,38,0.85); }
.mgallery-heart:focus { outline: 2px solid #60a5fa; outline-offset: 2px; }

.mgallery-duration {
    position: absolute; bottom: 8px; right: 10px;
    background: rgba(0,0,0,0.7); color: #fff;
    font-size: 12px; padding: 2px 6px; border-radius: 4px;
    pointer-events: none; z-index: 3;
}

.mgallery-tags { padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 4px; }
.mgallery-tag {
    font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 3px;
    border: none; cursor: pointer; text-transform: uppercase; letter-spacing: 0.4px; transition: all 0.2s;
}
.mgallery-tag--cat { background: #1e3a5f; color: #bfdbfe; }
.mgallery-tag--cat:hover { background: #1e4a7f; color: #fff; }
.mgallery-tag:focus { outline: 2px solid #60a5fa; outline-offset: 1px; }

/* Card footer */
.mgallery-card-footer {
    padding: 10px 12px;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    background: #111; border-top: 1px solid #222; margin-top: auto;
}
.mgallery-title {
    color: #f0f0f0; font-size: 14px; font-weight: 600;
    flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mgallery-card-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.mgallery-download-btn {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 4px;
    background: none; color: #bbb; text-decoration: none; font-size: 14px;
    transition: color 0.2s, background 0.2s;
}
.mgallery-download-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }
.mgallery-download-btn:focus { outline: 2px solid #60a5fa; }

.mgallery-info-btn {
    display: inline-flex; align-items: center; gap: 4px;
    background: none; border: none; color: #bbb;
    font-size: 13px; cursor: pointer; padding: 4px 6px;
    border-radius: 4px; font-family: inherit; transition: color 0.2s; white-space: nowrap;
}
.mgallery-info-btn:hover { color: #fff; }
.mgallery-info-btn:focus { outline: 2px solid #60a5fa; }
.mgallery-info-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }

.mgallery-login-cta {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; color: #aaa; text-decoration: none;
}
.mgallery-login-cta:hover { color: #fff; }

/* ---- Music reaction buttons — card ----------------------- */
.mgallery-reactions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-top: 1px solid #222;
    background: #111;
}

.mgallery-react-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid #444;
    border-radius: 20px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 12px;
    color: #aaa;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    user-select: none;
    line-height: 1;
    white-space: nowrap;
}

/* Like — blue */
.mgallery-react-btn[data-reaction="like"]:hover {
    color: #60a5fa;
    border-color: #60a5fa;
    background: rgba(96,165,250,0.1);
}
.mgallery-react-btn[data-reaction="like"].mgallery-react-btn--active {
    color: #60a5fa;
    border-color: #60a5fa;
    background: rgba(96,165,250,0.15);
    font-weight: 600;
}

/* Love — bright red for dark card background */
.mgallery-react-btn[data-reaction="love"]:hover {
    color: #FC5757;
    border-color: #FC5757;
    background: rgba(252,87,87,0.12);
}
.mgallery-react-btn[data-reaction="love"].mgallery-react-btn--active {
    color: #FC5757;
    border-color: #FC5757;
    background: rgba(252,87,87,0.15);
    font-weight: 600;
}

.mgallery-react-count {
    font-size: 12px;
    min-width: 10px;
}

/* ---- Load more & empty ----------------------------------- */
.mgallery-load-more-wrap { text-align: center; margin: 32px 0; }
.mgallery-load-more {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 28px; border-radius: 6px;
    border: 1px solid #3a3a3a; background: #1a1a1a;
    color: #eee; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.mgallery-load-more:hover { background: #2a2a2a; border-color: #555; color: #fff; }
.mgallery-load-more:disabled { opacity: 0.6; cursor: not-allowed; }
.mgallery-load-more:focus { outline: 2px solid #60a5fa; }

.mgallery-empty { text-align: center; padding: 60px 20px; color: #aaa; }
.mgallery-empty i { font-size: 48px; margin-bottom: 16px; display: block; opacity: 0.3; }
.mgallery-clear-filters {
    margin-top: 12px; padding: 8px 20px; border-radius: 6px; border: none;
    background: #b02a26; color: #fff; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: background 0.2s;
}
.mgallery-clear-filters:hover { background: #8c1c18; }
.mgallery-clear-filters:focus { outline: 2px solid #60a5fa; }

/* ---- Song info modal ------------------------------------- */
.mgallery-info-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(3px); z-index: 1060;
}
.mgallery-info-overlay.mgallery-info-open { display: block; }

.mgallery-info-modal {
    position: fixed; z-index: 1070;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(560px, 94vw); max-height: 80vh;
    background: #fff; border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    display: none; flex-direction: column; overflow: hidden;
}
.mgallery-info-modal.mgallery-info-open { display: flex; }

.mgallery-info-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem; border-bottom: 1px solid #e5e5e5; flex-shrink: 0;
}
.mgallery-info-modal-title { font-size: 1rem; font-weight: 700; color: #1a1a1a; margin: 0; }
.mgallery-info-modal-close {
    background: none; border: none; cursor: pointer; color: #595959;
    font-size: 1.125rem; padding: 4px 8px; border-radius: 4px; line-height: 1;
    transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.mgallery-info-modal-close:hover { background: #f0ece3; color: #1a1a1a; }
.mgallery-info-modal-close:focus { outline: 2px solid #b02a26; outline-offset: 2px; }

.mgallery-info-modal-body {
    padding: 1.5rem; overflow-y: auto;
    font-size: 0.875rem; color: #3a3a3a; line-height: 1.7; flex: 1;
}
.mgallery-info-modal-body p  { margin: 0 0 0.75rem; }
.mgallery-info-modal-body p:last-child { margin-bottom: 0; }
.mgallery-info-modal-body a  { color: #b02a26; }
.mgallery-info-modal-body a:hover { text-decoration: underline; }
.mgallery-info-modal-body strong { font-weight: 700; color: #1a1a1a; }
.mgallery-info-modal-body h3,
.mgallery-info-modal-body h4 { font-size: 0.9rem; font-weight: 700; color: #1a1a1a; margin: 1rem 0 0.25rem; }
.mgallery-info-modal-body ul,
.mgallery-info-modal-body ol { padding-left: 1.25rem; margin: 0 0 0.75rem; }
.mgallery-info-modal-body hr { border: none; border-top: 1px solid #e5e5e5; margin: 1rem 0; }


/* ============================================================
   ARTICLESYS — Article listing & detail styles
   All classes prefixed .articlesys-*
   ============================================================ */

.articlesys-filters {
    background: #f5f3ef; border: 1px solid #e5e5e5;
    border-radius: 8px; padding: 0.875rem 1.25rem; margin-bottom: 1.25rem;
}
.articlesys-filters-inner { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.articlesys-filter-label {
    font-size: 0.875rem; font-weight: 600; color: #3a3a3a;
}
.articlesys-select {
    padding: 0.5rem 2rem 0.5rem 0.875rem;
    border: 1px solid #e5e5e5; border-radius: 4px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    appearance: none; color: #1a1a1a; font-family: inherit;
    font-size: 0.875rem; cursor: pointer; transition: border-color 0.2s;
    min-width: 200px;
}
.articlesys-select:focus { outline: none; border-color: #b02a26; box-shadow: 0 0 0 3px rgba(176,42,38,0.1); }

.articlesys-result-count { font-size: 0.875rem; color: #595959; margin-bottom: 1.75rem; }
.articlesys-result-count a { color: #b02a26; }
.articlesys-result-count a:hover { text-decoration: underline; }

.articlesys-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 28px; margin-bottom: 2.5rem;
}
@media (max-width: 640px) { .articlesys-grid { grid-template-columns: 1fr; gap: 20px; } }

.articlesys-card {
    background: #fff; border: 1px solid #e5e5e5; border-radius: 8px;
    overflow: hidden; display: flex; flex-direction: column;
    transition: box-shadow 0.25s, transform 0.25s;
    color: inherit;
}
.articlesys-card-link {
    text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1;
}
.articlesys-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.1); transform: translateY(-3px); }
.articlesys-card--pinned { border-color: #b02a26; box-shadow: 0 0 0 2px rgba(176,42,38,0.15); }

/* Reaction buttons */
.articlesys-card-reactions {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}
.articlesys-react-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.75rem; border-radius: 20px;
    border: 1px solid #e5e5e5; background: #fff;
    color: #595959; font-size: 0.8rem; font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: all 0.2s; line-height: 1;
}
.articlesys-react-btn:hover { border-color: #b02a26; color: #b02a26; }
.articlesys-react-btn:focus { outline: 2px solid #b02a26; outline-offset: 2px; }
.articlesys-react-btn--active { border-color: #b02a26; color: #b02a26; font-weight: 700; }
.articlesys-react-btn--active:hover { border-color: #8c1c18; color: #8c1c18; }
.articlesys-react-btn--love.articlesys-react-btn--active { border-color: #dc2626; color: #dc2626; }
.articlesys-react-btn--love.articlesys-react-btn--active:hover { border-color: #b91c1c; color: #b91c1c; }
.articlesys-react-count { font-size: 0.75rem; min-width: 10px; }
.articlesys-react-counts {
    display: flex; gap: 0.75rem; font-size: 0.8rem; color: #888;
}
.articlesys-react-counts span { display: flex; align-items: center; gap: 0.3rem; }

.articlesys-card-img-wrap {
    display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
    background: #1a1a1a; flex-shrink: 0; position: relative; z-index: 0;
}
.articlesys-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s; }
.articlesys-card:hover .articlesys-card-img { transform: scale(1.04); }

.articlesys-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }

.articlesys-pinned-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; color: #b02a26; margin-bottom: 0.6rem;
}

.articlesys-card-cats { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.6rem; }
.articlesys-card-cat {
    font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 3px;
    background: #f0ece3; color: #595959; text-decoration: none;
    text-transform: uppercase; letter-spacing: 0.4px; transition: all 0.2s;
}
.articlesys-card-cat:hover { background: #e0d8cb; color: #1a1a1a; }
.articlesys-card-cat:focus { outline: 2px solid #b02a26; outline-offset: 1px; }

.articlesys-card-title { font-size: 1.1rem; font-weight: 700; color: #1a1a1a; margin: 0 0 0.5rem; line-height: 1.35; }
.articlesys-card-title a { color: inherit; text-decoration: none; transition: color 0.2s; }
.articlesys-card-title a:hover { color: #b02a26; }
.articlesys-card-title a:focus { outline: 2px solid #b02a26; outline-offset: 2px; }

.articlesys-card-meta {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.95rem; color: #888; font-weight: 600; margin-bottom: 0.75rem;
}
.articlesys-card-meta i { color: #b02a26; }
.articlesys-card-desc { font-size: 1.05rem; color: #595959; line-height: 1.65; margin-bottom: 1rem; flex: 1; }

.articlesys-read-more {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.875rem; font-weight: 700; color: #b02a26; text-decoration: none;
    text-transform: uppercase; letter-spacing: 0.5px; margin-top: auto; transition: gap 0.2s;
}
.articlesys-read-more:hover { gap: 0.65rem; }
.articlesys-read-more:focus { outline: 2px solid #b02a26; outline-offset: 2px; }

.articlesys-empty {
    text-align: center; padding: 4rem 2rem; background: #f5f3ef;
    border-radius: 8px; margin-bottom: 2rem; color: #595959;
}
.articlesys-empty i { font-size: 3rem; display: block; margin-bottom: 1rem; opacity: 0.3; }
.articlesys-clear-btn {
    display: inline-flex; margin-top: 1rem; padding: 0.6rem 1.5rem;
    background: #b02a26; color: #fff; border-radius: 4px; text-decoration: none;
    font-weight: 700; font-size: 0.875rem; transition: background 0.2s;
}
.articlesys-clear-btn:hover { background: #8c1c18; }

.articlesys-pagination {
    display: flex; justify-content: center; align-items: center;
    flex-wrap: wrap; gap: 6px; margin: 2rem 0 0.75rem;
}
.articlesys-page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 12px;
    border: 1px solid #e5e5e5; border-radius: 6px;
    background: #fff; color: #1a1a1a; font-size: 0.9rem; font-weight: 600;
    text-decoration: none; transition: all 0.2s;
}
.articlesys-page-btn:hover { border-color: #b02a26; background: #b02a26; color: #fff; }
.articlesys-page-btn--active { background: #b02a26; border-color: #b02a26; color: #fff; }
.articlesys-page-btn--disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.articlesys-page-btn:focus { outline: 2px solid #b02a26; outline-offset: 2px; }
.articlesys-page-ellipsis { color: #888; font-weight: 600; padding: 0 4px; }
.articlesys-page-info { text-align: center; font-size: 0.8rem; color: #888; margin-bottom: 2rem; }

.articlesys-article-layout {
    display: grid; grid-template-columns: 1fr 300px;
    gap: 40px; align-items: start; padding: 2.5rem 0;
}
@media (max-width: 900px) { .articlesys-article-layout { grid-template-columns: 1fr; } }

.articlesys-hero-img-wrap {
    width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px;
    margin-bottom: 1.5rem; background: #1a1a1a; position: relative; z-index: 0;
}
.articlesys-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.articlesys-article-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
    margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid #e5e5e5;
}
.articlesys-article-date {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.875rem; color: #595959; font-weight: 600;
}
.articlesys-article-date i { color: #b02a26; }
.articlesys-article-cats { display: flex; flex-wrap: wrap; gap: 0.3rem; }

.articlesys-article-body { font-size: 1.05rem; line-height: 1.8; color: #333; }
.articlesys-article-body h2,
.articlesys-article-body h3,
.articlesys-article-body h4 { color: #1a1a1a; margin: 1.75rem 0 0.75rem; line-height: 1.3; }
.articlesys-article-body p  { margin-bottom: 1.1rem; }
.articlesys-article-body a  { color: #b02a26; }
.articlesys-article-body a:hover { text-decoration: underline; }
.articlesys-article-body ul,
.articlesys-article-body ol { padding-left: 1.5rem; margin-bottom: 1.1rem; }
.articlesys-article-body li { margin-bottom: 0.4rem; }
.articlesys-article-body img { max-width: 100%; height: auto; border-radius: 4px; }
.articlesys-article-body blockquote {
    border-left: 4px solid #b02a26; margin: 1.5rem 0;
    padding: 0.75rem 1.25rem; background: #f5f3ef; color: #595959; font-style: italic;
}

.articlesys-article-reactions {
    margin-top: 2.5rem; padding: 1.5rem;
    background: #f5f3ef; border-radius: 8px;
    border: 1px solid #e5e5e5;
    display: flex; flex-direction: column; gap: 1rem;
}
.articlesys-article-react-label {
    font-size: 0.875rem; font-weight: 700;
    color: #3a3a3a; text-transform: uppercase; letter-spacing: 0.5px;
}
.articlesys-article-react-btns {
    display: flex; gap: 0.75rem; flex-wrap: wrap;
}
.articlesys-article-react-btns .articlesys-react-btn {
    padding: 0.6rem 1.25rem; font-size: 0.875rem; gap: 0.5rem;
}
.articlesys-article-react-btns .articlesys-react-btn span:not(.articlesys-react-count) {
    font-weight: 600;
}

.articlesys-article-reactions-guest { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.articlesys-react-login-prompt { font-size: 0.875rem; color: #595959; margin: 0; }
.articlesys-react-login-prompt a { color: #b02a26; font-weight: 600; text-decoration: none; }
.articlesys-react-login-prompt a:hover { text-decoration: underline; }

.articlesys-back-wrap { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #e5e5e5; }
.articlesys-back-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: #b02a26; font-weight: 700; font-size: 0.875rem;
    text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px; transition: gap 0.2s;
}
.articlesys-back-link:hover { gap: 0.65rem; }
.articlesys-back-link:focus { outline: 2px solid #b02a26; outline-offset: 2px; }

.articlesys-sidebar { position: sticky; top: 80px; }
@media (max-width: 900px) { .articlesys-sidebar { position: static; } }

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.ic-box-elevated {
    background-color: white; border: 1px solid #757575;
    padding: 20px 25px; margin: 15px 0; border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); color: #212529;
}

.artc-title { font-size: 2rem; margin: 0 0 0.5rem; }
.artc-meta { font-size: 1rem; color: #666; margin: 0px 0px 0px 0px !important; }
.artc-attribution {
    font-size: 1rem; font-style: italic; color: #666;
    border-bottom: 1px solid #ddd; padding-bottom: 1.25rem; margin-bottom: 2rem;
}
.artc-poem { line-height: 1.8; }
.artc-poem p { margin: 0 0 1.5rem; }
.artc-source-note {
    margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid #ddd;
    font-size: 1rem; font-style: italic; color: #888;
}