/* ==========================================================================
   OMNIX PLAY - Core Stylesheet (Vanilla CSS)
   Supports Light (Day Mode) & Gold Dark (Night Mode) Themes
   ========================================================================== */

/* Theme Variables Definition */
:root {
    /* Night Theme (Default Gold Dark) */
    --bg-primary: #08080a;
    --bg-secondary: #0e0e12;
    --bg-card: #141419;
    --text-primary: #f4f4f6;
    --text-secondary: #9ca3af;
    --accent: #d4af37; /* Gold */
    --accent-hover: #f3e092;
    --accent-gradient: linear-gradient(135deg, #f3e092 0%, #d4af37 50%, #aa7c11 100%);
    --accent-glow: rgba(212, 175, 55, 0.35);
    --border-color: rgba(212, 175, 55, 0.12);
    --header-bg: rgba(14, 14, 18, 0.75);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    --hover-overlay: rgba(212, 175, 55, 0.05);
    --loader-blur-bg: rgba(8, 8, 10, 0.95);
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

[data-theme="light"] {
    /* Day Theme (White Mode with dark gold accents) */
    --bg-primary: #f3f4f6;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --accent: #b58c1e; /* Darker Gold for readability on light BG */
    --accent-hover: #967117;
    --accent-gradient: linear-gradient(135deg, #cda235 0%, #906d15 100%);
    --accent-glow: rgba(181, 140, 30, 0.2);
    --border-color: rgba(0, 0, 0, 0.08);
    --header-bg: rgba(255, 255, 255, 0.85);
    --shadow-color: rgba(0, 0, 0, 0.05);
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
    --hover-overlay: rgba(0, 0, 0, 0.02);
    --loader-blur-bg: rgba(255, 255, 255, 0.95);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-inter);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

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

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input {
    font-family: inherit;
    outline: none;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Typography Helpers */
.font-outfit {
    font-family: var(--font-outfit);
}

/* ==========================================================================
   Loading Screen Overlay
   ========================================================================== */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--loader-blur-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.logo-spinner {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-txt-g {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    animation: pulse 2.0s infinite ease-in-out;
}

.spinner-circle {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 3px dashed transparent;
    border-top: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
    border-radius: 50%;
    animation: rotate 1.8s linear infinite;
}

.loading-status {
    margin-top: 25px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    font-family: var(--font-outfit);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(0.96); }
    50% { opacity: 1; transform: scale(1.04); }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.gold-icon {
    font-size: 1.6rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 5px rgba(212, 175, 55, 0.4));
}

.logo-text {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px var(--accent-glow));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-item {
    font-family: var(--font-outfit);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-secondary);
    position: relative;
    padding: 5px 0;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-item.active::after, .nav-item:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Styled Search Box */
.search-box {
    position: relative;
    width: 280px;
    height: 42px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0 15px 0 40px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    width: 340px;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.search-icon {
    position: absolute;
    left: 15px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.search-box input {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.search-box input::placeholder {
    color: var(--text-secondary);
    opacity: 0.65;
}

.clear-btn {
    color: var(--text-secondary);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-btn:hover {
    color: var(--accent);
}

/* Suggestion dropdown list */
.suggestions-dropdown {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow-color);
    max-height: 350px;
    overflow-y: auto;
    z-index: 1100;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.05);
    cursor: pointer;
    transition: background-color 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: var(--hover-overlay);
}

.suggestion-item img {
    width: 35px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
}

.suggestion-info h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.suggestion-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Theme Toggle Button */
.icon-button {
    width: 42px;
    height: 42px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    box-shadow: var(--card-shadow);
}

.icon-button:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Sun/Moon Toggle switch icon visibility */
.theme-icon-day { display: none; }
.theme-icon-night { display: block; }

[data-theme="light"] .theme-icon-day { display: block; }
[data-theme="light"] .theme-icon-night { display: none; }


/* ==========================================================================
   Layout & Container Wrappers
   ========================================================================== */
#app-content {
    margin-top: 80px; /* offset header height */
    min-height: calc(100vh - 80px - 280px); /* Fill screen min minus header and footer */
}

.content-section {
    padding: 40px 0;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}


/* ==========================================================================
   Home View Components
   ========================================================================== */

/* Hero Feature Banner */
.hero-banner {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
    background-color: #000;
    border-bottom: 1px solid var(--border-color);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.slider-dot.active {
    background-color: var(--accent);
    width: 28px;
    border-radius: 5px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
    opacity: 0.35;
    filter: blur(15px);
    transform: scale(1.1);
    transition: opacity 0.5s ease;
    z-index: 1;
}

/* Dark gradient overlay to ensure text is legible */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--bg-primary) 30%, rgba(8, 8, 10, 0.7) 70%, rgba(8, 8, 10, 0.3) 100%),
                linear-gradient(to top, var(--bg-primary) 0%, rgba(8, 8, 10, 0.2) 50%, transparent 100%);
    z-index: 2;
}

[data-theme="light"] .hero-overlay {
    background: linear-gradient(to right, var(--bg-primary) 35%, rgba(243, 244, 246, 0.75) 75%, rgba(243, 244, 246, 0.4) 100%),
                linear-gradient(to top, var(--bg-primary) 0%, rgba(243, 244, 246, 0.2) 50%, transparent 100%);
}

.hero-container-inner {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    z-index: 3;
}

.hero-content-left {
    flex: 1;
    max-width: 750px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-poster-right {
    flex: 0 0 280px;
    height: 390px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--accent);
    box-shadow: 0 15px 35px var(--shadow-color), 0 0 30px var(--accent-glow);
    animation: floatPoster 6s ease-in-out infinite;
}

.hero-poster-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes floatPoster {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

.hero-tag {
    background: var(--accent-gradient);
    color: #000;
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 4px;
    width: max-content;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.hero-title {
    font-family: var(--font-outfit);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-rating {
    border: 1px solid var(--text-secondary);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000;
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
}

[data-theme="light"] .btn-secondary {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Category Sections / Carousels */
.row-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.row-title {
    font-family: var(--font-outfit);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-left: 4px solid var(--accent);
    padding-left: 12px;
}

.row-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 5px;
}

.row-more:hover {
    color: var(--accent-hover);
}

/* Carousel Container Scrollable */
.carousel-wrapper {
    position: relative;
    width: 100%;
}

.card-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0 20px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.card-carousel::-webkit-scrollbar {
    display: none; /* Safari / Chrome */
}

/* Navigation Arrow Controls */
.carousel-nav-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(14, 14, 18, 0.8);
    border: 1px solid var(--border-color);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel-wrapper:hover .carousel-nav-btn {
    opacity: 1;
}

.carousel-nav-btn:hover {
    background-color: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-left { left: -22px; }
.btn-right { right: -22px; }


/* ==========================================================================
   Movie/TV Show Card styling
   ========================================================================== */
.show-card {
    flex: 0 0 calc(100% / 6 - 17px); /* Default 6 cards on desktop grid */
    min-width: 180px;
    aspect-ratio: 2/3;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    scroll-snap-align: start;
    transform-origin: center bottom;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.show-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 15px var(--accent-glow);
}

[data-theme="light"] .show-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15), 0 0 15px var(--accent-glow);
}

.show-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #050505;
    transition: transform 0.5s ease;
}

.show-card.landscape-card {
    aspect-ratio: 16/9;
}

.show-card.landscape-card img {
    object-fit: cover;
    background-color: transparent;
}

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

/* Card details overlay */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.65) 50%, transparent 100%);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.show-card:hover .card-overlay {
    opacity: 1;
}

.card-title {
    font-family: var(--font-outfit);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.card-badge {
    background-color: var(--accent);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
    text-transform: uppercase;
}


/* ==========================================================================
   Detail Page View Styles
   ========================================================================== */
.detail-hero {
    position: relative;
    width: 100%;
    min-height: 480px;
    padding: 60px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.detail-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 30%;
    opacity: 0.25;
    filter: blur(8px);
}

.detail-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(8, 8, 10, 0.8) 50%, var(--bg-primary) 100%);
}

.detail-container {
    position: relative;
    z-index: 5;
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.detail-poster-wrap {
    flex: 0 0 300px;
    aspect-ratio: 2/3;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px var(--shadow-color);
}

.detail-poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.genre-tag {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 15px;
}

.detail-title {
    font-family: var(--font-outfit);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.detail-meta-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.detail-meta-list span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
}

/* Season & Episode UI (for TV Shows) */
.series-episodes-section {
    padding: 40px 0 60px 0;
}

.seasons-nav {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
}

.season-btn {
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 8px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.season-btn.active {
    background: var(--accent-gradient);
    color: #000;
    border-color: transparent;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.episode-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.episode-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 8px 20px var(--accent-glow);
}

.ep-thumbnail-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
}

.ep-thumbnail-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ep-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.episode-card:hover .ep-play-overlay {
    opacity: 1;
}

.ep-play-overlay i {
    font-size: 2.2rem;
    color: var(--accent);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
}

.ep-details {
    padding: 15px;
}

.ep-num-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.ep-num-title h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.ep-duration {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
}


/* ==========================================================================
   Category Page View
   ========================================================================== */
.category-layout {
    display: flex;
    gap: 40px;
    padding: 40px 0;
}

.filter-sidebar {
    flex: 0 0 250px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    height: max-content;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-family: var(--font-outfit);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-btn {
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.filter-btn:hover {
    background-color: var(--hover-overlay);
    color: var(--accent);
}

.filter-btn.active {
    background-color: var(--accent);
    color: #000;
    font-weight: 600;
}

.category-main-content {
    flex: 1;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.results-grid.landscape-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.no-results-view {
    text-align: center;
    padding: 60px 0;
    color: var(--text-secondary);
}

.no-results-view i {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 15px;
    opacity: 0.5;
}


/* ==========================================================================
   Video Player Interface View
   ========================================================================== */
.player-page-wrap {
    padding: 30px 0 60px 0;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-back {
    color: var(--text-secondary);
    font-family: var(--font-outfit);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.btn-back:hover {
    color: var(--accent);
}

.player-title-info h3 {
    font-family: var(--font-outfit);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.player-title-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Custom Video Container styling */
.video-player-container {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
    margin-bottom: 30px;
    position: relative;
}

.video-player-container video {
    width: 100%;
    height: 100%;
    display: block;
}


/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px 0;
    margin-top: 80px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand p {
    margin-top: 15px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h4 {
    font-family: var(--font-outfit);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.footer-col a {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.footer-col a:hover {
    color: var(--accent);
}

.copyright-text {
    margin-top: 15px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}


/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 20px;
    }
    .container-wide {
        padding: 0 20px;
    }
    .detail-container {
        flex-direction: column;
        padding: 0 20px;
        gap: 30px;
    }
    .detail-poster-wrap {
        width: 220px;
        align-self: center;
    }
    .show-card {
        flex: 0 0 calc(100% / 4 - 15px);
    }
    .hero-banner {
        height: 500px;
    }
    .hero-poster-right {
        flex: 0 0 220px;
        height: 310px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .glass-header {
        height: 70px;
    }
    #app-content {
        margin-top: 70px;
    }
    .header-container {
        justify-content: space-between;
    }
    .nav-links {
        display: none; /* Mobile menu can be simplified or hidden */
    }
    .search-box {
        width: 160px;
    }
    .search-box:focus-within {
        width: 200px;
    }
    .hero-banner {
        height: auto;
        padding: 40px 0;
    }
    .hero-container-inner {
        flex-direction: column-reverse;
        gap: 30px;
        text-align: center;
    }
    .hero-content-left {
        max-width: 100%;
        align-items: center;
    }
    .hero-poster-right {
        flex: 0 0 200px;
        height: 280px;
        margin: 0 auto;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-meta {
        justify-content: center;
    }
    .hero-desc {
        font-size: 0.88rem;
        margin-bottom: 20px;
    }
    .show-card {
        flex: 0 0 calc(100% / 3 - 14px);
    }
    .category-layout {
        flex-direction: column;
    }
    .filter-sidebar {
        position: static;
        width: 100%;
    }
    .episodes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .search-box {
        display: none; /* Hide search input on header, make a toggle later or keep small icon */
    }
    .hero-banner {
        padding: 30px 0;
    }
    .hero-poster-right {
        display: none; /* Hide poster on very small devices to save space */
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .btn-primary, .btn-secondary {
        justify-content: center;
    }
    .show-card {
        flex: 0 0 calc(100% / 2 - 10px);
    }
}
