/* ==========================================================================
   Streamity Client WebPlayer - Modern Streaming Design System
   ========================================================================== */

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

:root {
    --bg-main: #06080e;
    --bg-surface: #0c101c;
    --bg-card: rgba(16, 22, 38, 0.7);
    --bg-card-hover: rgba(26, 36, 62, 0.9);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-active: rgba(99, 102, 241, 0.6);
    
    --primary: #6366f1;
    --accent: #a855f7;
    --primary-gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --primary-glow: rgba(99, 102, 241, 0.4);
    
    --live-gradient: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 90% 10%, rgba(168, 85, 247, 0.1) 0%, transparent 45%);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* ==========================================================================
   Client Login Screen
   ========================================================================== */
#loginView {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    z-index: 10;
}

.client-login-card {
    background: rgba(14, 20, 36, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 44px 36px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px var(--primary-glow);
    text-align: center;
}

.client-brand-logo {
    max-height: 56px;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.client-brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.client-brand-subtitle {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.client-form-group {
    text-align: left;
    margin-bottom: 20px;
}

.client-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.client-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.client-input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 15px;
}

.client-form-control {
    width: 100%;
    background: rgba(8, 12, 22, 0.75);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 13px 14px 13px 42px;
    color: #fff;
    font-size: 14.5px;
    outline: none;
    transition: all 0.25s ease;
}

.client-form-control:focus {
    border-color: var(--border-active);
    background: rgba(12, 18, 32, 0.95);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.client-btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 15.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px var(--primary-glow);
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.client-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.6);
    filter: brightness(1.1);
}

/* ==========================================================================
   Main Client App Layout
   ========================================================================== */
#appView {
    display: none;
    min-height: 100vh;
    flex-direction: column;
}

/* Top Navbar */
.app-header {
    background: rgba(8, 11, 20, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.app-logo-img {
    max-height: 42px;
    max-width: 140px;
    object-fit: contain;
}

.app-brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation Links */
.app-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-tab {
    padding: 8px 18px;
    border-radius: 999px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-tab i { font-size: 14px; }

.nav-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Header Right Actions */
.app-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.search-box-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 180px;
}

.search-box-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

.user-profile-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 5px 14px 5px 6px;
    border-radius: 999px;
    font-size: 13.5px;
    cursor: pointer;
}

.user-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.btn-client-logout {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-client-logout:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fff;
}

/* ==========================================================================
   Main Content Views
   ========================================================================== */
.main-view-container {
    flex: 1;
    padding: 0 32px 60px 32px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Billboard (Home View) */
.hero-billboard {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin: 28px 0 40px 0;
    min-height: 440px;
    display: flex;
    align-items: flex-end;
    padding: 48px;
    background-size: cover;
    background-position: center top;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-subtle);
}

.hero-billboard::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #06080e 10%, rgba(6, 8, 14, 0.7) 60%, rgba(6, 8, 14, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-gradient);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    line-height: 1.15;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.hero-meta .rating {
    color: #facc15;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-desc {
    color: #cbd5e1;
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-hero-play {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 13px 28px;
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.btn-hero-play:hover {
    transform: scale(1.05);
    background: #f1f5f9;
}

.btn-hero-info {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 13px 24px;
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-hero-info:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 36px 0 20px 0;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Category Filter Bar (Pills) */
.category-filter-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.category-pill {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.category-pill.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* ==========================================================================
   VOD Layout (Movies & Series with Vertical Categories Sidebar)
   ========================================================================== */
.vod-layout-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    min-height: 720px;
    height: calc(100vh - 160px);
}

@media (max-width: 992px) {
    .vod-layout-container {
        grid-template-columns: 1fr;
        height: auto;
    }
}

.vod-categories-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(16px);
}

.vod-content-area {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(16px);
}

.vod-area-header {
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.vod-area-title-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vod-area-title {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vod-count-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}

.vod-area-search {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 240px;
}

.vod-area-search i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 13px;
}

.vod-area-search input {
    width: 100%;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 8px 14px 8px 34px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}

.vod-area-search input:focus {
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.95);
}

.vod-grid-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* ==========================================================================
   Media Cards Grid (Movies & Series)
   ========================================================================== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 22px 18px;
}

.media-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.media-card:hover {
    transform: scale(1.06) translateY(-6px);
    border-color: var(--border-active);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px var(--primary-glow);
    z-index: 10;
}

.media-poster-box {
    position: relative;
    aspect-ratio: 2 / 3;
    background: #0d121f;
    overflow: hidden;
}

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

.media-card:hover .media-poster {
    transform: scale(1.05);
}

.media-overlay-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.rating-badge {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: #facc15;
    display: flex;
    align-items: center;
    gap: 3px;
}

.fav-btn {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fav-btn:hover, .fav-btn.active {
    color: #f43f5e;
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.15);
}

.media-info-box {
    padding: 12px 14px;
    background: rgba(12, 16, 28, 0.95);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.media-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.media-card-sub {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* ==========================================================================
   Live TV Channels Layout
   ========================================================================== */
.live-tv-container {
    display: grid;
    grid-template-columns: 260px 320px 1fr;
    gap: 16px;
    min-height: 720px;
    height: calc(100vh - 160px);
}

@media (max-width: 1200px) {
    .live-tv-container {
        grid-template-columns: 240px 280px 1fr;
    }
}

@media (max-width: 992px) {
    .live-tv-container {
        grid-template-columns: 1fr;
        height: auto;
    }
}

.live-categories-sidebar,
.live-channels-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(16px);
}

.sidebar-header-box {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header-title {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.channel-search-box {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.2);
}

.channel-search-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.channel-search-input:focus {
    border-color: var(--primary);
}

/* Vertical Categories List */
.vertical-category-list {
    flex: 1;
    overflow-y: auto;
    list-style: none;
    padding: 6px;
}

.vertical-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-bottom: 4px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.vertical-category-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.vertical-category-item.active {
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.vertical-category-item .cat-left {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vertical-category-item .cat-icon {
    font-size: 13px;
    opacity: 0.8;
    width: 18px;
    text-align: center;
}

/* Channels List */
.channel-list {
    flex: 1;
    overflow-y: auto;
    list-style: none;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.2s ease;
}

.channel-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.channel-item.active {
    background: rgba(99, 102, 241, 0.2);
    border-left: 4px solid var(--primary);
}

.channel-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    padding: 3px;
    border: 1px solid var(--border-subtle);
}

.channel-meta {
    flex: 1;
    min-width: 0;
}

.channel-meta h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-meta p {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* Live Player Panel */
.live-player-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.live-panel-header {
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
}

.live-panel-channel-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-badge-indicator {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.live-badge-indicator i {
    font-size: 6px;
    animation: pulse 1.5s infinite;
}

.btn-fullscreen-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: #cbd5e1;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-fullscreen-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.live-video-wrapper {
    flex: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.live-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* ==========================================================================
   Full Cinema Video Player Overlay
   ========================================================================== */
#videoPlayerOverlay {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 9999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#videoPlayerOverlay.active {
    display: flex;
}

.player-header-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 30px;
    background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.player-title-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.btn-close-player {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-player:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: scale(1.1);
}

.video-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mainVideoPlayer {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    outline: none;
}

/* ==========================================================================
   Modal Popups (Movie / Series Details & Announcements)
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 900;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-backdrop.active {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.detail-modal-card {
    background: rgba(14, 20, 36, 0.95);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9);
}

.detail-backdrop-banner {
    height: 280px;
    background-size: cover;
    background-position: center top;
    position: relative;
}

.detail-backdrop-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(14, 20, 36, 1) 0%, rgba(14, 20, 36, 0.4) 60%, transparent 100%);
}

.detail-modal-body {
    padding: 0 36px 36px 36px;
    position: relative;
    margin-top: -80px;
}

.detail-top-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.detail-poster-img {
    width: 130px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 1px solid var(--border-subtle);
}

.detail-main-text h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.detail-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.detail-tag {
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
}

.episodes-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.episode-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.episode-card:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--border-active);
}

.episode-num {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    width: 32px;
}

.episode-info h4 {
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 2px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .live-tv-container {
        grid-template-columns: 1fr;
    }
    .hero-billboard {
        padding: 24px;
        min-height: 360px;
    }
    .hero-title {
        font-size: 28px;
    }
    .app-header {
        padding: 12px 18px;
    }
    .search-box-btn span {
        display: none;
    }
    .search-box-btn {
        min-width: auto;
        padding: 8px 12px;
    }
    .main-view-container {
        padding: 0 16px 40px 16px;
    }
}
