/* =======================================================
   APULA-FLIX - ULTRA RESPONSIVE NETFLIX THEME
======================================================= */

:root {
    --bg-main: #141414;
    --bg-darker: #0a0a0a;
    --bg-card: #1f1f1f;
    --bg-card-hover: #2a2a2a;
    --red-primary: #E50914;
    --red-hover: #b80710;
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    --text-dim: #777777;
    --border-color: rgba(255, 255, 255, 0.12);
    --font-main: 'Netflix Sans', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-smooth: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-netflix: 0 10px 30px rgba(0, 0, 0, 0.85);
    --nav-height: 68px;
    --bottom-nav-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #111;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Utility Helpers */
.desktop-only { display: flex; }
.mobile-only { display: none; }

/* =======================================================
   NAVBAR
======================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    padding: 0 max(4%, 16px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 20, 20, 0) 100%);
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(20, 20, 20, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 32px);
}

.logo {
    text-decoration: none;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.logo-red {
    color: var(--red-primary);
    text-shadow: 0 0 12px rgba(229, 9, 20, 0.4);
}

.logo-white {
    color: #fff;
}

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

.nav-tab {
    background: none;
    border: none;
    color: #e5e5e5;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 6px 0;
    position: relative;
    white-space: nowrap;
}

.nav-tab:hover {
    color: #fff;
}

.nav-tab.active {
    color: #ffffff;
    font-weight: 700;
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--red-primary);
    border-radius: 2px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 16px);
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 4px 8px;
    transition: var(--transition-smooth);
}

.search-box:focus-within {
    border-color: #fff;
    background: rgba(0, 0, 0, 0.95);
}

.search-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.search-input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.88rem;
    padding: 4px 6px;
    width: clamp(100px, 15vw, 200px);
    transition: width 0.3s ease;
}

.search-input:focus {
    width: clamp(140px, 22vw, 260px);
}

.search-clear-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 0.8rem;
    cursor: pointer;
    display: none;
    padding: 2px 4px;
}

.search-box.has-text .search-clear-btn {
    display: block;
}

/* Platform Dropdown Selector */
.platform-selector-container {
    position: relative;
}

.platform-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.platform-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

.platform-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 270px;
    max-width: 90vw;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: var(--shadow-netflix);
    display: none;
    flex-direction: column;
    z-index: 150;
    overflow: hidden;
}

.platform-dropdown.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.platform-dropdown-header {
    padding: 10px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-dim);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.platform-badge-count {
    color: #4ade80;
    font-size: 0.7rem;
}

.platform-list {
    max-height: 320px;
    overflow-y: auto;
}

.platform-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.88rem;
}

.platform-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.platform-item.active {
    background: rgba(229, 9, 20, 0.22);
    color: #fff;
    font-weight: 700;
}

.platform-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-badge-tag {
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Session Badge */
.session-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 5px 8px;
    border-radius: 20px;
    font-size: 0.72rem;
    color: #4ade80;
    font-weight: 600;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 6px #22c55e;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* =======================================================
   HERO BANNER
======================================================= */
.hero {
    position: relative;
    width: 100%;
    height: clamp(450px, 68vh, 650px);
    display: flex;
    align-items: center;
    padding: 0 max(4%, 16px);
    margin-bottom: 16px;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
    z-index: 1;
    transition: background-image 0.6s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(77deg, rgba(20, 20, 20, 0.95) 0%, rgba(20, 20, 20, 0.65) 45%, rgba(20, 20, 20, 0.15) 85%),
                linear-gradient(180deg, rgba(20, 20, 20, 0) 50%, rgba(20, 20, 20, 1) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: clamp(320px, 60vw, 680px);
    margin-top: 30px;
}

.hero-platform-badge {
    display: inline-block;
    background: var(--red-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.hero-title {
    font-size: clamp(1.6rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 14px;
    font-size: 0.85rem;
}

.hero-match {
    color: #46d369;
    font-weight: 700;
}

.hero-badge {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.7rem;
}

.hero-episodes, .hero-tags {
    color: var(--text-muted);
}

.hero-synopsis {
    font-size: clamp(0.85rem, 1.5vw, 0.98rem);
    color: #ddd;
    margin-bottom: 20px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    text-decoration: none;
    touch-action: manipulation;
}

.btn-primary {
    background-color: #fff;
    color: #000;
}

.btn-primary:hover, .btn-primary:active {
    background-color: rgba(255, 255, 255, 0.8);
}

.btn-secondary {
    background-color: rgba(109, 109, 110, 0.7);
    color: #fff;
}

.btn-secondary:hover, .btn-secondary:active {
    background-color: rgba(109, 109, 110, 0.4);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
}

/* =======================================================
   FILTER BARS (CATEGORY & PLATFORMS)
======================================================= */
.mobile-category-bar {
    padding: 0 max(4%, 16px);
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 12px;
}

.mobile-category-bar::-webkit-scrollbar { display: none; }

.cat-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ccc;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.cat-pill.active {
    background: #fff;
    color: #000;
    border-color: #fff;
    font-weight: 700;
}

.filter-pills-bar {
    padding: 0 max(4%, 16px);
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.filter-pills-bar::-webkit-scrollbar { display: none; }

.pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.pill.active {
    background: var(--red-primary);
    border-color: var(--red-primary);
    color: #fff;
    font-weight: 700;
}

/* =======================================================
   DRAMA GRID & CARDS
======================================================= */
.main-content {
    padding-bottom: calc(var(--bottom-nav-height) + 40px);
}

.content-sections {
    padding: 0 max(4%, 16px);
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 700;
}

.section-count {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Dynamic Responsive Grid */
.drama-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(135px, 20vw, 190px), 1fr));
    gap: clamp(12px, 2vw, 20px) clamp(8px, 1.5vw, 16px);
    min-height: 250px;
}

/* Drama Card */
.drama-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.drama-card:hover {
    transform: scale(1.04) translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
    z-index: 5;
}

.card-poster-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    background: #1a1a1a;
    overflow: hidden;
}

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

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

.card-platform-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    border-left: 2.5px solid var(--red-primary);
}

.card-ep-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.85);
    color: #46d369;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
}

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

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

.play-circle {
    width: 40px;
    height: 40px;
    background: var(--red-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.6);
}

.card-info {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: clamp(0.82rem, 1.2vw, 0.92rem);
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-dim);
}

.card-tags {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Loading & Empty States */
.grid-loading, .grid-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    text-align: center;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--red-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =======================================================
   PLAYER MODAL (RESPONSIVE VIDEO & SIDEBAR)
======================================================= */
.player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.player-modal.open {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.player-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.player-container {
    position: relative;
    width: min(94vw, 1200px);
    height: min(90dvh, 800px);
    background: #181818;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-netflix);
    border: 1px solid var(--border-color);
    z-index: 2;
}

.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #111;
    border-bottom: 1px solid var(--border-color);
}

.player-title-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.player-platform-badge {
    background: var(--red-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

.player-titles-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.player-drama-title {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-ep-title {
    font-size: 0.8rem;
    color: #46d369;
    font-weight: 600;
}

.player-close-btn {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s;
}

.player-close-btn:hover {
    color: #fff;
}

.player-body {
    display: flex;
    flex: 1;
    min-height: 0;
    background: #000;
}

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

#mainVideo {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    outline: none;
    background: #000;
}

.video-loading {
    position: absolute;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border-radius: 8px;
    padding: 16px 24px;
    text-align: center;
    z-index: 10;
}

.video-loading.show {
    display: flex;
}

/* Episode Sidebar */
.episode-sidebar {
    width: clamp(260px, 30vw, 340px);
    background: #141414;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h4 {
    font-size: 0.88rem;
    font-weight: 700;
}

.sidebar-ep-count {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.episode-filter-bar {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
}

.episode-filter-bar input {
    width: 100%;
    background: #222;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 6px 10px;
    color: #fff;
    font-size: 0.82rem;
    outline: none;
}

.episode-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    align-content: start;
}

.ep-btn {
    background: #242424;
    border: 1px solid #333;
    color: #ccc;
    padding: 8px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ep-btn:hover, .ep-btn:active {
    background: #333;
    color: #fff;
    border-color: #555;
}

.ep-btn.active {
    background: var(--red-primary);
    border-color: var(--red-primary);
    color: #fff;
    font-weight: 700;
}

.player-footer {
    padding: 10px 16px;
    background: #141414;
    border-top: 1px solid var(--border-color);
}

.player-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.player-synopsis-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-height: 40px;
    overflow-y: auto;
    line-height: 1.35;
}

/* =======================================================
   MOBILE BOTTOM NAVIGATION
======================================================= */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    display: none;
    align-items: center;
    justify-content: space-around;
    z-index: 90;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav-item {
    background: none;
    border: none;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    transition: color 0.2s ease;
}

.bottom-nav-item svg {
    transition: transform 0.2s ease;
}

.bottom-nav-item.active {
    color: #fff;
}

.bottom-nav-item.active svg {
    fill: var(--red-primary);
    transform: scale(1.1);
}

/* =======================================================
   TOAST NOTIFICATION
======================================================= */
.toast {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 16px);
    right: 16px;
    background: rgba(24, 24, 24, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    box-shadow: var(--shadow-netflix);
    display: none;
    z-index: 2000;
    animation: slideUp 0.3s ease;
}

.toast.show { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =======================================================
   RESPONSIVE BREAKPOINTS
======================================================= */

/* Tablet & Mobile (< 900px) */
@media (max-width: 900px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    
    .navbar {
        height: 58px;
    }
    
    .hero {
        height: 52vh;
        min-height: 380px;
    }

    .hero-content {
        max-width: 90%;
    }

    .player-container {
        width: 100vw;
        height: 100dvh;
        max-width: 100vw;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
    }

    .player-body {
        flex-direction: column;
    }

    .video-wrapper {
        flex: none;
        width: 100%;
        height: 42vh;
    }

    .episode-sidebar {
        width: 100%;
        flex: 1;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }

    .episode-list {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

/* Small Phones (< 480px) */
@media (max-width: 480px) {
    .platform-btn-text {
        display: none;
    }

    .platform-btn {
        padding: 6px 8px;
    }

    .search-box {
        width: auto;
    }

    .search-input {
        width: 75px;
    }

    .search-input:focus {
        width: 120px;
    }

    .hero {
        height: 46vh;
        min-height: 340px;
    }

    .hero-actions .btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .video-wrapper {
        height: 36vh;
    }
}
