/* ============================================================
   CineStream — Movie & TV Portal
   ============================================================ */

:root {
    --bg: #0a0c11;
    --bg-2: #0f121a;
    --surface: #161a24;
    --surface-2: #1d2230;
    --surface-3: #262c3b;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    --text: #f3f5f9;
    --text-dim: #9aa3b4;
    --text-mute: #6b7385;

    --primary: #ff2d55;
    --primary-2: #ff5e3a;
    --primary-grad: linear-gradient(135deg, #ff2d55 0%, #ff5e3a 100%);
    --gold: #ffc247;

    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    --nav-h: 68px;
    --maxw: 1400px;
    --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(1200px 600px at 80% -10%, rgba(255, 45, 85, 0.10), transparent 60%),
        radial-gradient(900px 500px at 0% 0%, rgba(255, 94, 58, 0.06), transparent 55%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #3a4256; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.15s ease, filter 0.15s ease, background 0.2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary-grad); color: #fff; box-shadow: 0 6px 20px rgba(255, 45, 85, 0.35); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { border: 1.5px solid var(--border-strong); color: var(--text); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.06); }
.btn-ghost { background: var(--surface-2); color: var(--text-dim); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-sm { padding: 7px 13px; font-size: 0.82rem; }
.btn-lg { padding: 13px 30px; font-size: 1rem; }

/* ---------- Progress bar ---------- */
.progress-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary-grad);
    transition: width 0.3s ease;
    box-shadow: 0 0 12px rgba(255, 45, 85, 0.8);
}

/* ============================================================
   TOP NAVIGATION
   ============================================================ */
.top-navigation {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(10, 12, 17, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: transform 0.35s ease;
}
.top-navigation.hidden { transform: translateY(-100%); }

.nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    height: var(--nav-h);
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}
.logo i { color: var(--primary); font-size: 1.5rem; }
.logo-accent {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 6px; flex-shrink: 0; }
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-dim);
    transition: all 0.2s ease;
}
.nav-btn:hover { color: var(--text); background: var(--surface-2); }
.nav-btn.active { color: #fff; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px rgba(255, 45, 85, 0.5); }
.nav-btn.active i { color: var(--primary); }

/* Search */
.search-wrapper { position: relative; flex: 1; max-width: 520px; margin-left: auto; }
.search-box {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 30px;
    padding: 4px 4px 4px 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-box:focus-within {
    border-color: rgba(255, 45, 85, 0.6);
    box-shadow: 0 0 0 4px rgba(255, 45, 85, 0.12);
}
.search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.94rem;
    padding: 8px 0;
}
.search-box input::placeholder { color: var(--text-mute); }
.search-box button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-grad);
    color: #fff;
    display: grid;
    place-items: center;
    transition: filter 0.2s ease;
}
.search-box button:hover { filter: brightness(1.1); }

/* Suggestions dropdown */
.search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-height: 70vh;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    padding: 8px;
}
.search-suggestions.active { display: block; }
.suggestion-group-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-mute);
    padding: 10px 10px 6px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.suggestion-group-title i { color: var(--primary); }
.suggestion-item {
    display: flex;
    gap: 12px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s ease;
}
.suggestion-item:hover { background: var(--surface-2); }
.suggestion-poster { width: 42px; height: 62px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--surface-3); }
.suggestion-poster img { width: 100%; height: 100%; object-fit: cover; }
.suggestion-info { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.suggestion-info .title { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggestion-info .meta { display: flex; gap: 10px; font-size: 0.78rem; color: var(--text-mute); margin-top: 2px; }
.highlight { color: var(--primary); font-weight: 700; }

/* Trending / recent extras */
.search-extras {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
    z-index: 999;
    padding: 16px;
    gap: 18px;
    flex-direction: column;
}
.search-extras-block h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-mute);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.search-extras-block h4 i { color: var(--primary); }
.search-extras-list { display: flex; flex-wrap: wrap; gap: 8px; }
.search-extra-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: var(--surface-2);
    border-radius: 30px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s ease;
}
.search-extra-item:hover { background: var(--surface-3); }
.search-extra-item i { color: var(--text-mute); padding-left: 6px; }
.search-extra-item-img { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.search-extra-item-img img { width: 100%; height: 100%; object-fit: cover; }

.mobile-filter-btn {
    display: none;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--text);
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.slider-section { max-width: var(--maxw); margin: 22px auto 0; padding: 0 22px; }
.slider-viewport {
    position: relative;
    height: 460px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--surface);
}
.slider-container { display: flex; height: 100%; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.slide {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
    position: relative;
}
.slide-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    padding: 40px 48px;
    background: linear-gradient(90deg, rgba(10, 12, 17, 0.92) 0%, rgba(10, 12, 17, 0.55) 40%, transparent 75%),
                linear-gradient(0deg, rgba(10, 12, 17, 0.9) 0%, transparent 50%);
    max-width: 100%;
}
.slide-title { font-size: 2.4rem; font-weight: 800; line-height: 1.1; max-width: 620px; text-shadow: 0 2px 20px rgba(0,0,0,0.6); }
.slide-meta { display: flex; gap: 20px; font-size: 0.95rem; color: var(--text-dim); }
.slide-meta i { color: var(--gold); margin-right: 5px; }
.slide-overview { max-width: 560px; color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; }
.slide-actions { display: flex; gap: 12px; margin-top: 6px; }
.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.15s ease, filter 0.15s ease, background 0.2s ease;
}
.slide-btn:hover { transform: translateY(-2px); }
.slide-btn-play { background: var(--primary-grad); color: #fff; box-shadow: 0 6px 20px rgba(255, 45, 85, 0.4); }
.slide-btn-trailer { background: rgba(255, 255, 255, 0.14); color: #fff; backdrop-filter: blur(6px); }
.slide-btn-trailer:hover { background: rgba(255, 255, 255, 0.24); }

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 1.1rem;
    display: grid;
    place-items: center;
    z-index: 5;
    transition: background 0.2s ease;
    opacity: 0;
}
.slider-viewport:hover .slider-nav { opacity: 1; }
.slider-nav:hover { background: var(--primary); }
.slider-prev { left: 18px; }
.slider-next { right: 18px; }

.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
    z-index: 5;
}
.slider-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.25s ease;
}
.slider-dot.active { background: var(--primary); width: 26px; border-radius: 5px; }

/* ============================================================
   INDUSTRY TABS
   ============================================================ */
.industry-tabs {
    max-width: var(--maxw);
    margin: 26px auto 0;
    padding: 0 22px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}
.industry-tabs::-webkit-scrollbar { display: none; }
.industry-tab {
    padding: 9px 20px;
    border-radius: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.industry-tab:hover { color: var(--text); border-color: var(--border-strong); }
.industry-tab.active { background: var(--primary-grad); color: #fff; border-color: transparent; box-shadow: 0 5px 16px rgba(255, 45, 85, 0.3); }

/* ============================================================
   LAYOUT
   ============================================================ */
.layout {
    max-width: var(--maxw);
    margin: 26px auto 0;
    padding: 0 22px 60px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

/* ---------- Filters sidebar ---------- */
.search-filters {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    position: sticky;
    top: calc(var(--nav-h) + 16px);
}
.filters-head h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.filters-head h3 i { color: var(--primary); }
.filter-group { border-top: 1px solid var(--border); padding: 14px 0; }
.filter-group:first-of-type { border-top: none; }
.filter-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    user-select: none;
}
.filter-group-toggle { color: var(--text-mute); transition: transform 0.3s ease; font-size: 0.8rem; }
.filter-group-toggle.collapsed { transform: rotate(180deg); }
.filter-group-content { overflow: hidden; transition: max-height 0.3s ease; padding-top: 14px; }
.filter-group-content.collapsed { padding-top: 0; }

.filter-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
    padding: 6px 13px;
    border-radius: 30px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.15s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.active { background: var(--primary-grad); color: #fff; border-color: transparent; }

.range-inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.range-inputs input {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    color: var(--text);
    font-size: 0.85rem;
    outline: none;
}
.range-inputs input:focus { border-color: rgba(255, 45, 85, 0.5); }
.range-dash { color: var(--text-mute); }
.range-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    border-radius: 5px;
    background: var(--surface-3);
    outline: none;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 17px; height: 17px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(255, 45, 85, 0.2);
}
.range-slider::-moz-range-thumb {
    width: 17px; height: 17px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}
.range-labels { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-mute); margin-top: 8px; }
.filter-actions { display: flex; gap: 10px; margin-top: 18px; }
.filter-actions .btn { flex: 1; justify-content: center; }

/* ---------- Content column ---------- */
.content-column { min-width: 0; }
.content-header, .search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.search-results-header { display: none; }
.content-title { font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 11px; }
.content-title i { color: var(--primary); }
.search-results-header h2 { font-size: 1.35rem; font-weight: 700; }

.content-controls { display: flex; align-items: center; gap: 14px; }
.sort-group, .view-group { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px; }
.sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    transition: all 0.18s ease;
}
.sort-btn:hover { color: var(--text); }
.sort-btn.active { background: var(--surface-3); color: #fff; }
.sort-btn.active i { color: var(--gold); }
.view-btn {
    width: 36px; height: 34px;
    border-radius: 7px;
    color: var(--text-dim);
    display: grid;
    place-items: center;
    transition: all 0.18s ease;
}
.view-btn:hover { color: var(--text); }
.view-btn.active { background: var(--surface-3); color: var(--primary); }

/* ---------- Content grid ---------- */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 45, 85, 0.4);
}
.card-img { position: relative; aspect-ratio: 2 / 3; background: var(--surface-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card-rating {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    padding: 4px 9px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}
.card-rating i { color: var(--gold); }
.card-info { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-weight: 600; font-size: 0.96rem; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-date { font-size: 0.8rem; color: var(--text-mute); display: flex; align-items: center; gap: 6px; }
.card-overview { font-size: 0.82rem; color: var(--text-dim); line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.card-genres { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.card-genre { font-size: 0.7rem; padding: 3px 9px; background: var(--surface-2); border-radius: 30px; color: var(--text-dim); }

/* List view */
.content-grid.list-view { grid-template-columns: 1fr; gap: 14px; }
.content-grid.list-view .card { flex-direction: row; }
.content-grid.list-view .card-img { width: 130px; flex-shrink: 0; aspect-ratio: 2 / 3; }
.content-grid.list-view .card-info { padding: 16px 20px; }
.content-grid.list-view .card-overview { -webkit-line-clamp: 3; }

/* Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: var(--radius);
}
.skeleton-card { aspect-ratio: 2 / 3.3; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Empty / error */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 20px;
    color: var(--text-dim);
}
.empty-state-icon { font-size: 3.4rem; color: var(--surface-3); margin-bottom: 18px; }
.empty-state-title { font-size: 1.4rem; color: var(--text); margin-bottom: 8px; }
.empty-state-text { margin-bottom: 22px; }
.empty-state-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: var(--primary-grad);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: rgba(255, 45, 85, 0.08);
    border: 1px solid rgba(255, 45, 85, 0.3);
    border-radius: var(--radius);
    color: #ff8ba0;
}

/* Loader */
.loader { display: none; text-align: center; padding: 30px 0; }
.spinner {
    width: 42px; height: 42px;
    margin: 0 auto;
    border: 3.5px solid var(--surface-3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.load-more-container { text-align: center; margin-top: 34px; display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 34px 22px 50px;
    border-top: 1px solid var(--border);
    color: var(--text-mute);
    font-size: 0.85rem;
    text-align: center;
}
.site-footer i { color: var(--primary); }
.site-footer a { color: var(--text-dim); text-decoration: underline; }
.footer-note { margin-top: 8px; font-size: 0.78rem; opacity: 0.7; }

/* ============================================================
   OVERLAY + MODALS
   ============================================================ */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.overlay.active { opacity: 1; visibility: visible; }

.modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    overflow-y: auto;
    padding: 40px 20px;
}

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.05rem;
    display: grid;
    place-items: center;
    z-index: 20;
    transition: background 0.2s ease;
}
.modal-close:hover { background: var(--primary); }

/* ---------- Quick view ---------- */
.quick-view-modal { display: none; }
.quick-view-body {
    max-width: 860px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 300px 1fr;
    overflow: hidden;
    position: relative;
}
.quick-view-poster { background: var(--surface-2); }
.quick-view-poster img { width: 100%; height: 100%; object-fit: cover; }
.quick-view-details { padding: 30px; overflow-y: auto; max-height: 85vh; }
.quick-view-title { font-size: 1.7rem; font-weight: 700; margin-bottom: 12px; line-height: 1.2; }
.quick-view-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-dim); font-size: 0.9rem; margin-bottom: 16px; }
.quick-view-meta i { margin-right: 5px; }
.rating-badge { background: rgba(255, 194, 71, 0.14); color: var(--gold); padding: 3px 11px; border-radius: 30px; font-weight: 700; }
.rating-badge i { color: var(--gold); }
.quick-view-genres, .quick-view-genre { display: inline-flex; }
.quick-view-genres { flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.quick-view-genre { font-size: 0.76rem; padding: 4px 12px; background: var(--surface-2); border-radius: 30px; color: var(--text-dim); }
.quick-view-overview { color: var(--text-dim); line-height: 1.65; font-size: 0.92rem; margin-bottom: 22px; }
.quick-view-subhead { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-mute); margin-bottom: 12px; }
.quick-view-cast { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 22px; }
.quick-view-actor { flex: 0 0 78px; text-align: center; cursor: pointer; }
.quick-view-actor-img { width: 70px; height: 70px; border-radius: 50%; overflow: hidden; margin: 0 auto 8px; background: var(--surface-3); border: 2px solid transparent; transition: border-color 0.2s ease; }
.quick-view-actor:hover .quick-view-actor-img { border-color: var(--primary); }
.quick-view-actor-img img { width: 100%; height: 100%; object-fit: cover; }
.quick-view-actor-name { font-size: 0.78rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-view-actor-role { font-size: 0.72rem; color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-view-actions { display: flex; gap: 12px; }

/* ---------- Detail / player modal ---------- */
.detail-content {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    display: flex;
    flex-direction: column;
}
.player-iframe { width: 100%; height: 100%; border: none; flex: 1; }
.player-close-btn {
    position: absolute;
    top: 14px; right: 14px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: grid;
    place-items: center;
    z-index: 30;
    transition: background 0.2s ease;
}
.player-close-btn:hover { background: var(--primary); }
.player-tabs { display: flex; gap: 8px; padding: 12px 16px; background: var(--bg-2); flex-wrap: wrap; }
.player-tab {
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.18s ease;
}
.player-tab:hover { color: var(--text); }
.player-tab.active { background: var(--primary-grad); color: #fff; }
.player-notice {
    padding: 10px 16px;
    background: rgba(255, 194, 71, 0.1);
    color: var(--gold);
    font-size: 0.8rem;
    text-align: center;
    order: -1;
}
.streaming-notice {
    padding: 10px 16px;
    background: var(--bg-2);
    color: var(--text-mute);
    font-size: 0.74rem;
    text-align: center;
    line-height: 1.5;
}
.episode-selector { padding: 14px 16px; background: var(--bg-2); border-top: 1px solid var(--border); }
.episode-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.episode-input-group { display: flex; flex-direction: column; }
.episode-input-group input {
    width: 90px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    color: var(--text);
    outline: none;
}
.episode-input-group input:focus { border-color: rgba(255, 45, 85, 0.5); }
#play-episode-btn {
    padding: 10px 22px;
    background: var(--primary-grad);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.player-toolbar { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.copy-feedback { display: none; color: #4ade80; font-size: 0.82rem; font-weight: 600; }

.detail-info { display: flex; gap: 26px; padding: 26px; }
.detail-poster { flex: 0 0 190px; }
.detail-poster img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.detail-text { flex: 1; min-width: 0; }
.detail-title { font-size: 2rem; font-weight: 800; line-height: 1.15; margin-bottom: 14px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-dim); font-size: 0.92rem; margin-bottom: 20px; }
.detail-meta i { margin-right: 6px; color: var(--text-mute); }
.detail-actions { display: flex; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.detail-overview { color: var(--text-dim); line-height: 1.7; }

.detail-section { padding: 0 26px 26px; }
.section-heading { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; }
.person-row { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 12px; }
.person-card { flex: 0 0 96px; text-align: center; cursor: pointer; }
.person-img { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; margin: 0 auto 9px; background: var(--surface-3); border: 2px solid transparent; transition: border-color 0.2s ease; }
.person-card:hover .person-img { border-color: var(--primary); }
.person-img img { width: 100%; height: 100%; object-fit: cover; }
.person-name { font-size: 0.82rem; font-weight: 600; line-height: 1.3; }
.person-role { font-size: 0.74rem; color: var(--text-mute); margin-top: 2px; }

.related-section { display: none; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.related-grid .card:hover { transform: translateY(-5px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .layout { grid-template-columns: 220px 1fr; gap: 20px; }
    .slide-title { font-size: 2rem; }
}

@media (max-width: 860px) {
    .nav-links { display: none; }
    .mobile-filter-btn { display: grid; }
    .search-wrapper { max-width: none; }

    .layout { grid-template-columns: 1fr; }
    .search-filters {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: 300px;
        max-width: 85vw;
        border-radius: 0;
        z-index: 1200;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        border-left: 1px solid var(--border);
    }
    .search-filters.active { transform: translateX(0); box-shadow: -10px 0 40px rgba(0,0,0,0.5); }

    .slider-viewport { height: 340px; }
    .slide-overlay { padding: 26px 26px; }
    .slide-title { font-size: 1.6rem; }
    .slide-overview { display: none; }

    .quick-view-body { grid-template-columns: 1fr; max-width: 460px; }
    .quick-view-poster { max-height: 320px; }
    .quick-view-details { max-height: none; }

    .detail-info { flex-direction: column; }
    .detail-poster { flex: 0 0 auto; max-width: 180px; }
    .detail-title { font-size: 1.6rem; }
}

@media (max-width: 560px) {
    .nav-inner { padding: 0 14px; gap: 12px; }
    .logo span span { display: inline; }
    .slider-section, .industry-tabs, .layout { padding-left: 14px; padding-right: 14px; }
    .content-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
    .content-controls { width: 100%; justify-content: space-between; }
    .slider-viewport { height: 280px; }
    .slide-title { font-size: 1.35rem; }
    .modal { padding: 0; }
    .detail-content, .quick-view-body { border-radius: 0; min-height: 100vh; }
    .content-grid.list-view .card-img { width: 100px; }
    .card-overview { -webkit-line-clamp: 2; }
}
