@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #E8365D;
    --primary-light: #FF6B8A;
    --primary-dark: #C42B4E;
    --bg-dark: #0A0A0F;
    --bg-card: #14141F;
    --bg-card-hover: #1C1C2E;
    --bg-surface: #1A1A2E;
    --text-white: #FFFFFF;
    --text-light: #E0E0E0;
    --text-muted: #8A8A9A;
    --text-dim: #5A5A6A;
    --border-color: #2A2A3E;
    --success: #2ECC71;
    --warning: #F1C40F;
    --danger: #E74C3C;
    --gradient: linear-gradient(135deg, var(--primary), var(--primary-light));
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --radius: 12px;
    --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-white);
}

a { color: var(--primary-light); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary); }

::selection { background: var(--primary); color: white; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 4px; }

/* ====== NAVBAR ====== */
.nv-navbar {
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(232,54,93,0.1);
    padding: 0.75rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    transition: background 0.3s;
}
.nv-navbar.scrolled { background: rgba(10,10,15,0.98); }
.nv-logo { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.6rem; text-decoration: none; letter-spacing: -0.5px; position: relative; }
.nv-logo-nolly { background: linear-gradient(90deg, #E8365D, #FF6B8A); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nv-logo-vibe { color: #fff; position: relative; }
.nv-logo-vibe::after { content: ''; position: absolute; top: 0.05em; right: -0.25em; width: 0.3em; height: 0.3em; background: radial-gradient(circle, #FF6B8A 40%, #E8365D 100%); border-radius: 50%; box-shadow: 0 0 6px 2px rgba(232, 54, 93, 0.6), 0 0 12px 4px rgba(255, 107, 138, 0.3); }
.nv-navbar .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}
.nv-navbar .nav-link:hover,
.nv-navbar .nav-link.active { color: var(--text-white) !important; }

.nav-search {
    position: relative;
    max-width: 320px;
}
.nav-search input {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    border-radius: 50px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    font-size: 0.85rem;
    width: 100%;
    transition: border-color 0.3s, width 0.3s;
}
.nav-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232,54,93,0.15);
}
.nav-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-top: 4px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 9999;
    box-shadow: var(--shadow);
}
.search-results-dropdown.show { display: block; }
.search-result-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    transition: background 0.2s;
    cursor: pointer;
    color: var(--text-light);
    text-decoration: none;
}
.search-result-item:hover { background: var(--bg-card-hover); color: var(--text-white); }
.search-result-item img { width: 50px; height: 35px; object-fit: cover; border-radius: 4px; }
.search-result-item .sr-title { font-weight: 600; font-size: 0.85rem; }
.search-result-item .sr-meta { font-size: 0.75rem; color: var(--text-muted); }

.btn-nv {
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-nv:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(232,54,93,0.4);
    color: white;
}
.btn-nv-outline {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary);
    border-radius: 50px;
    padding: 0.45rem 1.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
}
.btn-nv-outline:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

/* ====== HERO SECTION ====== */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 550px;
    overflow: hidden;
    margin-top: 60px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-dark) 0%, transparent 50%, rgba(10,10,15,0.3) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 4rem;
}
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 1.5rem;
}
.hero-badges span {
    display: inline-block;
    background: rgba(232,54,93,0.2);
    color: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ====== VIDEO CARDS ====== */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.section-title .see-all {
    font-size: 0.85rem;
    color: var(--primary-light);
    font-weight: 500;
}

.video-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}
.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(232,54,93,0.15);
}
.video-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.video-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.video-card:hover .card-img-wrapper img { transform: scale(1.05); }

.video-card .play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.video-card:hover .play-overlay { opacity: 1; }
.play-overlay i { font-size: 2.5rem; color: white; }

.video-card .card-body {
    padding: 0.75rem 1rem;
}
.video-card .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.video-card .card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.video-card .card-rating {
    color: var(--warning);
    font-size: 0.8rem;
}
.coming-soon-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gradient);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ====== HORIZONTAL SCROLL ROW ====== */
.video-scroll-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.video-scroll-row::-webkit-scrollbar { height: 4px; }
.video-scroll-row::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 2px; }
.video-scroll-row .video-card {
    min-width: 220px;
    max-width: 220px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* ====== CONTENT SECTIONS ====== */
.content-section { padding: 2.5rem 0; }

/* ====== CATEGORY PILLS ====== */
.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
}
.category-pill:hover, .category-pill.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

/* ====== BROWSE / CATALOG ====== */
.filter-bar {
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.filter-bar select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}
.filter-bar select:focus { outline: none; border-color: var(--primary); }

/* ====== CONTENT DETAIL PAGE ====== */
.detail-hero {
    position: relative;
    min-height: 500px;
    margin-top: 60px;
}
.detail-hero .hero-bg { filter: brightness(0.3) blur(2px); }
.detail-info { position: relative; z-index: 2; padding: 4rem 0 3rem; }
.detail-poster {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.detail-poster img { width: 100%; height: auto; }
.detail-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.detail-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.detail-meta span { margin-right: 1rem; }
.detail-rating { color: var(--warning); font-weight: 700; }
.detail-description { color: var(--text-light); line-height: 1.7; margin-bottom: 1.5rem; max-width: 700px; }
.detail-cast { color: var(--text-muted); font-size: 0.9rem; }
.detail-cast strong { color: var(--text-white); }

/* ====== VIDEO PLAYER ====== */
.player-container {
    position: relative;
    background: #000;
    width: 100%;
    max-height: 80vh;
    margin-top: 60px;
}
.player-container video {
    width: 100%;
    max-height: 80vh;
    display: block;
}

/* ====== LOGIN POPUP OVERLAY ====== */
.login-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
}
.login-popup-overlay.show { display: flex; }
.login-popup {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    animation: popIn 0.3s ease;
}
@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.login-popup h3 { margin-bottom: 0.5rem; }
.login-popup p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ====== PRICING ====== */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(232,54,93,0.2);
}
.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(232,54,93,0.08), var(--bg-card));
}
.pricing-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: 12px;
    right: -28px;
    background: var(--gradient);
    color: white;
    padding: 0.2rem 2rem;
    font-size: 0.7rem;
    font-weight: 700;
    transform: rotate(45deg);
}
.pricing-card .plan-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.pricing-card .plan-price {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Poppins', sans-serif;
    color: var(--primary-light);
    margin-bottom: 0.25rem;
}
.pricing-card .plan-price small { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.pricing-card .plan-features { list-style: none; padding: 0; margin: 1.5rem 0; text-align: left; }
.pricing-card .plan-features li {
    padding: 0.4rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}
.pricing-card .plan-features li i { color: var(--success); margin-right: 0.5rem; }

/* ====== AUTH PAGES ====== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-dark), #16081A);
}
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
}
.auth-card h2 { margin-bottom: 0.5rem; }
.auth-card .subtitle { color: var(--text-muted); margin-bottom: 2rem; }

.form-floating > .form-control {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    border-radius: var(--radius-sm);
    height: 2.8rem;
    min-height: 2.8rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 0.85rem;
    line-height: 2.8rem;
    display: flex;
    align-items: center;
}
.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
    padding-top: 1.1rem;
    padding-bottom: 0.4rem;
    line-height: normal;
}
.password-wrapper {
    position: relative;
}
.password-wrapper .form-floating {
    flex: 1;
}
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    z-index: 5;
    transition: color 0.2s;
}
.password-toggle:hover {
    color: var(--text-white);
}
.password-wrapper .form-control {
    padding-right: 2.5rem;
}
.form-floating > .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232,54,93,0.15);
    background: var(--bg-surface);
    color: var(--text-white);
}
.form-floating > label {
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: transparent;
}
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    font-size: 0.8rem;
    background: #1A1A2E;
    color: #FFFFFF;
    padding: 0 0.4rem;
    height: auto;
    line-height: 1;
    transform: scale(0.85) translateY(-0.79rem) translateX(0.15rem);
}
.google-btn {
    background: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
}
.google-btn:hover {
    background: #f7f8f8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    color: #3c4043;
}
.divider-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-dim);
    font-size: 0.8rem;
}
.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}
.form-check-input {
    background-color: var(--bg-surface);
    border-color: var(--border-color);
    cursor: pointer;
}
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(232,54,93,0.15); border-color: var(--primary); }

/* ====== DASHBOARD / ACCOUNT ====== */
.account-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: sticky;
    top: 80px;
}
.account-sidebar .nav-link {
    color: var(--text-muted);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}
.account-sidebar .nav-link:hover { color: var(--text-white); background: var(--bg-surface); }
.account-sidebar .nav-link.active { color: var(--primary-light); background: rgba(232,54,93,0.1); }

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.3s;
}
.stat-card:hover { border-color: var(--primary); }
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: var(--primary-light);
}
.stat-card .stat-label { color: var(--text-muted); font-size: 0.85rem; }

/* ====== ADMIN ====== */
.admin-layout { margin-top: 60px; }
.admin-sidebar {
    background: var(--bg-card);
    width: 250px;
    min-height: calc(100vh - 60px);
    position: fixed;
    left: 0;
    top: 60px;
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 0;
    overflow-y: auto;
}
.admin-sidebar .nav-link {
    color: var(--text-muted);
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s;
}
.admin-sidebar .nav-link:hover { color: var(--text-white); background: rgba(255,255,255,0.03); }
.admin-sidebar .nav-link.active { color: var(--primary-light); background: rgba(232,54,93,0.1); border-right: 3px solid var(--primary); }
.admin-content { margin-left: 250px; padding: 2rem; }

/* ====== TABLES ====== */
.nv-table {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}
.nv-table table { margin-bottom: 0; color: var(--text-light); }
.nv-table thead { background: var(--bg-surface); }
.nv-table th { color: var(--text-muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; border: none; padding: 1rem; }
.nv-table td { border-color: var(--border-color); padding: 0.85rem 1rem; vertical-align: middle; font-size: 0.9rem; }
.nv-table tbody tr:hover { background: var(--bg-card-hover); }

.badge-status {
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-active { background: rgba(46,204,113,0.15); color: var(--success); }
.badge-inactive { background: rgba(231,76,60,0.15); color: var(--danger); }
.badge-pending { background: rgba(241,196,15,0.15); color: var(--warning); }

/* ====== NOTIFICATION BADGE ====== */
.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ====== PAGINATION ====== */
.pagination .page-link {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-muted);
}
.pagination .page-link:hover { background: var(--bg-card-hover); color: var(--text-white); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: white; }

/* ====== FOOTER ====== */
.nv-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}
.nv-footer h6 { color: var(--text-white); font-weight: 700; margin-bottom: 1rem; font-size: 0.9rem; }
.nv-footer a { color: var(--text-muted); font-size: 0.85rem; display: block; padding: 0.2rem 0; }
.nv-footer a:hover { color: var(--primary-light); }
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 2rem;
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* ====== COMING SOON BANNER ====== */
.coming-soon-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
}
.coming-soon-overlay h3 { font-size: 2rem; }
.coming-soon-overlay .countdown { font-size: 1.2rem; color: var(--primary-light); }

/* ====== HELP / FAQ ====== */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
}
.faq-item .accordion-button {
    background: transparent;
    color: var(--text-white);
    font-weight: 600;
    padding: 1rem 1.5rem;
    box-shadow: none;
}
.faq-item .accordion-button::after { filter: invert(1); }
.faq-item .accordion-button:not(.collapsed) { color: var(--primary-light); }
.faq-item .accordion-body { color: var(--text-muted); padding: 0 1.5rem 1rem; }

/* ====== RESPONSIVE ====== */
@media (max-width: 991px) {
    .hero-content h1 { font-size: 2.2rem; }
    .admin-sidebar { display: none; }
    .admin-content { margin-left: 0; }
    .video-scroll-row .video-card { min-width: 180px; max-width: 180px; }
}
@media (max-width: 576px) {
    .hero-section { height: 70vh; }
    .hero-content h1 { font-size: 1.8rem; }
    .detail-title { font-size: 1.6rem; }
    .auth-card { padding: 1.5rem; }
    .auth-page { padding-top: 7rem; min-height: auto; }
    .auth-card { margin-top: 30px; }
}
