:root {
    --primary-color: #0084ff;
    --accent-red: #ff3b3b;
    --bg-dark: #05050a;
    --sidebar-bg: #08080e;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-white: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow: hidden;
    height: 100vh;
}

/* --- LOGIN PAGE --- */
.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.background-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 10px;
    filter: blur(5px) brightness(0.3);
}

.poster-bg {
    width: calc(20% - 20px);
    margin: 10px;
    aspect-ratio: 2/3;
    border-radius: 12px;
    background-color: #1a1a2e;
    overflow: hidden;
}

.poster-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-box {
    background: rgba(15, 15, 25, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 50px;
    text-align: center;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.login-box h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.login-box p {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 35px;
}

.logo-login {
    width: 200px;
    margin-bottom: 30px;
}

input,
select {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
    outline: none;
    transition: 0.3s;
}

input:focus,
select:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

select option {
    background-color: #05050a;
    /* Fondo oscuro */
    color: white;
    /* Letra blanca */
}

button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), #00d2ff);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 132, 255, 0.4);
}

/* --- HOME HERO SECTION --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 40px;
    background-size: cover;
    background-position: center;
    transition: background-image 0.8s ease-in-out;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.95) 10%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    display: flex;
    align-items: center;
    padding: 60px;
}

.hero-content {
    max-width: 550px;
    z-index: 2;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
    color: #fff;
}

.hero-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

.hero-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dim);
    margin-bottom: 30px;
}

.btn-now {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-now:hover {
    transform: scale(1.05);
    background: #0073e6;
}

/* PLATFORM STRIP (Used as general section header bar) */
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 4px;
}

/* USER ACCOUNT INFO (SIDEBAR BOTTOM) */
.user-status-card {
    margin: 30px 20px;
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #0084ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.user-name {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

.user-expiry {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* --- PLYR PREMIUM OVERRIDES --- */
:root {
    --plyr-color-main: var(--primary-color);
    --plyr-video-background: #000;
}

.plyr--video {
    height: 100%;
}

.plyr__controls {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent) !important;
    padding: 20px 15px !important;
}

/* FILTER BAR */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
}

.filter-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

/* GRIDS & CARDS */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.card {
    background: var(--sidebar-bg);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.card-info {
    padding: 15px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-dim);
}

/* UTILS */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- DASHBOARD ELEMENTS --- */
.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 10px 0;
    position: sticky;
    top: 0;
    background: rgba(5, 5, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 90;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header-search {
    position: relative;
    width: 60%;
    max-width: 500px;
}

.header-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

.header-search input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: white;
    font-size: 14px;
    margin-bottom: 0;
}

.user-info-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px 5px 5px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 12px;
}

.content-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- ORIENTATION WARNING --- */
#orientation-warning {
    display: none;
    position: fixed;
    inset: 0;
    background: #05050a;
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

#orientation-warning i {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: rotateDevice 2s ease-in-out infinite;
}

@keyframes rotateDevice {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-90deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@media (max-width: 900px) and (orientation: portrait) {
    #orientation-warning {
        display: flex;
    }
}

/* --- DASHBOARD LAYOUT --- */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 30px 0;
    transition: 0.3s;
    z-index: 100;
}

.sidebar .logo {
    max-width: 180px;
    margin: 0 auto 40px;
    display: block;
}

.sidebar .search-box {
    margin: 0 20px 30px;
    position: relative;
}

.sidebar .search-box input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    outline: none;
}

.sidebar .search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

.nav-items {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    padding: 0 10px;
}

.nav-item {
    padding: 14px 20px;
    margin-bottom: 5px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.nav-item i {
    font-size: 18px;
    width: 25px;
    text-align: center;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(0, 132, 255, 0.1);
    color: white;
}

.nav-item.active {
    color: var(--primary-color);
    background: rgba(0, 132, 255, 0.1);
}

.main-content {
    padding: 30px 50px;
    overflow-y: auto;
    height: 100vh;
    background: linear-gradient(to bottom, #0a0a15, #05050a);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 80px 1fr;
    }

    .sidebar .user-details,
    .sidebar .nav-item span {
        display: none;
    }

    .sidebar .logo {
        max-width: 40px;
    }
}

@media (max-width: 768px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 75px;
        flex-direction: row;
        padding: 0;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: center;
        z-index: 2000;
        background: rgba(8, 8, 14, 0.95);
        backdrop-filter: blur(20px);
    }

    .main-content {
        padding: 15px;
        padding-bottom: 90px;
    }

    .sidebar .logo,
    .sidebar .search-box,
    .sidebar .user-status-card {
        display: none;
    }

    .nav-items {
        display: flex;
        width: 100%;
        height: 100%;
        justify-content: space-around;
        align-items: center;
        list-style: none;
        padding: 0 5px;
    }

    .nav-item {
        margin: 0 !important;
        flex-direction: column !important;
        gap: 5px !important;
        padding: 8px 5px !important;
        font-size: 11px !important;
        color: rgba(255, 255, 255, 0.5);
        flex: 1;
        justify-content: center;
        background: transparent !important;
        border-radius: 0 !important;
    }

    .nav-item i {
        font-size: 22px !important;
        width: auto !important;
        transition: 0.3s;
    }

    .nav-item.active {
        color: var(--primary-color) !important;
        background: transparent !important;
    }

    .nav-item.active i {
        transform: translateY(-2px);
    }

    .nav-item span {
        display: block !important;
        font-weight: 600;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }

    .hero-section {
        height: 280px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-desc {
        display: none;
    }

    .hero-overlay {
        padding: 20px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }

    .filter-group {
        width: 100%;
        justify-content: space-between;
    }

    .filter-select {
        flex: 1;
        max-width: 200px;
    }
}

/* --- SETTINGS PREMIUM --- */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.settings-card {
    background: rgba(15, 15, 25, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    transition: 0.3s;
}

.settings-card:hover {
    border-color: rgba(0, 132, 255, 0.2);
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.settings-header i {
    width: 40px;
    height: 40px;
    background: rgba(0, 132, 255, 0.2);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.settings-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.settings-label {
    flex: 1;
    font-size: 13px;
    color: var(--text-dim);
}

.settings-value {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.settings-badge {
    background: #2ed573;
    color: #000;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
}

.settings-option {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    border: 1px solid transparent;
}

.settings-option.active {
    background: rgba(0, 132, 255, 0.1);
    border-color: rgba(0, 132, 255, 0.3);
}

.settings-option .radio-dot {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-option.active .radio-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.btn-save-container {
    margin-top: 40px;
    text-align: center;
}

.btn-save {
    background: var(--primary-color);
    color: white;
    padding: 12px 40px;
    border-radius: 30px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
}

/* --- PLAYER MODAL & ZAPPING --- */
.player-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2000;
    flex-direction: row;
    /* Sidebar left, Video right */
}

.player-modal.active {
    display: flex;
}

.zapping-sidebar {
    width: 320px;
    height: 100%;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(30px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 2002;
    transition: 0.3s;
    flex-shrink: 0;
}

.zapping-header {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zapping-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.zapping-category {
    margin-bottom: 5px;
}

.zapping-category-header {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    transition: 0.2s;
}

.zapping-category-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.zapping-category-header.active {
    color: var(--primary-color);
    background: rgba(0, 132, 255, 0.1);
}

.zapping-category-header i {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.zapping-category-header.active i {
    transform: rotate(180deg);
}

.zapping-channels-container {
    display: none;
    padding: 5px 0;
    flex-direction: column;
    gap: 2px;
}

.zapping-channels-container.open {
    display: flex;
}

.zapping-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.zapping-item:last-child {
    border-bottom: none;
}

.zapping-item:hover,
.zapping-item.active {
    background: rgba(255, 255, 255, 0.05);
}

.zapping-item-thumb {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.zapping-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.zapping-item-name {
    flex: 1;
    min-width: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zapping-item.active .zapping-item-name {
    color: var(--primary-color);
    font-weight: 700;
}

.video-viewport {
    flex: 1;
    position: relative;
    background: #000;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Important for flex child to not overflow parent */
}

.player-controls-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 30px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    z-index: 2001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    pointer-events: none;
}

.player-controls-top * {
    pointer-events: auto;
}

video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .zapping-sidebar {
        width: 180px;
        /* Mas estrecho en móviles */
    }

    .zapping-header {
        padding: 15px;
        font-size: 0.9rem;
    }

    .zapping-item-thumb {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }

    .zapping-item-name {
        font-size: 11px;
    }
}

/* SERIES MODAL */
.series-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1500;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.series-modal.active {
    display: flex;
}

.series-modal-content {
    background: #0a0a15;
    width: 100%;
    max-width: 1100px;
    height: 85vh;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
}

.series-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: blur(40px);
    z-index: 0;
}

.series-info-side {
    width: 350px;
    padding: 40px;
    z-index: 1;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    background: rgba(8, 8, 14, 0.6);
}

.series-episodes-side {
    flex: 1;
    padding: 40px;
    z-index: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: rgba(5, 5, 10, 0.4);
}

.series-cover-detail {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.season-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.season-selector::-webkit-scrollbar {
    display: none;
}

.season-btn {
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    transition: 0.3s;
    color: rgba(255, 255, 255, 0.6);
}

.season-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.season-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 132, 255, 0.3);
}

.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.episode-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.episode-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.episode-thumb {
    width: 120px;
    height: 70px;
    background: #111;
    border-radius: 10px;
    object-fit: cover;
}

.episode-number {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.2rem;
    min-width: 30px;
    text-align: center;
}

.episode-info {
    flex: 1;
}

.episode-title {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    margin-bottom: 4px;
}

.episode-meta {
    font-size: 12px;
    color: var(--text-dim);
}

.close-series-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    color: white;
    font-size: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-series-btn:hover {
    background: var(--accent-red);
    transform: rotate(90deg);
}

@media (max-width: 900px) {
    .series-modal-content {
        flex-direction: column;
        height: 95vh;
    }

    .series-info-side {
        width: 100%;
        height: auto;
        padding: 20px;
        flex-direction: row;
        align-items: center;
        gap: 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .series-cover-detail {
        width: 120px;
        margin-bottom: 0;
    }

    .series-episodes-side {
        padding: 20px;
    }
}