/* ==========================================================================
   FREEFLIX - Universal Cross-Device Styling (Desktop, Mobile, Tablet & Smart TV)
   ========================================================================== */

:root {
    --bg-dark: #08080a;
    --bg-card: rgba(20, 20, 26, 0.85);
    --bg-card-hover: rgba(32, 32, 42, 0.95);
    --red-primary: #e50914;
    --red-hover: #ff1e27;
    --red-dark: #b81d24;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(229, 9, 20, 0.5);
    --shadow-neon: 0 10px 30px -5px rgba(229, 9, 20, 0.4);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Smart TV D-Pad & Keyboard Focus State */
:focus, :focus-visible {
    outline: 3px solid var(--red-primary) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 20px var(--red-primary) !important;
    border-radius: 6px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 10% 0%, rgba(229, 9, 20, 0.12) 0px, transparent 50%),
        radial-gradient(at 90% 100%, rgba(184, 29, 36, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #262626;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--red-primary);
}

/* Top Shield Banner */
.shield-banner {
    background: linear-gradient(90deg, rgba(229, 9, 20, 0.2), rgba(184, 29, 36, 0.15));
    border-bottom: 1px solid var(--border-glass);
    padding: 6px 16px;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
    overflow-x: auto;
}
.shield-content {
    display: flex;
    align-items: center;
    gap: 6px;
}
.text-red {
    color: var(--red-primary);
}
.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}
.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--red-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--red-primary);
}

/* Main Navigation Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 8, 10, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}
.header-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.logo-badge {
    color: var(--red-primary);
    text-shadow: 0 0 15px rgba(229, 9, 20, 0.6);
    margin-right: 2px;
}
.logo-dot {
    color: var(--red-hover);
}

/* Search Form */
.search-form {
    flex: 1;
    max-width: 460px;
}
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.search-input-wrapper input {
    width: 100%;
    padding: 9px 16px 9px 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    color: #fff;
    font-size: 0.88rem;
    outline: none;
    transition: all 0.3s ease;
}
.search-input-wrapper input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--red-primary);
    box-shadow: 0 0 18px rgba(229, 9, 20, 0.3);
}
.clear-search {
    position: absolute;
    right: 14px;
    color: var(--text-secondary);
    text-decoration: none;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
}
.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}
.nav-item:hover, .nav-item.active {
    color: var(--red-primary);
    font-weight: 600;
}
.bookmark-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
}
.bookmark-badge #bookmarkCount {
    background: var(--red-primary);
    color: #fff;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 0.72rem;
}

/* Genre Filter Bar */
.genre-bar {
    background: rgba(14, 14, 18, 0.8);
    border-bottom: 1px solid var(--border-glass);
    padding: 8px 0;
}
.genre-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
}
.genre-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-right: 4px;
}
.genre-chip {
    padding: 5px 13px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.25s ease;
}
.genre-chip:hover, .genre-chip.active {
    background: var(--red-primary);
    color: #fff;
    font-weight: 600;
    border-color: transparent;
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.4);
}

/* Main Layout */
.main-content {
    flex: 1;
    max-width: 1350px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Spotlight Banner */
.hero-banner {
    position: relative;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    padding: 50px 35px;
    margin-bottom: 30px;
    border: 1px solid var(--border-glass);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}
.hero-content {
    max-width: 650px;
}
.hero-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.badge-primary {
    background: var(--red-primary);
    color: #fff;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
}
.badge-quality {
    background: rgba(229, 9, 20, 0.2);
    color: var(--red-hover);
    border: 1px solid var(--border-highlight);
}
.badge-rating {
    background: rgba(255, 255, 255, 0.1);
    color: #facc15;
}
.badge-year {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 10px;
}
.hero-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}
.hero-description {
    font-size: 0.92rem;
    color: #d1d5db;
    margin-bottom: 22px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-actions {
    display: flex;
    gap: 12px;
}
.btn {
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.btn-play, .btn-primary {
    background: var(--red-primary);
    color: #fff;
    box-shadow: 0 4px 18px rgba(229, 9, 20, 0.4);
}
.btn-play:hover, .btn-primary:hover {
    background: var(--red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.6);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--border-glass);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Movie Catalog Grid */
.catalog-section {
    margin-bottom: 35px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}
.results-count {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
}

/* Movie Card */
.movie-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.movie-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-neon);
}

.card-poster-wrapper {
    position: relative;
    width: 100%;
    padding-top: 145%;
    overflow: hidden;
    background: #141414;
}
.movie-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.movie-card:hover .movie-poster {
    transform: scale(1.08);
}

.poster-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 10, 0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}
.movie-card:hover .poster-overlay {
    opacity: 1;
}
.play-overlay-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--red-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.7);
    transition: transform 0.2s ease;
}
.play-overlay-btn:hover {
    transform: scale(1.15);
    background: var(--red-hover);
}
.card-bookmark-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-glass);
    color: #fff;
    cursor: pointer;
}

.card-quality {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(8, 8, 10, 0.85);
    border: 1px solid var(--border-highlight);
    color: var(--red-primary);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
}
.card-rating {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #facc15;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-title {
    font-family: var(--font-heading);
    font-size: 0.94rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}
.card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}
.card-title a:hover {
    color: var(--red-primary);
}
.card-subinfo {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

/* Video Player Page */
.player-page-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.player-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}
.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.back-link:hover {
    color: var(--red-primary);
}

/* Direct Wi-Fi Cast Bar */
.direct-cast-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 9, 20, 0.12);
    border: 1px solid var(--border-highlight);
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}
.cast-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}
google-cast-launcher, .cast-launcher-btn {
    --connected-color: #e50914;
    --disconnected-color: #ffffff;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
}
.airplay-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: #fff;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}
.airplay-btn:hover {
    background: var(--red-primary);
    border-color: transparent;
}
.player-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
}
.tool-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.tool-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--red-primary);
}

.player-wrapper-card {
    background: #000;
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
    transition: all 0.4s ease;
}

.server-tabs-row {
    background: #111115;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-glass);
    overflow-x: auto;
    white-space: nowrap;
}
.server-tab-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}
.server-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.server-tab.active {
    background: var(--red-primary);
    color: #fff;
    font-weight: 700;
    border-color: transparent;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
}

.iframe-aspect-ratio {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}
#player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile Cast Modal */
.cast-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(8, 8, 10, 0.88);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.cast-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    border-radius: 18px;
    max-width: 550px;
    width: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-neon);
}
.cast-modal-header {
    background: #111115;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
}
.cast-modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.close-cast-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}
.cast-modal-body {
    padding: 20px;
}
.cast-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 16px 0 20px;
}
.cast-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}
.cast-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.cast-card h4 {
    font-size: 0.9rem;
    margin-bottom: 6px;
}
.cast-card p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Ad Click Shield Overlay */
.ad-click-shield {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: rgba(8, 8, 10, 0.65);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.shield-overlay-btn {
    background: var(--red-primary);
    color: #fff;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 35px rgba(229, 9, 20, 0.6);
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.player-notice {
    padding: 10px 16px;
    background: #0d0d11;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* TV Seasons & Episodes Container */
.episodes-container-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 20px;
}
.episodes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.episodes-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}
.seasons-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.season-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 14px;
}
.season-title-bar {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}
.season-ep-count {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 400;
}
.episodes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}
.episode-chip {
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.25s ease;
}
.episode-chip:hover, .episode-chip.active {
    background: var(--red-primary);
    color: #fff;
    font-weight: 700;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

/* Movie Detail Card */
.movie-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 25px;
}
.detail-poster {
    width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.detail-info-col {
    flex: 1;
}
.detail-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.detail-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-glass);
}
.detail-description {
    font-size: 0.9rem;
    color: #d1d5db;
    line-height: 1.6;
}

.recommendations-section {
    margin-top: 10px;
}
.section-subtitle {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 16px;
}

/* Pagination Controls */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 35px;
    padding-top: 18px;
    border-top: 1px solid var(--border-glass);
}
.page-btn {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 25px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}
.page-btn:hover, .page-btn.active {
    background: var(--red-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}
.page-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Footer */
.main-footer {
    background: rgba(5, 5, 7, 0.95);
    border-top: 1px solid var(--border-glass);
    margin-top: 45px;
    padding-top: 35px;
}
.footer-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px 25px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 35px;
}
.footer-brand h2 {
    font-family: var(--font-heading);
    margin-bottom: 8px;
}
.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    max-width: 380px;
}
.footer-links h4, .footer-info h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--red-primary);
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 6px;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
}
.footer-links a:hover {
    color: #fff;
}
.footer-info p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}
.footer-bottom {
    border-top: 1px solid var(--border-glass);
    text-align: center;
    padding: 14px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Responsive Media Queries (Mobile, Tablet, Smart TV)
   ========================================================================== */

.quality-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(10, 10, 14, 0.95);
    color: var(--text-secondary);
}
.quality-toolbar label {
    color: #fff;
    font-weight: 600;
}
.quality-toolbar select {
    padding: 7px 30px 7px 10px;
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    background: #17171d;
    color: #fff;
}
.quality-toolbar #qualityStatus {
    font-size: 0.8rem;
}
.native-player-wrapper video {
    width: 100%;
    height: 100%;
    background: #000;
}

@media (max-width: 900px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .search-form {
        max-width: 100%;
    }
    .nav-links {
        justify-content: space-between;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .hero-banner {
        padding: 30px 20px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .movie-detail-card {
        flex-direction: column;
    }
    .detail-poster {
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .cast-options-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .main-content {
        padding: 14px;
    }
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 14px;
    }
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-banner {
        padding: 24px 16px;
    }
    .player-nav-header {
        align-items: center;
    }
    .nav-item span {
        display: inline;
    }
    .tool-btn span, .back-link span {
        display: inline;
    }
}
