/* ==========================================================================
   PLAYER TOP BANNER ADS (1 ROW 2 COLUMNS - SEAMLESS ZERO GAP)
   ========================================================================== */
.nung-player-top-banners {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #1e293b;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    background: #0b0f19;
}

.nung-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

.nung-banner-grid.single-col {
    grid-template-columns: minmax(0, 1fr);
    max-width: 600px;
    margin: 0 auto;
}

.nung-banner-col {
    display: block;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    line-height: 0;
}

.nung-banner-col:hover {
    opacity: 0.95;
}

.nung-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
    text-decoration: none;
    margin: 0;
    padding: 0;
}

.nung-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: none;
    border-radius: 0;
    border: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .nung-player-top-banners {
        margin-bottom: 15px;
        border-radius: 6px;
    }
}

/* ==========================================================================
   VIDEO PLAYER CONTAINER & RESPONSIVE SCREEN
   ========================================================================== */
.movie-player-section {
    width: 100%;
    margin-bottom: 25px;
}

.nung-player-container {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid #1e293b;
    width: 100%;
}

.nung-player-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.nung-player-embed-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.nung-player-embed-wrap iframe,
.nung-player-embed-wrap video {
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
}

.nung-no-player {
    padding: 60px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 15px;
    background: #0b0f19;
}

/* Server Selection Tabs Bar */
.nung-server-tabs-bar {
    background: #111827;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid #1e293b;
}

.nung-server-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 600;
}

.nung-pulse-icon {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: nungPulse 1.8s infinite;
}

@keyframes nungPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.nung-server-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nung-server-btn {
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid #334155;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nung-server-btn:hover {
    background: #334155;
    color: #fff;
    border-color: #475569;
}

.nung-server-btn.active {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    border-color: #0284c7;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

/* ==========================================================================
   EPISODE NAVIGATION (Single Episode Page)
   ========================================================================== */
.nung-ep-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #111827;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid #1e293b;
    margin-bottom: 20px;
    width: 100%;
}

.nung-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.nung-btn-series {
    background: #1e293b;
    color: #38bdf8 !important;
    border: 1px solid #334155;
}

.nung-btn-prev, .nung-btn-next {
    background: #0284c7;
    color: #fff !important;
}

.nung-btn-prev:hover, .nung-btn-next:hover {
    background: #0369a1;
}

.nung-btn-disabled {
    background: #1e293b;
    color: #64748b;
    cursor: not-allowed;
    pointer-events: none;
}

/* Quick Episode Chips Grid (Single Episode Page) */
.nung-ep-quick-list {
    background: #111827;
    padding: 18px 20px;
    border-radius: 10px;
    border: 1px solid #1e293b;
    margin-bottom: 25px;
    width: 100%;
    box-sizing: border-box;
}

.nung-sub-heading {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
}

.nung-ep-chips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    width: 100%;
}

.nung-ep-chip {
    background: #1e293b;
    color: #cbd5e1 !important;
    text-align: center;
    padding: 10px 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid #334155;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nung-ep-chip:hover {
    background: #0284c7;
    color: #fff !important;
    border-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.nung-ep-chip.active {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4) !important;
}

/* ==========================================================================
   SEASONS TABS & EPISODES CARD GRID (Single TV Show Page)
   ========================================================================== */
.tv-seasons-section {
    width: 100%;
    margin-top: 35px;
}

.nung-season-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    width: 100%;
}

.nung-front-season-tab {
    background: #111827;
    color: #94a3b8;
    border: 1px solid #1e293b;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nung-front-season-tab:hover {
    background: #1e293b;
    color: #fff;
    border-color: #334155;
}

.nung-front-season-tab.active {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    border-color: #0284c7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.nung-front-season-tab .badge {
    background: rgba(0, 0, 0, 0.35);
    color: #e0f2fe;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 12px;
}

.nung-front-season-tab.active .badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.nung-front-ep-grid {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    margin-bottom: 30px;
}

.nung-front-ep-grid.active {
    display: grid;
}

.nung-ep-card {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
}

.nung-ep-card:hover {
    transform: translateY(-4px);
    border-color: #0284c7;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.25);
}

.ep-poster-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    overflow: hidden;
}

.ep-poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nung-ep-card:hover .ep-poster-wrap img {
    transform: scale(1.06);
}

.ep-poster-wrap .no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #64748b;
    font-weight: 700;
    font-size: 14px;
}

.ep-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(4px);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}

.ep-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 38px;
    height: 38px;
    background: rgba(2, 132, 199, 0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.nung-ep-card:hover .ep-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.ep-card-title {
    padding: 10px 12px;
    background: #0f172a;
    margin: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff !important;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
    transition: color 0.2s ease;
}

.nung-ep-card:hover .ep-card-title {
    color: #38bdf8 !important;
}

/* Breakpoints */
@media (max-width: 1200px) {
    .nung-front-ep-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 899px) {
    .nung-front-ep-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .nung-ep-chips-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 8px;
    }
}

@media (max-width: 559px) {
    .nung-front-ep-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .nung-ep-chips-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    .nung-ep-chip {
        padding: 8px 2px;
        font-size: 11.5px;
    }
}