/* ==========================================================================
   Cinema — tema publica a platformei de filme (design original).
   ========================================================================== */
:root {
    --bg: #0a0b10;
    --bg-2: #11131b;
    --surface: #171a24;
    --surface-2: #1f2330;
    --line: rgba(255, 255, 255, .08);
    --text: #f2f1ee;
    --muted: #9a9cab;
    --accent: #f5b83d;          /* auriu "marquee" */
    --accent-ink: #1a1306;
    --accent-2: #ff6b4a;
    --ok: #3ccf91;
    --warn: #ffb547;
    --danger: #ff5d6c;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
    --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrap: 1320px;
    --header-h: 72px;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 15px/1.55 var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt { margin-top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Butoane ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
    font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap;
    transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
    background: none;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffc95e; color: var(--accent-ink); }
.btn-outline { border-color: rgba(255,255,255,.25); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.07); color: var(--text); }
.btn-glass { background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn.is-static { cursor: default; opacity: .75; }
.btn-icon { width: 48px; height: 48px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.btn-icon svg { width: 20px; height: 20px; }
.btn-icon .check { display: none; }
.btn-icon.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-icon.is-on .plus { display: none; }
.btn-icon.is-on .check { display: block; }

.badge {
    display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600;
    background: rgba(10, 11, 16, .75); color: #fff; letter-spacing: .02em; vertical-align: middle;
}
.badge-free { background: var(--ok); color: #04130c; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
    background: linear-gradient(to bottom, rgba(10,11,16,.9), rgba(10,11,16,0));
    transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-solid { background: rgba(10, 11, 16, .94); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(12px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; color: var(--accent); }
.brand-mark svg { width: 100%; height: 100%; }
.brand:hover { color: var(--text); }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 8px 12px; border-radius: 8px; color: #c9cad3; font-weight: 500; font-size: 14px; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.main-nav a.active { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search input {
    width: 220px; padding: 9px 14px 9px 36px; border-radius: 999px; border: 1px solid var(--line);
    background: rgba(255,255,255,.06); color: var(--text); font: inherit; font-size: 14px; outline: none;
    transition: width .25s ease, border-color .2s ease;
}
.search input:focus { width: 280px; border-color: var(--accent); }
.avatar {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font-weight: 700;
}
.avatar:hover { color: var(--accent-ink); }
.nav-toggle { display: none; width: 40px; height: 40px; background: none; border: 0; padding: 10px 8px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }

@media (max-width: 1100px) {
    .search input { width: 160px; }
    .search input:focus { width: 200px; }
}
@media (max-width: 960px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0;
        background: rgba(10, 11, 16, .98); padding: 8px 16px 16px; border-bottom: 1px solid var(--line);
        transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s ease;
    }
    .main-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
    .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .main-nav a.active { box-shadow: none; color: var(--accent); }
    .header-inner { gap: 12px; }
}
@media (max-width: 640px) {
    .hide-sm { display: none; }
    .search input { width: 40px; padding-right: 0; color: transparent; cursor: pointer; }
    .search input::placeholder { color: transparent; }
    .search input:focus { width: calc(100vw - 32px); position: fixed; left: 16px; top: 16px; color: var(--text); background: var(--bg-2); z-index: 5; cursor: text; }
    .search input:focus::placeholder { color: var(--muted); }
    .brand-name { font-size: 18px; }
}

.flash { position: relative; z-index: 40; margin-top: var(--header-h); padding: 12px 0; font-weight: 500; }
.flash + .flash { margin-top: 0; }
.flash-success { background: rgba(60, 207, 145, .14); color: #9ff0cc; }
.flash-notice { background: rgba(245, 184, 61, .14); color: #ffd98c; }
.flash-error { background: rgba(255, 93, 108, .14); color: #ffb2ba; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: grid; overflow: hidden; }
.hero-empty { min-height: 60vh; align-items: center; background: radial-gradient(ellipse at 30% 20%, #2a2312 0, var(--bg) 60%); }
.hero-slide { grid-area: 1 / 1; position: relative; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 8s ease-out; }
.hero-slide.is-active .hero-bg { transform: scale(1); }
.hero-shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(to top, var(--bg) 2%, rgba(10,11,16,.55) 40%, rgba(10,11,16,.15) 70%),
        linear-gradient(to right, rgba(10,11,16,.92) 0, rgba(10,11,16,.4) 50%, rgba(10,11,16,0) 75%);
}
.hero-content { position: relative; padding-top: calc(var(--header-h) + 40px); padding-bottom: 88px; max-width: var(--wrap); }
.hero-content > * { max-width: 640px; }
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; display: flex; align-items: center; gap: 10px; }
.hero h1 { font-size: clamp(36px, 6vw, 72px); font-weight: 800; margin: 6px 0 14px; text-wrap: balance; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: #d7d8de; font-size: 14px; }
.meta-rating { color: var(--accent); font-weight: 700; }
.meta-box { border: 1px solid rgba(255,255,255,.4); border-radius: 4px; padding: 1px 6px; font-size: 12px; }
.hero-overview { color: #d0d1d8; font-size: 16px; margin: 14px 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 36px; display: flex; gap: 8px; }
.hero-dots button { width: 28px; height: 4px; border-radius: 4px; border: 0; padding: 0; background: rgba(255,255,255,.3); transition: .3s; }
.hero-dots button.is-active { width: 52px; background: var(--accent); }

/* ---------- Sectiuni ---------- */
.row-section { padding-top: 36px; padding-bottom: 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head.center { flex-direction: column; text-align: center; }
.section-head h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; display: flex; align-items: center; gap: 12px; }
.section-head h2::before { content: ""; width: 5px; height: 1em; border-radius: 3px; background: var(--accent); }
.section-head.center h2::before { display: none; }
.see-all { color: var(--muted); font-weight: 600; font-size: 14px; }

.tabs { display: inline-flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 999px; border: 1px solid var(--line); flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--muted); }
.tabs button.is-active { background: var(--accent); color: var(--accent-ink); }
.tab-panel:not(.is-active) { display: none !important; }
.tab-panel.is-active { display: grid; }
.episode-list.tab-panel.is-active { display: flex; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.chip small { color: var(--muted); margin-left: 4px; }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Carduri ---------- */
.grid-posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; }
@media (min-width: 720px) { .grid-posters { grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 28px 20px; } }
.card { display: block; min-width: 0; }
.card-poster { position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .3s ease; }
.card:hover .card-poster img { transform: scale(1.06); filter: brightness(.6); }
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-rating { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 6px; background: rgba(10,11,16,.78); color: var(--accent); font-weight: 700; font-size: 12px; }
.card-rating svg { width: 12px; height: 12px; }
.card-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); opacity: 0; transform: scale(.7); transition: .25s ease; }
.card-play svg { width: 24px; height: 24px; margin-left: 3px; }
.card:hover .card-play { opacity: 1; transform: scale(1); }
.card-progress { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); overflow: hidden; }
.card-progress i { display: block; height: 100%; background: var(--accent); }
.card-body { padding: 10px 2px 0; }
.card-body h3 { font-family: var(--font-body); font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-body p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.rail { position: relative; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
@media (min-width: 720px) { .rail-track { grid-auto-columns: 182px; gap: 20px; } }
.rail-btn { position: absolute; top: 38%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(17,19,27,.92); font-size: 26px; line-height: 1; display: none; }
.rail-btn.prev { left: -18px; }
.rail-btn.next { right: -18px; }
.rail-btn:hover { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (min-width: 960px) { .rail:hover .rail-btn { display: block; } }

/* ---------- Top rating ---------- */
.top-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px 24px; counter-reset: top; }
.top-list a { display: grid; grid-template-columns: 44px 56px 1fr auto; align-items: center; gap: 14px; padding: 10px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.top-list a:hover { border-color: rgba(245,184,61,.4); color: var(--text); }
.top-rank { font-family: var(--font-display); font-weight: 800; font-size: 34px; color: transparent; -webkit-text-stroke: 1.5px var(--accent); text-align: center; }
.top-list img { width: 56px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; }
.top-info { min-width: 0; }
.top-info strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-info small { color: var(--muted); }
.top-score { color: var(--accent); font-weight: 700; padding-right: 6px; }

/* ---------- Pagini ---------- */
.page-head { padding: calc(var(--header-h) + 40px) 0 24px; background: radial-gradient(ellipse at 15% 0, rgba(245,184,61,.12), transparent 55%); }
.flash ~ main .page-head { padding-top: 40px; }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.page-head .lead { max-width: 620px; margin: 12px auto 0; font-size: 17px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 28px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
select, .auth-card input[type=text], .auth-card input[type=email], .auth-card input[type=password] {
    background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 10px 12px; font: inherit; font-size: 14px; min-width: 150px; outline: none;
}
select:focus, .auth-card input:focus { border-color: var(--accent); }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 40px 0 20px; color: var(--muted); }
.pager a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); }
.pager a:hover { border-color: var(--accent); }
.pager .disabled { opacity: .35; }

/* ---------- Pagina titlului ---------- */
.detail-hero { position: relative; padding: calc(var(--header-h) + 48px) 0 56px; overflow: hidden; }
.detail-hero .hero-bg { transform: none; }
.detail-grid { position: relative; display: grid; grid-template-columns: 280px 1fr; gap: 44px; align-items: start; }
.detail-poster { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 2 / 3; object-fit: cover; }
.detail-info h1 { font-size: clamp(32px, 4.6vw, 58px); font-weight: 800; margin: 8px 0 6px; }
.detail-info .original { margin: 0 0 10px; font-style: italic; }
.detail-info .tagline { color: var(--accent); font-style: italic; margin: 18px 0 6px; }
.detail-info .overview { max-width: 720px; font-size: 16px; color: #d6d7dd; margin-top: 12px; }
.detail-info .hero-actions { margin: 20px 0; }
.credit { margin-top: 8px; }
@media (max-width: 820px) {
    .detail-grid { grid-template-columns: 1fr; gap: 24px; }
    .detail-poster { width: 180px; }
}

.episode-list { flex-direction: column; gap: 10px; }
.episode { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 10px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); align-items: center; }
.episode:hover { border-color: rgba(245,184,61,.45); color: var(--text); }
.episode.is-locked { opacity: .6; cursor: default; }
.episode.is-locked:hover { border-color: var(--line); }
.episode-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.episode-thumb img { width: 100%; height: 100%; object-fit: cover; }
.episode-num { position: absolute; left: 8px; bottom: 6px; font-family: var(--font-display); font-weight: 800; font-size: 26px; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.episode-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
@media (max-width: 560px) { .episode { grid-template-columns: 120px 1fr; } }

.cast { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 16px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.cast-item { text-align: center; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.cast-photo { width: 96px; height: 96px; margin: 0 auto 8px; border-radius: 50%; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font-family: var(--font-display); font-size: 30px; color: var(--muted); }
.cast-photo img { width: 100%; height: 100%; object-fit: cover; }

.trailer-modal { width: min(1000px, 94vw); padding: 0; border: 0; border-radius: var(--radius); background: #000; overflow: visible; }
.trailer-modal::backdrop { background: rgba(0, 0, 0, .85); }
.ratio { position: relative; aspect-ratio: 16 / 9; }
.ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.modal-close { position: absolute; top: -44px; right: 0; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); font-size: 22px; }

/* ---------- Abonamente ---------- */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px 24px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); }
.plan h3 { font-size: 22px; }
.plan-highlight { border-color: var(--accent); background: linear-gradient(180deg, rgba(245,184,61,.1), var(--bg-2) 45%); box-shadow: 0 20px 60px rgba(245,184,61,.08); }
.plan-flag { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan-price { margin: 10px 0 6px; display: flex; align-items: baseline; gap: 6px; }
.plan-price strong { font-family: var(--font-display); font-size: 36px; font-weight: 800; }
.plan-price span { color: var(--muted); }
.plan-features { list-style: none; padding: 0; margin: 6px 0 22px; display: grid; gap: 9px; flex: 1; }
.plan-features li { position: relative; padding-left: 26px; color: #d6d7dd; }
.plan-features li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: rgba(60,207,145,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8 3 3 5-6' fill='none' stroke='%233ccf91' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan-features li.is-off { color: var(--muted); }
.plan-features li.is-off::before { background: rgba(255,255,255,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 8h6' stroke='%239a9cab' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plans-teaser { padding-bottom: 40px; }
.faq { max-width: 760px; margin: 56px auto 20px; display: grid; gap: 10px; }
.faq details { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Cont ---------- */
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.panel h2 { font-size: 20px; margin-bottom: 14px; }
.sub-plan { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.1); }
.status-ok { background: rgba(60,207,145,.18); color: var(--ok); }
.status-warn { background: rgba(255,181,71,.18); color: var(--warn); }
.progress-item { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.progress-item:last-child { border-bottom: 0; }
.progress-item img { width: 44px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; }
.progress-item small { display: block; }
.bar { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); }

/* ---------- Autentificare ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: calc(var(--header-h) + 24px) 16px 48px; background: radial-gradient(ellipse at 50% 0, rgba(245,184,61,.14), transparent 60%); }
.auth-card { width: 100%; max-width: 420px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 30px; }
.auth-card p { margin: 0; }
.auth-card label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #c9cad3; }
.auth-card input { width: 100%; }
.auth-card .check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; color: var(--muted); }
.auth-card .check input { width: auto; margin-top: 3px; accent-color: var(--accent); }
.auth-card a { color: var(--accent); }
.form-error { color: var(--danger); font-size: 13px; margin: -6px 0 0 !important; }

/* ---------- Player ---------- */
.page-watch .site-header { background: rgba(10, 11, 16, .94); }
.watch-wrap { padding-top: var(--header-h); }
.player { position: relative; width: 100%; max-height: calc(100vh - var(--header-h)); aspect-ratio: 16 / 9; background: #000; margin: 0 auto; overflow: hidden; }
.player-video { width: 100%; height: 100%; background: #000; display: block; }
.player-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player-embed[hidden], .player-video[hidden] { display: none; }
.player-start {
    position: absolute; inset: 0; z-index: 4; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
    background-size: cover; background-position: center; color: #fff;
}
.player-start::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.player-start > * { position: relative; }
.player-start-btn { width: 88px; height: 88px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; transition: transform .2s ease; box-shadow: 0 0 0 12px rgba(245,184,61,.2); }
.player-start:hover .player-start-btn { transform: scale(1.08); }
.player-start-btn svg { width: 38px; height: 38px; margin-left: 5px; }
.player-start-label { font-family: var(--font-display); font-size: 20px; font-weight: 700; text-align: center; }
.player-start-label small { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 400; color: #d0d1d8; margin-top: 4px; }
.player.is-started .player-start { display: none; }

.ad-layer { position: absolute; inset: 0; z-index: 3; background: #000; }
.ad-layer[hidden] { display: none; }
.ad-video, .ad-image { width: 100%; height: 100%; object-fit: contain; background: #000; }
.ad-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ad-label { background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.ad-advertiser { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.ad-time { margin-left: auto; background: rgba(0,0,0,.6); padding: 4px 10px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.ad-bottom { position: absolute; left: 14px; right: 0; bottom: 34px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ad-skip { margin-left: auto; padding: 12px 22px; border: 1px solid rgba(255,255,255,.35); border-right: 0; border-radius: 8px 0 0 8px; background: rgba(0,0,0,.72); color: #fff; font-weight: 600; font-size: 14px; }
.ad-skip:disabled { cursor: default; color: #c9cad3; }
.ad-skip:not(:disabled):hover { background: #fff; color: #000; }
.ad-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.2); }
.ad-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s linear; }
.ad-unmute { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 12px 20px; border-radius: 999px; border: 0; background: rgba(255,255,255,.9); color: #000; font-weight: 600; }

.watch-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-top: 24px; padding-bottom: 12px; flex-wrap: wrap; }
.watch-info h1 { font-size: clamp(24px, 3vw, 34px); margin: 6px 0; }
.back-link { color: var(--muted); font-size: 14px; }
.ads-note { margin-top: 10px; font-size: 14px; color: var(--muted); }
.ads-note a { color: var(--accent); font-weight: 600; }
.episode-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 12px; overflow-x: auto; padding-bottom: 30px; }
.episode-strip a { padding: 14px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 4px; }
.episode-strip a span { color: var(--muted); font-size: 12px; font-weight: 600; }
.episode-strip a strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.episode-strip a.is-current { border-color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; padding: 48px 0 28px; background: var(--bg-2); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 32px; }
.footer-grid h4 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.footer-grid a { display: block; padding: 3px 0; color: #d0d1d8; }
.footer-grid .brand-footer { margin-bottom: 10px; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.watch-elsewhere { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 14px; }
.provider { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.provider img { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; background: #fff; }
.provider:hover { border-color: var(--accent); color: var(--text); }

/* Selectorul de limba */
.lang-switch { position: relative; }
.lang-current { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--text); font-weight: 600; font-size: 13px; }
.lang-current svg { width: 16px; height: 16px; }
.lang-current:hover { border-color: var(--accent); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 6px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 60; }
.lang-menu[hidden] { display: none; }
.lang-menu a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; font-size: 14px; }
.lang-menu a strong { width: 24px; color: var(--muted); font-size: 12px; }
.lang-menu a:hover { background: rgba(255,255,255,.06); color: var(--text); }
.lang-menu a.is-active { color: var(--accent); }
.lang-menu a.is-active strong { color: var(--accent); }
@media (max-width: 640px) { .lang-current span { display: none; } .lang-current { width: 38px; justify-content: center; padding: 0; } }
