/* ========================================================
   Nexima - Ultimate 2026 Cinematic Theme for DLE
   Ultra-modern, 100% Responsive, High Performance
   ======================================================== */

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

:root {
    --bg-dark: #07090e;
    --bg-surface: #0e131f;
    --bg-card: rgba(18, 24, 38, 0.85);
    --bg-card-hover: rgba(28, 38, 60, 0.95);
    --primary: #06b6d4;
    --primary-glow: rgba(6, 182, 212, 0.4);
    --accent-gold: #f59e0b;
    --accent-purple: #8b5cf6;
    --accent-emerald: #10b981;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(6, 182, 212, 0.45);
    --card-radius: 16px;
    --btn-radius: 12px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 15% 10%, rgba(6, 182, 212, 0.08) 0px, transparent 50%),
        radial-gradient(at 85% 15%, rgba(139, 92, 246, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 90%, rgba(245, 158, 11, 0.05) 0px, transparent 50%);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: -0.01em;
    min-height: 100vh;
    padding-bottom: 75px; /* Mobile dock space */
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary);
}

.wrapper-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER ==================== */
.header {
    background: rgba(7, 10, 17, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.5px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: none;
}

.logo::before {
    content: "🎬";
    font-size: 24px;
}

.logo span {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.header__btn-menu {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__search-box {
    position: relative;
    max-width: 480px;
    width: 100%;
}

.header__search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    height: 42px;
    padding: 0 45px 0 18px;
    outline: none;
    transition: all 0.25s ease;
}

.header__search-box input:focus {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--primary);
    box-shadow: 0 0 25px var(--primary-glow);
}

.header__search-box button {
    position: absolute;
    right: 0;
    top: 0;
    height: 42px;
    width: 45px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}

.header__search-box input:focus + button,
.header__search-box button:hover {
    color: var(--primary);
}

/* ==================== MENU DRAWER ==================== */
.header__menu {
    display: none;
    background: rgba(14, 19, 31, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px 0;
}

.menu-opened .header__menu {
    display: block;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.nav-col .nav-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-menu li a {
    color: var(--text-secondary);
    font-size: 14px;
    display: block;
    padding: 4px 0;
}

.nav-menu li a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

/* ==================== HERO BILLBOARD ==================== */
.hero-billboard {
    position: relative;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(139, 92, 246, 0.12) 50%, rgba(7, 10, 17, 0.95) 100%),
                radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.25) 0%, transparent 50%),
                #0d121f;
    border: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px -15px var(--primary-glow);
    padding: 45px 40px;
    margin: 25px 0 35px 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-billboard {
        padding: 26px 18px;
        border-radius: 18px;
    }
}

.hero-billboard__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #06b6d4;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #06b6d4;
    box-shadow: 0 0 10px #06b6d4;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-billboard__title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 14px;
    max-width: 720px;
}

@media (max-width: 768px) {
    .hero-billboard__title {
        font-size: 24px;
    }
}

.hero-billboard__desc {
    color: var(--text-secondary);
    font-size: 15.5px;
    line-height: 1.6;
    max-width: 650px;
    margin-bottom: 25px;
}

.hero-billboard__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: var(--btn-radius);
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero--primary {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    color: #fff;
    box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.5);
}

.btn-hero--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -5px rgba(6, 182, 212, 0.7);
    color: #fff;
}

.btn-hero--secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid var(--border-subtle);
}

.btn-hero--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

.hero-billboard__stats {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-pill {
    font-size: 13.5px;
    color: var(--text-muted);
}

.stat-pill .stat-num {
    color: #fff;
    font-weight: 700;
    margin-right: 4px;
}

/* ==================== CATEGORY PILLS ==================== */
.sect__menu {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
    margin: 15px 0 25px 0;
}

.sect__menu li a, 
.sect__menu li span {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.sect__menu li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.sect__menu li a.active,
.sect__menu li span {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
}

.sect__all-link {
    color: #06b6d4;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.sect__all-link:hover {
    transform: translateX(4px);
    color: #38bdf8;
}

/* ==================== MOVIE CARDS ==================== */
.grid-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
}

@media (min-width: 768px) {
    .grid-items {
        grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
        gap: 24px;
    }
}

.item-poster {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--card-radius);
    padding: 10px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.item-poster:hover {
    transform: translateY(-7px) scale(1.01);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.8), 0 0 30px -5px var(--primary-glow);
}

.item-poster__img {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #111624;
}

.item-poster__img img {
    border-radius: 12px;
    transition: transform 0.4s ease;
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.item-poster:hover .item-poster__img img {
    transform: scale(1.07);
}

/* Poster Badges */
.badge-quality {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    background: rgba(6, 182, 212, 0.9);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.badge-imdb {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.4);
    backdrop-filter: blur(8px);
    color: #f59e0b;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.item__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 ease;
}

.item-poster:hover .item__play-overlay {
    opacity: 1;
}

.item__play-btn {
    width: 52px;
    height: 52px;
    background: rgba(6, 182, 212, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.7);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.item-poster:hover .item__play-btn {
    transform: scale(1.15);
    box-shadow: 0 0 35px rgba(6, 182, 212, 1);
}

.item-poster__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.35;
    color: #f1f5f9;
    margin-top: 10px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 38px;
}

.item-poster:hover .item-poster__title {
    color: var(--primary);
}

.item-poster__sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.item-poster__meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
}

/* ==================== SINGLE MOVIE / FULLSTORY ==================== */
.pmovie {
    background: transparent;
    padding-top: 10px;
}

.movie-hero {
    position: relative;
    border-radius: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 30px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 35px;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7);
}

@media (max-width: 860px) {
    .movie-hero {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
}

.movie-hero__poster {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.8), 0 0 30px -10px var(--primary-glow);
}

.movie-hero__poster img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.movie-hero__content h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .movie-hero__content h1 {
        font-size: 22px;
    }
}

.movie-hero__badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.badge-tag--imdb {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #f59e0b;
}

.badge-tag--quality {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #06b6d4;
}

.badge-tag--year {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: #fff;
}

/* Specs Table Grid */
.movie-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 18px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.spec-item .spec-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.spec-item .spec-value {
    font-size: 14px;
    color: #f1f5f9;
    font-weight: 600;
}

.spec-item .spec-value--highlight {
    color: var(--primary);
}

.movie-synopsis {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 18px;
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.65;
}

.movie-synopsis h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 8px;
}

/* ==================== VIDEO PLAYER ==================== */
.player-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8), 0 0 40px -15px var(--primary-glow);
}

.player-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.player-tabs {
    display: flex;
    gap: 8px;
}

.player-tab-btn {
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.player-tab-btn.active,
.player-tab-btn:hover {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.video-frame-container {
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-frame-container iframe,
.video-frame-container video {
    width: 100%;
    min-height: 500px;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .video-frame-container iframe,
    .video-frame-container video {
        min-height: 250px;
    }
}

/* ==================== SERIES EPISODES ==================== */
.episodes-card {
    background: rgba(18, 24, 38, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 24px;
    margin-top: 20px;
}

.episodes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 6px;
}

.ep-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ep-chip:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
}

.ep-chip--active {
    background: linear-gradient(135deg, #06b6d4, #2563eb) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.45);
}

.series-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.ep-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: #fff;
    transition: all 0.2s ease;
}

.ep-nav-btn:hover {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
}

/* ==================== DOWNLOAD BOX ==================== */
.download-box {
    background: rgba(18, 24, 38, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 20px;
    margin-top: 20px;
}

.dow-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 10px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin: 6px 8px 6px 0;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.dow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    color: #fff;
}

/* ==================== MOBILE BOTTOM DOCK ==================== */
.mobile-bottom-dock {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-dock {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: rgba(7, 10, 17, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-subtle);
        z-index: 9999;
        justify-content: space-around;
        align-items: center;
        padding: 0 10px;
    }

    .mobile-dock-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 11px;
        font-weight: 600;
        gap: 4px;
        transition: color 0.2s ease;
    }

    .mobile-dock-item i {
        font-size: 18px;
    }

    .mobile-dock-item:hover,
    .mobile-dock-item.active {
        color: var(--primary);
    }
}

/* ==================== FOOTER ==================== */
.footer {
    background: rgba(7, 10, 17, 0.95);
    border-top: 1px solid var(--border-subtle);
    padding: 35px 0;
    margin-top: 50px;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer__menu {
    display: flex;
    gap: 18px;
    list-style: none;
    flex-wrap: wrap;
}

.footer__menu li a {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer__menu li a:hover {
    color: var(--primary);
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #07090e;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #06b6d4;
}


/* ==========================================================================
   HEADER NAV TABS (KINOLAR, SERIALLAR, MUSIQALAR)
   ========================================================================== */
.header__nav-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}

@media (max-width: 991px) {
    .header__nav-tabs {
        display: none;
    }
}

.nav-tab-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.25s ease;
    text-decoration: none;
}

.nav-tab-item:hover, .nav-tab-item.active {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.4);
    color: var(--accent-teal);
    transform: translateY(-1px);
}

.nav-tab-item--serial:hover, .nav-tab-item--serial.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: #c4b5fd;
}

.nav-tab-item--music:hover, .nav-tab-item--music.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

/* ==========================================================================
   SERIAL SPECIFIC STYLES (CARDS & HUB)
   ========================================================================== */
.serial-card {
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.serial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.2);
}

.serial-card__poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0f172a;
}

.serial-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.serial-card:hover .serial-card__poster img {
    transform: scale(1.05);
}

.serial-card__badges-top {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.serial-card__badges-bottom {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.badge-serial {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    text-transform: uppercase;
}

.badge-serial-hero {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.badge-episodes {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
}

.serial-card__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.25s ease;
}

.serial-card:hover .serial-card__overlay {
    opacity: 1;
}

.serial-card__play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    transform: scale(0.85);
    transition: transform 0.25s ease;
}

.serial-card:hover .serial-card__play-btn {
    transform: scale(1);
}

.serial-card__body {
    padding: 12px;
}

.serial-card__title {
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.serial-card__meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.serial-card__genre {
    color: #c4b5fd;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 65%;
}

.filter-chip-sub {
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.filter-chip-sub:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
}

/* ==========================================================================
   MUSIC (MP3) STYLES (SPOTIFY / APPLE MUSIC EXPERIENCE)
   ========================================================================== */
.grid-music-tracks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

@media (max-width: 576px) {
    .grid-music-tracks {
        grid-template-columns: 1fr;
    }
}

.music-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.music-card:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(16, 185, 129, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.music-card__vinyl-wrap {
    position: relative;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
}

.music-card__cover {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 2;
    background: #0f172a;
}

.music-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-play-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.9);
    border: none;
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.25s ease;
}

.music-card:hover .music-play-btn {
    opacity: 1;
    transform: scale(1);
}

.music-card__info {
    flex: 1;
    min-width: 0;
}

.music-card__title {
    display: block;
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.music-card__title:hover {
    color: #34d399;
}

.music-card__artist {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 12.5px;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.music-badge-format {
    padding: 1px 6px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 4px;
}

.music-card__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-music-action {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-music-action:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #34d399;
    transform: translateY(-2px);
}

/* ==========================================================================
   FULLSTORY MUSIC SINGLE (AUDIO PLAYER PAGE)
   ========================================================================== */
.music-single__hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 35px;
    margin-bottom: 25px;
}

.music-single__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.25);
    transform: scale(1.1);
    z-index: 1;
}

.music-single__content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .music-single__hero {
        padding: 20px;
    }
    .music-single__content {
        flex-direction: column;
        text-align: center;
    }
}

.music-single__cover-wrap {
    flex-shrink: 0;
}

.music-single__cover {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(16, 185, 129, 0.2);
    border: 2px solid rgba(16, 185, 129, 0.3);
    transition: transform 0.5s ease;
}

.music-single__cover.playing {
    animation: pulseCover 2s infinite ease-in-out;
}

@keyframes pulseCover {
    0%, 100% { box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(16, 185, 129, 0.25); }
    50% { box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 45px rgba(16, 185, 129, 0.5); }
}

.music-single__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-single__meta {
    flex: 1;
    min-width: 280px;
}

.music-single__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #34d399;
    margin-bottom: 8px;
}

.music-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.music-single__title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.25;
}

.music-single__artist-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 22px;
}

.music-single__artist-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #fff;
    background: rgba(16, 185, 129, 0.12);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

/* AUDIO PLAYER BOX */
.audio-player-box {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 22px;
}

/* WAVEFORM VISUALIZER */
.waveform-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 36px;
    margin-bottom: 14px;
}

.waveform-visualizer span {
    flex: 1;
    background: rgba(16, 185, 129, 0.25);
    border-radius: 2px;
    height: 6px;
    transition: height 0.2s ease, background 0.2s ease;
}

.waveform-visualizer.playing span {
    background: #10b981;
    animation: waveBounce 1.2s infinite ease-in-out;
}

.waveform-visualizer.playing span:nth-child(2n) { animation-delay: 0.1s; }
.waveform-visualizer.playing span:nth-child(3n) { animation-delay: 0.2s; }
.waveform-visualizer.playing span:nth-child(4n) { animation-delay: 0.3s; }
.waveform-visualizer.playing span:nth-child(5n) { animation-delay: 0.4s; }

@keyframes waveBounce {
    0%, 100% { height: 6px; }
    50% { height: 32px; }
}

.audio-controls-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-audio-play {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.btn-audio-play:hover {
    transform: scale(1.05);
}

.audio-progress-wrap {
    flex: 1;
}

.audio-time-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.audio-bar {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
}

.audio-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 3px;
    width: 0%;
}

.audio-bar__handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.audio-vol-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .audio-vol-wrap {
        display: none;
    }
}

.btn-audio-mute {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
}

.audio-vol-slider {
    width: 70px;
    accent-color: #10b981;
    cursor: pointer;
}

.music-single__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-mp3-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    transition: all 0.25s ease;
}

.btn-mp3-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.5);
    color: #fff;
}

.btn-mp3-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 12px;
    background: rgba(36, 161, 222, 0.15);
    border: 1px solid rgba(36, 161, 222, 0.3);
    color: #38bdf8;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-mp3-share:hover {
    background: rgba(36, 161, 222, 0.25);
    border-color: #38bdf8;
    color: #fff;
}

/* ==========================================================================
   GLOBAL FLOATING AUDIO PLAYER DOCK (BOTTOM STICKY)
   ========================================================================== */
.global-audio-dock {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(16, 185, 129, 0.3);
    z-index: 999;
    padding: 10px 20px;
    transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.global-audio-dock.dock--active {
    bottom: 0;
}

@media (max-width: 768px) {
    .global-audio-dock.dock--active {
        bottom: 60px; /* Above mobile dock */
    }
}

.dock-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dock-track-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
    max-width: 260px;
}

.dock-cover-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: #1e293b;
}

.dock-text {
    overflow: hidden;
}

.dock-title {
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dock-artist {
    color: #34d399;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dock-controls {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 550px;
}

.dock-btn-play {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #10b981;
    border: none;
    color: #fff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.dock-progress-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.dock-progress-bar {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.dock-progress-fill {
    height: 100%;
    background: #10b981;
    border-radius: 3px;
    width: 0%;
}

.dock-right-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.dock-btn-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dock-btn-action:hover {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}
