/* ==========================================================================
   1. GLOBAL & FRONTEND VARIABLES
   ========================================================================== */
:root {
    --bg-color: #000000;
    --surface-color: #111111;
    --card-placeholder: transparent;
    --text-color: #ffffff;
    --muted-text: #888888;
    --border-color: #555555;
    --accent-color: #e54b3c;
    --accent-hover: #ff5c4d;
    --pill-bg: #0c0c0c;
    --footer-btn-bg: #2b2b2b;
}

[data-theme="light"] {
    --bg-color: #f5f5f7;
    --surface-color: #ffffff;
    --card-placeholder: transparent;
    --text-color: #111111;
    --muted-text: #555555;
    --border-color: #cccccc;
    --pill-bg: #ffffff;
    --footer-btn-bg: #dddddd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   2. FRONTEND STYLES (index.php)
   ========================================================================== */
body.front-body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.25s, color 0.25s;
}

/* Sticky Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-color);
    padding: 18px 36px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.nav-left a {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-color);
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-left a.active {
    color: var(--muted-text);
    border-bottom-color: var(--muted-text);
}

.nav-left a:hover {
    color: var(--accent-color);
}

/* Center Logo */
.logo-center {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-text {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 3px;
}

.logo-text .bars {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 24px;
    margin: 0 3px;
}

.logo-text .bars span {
    display: block;
    height: 3.5px;
    background: var(--text-color);
    width: 100%;
}

.logo-img {
    max-height: 44px;
    width: auto;
}

/* Right Header Controls */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.search-form {
    position: relative;
}

.search-input {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 14px;
    width: 220px;
    outline: none;
    transition: border-color 0.2s, width 0.2s;
}

.search-input:focus {
    border-color: var(--accent-color);
}

.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
}

.th-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, background 0.2s;
}

.th-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* Main Wrapper */
.main-container {
    flex: 1;
    padding: 10px 36px 20px;
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
}

.custom-page-content {
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 15px;
}

/* Video Grid Default: Desktop 8 kolom */
.video-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 14px;
}

/* Halaman Drama: Desktop 6 kolom */
.video-grid.grid-drama {
    grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1199px) and (min-width: 769px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .video-grid.grid-drama {
        grid-template-columns: repeat(3, 1fr);
    }
    .site-header {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 14px 20px;
    }
    .header-right {
        justify-content: center;
    }
}

/* Video Card Default (Ratio 4:6, Transparent Background) */
.video-card {
    position: relative;
    aspect-ratio: 4 / 6;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}

/* Halaman PV: Ratio 9:16 */
.video-grid.grid-pv .video-card {
    aspect-ratio: 9 / 16;
}

/* Halaman Drama: Ratio 16:9 */
.video-grid.grid-drama .video-card {
    aspect-ratio: 16 / 9;
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.drama-play-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(229, 75, 60, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    pointer-events: none;
    z-index: 2;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.22s ease;
    z-index: 3;
}

.video-card:hover .video-overlay,
.video-card.touch-active .video-overlay {
    opacity: 1;
}

.overlay-thumb {
    width: 28px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    object-fit: cover;
    margin-bottom: 8px;
}

.recreate-btn {
    background: var(--accent-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 7px;
    display: inline-block;
    transition: background 0.2s, transform 0.15s;
}

.recreate-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.04);
}

.video-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.4px;
}

.prompt-excerpt {
    font-size: 10px;
    line-height: 1.35;
    color: #e0e0e0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.prompt-excerpt:hover {
    background: rgba(255, 255, 255, 0.15);
}

.video-tag-label {
    font-size: 9.5px;
    font-style: italic;
    color: #bbbbbb;
    margin-bottom: 8px;
}

.overlay-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
}

.like-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 0;
}

.like-btn .heart-icon {
    color: #ffffff;
    font-size: 13px;
    transition: color 0.2s, transform 0.2s;
}

.like-btn.liked .heart-icon {
    color: var(--accent-color);
    transform: scale(1.2);
}

.share-x-btn {
    color: #ffffff;
    font-size: 11px;
    opacity: 0.9;
}

.share-x-btn:hover {
    text-decoration: underline;
}

/* Masonry Gallery Grid */
.gallery-masonry {
    column-count: 5;
    column-gap: 14px;
}

@media (max-width: 1200px) { .gallery-masonry { column-count: 4; } }
@media (max-width: 900px)  { .gallery-masonry { column-count: 3; } }
@media (max-width: 768px)  { .gallery-masonry { column-count: 2; column-gap: 10px; } }

.masonry-item {
    break-inside: avoid;
    margin-bottom: 14px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: transparent;
    cursor: zoom-in;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.masonry-item:hover img {
    transform: scale(1.03);
}

.masonry-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 26px 10px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.masonry-item:hover .masonry-caption {
    opacity: 1;
}

.masonry-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.masonry-title {
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.masonry-tag {
    opacity: 0.8;
    white-space: nowrap;
}

.masonry-prompt {
    font-size: 10.5px;
    font-weight: 400;
    line-height: 1.35;
    color: #e4e4e4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
}

.masonry-prompt:hover {
    background: rgba(229, 75, 60, 0.75);
    color: #ffffff;
}

/* Sub-Grid Bar: Tags (Bottom Left) + Pagination (Bottom Right) */
.sub-grid-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 18px;
}

.tags-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 6px;
}

.tag-pill {
    padding: 6px 15px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-color);
    transition: all 0.2s;
    white-space: nowrap;
}

.tag-pill.active,
.tag-pill:hover {
    background: #6e6e6e;
    border-color: #888888;
    color: #ffffff;
}

/* Pagination */
.pagination-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 14px;
    border-radius: 6px;
    margin-left: auto;
}

.page-btn {
    min-width: 32px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-color);
    transition: all 0.2s;
}

.page-btn.active,
.page-btn:hover {
    background: #777777;
    border-color: #999999;
    color: #ffffff;
}

/* Footer */
.site-footer {
    padding: 14px 36px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    margin-top: auto;
}

.live-counter-badge {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    line-height: 1.1;
    box-shadow: 0 4px 14px rgba(229, 75, 60, 0.35);
}

.live-counter-badge .count {
    font-size: 18px;
}

.live-counter-badge .label {
    font-size: 12px;
    letter-spacing: 0.5px;
}

.footer-info {
    text-align: center;
}

.footer-info .line1 {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.footer-info .line2 {
    font-size: 11px;
    font-weight: 700;
    color: #d0d0d0;
    letter-spacing: 0.4px;
    margin-top: 2px;
    text-transform: uppercase;
}

[data-theme="light"] .footer-info .line2 {
    color: #444444;
}

.back-to-top {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--footer-btn-bg);
    color: var(--text-color);
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: transform 0.2s, background 0.2s;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: var(--accent-color);
    color: #fff;
}

/* VERTICAL SIDEBAR TRIGGER & PANEL */
.aio-trigger-btn {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 18px 8px;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 2px;
    white-space: nowrap;
    cursor: pointer;
    z-index: 2000;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.35);
    transition: background-color 0.2s, color 0.2s, right 0.3s ease;
}
.aio-trigger-btn:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}

.aio-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: #111111;
    z-index: 3500;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    border-left: 1px solid #222222;
}
.aio-sidebar.open {
    right: 0;
}
.aio-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #000000;
    border-bottom: 1px solid #222222;
}
.aio-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}
.aio-close-btn:hover {
    color: var(--accent-color);
}
.aio-sidebar-content {
    flex: 1;
    width: 100%;
    height: 100%;
    background: #ffffff;
}
.aio-sidebar-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.aio-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3499;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.aio-backdrop.open {
    display: block;
    opacity: 1;
}

/* Default sembunyikan navigasi bawah di Desktop */
.mobile-bottom-nav {
    display: none;
}

/* ==========================================================================
   MOBILE / HP RESPONSIVE OVERRIDES (<= 768px)
   ========================================================================== */
@media only screen and (max-width: 768px) {
    body.front-body .site-header {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        padding: 0 14px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    body.front-body .site-header .nav-left,
    body.front-body .site-header .header-right {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    body.front-body .site-header .logo-center {
        margin: 0 auto !important;
        height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    body.front-body .logo-text {
        font-size: 22px !important;
        letter-spacing: 4px !important;
        line-height: 1 !important;
    }
    body.front-body .logo-text .bars {
        width: 15px !important;
        height: 16px !important;
    }
    body.front-body .logo-text .bars span {
        height: 2.5px !important;
    }
    body.front-body .logo-img {
        max-height: 30px !important;
        width: auto !important;
    }

    body.front-body .video-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    body.front-body .video-grid.grid-drama {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    body.front-body .main-container {
        padding: 10px 14px 20px !important;
    }

    body.front-body .site-footer {
        padding: 12px 14px 85px !important;
        gap: 10px !important;
    }
    body.front-body .site-footer .footer-info .line1 {
        font-size: 11px !important;
    }
    body.front-body .site-footer .footer-info .line2 {
        display: none !important;
    }
    body.front-body .live-counter-badge {
        width: 50px !important;
        height: 50px !important;
    }
    body.front-body .live-counter-badge .count {
        font-size: 14px !important;
    }
    body.front-body .live-counter-badge .label {
        font-size: 10px !important;
    }
    body.front-body .back-to-top {
        width: 48px !important;
        height: 48px !important;
        font-size: 6.5px !important;
    }

    /* Sidebar Mobile Override */
    .aio-sidebar {
        width: 100vw;
        right: -100vw;
    }

    /* STICKY BOTTOM MENU UNTUK MOBILE */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: #000000;
        border-top: 1px solid #222222;
        z-index: 1000;
        align-items: center;
        justify-content: space-around;
        padding: 0 10px;
        padding-bottom: env(safe-area-inset-bottom);
    }
    [data-theme="light"] .mobile-bottom-nav {
        background: #ffffff;
        border-top: 1px solid #dddddd;
    }
    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        color: #666666;
        font-size: 10.5px;
        font-weight: 700;
        text-transform: uppercase;
        width: 25%;
        text-decoration: none;
        transition: color 0.2s;
    }
    .mobile-bottom-nav a.active {
        color: var(--text-color);
    }
    .mobile-bottom-nav a svg {
        width: 24px;
        height: 24px;
        stroke: currentColor;
    }
    [data-theme="light"] .mobile-bottom-nav a {
        color: #999999;
    }
    [data-theme="light"] .mobile-bottom-nav a.active {
        color: #111111;
    }
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.96);
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 24px;
}

.lightbox-modal.open {
    display: flex;
}

.lightbox-modal img {
    max-width: 92vw;
    max-height: 74vh;
    object-fit: contain;
    border-radius: 6px;
}

.lightbox-modal video.drama-full-video {
    width: 92vw;
    height: 86vh;
    max-width: 1600px;
    object-fit: contain;
    background: #000;
    border-radius: 6px;
}

.lightbox-bar {
    margin-top: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.lightbox-btn {
    background: var(--accent-color);
    color: #fff;
    padding: 9px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    border: none;
    cursor: pointer;
}

.lightbox-copy-btn {
    background: #2b2b2b;
    color: #fff;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid #444;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.lightbox-copy-btn:hover {
    background: #444;
    border-color: #777;
}

.lightbox-prompt-box {
    margin-top: 12px;
    max-width: 780px;
    width: 92vw;
    max-height: 110px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 10px 14px;
    color: #e5e5e5;
    font-size: 12.5px;
    line-height: 1.5;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2600;
    transition: background 0.2s, transform 0.15s;
}

.lightbox-close:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.08);
}

/* Age Gate 21+ Modal */
.age-gate-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.age-gate-backdrop.active {
    display: flex;
}

.age-gate-box {
    background: #111111;
    border: 1px solid #2c2c2c;
    max-width: 480px;
    width: 100%;
    padding: 36px 30px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
}

.age-gate-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    font-weight: 900;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.age-gate-text {
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc;
    margin: 16px 0 22px;
}

.age-check-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 22px;
    user-select: none;
}

.age-check-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

.age-enter-btn {
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    padding: 12px 34px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.15s;
}

.age-enter-btn.enabled {
    opacity: 1;
    pointer-events: auto;
}

/* Copy Toast */
.copy-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #fff;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    z-index: 2800;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.copy-toast.show {
    opacity: 1;
}

/* Maintenance Screen */
body.maint-body {
    background: #000;
    color: #fff;
    font-family: system-ui, -apple-system, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    text-align: center;
}

.maint-box {
    max-width: 460px;
    padding: 40px;
    border: 1px solid #222;
    border-radius: 12px;
}

/* ==========================================================================
   3. BACKEND ADMIN STYLES (looki.php)
   ========================================================================== */
body.login-body {
    background: #0d0d0d;
    color: #fff;
    font-family: system-ui, -apple-system, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}
.login-card {
    background: #161616;
    border: 1px solid #2b2b2b;
    padding: 40px 34px;
    border-radius: 10px;
    width: 100%;
    max-width: 380px;
    text-align: center;
}
.login-card .logo { font-size: 30px; letter-spacing: 6px; margin-bottom: 24px; }
.login-card input[type="password"] {
    width: 100%; padding: 12px 14px; background: #0d0d0d;
    border: 1px solid #3a3a3a; color: #fff; border-radius: 6px; margin-bottom: 16px;
}
.login-card button {
    width: 100%; padding: 12px; background: #e54b3c; color: #fff;
    border: none; border-radius: 6px; font-weight: 700; cursor: pointer;
}
.login-err { color: #e54b3c; font-size: 13px; margin-bottom: 12px; }

body.admin-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f1f2f5; color: #222; display: flex; min-height: 100vh;
}
.sidebar {
    width: 225px; background: #111111; color: #ffffff; display: flex;
    flex-direction: column; padding: 26px 14px; position: fixed; top: 0; bottom: 0; left: 0;
}
.sidebar-logo {
    font-size: 26px; letter-spacing: 5px; text-align: center; margin-bottom: 30px; font-weight: 500; color: #fff;
}
.sidebar-menu { display: flex; flex-direction: column; gap: 6px; }
.sidebar-link {
    padding: 12px 16px; border-radius: 4px; color: #d8d8d8; font-size: 13.5px;
    font-weight: 500; transition: background 0.2s, color 0.2s;
}
.sidebar-link:hover { background: #1f1f1f; color: #fff; }
.sidebar-link.active { background: #e54b3c; color: #ffffff; font-weight: 600; }
.view-site-btn {
    margin-top: 18px; padding: 12px; background: #000000; border: 1px solid #2e2e2e;
    color: #ffffff; text-align: center; font-size: 13px; font-weight: 700; border-radius: 4px;
}
.view-site-btn:hover { border-color: #e54b3c; }
.logout-link { margin-top: 14px; padding: 10px 16px; color: #bdbdbd; font-size: 13px; }
.logout-link:hover { color: #e54b3c; }

.main-area { margin-left: 225px; flex: 1; padding: 28px 34px; }
.content-card {
    background: #ffffff; border-radius: 8px; padding: 28px 32px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05); margin-bottom: 26px;
}
.section-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
h3.section-title { font-size: 15px; font-weight: 700; color: #222; margin-bottom: 16px; }
.section-header-row h3.section-title { margin-bottom: 0; }
.flash-alert {
    background: #e54b3c; color: #fff; padding: 12px 18px; border-radius: 6px;
    margin-bottom: 20px; font-size: 14px; font-weight: 600;
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.stat-box { padding: 28px 20px; border-radius: 6px; color: #ffffff; text-align: center; }
.stat-box.today { background: #e54b3c; }
.stat-box.alltime { background: #333333; }
.stat-box .num { font-size: 38px; font-weight: 800; line-height: 1.1; }
.stat-box .lbl { font-size: 12.5px; margin-top: 6px; opacity: 0.9; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 16px; }
.form-group.full { grid-column: 1 / -1; }
label.form-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: #333; }
.admin-body input[type="text"], .admin-body input[type="url"], .admin-body input[type="number"],
.admin-body select, .admin-body textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #d0d4dc; border-radius: 6px;
    font-size: 14px; background: #fff;
}
.radio-group { display: flex; flex-wrap: wrap; gap: 12px; padding: 8px 0; }
.radio-pill {
    display: inline-flex; align-items: center; gap: 6px; background: #f5f6f8;
    padding: 6px 12px; border-radius: 999px; border: 1px solid #dcdcdc; font-size: 13px; cursor: pointer;
}
.btn-primary {
    background: #e54b3c; color: #fff; border: none; padding: 11px 24px;
    border-radius: 6px; font-weight: 700; cursor: pointer; font-size: 14px;
}
.btn-danger {
    background: #d93025; color: #fff; border: none; padding: 6px 12px;
    border-radius: 4px; font-size: 12px; cursor: pointer;
}
.btn-edit {
    background: #333; color: #fff; padding: 6px 12px; border-radius: 4px;
    font-size: 12px; display: inline-block;
}
table.data-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
table.data-table th, table.data-table td {
    padding: 12px; border-bottom: 1px solid #eee; text-align: left; font-size: 13.5px;
}
table.data-table th { background: #f8f9fa; font-weight: 700; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.media-card {
    border: 1px solid #e2e4e8; border-radius: 6px; padding: 8px; text-align: center; background: #fafbfc;
}
.media-card video, .media-card img {
    width: 100%; height: 120px; object-fit: cover; border-radius: 4px; background: #000;
}