/* WatchBatch — "Maraton" kimliği: siyaha yakın zemin, limon "başla" ışığı, Bricolage Grotesque başlıklar.
   Hareket: sayfalar arası View Transitions (afiş dizi sayfasına büyüyerek geçer), sıra sıra beliren kartlar,
   kaydırınca beliren bölümler. "Hareketi azalt" açıksa hepsi kapanır. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  color-scheme: dark;
  --bg: #121212; --surface: #1C1C1C; --surface-2: #242424; --line: #2C2C2C; --line-2: #3A3A3A;
  --text: #F2F2F2; --text-2: #CFCFCF; --muted: #A3A3A3;
  --go: #C8F135; --go-ink: #121212; --go-soft: rgba(200, 241, 53, 0.14);
  --air: #FFB020; --air-bg: #2E2408; --warn: #FFB020; --warn-bg: #2A2110;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --r-sm: 12px; --r: 20px; --r-lg: 28px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --fast: 160ms; --mid: 260ms; --slow: 460ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--go); color: var(--go-ink); }
a { color: var(--go); text-underline-offset: 3px; }
a:hover { color: #E2FA8E; }
:focus-visible { outline: 2px solid var(--go); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }
.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; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---- Sayfa geçişleri (View Transitions, aynı sitede gezinirken) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 180ms ease both; }
::view-transition-new(root) { animation: vt-in 340ms var(--ease) both; }
::view-transition-group(*) { animation-duration: 420ms; animation-timing-function: var(--ease); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
.site-header { view-transition-name: site-header; }

/* ---- Belirme animasyonları */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes float { from { transform: translateY(0) rotate(var(--tilt, 0deg)); } to { transform: translateY(-10px) rotate(var(--tilt, 0deg)); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 241, 53, 0.55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(200, 241, 53, 0); } }
@keyframes slide-in { from { opacity: 0; transform: translateY(-10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.rise { animation: rise var(--slow) var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
/* Kaydırınca belirme: üst kenarı ekranın altından 140px içeri girince tamam olur. Yüzde ("cover 28%") uzun
   kutularda öğenin boyuna bağlıydı; açılışta ekranda olan uzun panel yarı saydam kalıyordu. */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 140px; }
}

/* ---- Üst çubuk */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(18, 18, 18, 0.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand svg { width: 34px; height: 34px; flex: none; transition: transform var(--mid) var(--ease); }
.brand:hover svg { transform: rotate(-10deg) scale(1.06); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.04em; text-transform: lowercase; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a, .nav button { font: 500 15px/1 var(--body); color: var(--text-2); text-decoration: none; background: none; border: 0; padding: 10px 14px; border-radius: 999px; cursor: pointer; transition: background var(--fast) ease, color var(--fast) ease; }
.nav a:hover, .nav button:hover { background: var(--surface); color: var(--text); }
.nav form { margin: 0; }

main { padding: 32px 0 80px; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site-footer a { color: var(--text-2); }

/* ---- Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; background: var(--go); color: var(--go-ink); font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform var(--fast) var(--ease), box-shadow var(--mid) var(--ease), background var(--fast) ease, border-color var(--fast) ease; }
.btn:hover { color: var(--go-ink); transform: translateY(-1px); box-shadow: 0 10px 28px -8px rgba(200, 241, 53, 0.45); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { color: var(--text); border-color: var(--text-2); box-shadow: none; background: rgba(255, 255, 255, 0.03); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn.lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.text-btn { font: 500 14px/1.2 var(--body); color: var(--muted); background: none; border: 0; padding: 10px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; transition: color var(--fast) ease; }
.text-btn:hover { color: var(--text); }

/* ---- Rozetler ve ilerleme */
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--body); padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.chip.complete { background: var(--go); color: var(--go-ink); }
.chip.complete::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--go-ink); }
.chip.airing { background: var(--air-bg); color: var(--air); }
.chip.airing::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--air); animation: pulse 2s ease-out infinite; }
.chip.upcoming { background: var(--surface-2); color: var(--text); }
.chip.announced, .chip.unannounced, .chip.ended, .chip.unknown { background: transparent; color: var(--muted); border: 1px solid var(--line-2); }
.dots { display: flex; flex-wrap: wrap; gap: 5px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); animation: pop 380ms var(--ease) both; animation-delay: calc(var(--d, 0) * 28ms); }
.dots.complete i.on { background: var(--go); }
.dots.airing i.on { background: var(--air); }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; width: var(--p, 0%); border-radius: 4px; background: var(--air); transform-origin: left; animation: fill 900ms var(--ease) both; }
.bar.complete span { background: var(--go); }

/* ---- Kartlar ve afişler */
.card { background: var(--surface); border: 1px solid transparent; border-radius: var(--r-lg); padding: 22px; transition: transform var(--mid) var(--ease), border-color var(--mid) ease, background var(--mid) ease; }
.card.hover:hover { transform: translateY(-3px); border-color: var(--line-2); }
.poster { position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: var(--surface-2); flex: none; }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.poster .initials { position: absolute; inset: 0; display: grid; place-items: center; font: 800 28px/1 var(--display); color: var(--muted); letter-spacing: -0.04em; }
.notice { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r); background: var(--go-soft); color: var(--go); font-weight: 500; animation: slide-in 520ms var(--ease) both; }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice form { margin: 0; }
.notice .text-btn { color: inherit; padding: 0; }
.eyebrow { font: 600 12px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---- Arama kutusu */
.search { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 22px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); transition: border-color var(--mid) ease, box-shadow var(--mid) var(--ease); max-width: 640px; }
.search:focus-within { border-color: var(--go); box-shadow: 0 0 0 5px var(--go-soft); }
.search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; color: var(--text); font: 400 17px/1 var(--body); outline: none; }
.search input::placeholder { color: var(--muted); }
.search input:focus-visible { outline: none; }

/* ---- Ana sayfa */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 40px 0 72px; }
.hero h1 { font-weight: 800; font-size: clamp(46px, 7.4vw, 92px); line-height: 0.95; letter-spacing: -0.045em; }
.hero h1 .hl { color: var(--go); }
.hero .lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--text-2); max-width: 36ch; margin: 22px 0 30px; }
.hero .fine { margin-top: 16px; font-size: 14px; color: var(--muted); }
.demo { position: relative; min-height: 360px; }
.demo .card { position: absolute; width: min(100%, 360px); display: flex; gap: 16px; align-items: center; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); border-color: var(--line); }
.demo .card .poster { width: 60px; }
.demo .one { top: 10px; right: 0; --tilt: 2deg; animation: rise var(--slow) var(--ease) 200ms both, float 6s ease-in-out 800ms infinite alternate; }
.demo .two { top: 190px; left: 0; --tilt: -2deg; animation: rise var(--slow) var(--ease) 380ms both, float 7s ease-in-out 1s infinite alternate; }
.demo h3 { font-size: 18px; letter-spacing: -0.02em; }
.demo p { font-size: 13px; color: var(--text-2); margin: 6px 0 10px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 20px 0 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps .card { height: 100%; }
.steps .card::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--go); color: var(--go-ink); font: 800 18px/1 var(--display); margin-bottom: 18px; }
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { color: var(--text-2); font-size: 15px; }
.section-title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.04em; }

/* ---- Arama sonuçları */
.page-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 28px 20px; padding: 0; margin: 0; list-style: none; }
.tile a { display: flex; flex-direction: column; gap: 10px; color: var(--text); text-decoration: none; }
.tile .poster { width: 100%; box-shadow: 0 0 0 1px var(--line); transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease); }
.tile a:hover .poster { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--go), 0 22px 40px -22px rgba(200, 241, 53, 0.5); }
.tile a:hover img { transform: scale(1.04); }
.tile strong { font: 700 17px/1.2 var(--display); letter-spacing: -0.02em; }
.tile span { font-size: 13px; color: var(--muted); }
.empty { padding: 40px 0; color: var(--text-2); font-size: 18px; }

/* ---- Dizi sayfası */
.show-hero { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 40px; }
.show-hero .poster { width: 100%; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line); }
.show-hero h1 { font-size: clamp(42px, 6.4vw, 80px); font-weight: 800; line-height: 0.95; letter-spacing: -0.045em; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 15px; margin-top: 16px; }
.meta a { color: var(--text-2); }
.now { margin-top: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 560px; }
.now .dots, .now .bar { align-self: stretch; }
.now .line { font-size: 18px; color: var(--text-2); }
.show-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { background: var(--surface); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.panel h2 { font-size: 26px; font-weight: 800; }
.panel form { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.panel form .field, .panel form .hint { align-self: stretch; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-2); }
.field input { height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: 400 16px/1 var(--body); transition: border-color var(--fast) ease, box-shadow var(--mid) var(--ease); }
.field input:focus { outline: none; border-color: var(--go); box-shadow: 0 0 0 5px var(--go-soft); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; width: 100%; height: 52px; padding: 0 48px 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: 500 16px/1 var(--body); cursor: pointer; transition: border-color var(--fast) ease, box-shadow var(--mid) var(--ease); }
.select select:focus { outline: none; border-color: var(--go); box-shadow: 0 0 0 5px var(--go-soft); }
.select::after { content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.check { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text-2); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--go); cursor: pointer; }
.hint { font-size: 14px; color: var(--muted); }
.seasons { display: flex; flex-direction: column; padding: 0; margin: 0; list-style: none; }
.seasons li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.seasons li:first-child { border-top: 0; padding-top: 4px; }
.seasons strong { font: 700 18px/1.2 var(--display); letter-spacing: -0.02em; }
.seasons .sub { font-size: 14px; color: var(--muted); }
.seasons .dots, .seasons .bar { grid-column: 1 / -1; }

/* ---- Listem */
.list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 0 0 40px; list-style: none; }
.follow { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; height: 100%; }
.follow .poster { width: 96px; }
.follow-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.follow-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.follow h3 { font-size: 22px; font-weight: 800; line-height: 1.1; }
.follow h3 a { color: var(--text); text-decoration: none; }
.follow h3 a:hover { color: var(--go); }
.follow .sub { font-size: 13px; color: var(--muted); }
.follow .line { font-size: 15px; color: var(--text-2); }
.follow .promise { font-size: 13px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 6px; }
.actions form { margin: 0; }
.account { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.danger-zone { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* ---- Tek sütunlu sayfalar (giriş, mesaj, gizlilik) */
.narrow { max-width: 620px; margin: 24px auto 0; }
.narrow h1 { font-size: clamp(38px, 5.6vw, 60px); font-weight: 800; line-height: 1; margin-bottom: 18px; }
.narrow .lead { font-size: 18px; color: var(--text-2); margin-bottom: 24px; }
.narrow form { display: flex; flex-direction: column; gap: 16px; }
.icon-badge { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--go-soft); color: var(--go); margin-bottom: 22px; animation: rise var(--slow) var(--ease) both; }
.icon-badge svg { width: 28px; height: 28px; }
.prose h2 { font-size: 24px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 20px; }

/* ---- Sayılar */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat strong { font: 800 34px/1 var(--display); letter-spacing: -0.03em; }
.stat .target { font-size: 13px; color: var(--muted); }
.rows { display: flex; flex-direction: column; padding: 0; margin: 0; list-style: none; }
.rows li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.rows li:first-child { border-top: 0; }
.spark { display: inline-block; height: 10px; border-radius: 5px; background: var(--go); vertical-align: middle; margin-right: 8px; transform-origin: left; animation: fill 900ms var(--ease) both; }

/* ---- Telefon */
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 20px 0 48px; }
  .demo { min-height: 330px; }
  .steps, .show-grid, .list-grid { grid-template-columns: minmax(0, 1fr); }
  .show-hero { grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: start; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .brand-name { font-size: 21px; }
  .nav a, .nav button { padding: 10px; }
  .search { padding-left: 16px; }
  .search .btn { padding: 0 16px; }
  .demo .card { width: 92%; }
  .follow { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .follow .poster { width: 72px; }
  .show-hero { grid-template-columns: minmax(0, 1fr); }
  .show-hero .poster { width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---- TMDB atfı (logo zorunlu, sitenin kendi markasından sönük) */
.site-footer .tmdb { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.site-footer .tmdb img { height: 12px; width: auto; opacity: 0.85; }

/* ---- TMDB atfı (logo zorunlu; sitenin kendi markasından sönük) */
.site-footer .tmdb { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.site-footer .tmdb img { height: 12px; width: auto; opacity: 0.85; }

/* ---- Bölüm takibi */
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.big-number { font-size: 15px; color: var(--text-2); }
.big-number strong { font: 800 34px/1 var(--display); letter-spacing: -0.03em; color: var(--text); margin-right: 6px; }
.panel > form { align-self: flex-start; }
.season-link { color: var(--text); text-decoration: none; }
.season-link:hover strong, .season-link[aria-current] strong { color: var(--go); }
.episodes-panel { margin-top: 20px; scroll-margin-top: 84px; }
#progress { scroll-margin-top: 84px; }
.episodes-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font: 600 15px/1 var(--body); text-decoration: none; transition: background var(--fast) ease, color var(--fast) ease, transform var(--fast) var(--ease); }
.pill:hover { background: var(--line-2); color: var(--text); transform: translateY(-1px); }
.pill[aria-current] { background: var(--go); color: var(--go-ink); }
.episodes { display: flex; flex-direction: column; padding: 0; margin: 0; list-style: none; }
.episode { display: grid; grid-template-columns: 44px 72px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); animation: rise var(--slow) var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
.episode:first-child { border-top: 0; }
.episode form { margin: 0; }
.episode .code { font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); }
.episode.on .code { color: var(--go); }
.ep-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ep-body strong { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.ep-body .sub { font-size: 13px; color: var(--muted); }
.episode.on .ep-body strong { color: var(--text-2); }
.tick { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line-2); background: transparent; color: transparent; display: grid; place-items: center; cursor: pointer; transition: background var(--mid) var(--ease), border-color var(--mid) ease, color var(--mid) ease, transform var(--fast) var(--ease); }
.tick svg { width: 20px; height: 20px; }
.tick:hover:not(:disabled) { border-color: var(--go); color: var(--go); transform: scale(1.06); }
.tick.on { background: var(--go); border-color: var(--go); color: var(--go-ink); animation: pop 320ms var(--ease) both; }
.tick:disabled { opacity: 0.35; cursor: not-allowed; }
@media (max-width: 520px) {
  .episode { grid-template-columns: 44px minmax(0, 1fr); }
  .episode .code { grid-column: 2; grid-row: 1; align-self: start; padding-top: 4px; }
  .episode .ep-body { grid-column: 2; }
}

/* ---- Listeler */
.btn svg { width: 18px; height: 18px; }
.btn.saved { background: var(--go-soft); color: var(--go); border-color: transparent; }
.btn.saved:hover { color: var(--go); box-shadow: none; background: rgba(200, 241, 53, 0.2); }
.in-lists { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.in-lists li { display: inline-flex; align-items: center; gap: 2px; padding: 4px 4px 4px 14px; border-radius: 999px; background: var(--surface-2); font-size: 14px; }
.in-lists a { color: var(--text); text-decoration: none; }
.in-lists form { margin: 0; }
.remove-x { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.remove-x:hover { background: var(--line-2); color: var(--text); }
.add-to-list, .inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.add-to-list .select { flex: 1 1 200px; }
.inline-form .field { flex: 1 1 260px; }
.list-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding: 0; margin: 0 0 32px; list-style: none; }
.list-card { display: flex; align-items: center; gap: 18px; color: var(--text); text-decoration: none; height: 100%; }
.list-card:hover { color: var(--text); }
.list-card h3 { font-size: 22px; font-weight: 800; }
.list-card .sub { font-size: 13px; color: var(--muted); }
.poster-stack { position: relative; width: 104px; height: 96px; flex: none; }
.poster-stack img { position: absolute; top: 0; left: calc(var(--n) * 16px); width: 56px; height: 84px; object-fit: cover; border-radius: 10px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line); transform: rotate(calc((var(--n) - 1.5) * 3deg)); transition: transform var(--mid) var(--ease); }
.list-card:hover .poster-stack img { transform: rotate(calc((var(--n) - 1.5) * 6deg)) translateY(-3px); }
.poster-empty { display: grid; place-items: center; width: 64px; height: 84px; border-radius: 12px; background: var(--surface-2); color: var(--muted); }
.poster-empty svg { width: 26px; height: 26px; }
.tile form { margin-top: 4px; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: var(--text); }

/* ---- İzleme geçmişi */
.history-day { margin-bottom: 28px; }
.history-day h2 { font-size: 20px; font-weight: 800; color: var(--text-2); margin-bottom: 8px; }
.history { display: flex; flex-direction: column; padding: 0; margin: 0; list-style: none; background: var(--surface); border-radius: var(--r-lg); }
.history li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 10px; border-top: 1px solid var(--line); }
.history li:first-child { border-top: 0; }
.history form { margin: 0; }
.history-show { display: flex; align-items: center; gap: 14px; min-width: 0; color: var(--text); text-decoration: none; }
.history-show:hover strong { color: var(--go); }
.history-show > span:last-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.history-show strong { font-weight: 600; transition: color var(--fast) ease; overflow-wrap: anywhere; }
.history .code { font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); }
.thumb { width: 36px; height: 54px; border-radius: 8px; overflow: hidden; background: var(--surface-2); flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Üst çubukta arama ve canlı öneriler */
.header-search { flex: 0 1 320px; margin-left: auto; min-height: 44px; padding: 0 12px 0 16px; background: rgba(255, 255, 255, 0.04); border-color: var(--line); }
.header-search input { height: 42px; font-size: 15px; }
.header-search kbd { font: 600 12px/1 var(--body); color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 7px; }
.header-search:focus-within kbd { display: none; }
.search-link { display: none !important; }
.search-link svg { width: 20px; height: 20px; display: block; }
.has-suggest { position: relative; }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; max-height: min(440px, 70vh); overflow: auto; box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.95); animation: slide-in 220ms var(--ease) both; }
.suggest li { animation: rise 320ms var(--ease) both; animation-delay: calc(var(--i, 0) * 25ms); }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; color: var(--text); text-decoration: none; }
.suggest a > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.suggest strong { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest a > span:last-child span { font-size: 12px; color: var(--muted); }
.suggest [aria-selected="true"] a, .suggest a:hover { background: var(--surface-2); }
.suggest [aria-selected="true"] strong { color: var(--go); }
@media (max-width: 720px) {
  .header-search { display: none; }
  .search-link { display: inline-flex !important; }
}

/* ---- İçe aktarma */
.file { padding: 14px 18px !important; height: auto !important; border-radius: var(--r) !important; border-style: dashed !important; cursor: pointer; }
.file::file-selector-button { font: 600 14px/1 var(--body); margin-right: 14px; padding: 10px 16px; border-radius: 999px; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; }
.narrow .prose { margin-top: 40px; }
.import-section { margin-bottom: 20px; }
/* Genel .panel > form kuralı formu içeriği kadar daraltıyordu: liste ve kaydırma çubuğu paneli tam kaplamıyordu. */
.import-section > form { align-self: stretch; align-items: stretch; }
.import-list { display: flex; flex-direction: column; gap: 2px; padding: 0; margin: 0; list-style: none; max-height: 560px; overflow: auto; }
.option { display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 14px; cursor: pointer; transition: background var(--fast) ease; }
.option:hover { background: var(--surface-2); }
.option input { width: 20px; height: 20px; accent-color: var(--go); flex: none; }
.option > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.option strong { font-weight: 600; overflow-wrap: anywhere; }
.option .sub, .pick .sub { font-size: 13px; color: var(--muted); font-weight: 400; }
.pick { border: 0; padding: 12px 0; margin: 0; border-top: 1px solid var(--line); }
.pick:first-of-type { border-top: 0; }
.pick legend { font: 700 17px/1.3 var(--display); padding: 0 0 6px; }

.title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }

/* Panel içindeki yan yana formlar (genel ".panel form" alt alta dizer) */
.panel form.add-to-list, .panel form.inline-form { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.panel form.add-to-list .select { flex: 1 1 200px; align-self: auto; }

/* Giriş yapılmamışken bölüm listesinde işaret düğmesi yok: kod ve ad iki sütun. */
.episodes.readonly .episode { grid-template-columns: 72px minmax(0, 1fr); }
@media (max-width: 520px) {
  .episodes.readonly .episode .code, .episodes.readonly .episode .ep-body { grid-column: auto; grid-row: auto; }
}

/* ---- Üst menü: seçili bölüm, hesap simgesi */
.nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.nav .icon-link { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; }
.nav .icon-link svg { width: 20px; height: 20px; }

/* ---- Library: başlık ve sekmeler sekmeden sekmeye yerinde durur, seçili çizgi kayar */
.library-head { view-transition-name: library-head; gap: 14px; margin-bottom: 28px; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; border-bottom: 1px solid var(--line); scroll-snap-type: x proximity; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 14px 14px 17px; color: var(--muted); text-decoration: none; font: 600 15px/1 var(--body); white-space: nowrap; scroll-snap-align: start; transition: color var(--fast) ease; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); }
.tabs .count { font: 600 12px/1 var(--body); min-width: 24px; text-align: center; padding: 4px 7px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); transition: background var(--mid) ease, color var(--mid) ease; }
.tabs a[aria-current="page"] .count { background: var(--go); color: var(--go-ink); }
.tab-line { position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px; background: var(--go); view-transition-name: tab-line; }
::view-transition-group(tab-line) { animation-duration: 360ms; }
.tab-intro { margin: -8px 0 24px; }
.empty-box { display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; }
.empty-box .empty { padding: 0; }
.list-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.list-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.05; }
.account-page .panel { margin-bottom: 20px; }
.account-page .panel > form { flex-direction: row; }

/* ---- Keşfet */
.discover-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.sort-pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px 4px; }
.sort-pills::-webkit-scrollbar { display: none; }
.pill-radio, .chip-check { position: relative; flex: none; }
.pill-radio input, .chip-check input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pill-radio span { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--surface); color: var(--text-2); font: 600 15px/1 var(--body); white-space: nowrap; transition: background var(--mid) var(--ease), color var(--fast) ease, transform var(--fast) var(--ease); }
.pill-radio:hover span { color: var(--text); background: var(--surface-2); }
.pill-radio input:checked + span { background: var(--go); color: var(--go-ink); }
.pill-radio input:active + span, .chip-check input:active + span { transform: scale(0.97); }
.pill-radio input:focus-visible + span, .chip-check input:focus-visible + span { outline: 2px solid var(--go); outline-offset: 3px; }
.filters { background: var(--surface); border-radius: var(--r-lg); }
.filters summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 22px; font: 600 15px/1 var(--body); cursor: pointer; border-radius: var(--r-lg); }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform var(--mid) var(--ease); }
.filters[open] summary::before { transform: rotate(45deg) translate(-2px, -2px); }
.filters summary:hover { color: var(--go); }
.filters .count { font: 700 12px/1 var(--body); padding: 4px 8px; border-radius: 999px; background: var(--go); color: var(--go-ink); }
.filter-body { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 2px 22px 22px; animation: slide-in 360ms var(--ease) both; }
.genre-chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.genre-chips legend { font-size: 14px; color: var(--text-2); padding: 0; margin-bottom: 10px; }
.chip-check span { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font: 500 14px/1 var(--body); transition: background var(--mid) ease, border-color var(--fast) ease, color var(--fast) ease, transform var(--fast) var(--ease); }
.chip-check:hover span { border-color: var(--text-2); color: var(--text); }
.chip-check input:checked + span { background: var(--go-soft); border-color: var(--go); color: var(--go); }
.chip-check input:checked + span::before { content: ""; width: 9px; height: 5px; margin-top: -3px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.filter-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-self: stretch; }
.filter-row .field input { width: 100%; }
.filter-actions { display: flex; align-items: center; gap: 18px; }
.discover-tiles .tile { position: relative; }
.tile .badge { position: absolute; top: 10px; left: 10px; font: 700 11px/1 var(--body); letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: rgba(18, 18, 18, 0.8); color: var(--text-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; }
.tile-meta { display: inline-flex; align-items: center; gap: 4px; }
.rating { display: inline-flex; align-items: center; gap: 3px; color: var(--text-2); }
.rating svg { width: 12px; height: 12px; color: var(--go); }
.tile-action { position: absolute; top: 8px; right: 8px; margin: 0; }
.tile-action button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(18, 18, 18, 0.82); color: var(--text); font: 600 12px/1 var(--body); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transform: translateY(-4px); transition: opacity var(--fast) ease, transform var(--mid) var(--ease), background var(--fast) ease, color var(--fast) ease; }
.tile-action button svg { width: 14px; height: 14px; }
.tile .tile-action span { color: inherit; font-size: inherit; }
.tile:hover .tile-action button, .tile-action button:focus-visible, .tile-action button.saved { opacity: 1; transform: none; }
.tile-action button:hover { background: var(--go); color: var(--go-ink); }
.tile-action button.saved { background: var(--go); color: var(--go-ink); }
@media (hover: none) { .tile-action button { opacity: 1; transform: none; } }
.more-row { display: flex; justify-content: center; margin-top: 44px; }
.more-row .btn[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
@media (max-width: 720px) {
  .filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .tabs, .sort-pills { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .tabs a { padding: 14px 10px 17px; }
  .filters summary { padding: 16px 18px; }
  .filter-body { padding: 2px 18px 18px; }
}

/* Dar ekranda üst menü sığsın: yalnız işaret, menü sıkı. */
@media (max-width: 480px) {
  .brand-name { display: none; }
  .nav { gap: 2px; }
  .nav a { padding: 10px 9px; }
}

/* ---- Filmler: film sayfası, seri listesi, nerede izlenir, toplu işaretleme */
.tagline { margin-top: 18px; font: 600 19px/1.35 var(--display); letter-spacing: -0.015em; color: var(--text-2); }
.overview { margin-top: 14px; max-width: 62ch; font-size: 16px; color: var(--text-2); }
.show-hero .eyebrow { margin-bottom: 14px; }
.watched-line { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--text-2); }
.watched-line .tick { flex: none; cursor: default; }
.film-rows { display: flex; flex-direction: column; padding: 0; margin: 0; list-style: none; }
.film-rows li { display: grid; grid-template-columns: 44px 36px minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); animation: rise var(--slow) var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
.film-rows li:first-child { border-top: 0; }
.film-rows.readonly li { grid-template-columns: 36px minmax(0, 1fr); }
.film-rows form { margin: 0; }
.film-rows a { display: flex; flex-direction: column; gap: 3px; min-width: 0; color: var(--text); text-decoration: none; }
.film-rows strong { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; transition: color var(--fast) ease; }
.film-rows a:hover strong, .film-rows li[aria-current] strong { color: var(--go); }
.film-rows li.on strong { color: var(--text-2); }
.film-rows .sub { font-size: 13px; color: var(--muted); }
.providers { display: flex; flex-direction: column; gap: 10px; }
.providers ul { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.providers li { animation: pop 360ms var(--ease) both; }
.providers img { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.provider-name { display: inline-flex; align-items: center; height: 46px; padding: 0 14px; border-radius: 12px; background: var(--surface-2); color: var(--text-2); font-size: 14px; }
.in-lists li.studio { padding: 8px 14px; }
.in-lists li.studio a:hover { color: var(--go); }
.bulk .import-list { max-height: none; }
.bulk > .btn { align-self: flex-start; }
.option.on, .option:has(input:disabled:not(:checked)) { opacity: 0.55; }
.option input:disabled { cursor: not-allowed; }
.page-notice { margin-bottom: 20px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 32px; }
.list-label { font: 600 12px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 4px 0 -8px; }

/* Keşfet: dizi / film seçimi; seçili hap yeni seçime kayar (geçiş adı). */
.type-switch { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; margin: -14px 0 18px; border-radius: 999px; background: var(--surface); }
.type-switch a { padding: 12px 22px; border-radius: 999px; color: var(--text-2); font: 600 15px/1 var(--body); text-decoration: none; transition: color var(--fast) ease; }
.type-switch a:hover { color: var(--text); }
.type-switch a[aria-current="page"] { background: var(--text); color: var(--bg); view-transition-name: type-pill; }
::view-transition-group(type-pill) { animation-duration: 360ms; }

/* Arama: seriler ve stüdyolar */
.search-groups { display: flex; flex-direction: column; gap: 20px; margin-top: 48px; }
.search-groups h2 { margin-bottom: 12px; }
.group-links { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.group-links a { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 18px; border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; transition: background var(--fast) ease, transform var(--fast) var(--ease); }
.group-links a:has(.thumb) { padding-left: 6px; }
.group-links a:hover { background: var(--surface-2); color: var(--go); transform: translateY(-1px); }
.group-links .thumb { width: 28px; height: 42px; border-radius: 6px; }

/* ---- Library: Shows / Movies seçimi, yan bağlantılar ve raflar (yatay kayan kartlar) */
.library-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.library-nav .type-switch { margin: 0; }
.type-switch .count { margin-left: 8px; padding: 3px 7px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font: 600 12px/1 var(--body); transition: background var(--mid) ease, color var(--mid) ease; }
.type-switch a[aria-current="page"] .count { background: var(--bg); color: var(--text); }
.side-links { display: flex; gap: 4px; }
.side-links a { padding: 11px 16px; border-radius: 999px; color: var(--muted); font: 600 15px/1 var(--body); text-decoration: none; transition: background var(--fast) ease, color var(--fast) ease; }
.side-links a:hover { color: var(--text); background: var(--surface); }
.side-links a[aria-current="page"] { color: var(--text); background: var(--surface); }
.sub-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: -4px 0 26px; }
.sub-head h2, .shelf-head h2 { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 800; }
.sub-head .count, .shelf-head .count { padding: 4px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font: 600 13px/1 var(--body); letter-spacing: 0; }
.back-link { color: var(--muted); font: 600 14px/1 var(--body); text-decoration: none; }
.back-link:hover { color: var(--go); }
.shelf-section, .watched-movies { margin-bottom: 48px; }
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.shelf-head .hint { margin-top: 6px; max-width: 60ch; }
.shelf-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.shelf-arrow { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; transition: border-color var(--fast) ease, background var(--fast) ease, opacity var(--fast) ease; }
.shelf-arrow svg { width: 18px; height: 18px; }
.shelf-arrow[hidden] { display: none; }
.shelf-arrow:hover:not(:disabled) { border-color: var(--text-2); background: var(--surface); }
.shelf-arrow:disabled { opacity: 0.3; cursor: default; }
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 18px; margin: 0 -20px; padding: 6px 20px 10px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 20px; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.shelf > li { position: relative; min-width: 0; scroll-snap-align: start; animation: rise var(--slow) var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.shelf-card > a { display: flex; flex-direction: column; gap: 8px; color: var(--text); text-decoration: none; }
.shelf-poster { position: relative; }
.shelf-card .poster { width: 100%; box-shadow: 0 0 0 1px var(--line); transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease); }
.shelf-card > a:hover .poster { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--go), 0 22px 40px -22px rgba(200, 241, 53, 0.5); }
.shelf-card > a:hover img { transform: scale(1.04); }
.shelf-card strong { font: 700 15px/1.2 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.shelf-card .sub { font-size: 13px; color: var(--muted); }
.shelf-poster .chip { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.8); }
.shelf-poster .chip.announced, .shelf-poster .chip.unannounced, .shelf-poster .chip.ended, .shelf-poster .chip.unknown { background: rgba(18, 18, 18, 0.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.shelf-meter { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 5px; border-radius: 3px; background: rgba(18, 18, 18, 0.75); overflow: hidden; }
.shelf-meter span { display: block; height: 100%; width: var(--p, 0%); border-radius: 3px; background: var(--go); transform-origin: left; animation: fill 900ms var(--ease) both; }
.shelf-card > form { position: absolute; top: 14px; right: 8px; margin: 0; }
.shelf-action { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(18, 18, 18, 0.82); color: var(--text); font: 600 12px/1 var(--body); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background var(--fast) ease, color var(--fast) ease, transform var(--fast) var(--ease); }
.shelf-action svg { width: 14px; height: 14px; }
.shelf-action:hover { background: var(--go); color: var(--go-ink); }
.shelf-action:active { transform: scale(0.96); }
.shelf-more a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 2 / 3; border-radius: 14px; background: var(--surface); color: var(--text-2); text-decoration: none; transition: background var(--fast) ease, color var(--fast) ease; }
.shelf-more a:hover { background: var(--surface-2); color: var(--go); }
.shelf-more strong { font: 800 28px/1 var(--display); }
@media (max-width: 520px) {
  .shelf { grid-auto-columns: 136px; gap: 14px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; }
  .shelf-arrow { display: none; }
  .sub-head h2, .shelf-head h2 { font-size: 23px; }
}
@media (hover: none) { .shelf-arrow { display: none; } }

/* İçe aktarma ilerlemesi: çubuk her adımda sıfırdan dolmaz, yeni değerine kayar (adımları app.js çalıştırır). */
.bar.live span { animation: none; transition: width 700ms var(--ease); }
.import-retry { margin-top: 14px; color: var(--warn); }
