:root {
  --ink: #05060e;
  --ink-soft: #090b16;
  --navy: #01033c;
  --turquoise: #00cfc8;
  --white: #f7f9fc;
  --muted: #a8b0c0;
  --dim: #737b8e;
  --panel: rgba(11, 14, 27, .9);
  --line: rgba(255, 255, 255, .13);
  --rail-width: 5.25rem;
  --gutter: clamp(1.5rem, 4vw, 5rem);
  --focus-ring: 0 0 0 3px var(--turquoise), 0 10px 34px rgba(0, 207, 200, .22);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--white);
  background: var(--ink);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { width: 100%; height: 100%; min-height: 100%; overflow-anchor: none; background: var(--ink); scroll-behavior: smooth; }
body { width: 100%; min-width: 320px; min-height: 100%; margin: 0; overflow-x: hidden; overflow-anchor: none; color: var(--white); background: var(--ink); }
html:fullscreen, html.tv-mode, html.tv-mode body { width: 100%; min-height: 100%; background: var(--ink); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 1000; top: -5rem; left: 1rem; padding: .8rem 1rem; color: #001b1a; background: var(--turquoise); }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus { outline: none; }
[data-focus] { transition: transform .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
[data-focus]:focus-visible, [data-focus].tv-focus { border-color: var(--turquoise) !important; box-shadow: var(--focus-ring); z-index: 6; }

/* Kısa uygulama açılışı */
.app-intro { display: none; position: fixed; z-index: 1200; inset: 0; place-items: center; overflow: hidden; color: var(--white); background: #01033c; isolation: isolate; }
html.intro-play .app-intro { display: grid; }
.intro-ambient { position: absolute; z-index: -1; inset: -20%; background: radial-gradient(circle at 38% 42%, rgba(0, 207, 200, .09), transparent 35%), radial-gradient(circle at 66% 56%, rgba(116, 65, 255, .13), transparent 38%), linear-gradient(145deg, #01021f, #01033c 52%, #050126); }
.intro-logo-stage { width: min(52rem, 78vw); opacity: 0; transform: scale(.94); animation: intro-logo-settle 950ms cubic-bezier(.2, .74, .24, 1) both; will-change: transform, opacity; }
.intro-logo-frame { position: relative; width: 100%; overflow: hidden; }
.intro-logo { display: block; width: 100%; filter: drop-shadow(0 18px 48px rgba(0, 0, 0, .34)); }
.intro-light-sweep { position: absolute; inset: -28% auto -28% -38%; width: 24%; opacity: 0; transform: skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(53, 255, 245, .2), rgba(145, 91, 255, .25), transparent); filter: blur(5px); mix-blend-mode: screen; animation: intro-light-pass 650ms ease-out 520ms 1 both; pointer-events: none; will-change: transform, opacity; }
.intro-skip { position: absolute; right: max(1.5rem, env(safe-area-inset-right)); bottom: max(1.5rem, env(safe-area-inset-bottom)); min-width: 6rem; min-height: 3.2rem; padding: 0 1.25rem; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; color: #f7fbff; background: rgba(3, 6, 30, .64); box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 10px 30px rgba(0, 0, 0, .24); backdrop-filter: blur(12px); font-weight: 800; opacity: 0; animation: intro-skip-in 220ms ease 650ms both; }
.intro-skip:focus-visible { border-color: var(--turquoise); box-shadow: var(--focus-ring); }
.app-intro.is-leaving { animation: intro-fade-out 350ms ease both; pointer-events: none; }
@keyframes intro-logo-settle {
  0% { opacity: 0; transform: scale(.94); }
  37% { opacity: 1; transform: scale(.965); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes intro-light-pass {
  0% { opacity: 0; transform: translateX(0) skewX(-18deg); }
  22% { opacity: .9; }
  78% { opacity: .75; }
  100% { opacity: 0; transform: translateX(610%) skewX(-18deg); }
}
@keyframes intro-skip-in { from { opacity: 0; transform: translateY(.35rem); } to { opacity: 1; transform: none; } }
@keyframes intro-fade-out { from { opacity: 1; } to { opacity: 0; } }

/* Giriş */
.login-view { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 3rem 5vw; overflow: hidden; background: linear-gradient(125deg, #05060e 0%, #07091a 58%, #01033c 130%); }
.brand-halo { position: absolute; right: -10vw; top: -12vw; width: min(52rem, 55vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(0, 207, 200, .16), rgba(1, 3, 60, .08) 42%, transparent 70%); filter: blur(42px); }
.login-card { position: relative; width: min(34rem, 95vw); padding: 3.4rem; border: 1px solid var(--line); border-radius: 1.35rem; background: rgba(7, 9, 20, .92); box-shadow: 0 28px 80px rgba(0, 0, 0, .48); backdrop-filter: blur(20px); }
.login-logo { display: block; width: 100%; max-width: 100%; }
.eyebrow { margin: 2rem 0 .65rem; color: var(--turquoise); font-weight: 800; font-size: .78rem; letter-spacing: .26em; }
.login-card h1 { margin: 0 0 1rem; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: .94; letter-spacing: -.055em; }
.status-line { min-height: 2.5rem; color: var(--muted); }
.status-line.online::before { content: ""; display: inline-block; width: .6rem; height: .6rem; margin-right: .6rem; border-radius: 50%; background: var(--turquoise); box-shadow: 0 0 12px rgba(0, 207, 200, .7); }
.status-line.offline { color: #ff9fb4; }
.status-line.waiting { color: #ffd27a; }
.setup-hint { margin: .25rem 0 0; color: var(--muted); line-height: 1.55; }
form { display: grid; gap: .7rem; }
label { color: #d8deea; font-weight: 650; font-size: .86rem; }
input, select { min-height: 3.25rem; padding: 0 1rem; color: var(--white); border: 1px solid rgba(255, 255, 255, .2); border-radius: .65rem; background: rgba(0, 1, 12, .76); }
.button { min-height: 3.4rem; padding: 0 1.4rem; border: 0; border-radius: .65rem; font-weight: 800; transition: .16s ease; }
.button.primary { color: #001d1c; background: var(--turquoise); }
.button.wide { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; }
.form-error { min-height: 1.4rem; color: #ff9eb2; }
.form-error.success { color: var(--turquoise); }
.pairing-panel { margin-top: 1.25rem; padding: 1.25rem; border: 1px solid rgba(0, 207, 200, .35); border-radius: .9rem; background: rgba(0, 207, 200, .06); text-align: center; }
.pairing-panel > span { color: var(--turquoise); font-size: .72rem; font-weight: 850; letter-spacing: .2em; }
.pairing-panel output { display: block; margin: .65rem 0 .45rem; color: var(--white); font-size: clamp(2.7rem, 8vw, 4.8rem); font-weight: 850; letter-spacing: .18em; line-height: 1; font-variant-numeric: tabular-nums; }
.pairing-panel p { margin: 0; color: #d8deea; line-height: 1.45; }
.pairing-panel small { display: block; min-height: 1.2rem; margin-top: .6rem; color: var(--muted); }

.device-manager { position: fixed; z-index: 500; inset: 0; display: grid; place-items: center; padding: 2rem; background: rgba(0, 0, 0, .76); backdrop-filter: blur(14px); }
.device-manager-card { width: min(42rem, 96vw); max-height: 90vh; overflow: auto; padding: 2rem; border: 1px solid var(--line); border-radius: 1.2rem; background: #080b18; box-shadow: 0 28px 80px rgba(0, 0, 0, .55); }
.device-manager-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.device-manager-card h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); }
.device-manager-card h3 { margin: 1.6rem 0 .8rem; }
.device-manager-card .eyebrow { margin-top: 0; }
.pairing-approve-row { display: grid; grid-template-columns: 1fr auto; gap: .75rem; margin-top: 1.25rem; }
.pairing-approve-row input { min-width: 0; min-height: 3.4rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: .65rem; color: var(--white); background: #03050e; font-size: 1.45rem; font-weight: 800; letter-spacing: .2em; }
.paired-device-list { display: grid; gap: .65rem; }
.paired-device { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .75rem; background: rgba(255, 255, 255, .035); }
.paired-device strong, .paired-device small { display: block; }
.paired-device small { margin-top: .25rem; color: var(--muted); }
.paired-device button { min-height: 2.75rem; padding: 0 1rem; border: 1px solid rgba(255, 102, 136, .45); border-radius: .55rem; color: #ff9eb2; background: rgba(255, 102, 136, .08); font-weight: 800; }

/* Sabit TV gezinmesi */
.side-nav { position: fixed; z-index: 100; inset: 0 auto 0 0; width: var(--rail-width); display: flex; flex-direction: column; align-items: stretch; padding: 1.2rem .65rem; overflow: hidden; border-right: 1px solid rgba(255, 255, 255, .07); background: rgba(5, 6, 14, .94); box-shadow: 14px 0 40px rgba(0, 0, 0, .18); transition: width .18s ease, background-color .18s ease; }
.side-nav::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: 0; background: linear-gradient(90deg, #05060e 72%, rgba(5, 6, 14, .9)); transition: opacity .18s ease; }
.side-nav:hover, .side-nav:focus-within { width: 14.5rem; }
.side-nav:hover::after, .side-nav:focus-within::after { opacity: 1; }
.nav-brand, .nav-link, .account-summary, .archive-status { position: relative; min-width: 3.85rem; min-height: 3.85rem; display: flex; align-items: center; gap: 1rem; padding: 0 .8rem; border: 1px solid transparent; border-radius: .75rem; color: var(--muted); background: transparent; white-space: nowrap; }
.nav-brand { justify-content: flex-start; min-height: 5.4rem; padding: .25rem .55rem; overflow: visible; }
.nav-brand baran-logo { max-width: none; }
.nav-logo-icon { flex: 0 0 2.75rem; width: 2.75rem; }
.nav-logo-full { display: none; flex: 0 0 12rem; width: 12rem; }
.side-nav:hover .nav-logo-icon, .side-nav:focus-within .nav-logo-icon { display: none; }
.side-nav:hover .nav-logo-full, .side-nav:focus-within .nav-logo-full { display: block; }
.primary-nav { display: grid; gap: .4rem; margin-top: clamp(2rem, 8vh, 5rem); }
.nav-footer { display: grid; gap: .3rem; margin-top: auto; }
.nav-link { width: 100%; text-align: left; }
.nav-link svg, .account-summary svg { flex: 0 0 1.55rem; width: 1.55rem; height: 1.55rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-link.active { color: var(--white); background: rgba(255, 255, 255, .07); }
.nav-link.active::before { content: ""; position: absolute; left: -.7rem; top: .85rem; bottom: .85rem; width: .2rem; border-radius: 1rem; background: var(--turquoise); }
.nav-link:focus-visible { color: var(--white); background: rgba(0, 207, 200, .1); transform: none; }
.nav-label { overflow: hidden; opacity: 0; font-size: .9rem; font-weight: 750; transition: opacity .12s ease .03s; }
.side-nav:hover .nav-label, .side-nav:focus-within .nav-label { opacity: 1; }
.archive-status { min-height: 2.75rem; padding-left: 1.25rem; font-size: .74rem; }
.archive-status i { flex: 0 0 .55rem; width: .55rem; height: .55rem; border-radius: 50%; background: #737b8e; }
.archive-status.ready i { background: var(--turquoise); box-shadow: 0 0 10px rgba(0, 207, 200, .62); }
.archive-status.waiting i, .archive-status.syncing i { background: #ffc857; animation: archive-pulse 1.2s ease-in-out infinite alternate; }
.archive-status.error i { background: #ff6688; }
@keyframes archive-pulse { to { opacity: .35; transform: scale(.78); } }
.account-summary { min-height: 3rem; }
.user-name { text-overflow: ellipsis; }

.app-shell { width: 100%; min-height: 100vh; overflow-anchor: none; background: var(--ink); }
#main { min-height: 100vh; margin-left: var(--rail-width); }
.view { min-height: 100vh; animation: view-in .24s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(.65rem); } }

/* Vitrin */
.hero, .detail-hero { position: relative; min-height: clamp(34rem, 68vh, 49rem); display: flex; align-items: flex-end; padding: clamp(7rem, 12vh, 10rem) var(--gutter) clamp(7rem, 12vh, 9rem); isolation: isolate; overflow: hidden; background: var(--ink); }
.hero::before, .detail-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(5, 6, 14, .99) 0%, rgba(5, 6, 14, .86) 30%, rgba(5, 6, 14, .32) 64%, rgba(5, 6, 14, .08) 100%); }
.hero::after, .detail-hero::after { content: ""; position: absolute; z-index: -1; inset: 40% 0 0; background: linear-gradient(0deg, var(--ink) 0%, rgba(5, 6, 14, .88) 18%, rgba(5, 6, 14, 0) 75%); }
.hero-backdrop { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .82; }
.hero-placeholder { position: absolute; z-index: -2; inset: 0; background-image: linear-gradient(90deg, rgba(5, 6, 14, .4), transparent), url('/assets/barantv-cinematic-bg.svg'); background-position: center; background-size: cover; }
.hero-content, .detail-copy { width: min(48rem, 74vw); }
.hero-mark, .section-kicker, .empty-kicker { margin: 0; color: var(--turquoise); font-size: clamp(.68rem, .8vw, .82rem); font-weight: 900; letter-spacing: .24em; text-transform: uppercase; }
.hero-brand { display: block; width: min(15rem, 42vw); max-width: 240px; height: auto; margin: 0 0 .45rem; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .34)); }
.hero h1, .detail-copy h1 { max-width: 13ch; margin: .65rem 0 .9rem; font-size: clamp(3.1rem, 5.7vw, 6.7rem); line-height: .9; letter-spacing: -.055em; text-wrap: balance; text-shadow: 0 4px 24px rgba(0, 0, 0, .45); }
.hero-content > p, .detail-copy > p:not(.hero-mark) { max-width: 43rem; margin: 1rem 0 0; color: #d4d8e1; font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 2px 10px rgba(0, 0, 0, .65); }
.metadata { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; color: #c6ccd8; font-size: .9rem; font-weight: 650; }
.metadata span:empty { display: none; }
.metadata span + span::before { content: ""; display: inline-block; width: .25rem; height: .25rem; margin: 0 .8rem .18rem 0; border-radius: 50%; background: var(--turquoise); opacity: .75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.hero-button { min-height: 3.25rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 1.35rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: .55rem; color: var(--white); background: rgba(255, 255, 255, .12); backdrop-filter: blur(10px); font-weight: 800; }
.hero-button:hover { background: rgba(255, 255, 255, .19); }
.hero-button.primary { color: #001d1c; border-color: transparent; background: var(--turquoise); }
.hero-button:focus-visible { transform: translateY(-2px); }
.tv-mode-button { border-color: rgba(0, 207, 200, .55); background: rgba(0, 207, 200, .1); }
.tv-mode-button svg { width: 1.25rem; height: 1.25rem; margin-right: .55rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tv-mode-exit { position: fixed; z-index: 350; top: max(1.25rem, env(safe-area-inset-top)); right: max(1.25rem, env(safe-area-inset-right)); min-height: 3.15rem; display: inline-flex; align-items: center; gap: .6rem; padding: 0 1rem; border: 1px solid rgba(0, 207, 200, .62); border-radius: .65rem; color: var(--white); background: rgba(5, 6, 14, .9); box-shadow: 0 12px 32px rgba(0, 0, 0, .38); backdrop-filter: blur(12px); font-weight: 800; }
.tv-mode-exit svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: var(--turquoise); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tv-mode .player-top { padding-right: 14.5rem; }

/* İçerik sıraları */
.catalog { position: relative; z-index: 3; margin-top: -5.5rem; padding: 0 0 5rem var(--gutter); }
.rail { margin: 0 0 2.1rem; }
.rail-head { display: flex; align-items: baseline; gap: .75rem; padding-right: var(--gutter); }
.rail h2 { margin: 0 0 .65rem; font-size: clamp(1.25rem, 1.7vw, 1.75rem); letter-spacing: -.02em; }
.rail-count { color: var(--dim); font-size: .8rem; }
.rail-track { display: flex; gap: 1rem; overflow-x: auto; padding: .55rem var(--gutter) 1.3rem .3rem; scroll-padding-inline: .3rem var(--gutter); scroll-snap-type: x proximity; scrollbar-width: none; }
.rail-track::-webkit-scrollbar { display: none; }
.media-card { position: relative; flex: 0 0 clamp(17rem, 21vw, 23rem); display: block; padding: 0; border: 0; background: transparent; text-align: left; scroll-snap-align: start; }
.media-card:focus-visible { transform: scale(1.035); box-shadow: none; }
.media-card:focus-visible .media-art { border-color: var(--turquoise); box-shadow: var(--focus-ring); }
.media-art, .episode-art { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 2px solid transparent; border-radius: .65rem; background: #0c1021; box-shadow: 0 12px 28px rgba(0, 0, 0, .3); }
.media-art img, .episode-art img { position: relative; z-index: 1; width: 100%; height: 100%; display: block; object-fit: cover; }
.card-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; color: rgba(255, 255, 255, .9); background: linear-gradient(135deg, #01033c, #102767 58%, #086c72); font-weight: 850; font-size: 1.15rem; text-align: center; }
.card-copy { display: block; padding: .65rem .15rem 0; }
.card-title { display: block; overflow: hidden; font-size: 1rem; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { display: block; margin-top: .25rem; overflow: hidden; color: var(--muted); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.progress { position: absolute; z-index: 3; inset: auto .55rem .45rem; height: .22rem; overflow: hidden; border-radius: 1rem; background: rgba(255, 255, 255, .28); }
.progress i { display: block; height: 100%; background: var(--turquoise); }
.played-mark { position: absolute; z-index: 4; top: .55rem; right: .55rem; width: 1.65rem; height: 1.65rem; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; color: #002321; background: var(--turquoise); font-size: .78rem; font-weight: 950; }

/* Boş durum */
.empty-state { min-height: 62vh; display: grid; place-items: center; padding: 7rem var(--gutter) 5rem; }
.empty-panel { width: min(38rem, 100%); padding: clamp(1.6rem, 4vw, 2.8rem); border: 1px solid var(--line); border-radius: 1rem; background: rgba(11, 14, 27, .9); box-shadow: 0 22px 60px rgba(0, 0, 0, .28); text-align: left; }
.empty-icon { width: 3.75rem; height: 3.75rem; display: grid; place-items: center; margin-bottom: 1.4rem; border-radius: .8rem; color: var(--turquoise); background: rgba(0, 207, 200, .1); font-size: 1.5rem; }
.empty-panel h1 { margin: .45rem 0 .7rem; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.035em; }
.empty-panel > p:not(.empty-kicker) { margin: 0; color: var(--muted); line-height: 1.65; }
.empty-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.catalog > .empty-state { min-height: 40vh; padding-left: 0; }

/* Dizi ve sezon */
.detail-hero { min-height: clamp(34rem, 66vh, 47rem); }
.detail-back { position: absolute; z-index: 3; top: clamp(1.5rem, 4vw, 3.5rem); left: var(--gutter); }
.back-button, .round-button { width: 3rem; min-width: 3rem; height: 3rem; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; background: rgba(5, 6, 14, .68); font-size: 1.25rem; backdrop-filter: blur(10px); }
.detail-body { position: relative; z-index: 3; padding: 2rem var(--gutter) 6rem; background: var(--ink); scroll-margin-top: 1rem; }
.detail-tools { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.detail-tools h2 { margin: .25rem 0 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.season-tabs { max-width: 65%; display: flex; gap: .55rem; overflow-x: auto; padding: .35rem; scrollbar-width: none; }
.season-tabs::-webkit-scrollbar { display: none; }
.season-tab { min-height: 2.9rem; flex: 0 0 auto; padding: 0 1.05rem; border: 1px solid var(--line); border-radius: 2rem; color: var(--muted); background: transparent; font-weight: 750; }
.season-tab.active { color: #001d1c; border-color: var(--turquoise); background: var(--turquoise); }
.episode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.5rem 1rem; }
.episode-card { min-width: 0; display: block; padding: 0; border: 0; background: transparent; text-align: left; }
.episode-card:focus-visible { transform: scale(1.025); box-shadow: none; }
.episode-card:focus-visible .episode-art { border-color: var(--turquoise); box-shadow: var(--focus-ring); }
.episode-play { position: absolute; z-index: 3; left: 50%; top: 50%; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; color: #001d1c; background: rgba(0, 207, 200, .94); opacity: 0; transform: translate(-50%, -45%); transition: opacity .15s ease, transform .15s ease; }
.episode-card:hover .episode-play, .episode-card:focus-visible .episode-play { opacity: 1; transform: translate(-50%, -50%); }
.episode-copy { display: block; padding: .7rem .15rem 0; }
.episode-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-weight: 800; }
.episode-heading > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.episode-heading small { flex: 0 0 auto; color: var(--muted); font-size: .75rem; font-weight: 650; }
.episode-overview { margin-top: .35rem; color: var(--muted); font-size: .82rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.episode-grid > .empty-state { grid-column: 1 / -1; min-height: 20rem; padding: 2rem 0; }

/* Arama */
.search-view { min-height: 100vh; padding: 4rem var(--gutter) 6rem; background: var(--ink); }
.search-head { display: flex; gap: 1rem; margin-bottom: 2rem; }
.search-box { flex: 1; }
.search-box input { width: 100%; height: 4rem; font-size: 1.2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1.5rem 1rem; }
.grid .media-card { width: 100%; }

/* Oynatıcı */
.player-view { position: fixed; z-index: 300; inset: 0; overflow: hidden; background: #000; }
.player-view:not(.controls-visible) { cursor: none; }
.player-view video { width: 100%; height: 100%; object-fit: contain; }
.player-view video::cue { color: #fff; background: rgba(0, 0, 0, .58); font-size: 1.75rem; line-height: 1.25; text-shadow: 0 2px 5px #000; }
.player-watermark { visibility: hidden; position: absolute; z-index: 2; top: max(1rem, env(safe-area-inset-top)); left: 50%; width: min(12rem, 34vw); opacity: 0; transform: translate(-50%, -.35rem); filter: drop-shadow(0 5px 16px rgba(0, 0, 0, .72)); pointer-events: none; transition: opacity .2s, transform .2s, visibility 0s linear .2s; }
.player-view.controls-visible .player-watermark { visibility: visible; opacity: .82; transform: translate(-50%, 0); transition-delay: 0s; }
.player-shade { pointer-events: none; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .68), transparent 25%, transparent 76%, rgba(0, 0, 0, .88)); opacity: 0; transition: opacity .2s; }
.player-top { pointer-events: none; visibility: hidden; position: absolute; inset: 0 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 2rem 3vw; opacity: 0; transform: translateY(-1rem); transition: opacity .2s, transform .2s, visibility 0s linear .2s; }
.player-top h2 { margin: .2rem 0 0; font-size: 1.7rem; }
.player-kicker { margin: 0; color: var(--turquoise); font-weight: 850; }
.mode-pill { padding: .45rem .75rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 1rem; color: var(--muted); background: rgba(1, 3, 40, .7); }
.player-controls { pointer-events: none; visibility: hidden; position: absolute; inset: auto 0 0; padding: .3rem 1.5vw .45rem; opacity: 0; transform: translateY(.65rem); transition: opacity .2s, transform .2s, visibility 0s linear .2s; }
.player-view.controls-visible .player-shade, .player-view.controls-visible .player-top, .player-view.controls-visible .player-controls { opacity: 1; transform: none; }
.player-view.controls-visible .player-top, .player-view.controls-visible .player-controls { pointer-events: auto; visibility: visible; transition-delay: 0s; }
.player-error { width: fit-content; max-width: min(42rem, 92vw); margin: 0 0 .55rem; padding: .65rem .85rem; border: 1px solid rgba(255, 153, 102, .5); border-radius: .55rem; color: #fff3e9; background: rgba(75, 20, 10, .82); font-weight: 750; }
.seek { appearance: none; width: 100%; min-height: 1.35rem; height: 1.35rem; padding: 0; border: 0; accent-color: var(--turquoise); background: transparent; }
.seek::-webkit-slider-runnable-track { height: .38rem; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(232, 239, 255, .32); box-shadow: 0 2px 12px rgba(0, 0, 0, .38); }
.seek::-webkit-slider-thumb { appearance: none; width: 1.15rem; height: 1.15rem; margin-top: -.43rem; border: 3px solid #dffffd; border-radius: 50%; background: var(--turquoise); box-shadow: 0 0 0 .25rem rgba(0, 207, 200, .18), 0 3px 12px rgba(0, 0, 0, .5); }
.seek::-moz-range-track { height: .38rem; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(232, 239, 255, .32); }
.seek::-moz-range-thumb { width: .9rem; height: .9rem; border: 3px solid #dffffd; border-radius: 50%; background: var(--turquoise); box-shadow: 0 0 0 .25rem rgba(0, 207, 200, .18); }
.control-row { display: flex; flex-wrap: nowrap; align-items: center; gap: .45rem; }
.control-group { display: flex; align-items: center; gap: .3rem; padding: .2rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: 1rem; background: rgba(4, 7, 24, .5); box-shadow: inset 0 1px rgba(255, 255, 255, .055), 0 8px 22px rgba(0, 0, 0, .2); backdrop-filter: blur(12px); }
.control-button { display: inline-grid; place-items: center; min-width: 2.65rem; height: 2.65rem; padding: 0 .65rem; border: 1px solid rgba(185, 201, 242, .22); border-radius: .8rem; background: linear-gradient(145deg, rgba(25, 32, 68, .94), rgba(5, 8, 28, .92)); box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 6px 17px rgba(0, 0, 0, .28); font-size: .82rem; font-weight: 850; }
.control-button:hover { border-color: rgba(0, 207, 200, .72); background: linear-gradient(145deg, rgba(28, 48, 84, .98), rgba(5, 15, 38, .96)); transform: translateY(-1px); }
.control-button:active { transform: translateY(1px) scale(.97); }
.icon-control { width: 2.65rem; padding: 0; border-radius: 50%; }
.compact-control { width: 2.35rem; min-width: 2.35rem; height: 2.35rem; }
.control-button svg { width: 1.15rem; height: 1.15rem; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.control-button .play-glyph { fill: currentColor; stroke: none; }
.pause-glyph { display: none; }
.main-control.is-playing .play-glyph { display: none; }
.main-control.is-playing .pause-glyph { display: block; }
.skip-control { border-radius: 50%; font-variant-numeric: tabular-nums; }
.main-control { width: 3rem; min-width: 3rem; height: 3rem; color: #001d1c; border-color: rgba(161, 255, 250, .8); background: linear-gradient(145deg, #32eee7, #00bcb7); box-shadow: 0 0 0 .18rem rgba(0, 207, 200, .13), 0 8px 23px rgba(0, 207, 200, .25); }
.main-control:hover { color: #001d1c; background: linear-gradient(145deg, #68fff9, #00cfc8); }
.volume-toggle { grid-template-columns: auto auto; gap: .35rem; min-width: 5.15rem; border-radius: .75rem; }
.volume-toggle span { min-width: 2.5rem; color: #dce4f5; font-size: .78rem; font-variant-numeric: tabular-nums; text-align: left; }
.volume-toggle .mute-mark { display: none; }
.volume-toggle.is-muted .sound-waves { display: none; }
.volume-toggle.is-muted .mute-mark { display: block; }
.label-control { border-radius: .65rem; white-space: nowrap; }
.time-label { min-width: 7.6rem; color: #dce4f5; font-size: .86rem; font-variant-numeric: tabular-nums; }
.select-control { display: flex; align-items: center; gap: .45rem; margin-left: auto; color: var(--muted); }
.select-control + .select-control { margin-left: 0; }
.select-control { font-size: .76rem; }
.select-control select { min-height: 2.65rem; max-width: 9rem; padding: 0 .7rem; font-size: .8rem; }
.auto-next { display: inline-flex; align-items: center; width: fit-content; min-height: 2.65rem; margin: 0 0 0 .15rem; padding: 0 .65rem; border: 1px solid rgba(255, 255, 255, .13); border-radius: .75rem; background: rgba(4, 7, 24, .52); font-size: .72rem; white-space: nowrap; }
.auto-next input { min-height: auto; accent-color: var(--turquoise); }

.loading { position: fixed; z-index: 400; inset: 0; display: flex; align-items: center; justify-content: center; gap: .5rem; background: rgba(5, 6, 14, .78); backdrop-filter: blur(8px); }
.loading span { width: .65rem; height: .65rem; border-radius: 50%; background: var(--turquoise); animation: pulse .8s ease-in-out infinite alternate; }
.loading span:nth-child(2) { animation-delay: .15s; }
.loading span:nth-child(3) { animation-delay: .3s; }
.loading b { margin-left: .5rem; }
@keyframes pulse { to { transform: translateY(-.7rem); opacity: .45; } }
.toast { position: fixed; z-index: 500; left: 50%; bottom: 2rem; transform: translateX(-50%); max-width: 80vw; padding: 1rem 1.4rem; border: 1px solid var(--line); border-radius: .65rem; background: #0b1028; box-shadow: 0 15px 40px #000; }

@media (max-width: 900px) {
  :root { --gutter: 1.5rem; }
  .side-nav { inset: auto 0 0; width: 100%; height: 4.7rem; flex-direction: row; align-items: stretch; padding: .35rem max(.5rem, env(safe-area-inset-right)) max(.35rem, env(safe-area-inset-bottom)) max(.5rem, env(safe-area-inset-left)); border-top: 1px solid rgba(255, 255, 255, .1); border-right: 0; background: rgba(5, 6, 14, .98); }
  .side-nav:hover, .side-nav:focus-within { width: 100%; }
  .side-nav::after, .nav-brand, .archive-status, .account-summary, #archiveRefreshButton, #installButton { display: none; }
  .primary-nav { flex: 1; grid-template-columns: repeat(4, 1fr); gap: .15rem; margin: 0; }
  .nav-footer { display: block; margin: 0; }
  .nav-footer .nav-link { width: 4.2rem; }
  .nav-link { min-width: 0; min-height: 3.9rem; display: flex; flex-direction: column; justify-content: center; gap: .18rem; padding: .25rem; text-align: center; }
  .nav-link svg { flex-basis: 1.35rem; width: 1.35rem; height: 1.35rem; }
  .nav-label, .side-nav:hover .nav-label, .side-nav:focus-within .nav-label { max-width: 100%; opacity: 1; font-size: .62rem; }
  .nav-link.active::before { inset: auto 22% -.35rem; width: auto; height: .18rem; }
  #main { margin-left: 0; padding-bottom: 4.7rem; }
  .hero, .detail-hero { min-height: 68svh; }
  .hero-content, .detail-copy { width: min(42rem, 88vw); }
  .catalog { margin-top: -4.5rem; }
  .media-card { flex-basis: clamp(16rem, 40vw, 20rem); }
  .detail-tools { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .season-tabs { max-width: 100%; width: 100%; }
  .player-controls { padding-left: 1.75rem; padding-right: 1.75rem; padding-bottom: max(.75rem, env(safe-area-inset-bottom)); }
  .control-row { flex-wrap: wrap; }
  .select-control { margin-left: 0; }
}

@media (min-width: 901px) and (max-width: 1500px) {
  .control-row { flex-wrap: wrap; }
  .select-control { margin-left: 0; }
}

@media (max-width: 570px) {
  :root { --gutter: 1.15rem; }
  .login-view { padding: 1.2rem; }
  .login-card { padding: 1.8rem; border-radius: 1rem; }
  .pairing-approve-row { grid-template-columns: 1fr; }
  .side-nav { height: 4.4rem; }
  .nav-footer .nav-link { width: 3.5rem; }
  #main { padding-bottom: 4.4rem; }
  .hero, .detail-hero { min-height: 76svh; padding-top: 5.5rem; padding-bottom: 7.5rem; }
  .hero::before, .detail-hero::before { background: linear-gradient(90deg, rgba(5, 6, 14, .94), rgba(5, 6, 14, .46)), linear-gradient(0deg, rgba(5, 6, 14, .7), transparent 55%); }
  .hero-backdrop { object-position: 58% 25%; opacity: .7; }
  .hero-content, .detail-copy { width: 100%; }
  .hero h1, .detail-copy h1 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .hero-content > p, .detail-copy > p:not(.hero-mark) { -webkit-line-clamp: 2; font-size: .92rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .hero-button { min-width: 0; padding: 0 .8rem; font-size: .86rem; }
  .hero-button.primary { grid-column: 1 / -1; }
  .tv-mode-exit { top: max(.75rem, env(safe-area-inset-top)); right: max(.75rem, env(safe-area-inset-right)); min-height: 2.8rem; padding: 0 .75rem; font-size: .76rem; }
  .tv-mode .player-top { padding-right: 10.5rem; }
  .catalog { margin-top: -3.8rem; }
  .rail { margin-bottom: 1.5rem; }
  .rail-track { gap: .75rem; }
  .media-card { flex-basis: min(78vw, 19rem); }
  .detail-back { top: 1.15rem; }
  .detail-body { padding-top: 1rem; }
  .season-tab { min-height: 2.7rem; padding: 0 .85rem; font-size: .82rem; }
  .episode-grid { grid-template-columns: 1fr; }
  .search-view { padding-top: 1.5rem; }
  .search-head { align-items: center; }
  .search-box input { height: 3.35rem; font-size: 1rem; }
  .player-top { padding: 1rem; }
  .player-watermark { width: min(9rem, 38vw); }
  .player-controls { padding: 1rem 1.75rem max(1rem, env(safe-area-inset-bottom)); }
  .mode-pill, .label-control, .select-control, .auto-next { font-size: .72rem; }
  .time-label { min-width: 0; }
  .intro-logo-stage { width: min(34rem, 86vw); }
}

@media (prefers-reduced-motion: reduce) {
  html.intro-play .app-intro { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
