/* Layout: koyu sinema salonu. Üstte öne çıkan film (hero), altında yatay kaydırılan film sıraları.
   Tek tema (koyu) bilinçli bir tercih. */
:root {
  --bg: #0e0d12;
  --surface: #1a1820;
  --raised: #25222d;
  --line: #34303f;
  --ink: #f2eff7;
  --muted: #a7a1b3;
  --accent: #f2b72b;      /* sinema perdesi sarısı, marka rengi */
  --accent-ink: #17140c;
  --good: #5fd08e;
  --bad: #ff7a59;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
/* çentikli telefonda (viewport-fit=cover) kaydırılan içerik saat ve çentik alanının altından geçmesin: o alanı zemin rengi örter */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 60; pointer-events: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
.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; }

/* ---------- butonlar ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 6px; padding: 10px 18px; font-weight: 700; cursor: pointer; background: var(--raised); text-decoration: none; }
.btn:hover { filter: brightness(1.15); }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.btn.lg { padding: 12px 26px; font-size: 17px; }
.btn:disabled { opacity: .5; cursor: default; filter: none; }
.play::before { content: ""; width: 0; height: 0; border-left: 12px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }

/* ---------- üst menü ---------- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gutter) 12px; background: linear-gradient(var(--bg), rgba(14,13,18,.85) 70%, rgba(14,13,18,0)); backdrop-filter: blur(6px); }
.logo { font-family: var(--display); font-weight: 900; font-size: 28px; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; color: var(--accent); line-height: 1; }
.logo span { color: var(--ink); }
.links { display: flex; gap: 18px; }
.links a { text-decoration: none; color: var(--muted); font-size: 14px; }
.links a.active { color: var(--ink); font-weight: 700; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.level { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.level select { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; }


/* ---------- afiş (her film için üretilir) ---------- */
.poster {
  --h: 200;
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 80% at 25% 15%, hsl(var(--h) 75% 58% / .85), transparent 55%),
    radial-gradient(90% 60% at 90% 100%, hsl(calc(var(--h) + 50) 70% 40% / .7), transparent 60%),
    linear-gradient(165deg, hsl(var(--h) 45% 22%), hsl(calc(var(--h) + 30) 40% 7%));
}
.poster::before { /* film greni */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; mix-blend-mode: overlay;
  background-image: repeating-radial-gradient(circle at 17% 32%, #fff 0 .6px, transparent 1px 3px);
}
.poster .initial { position: absolute; right: -6%; top: -8%; font-family: var(--display); font-weight: 900; font-size: 180%; line-height: .8; color: hsl(var(--h) 80% 85% / .08); text-transform: uppercase; z-index: -1; }
.poster .ptitle { position: absolute; left: 10%; right: 10%; bottom: 14%; font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: .01em; text-wrap: balance; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.poster .pgenre { position: absolute; left: 10%; top: 8%; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(72vh, 620px); display: flex; align-items: flex-end; padding: 0 var(--gutter) clamp(32px, 6vw, 72px); margin-top: -64px; }
.hero .backdrop { position: absolute; inset: 0; z-index: -1; container-type: inline-size; overflow: hidden; }   /* fareyle yaklaşan görsel degradenin dışına taşmasın */
.hero .backdrop .poster { position: absolute; inset: 0; }
.hero .poster .ptitle, .hero .poster .pgenre, .detail .poster .ptitle { display: none; }
.hero .backdrop .poster .initial { font-size: 70cqw; right: -4%; top: -20%; }
.hero .backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(14,13,18,.75) 38%, rgba(14,13,18,0) 75%), linear-gradient(0deg, var(--bg) 0%, rgba(14,13,18,0) 45%); }
.hero-body { max-width: 620px; display: grid; gap: 14px; padding-top: 120px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(56px, 10vw, 120px); line-height: .85; margin: 0; text-wrap: balance; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font-size: 14px; }
.meta .match { color: var(--good); font-weight: 700; }
.meta .match.mid { color: var(--accent); }
.meta .match.low { color: var(--bad); }
.hero p.syn { margin: 0; font-size: 17px; max-width: 54ch; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* ---------- sıralar ---------- */
.rows { display: grid; gap: clamp(24px, 4vw, 40px); padding-bottom: 64px; position: relative; }
.row h2 { font-size: 19px; margin: 0 var(--gutter) 10px; font-weight: 700; }
.row h2 small { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 8px; }
[data-word] { cursor: pointer; }
.heat-strip { display: flex; align-items: flex-end; gap: 2px; height: 56px; margin-top: 6px; }
.heat-strip i { flex: 1; min-width: 2px; border-radius: 2px 2px 0 0; background: var(--line); }
.heat-strip i.l1 { background: color-mix(in srgb, var(--good) 55%, transparent); }
.heat-strip i.l2 { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.heat-strip i.l3 { background: var(--accent); }
.heat-strip i.l4 { background: #e0562d; }
.heat-axis { display: flex; justify-content: space-between; margin-top: 4px; }
.heat-strip i[data-part] { cursor: pointer; }
.heat-strip i[data-part]:hover { outline: 1px solid var(--text, #fff); }
.parts { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.goal-box { margin: 10px 0; }
.ch-dots { display: flex; gap: 6px; margin: 4px 0; }
.ch-dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); }
.ch-dots i.on { background: var(--accent); border-color: var(--accent); }
.ch-dots i.today { outline: 2px solid var(--text, #fff); outline-offset: 1px; }
.ch-friends .me { font-weight: 700; }
.ch-badge { font-size: 34px; color: var(--accent); line-height: 1; }
.ch-badge.small { font-size: 15px; }
.due-banner.challenge.done { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 30%, var(--surface)), var(--surface)); }
.share-setting { margin: -4px 0 10px; color: var(--muted); }
.goal-line { margin: 0; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.due-banner.goal.done { background: linear-gradient(90deg, color-mix(in srgb, var(--good) 22%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.parts .part { display: grid; justify-items: center; gap: 2px; padding: 8px 12px; min-width: 92px; }
.parts .part small { font-size: 11px; opacity: .8; font-weight: 500; }
.chip[data-word]:hover, .chip[data-word]:focus-visible { border-color: var(--accent); }
b[data-word]:hover { text-decoration: underline; }
.row h2 .row-more { font-size: 13px; font-weight: 600; color: var(--accent); margin-left: 10px; text-decoration: none; }
.list-modes { margin: 10px 0 18px; }
.list-modes .chip { text-decoration: none; color: inherit; }
.list-modes .chip.on { background: var(--accent); color: var(--accent-ink); }
.track { display: flex; gap: 10px; overflow-x: auto; padding: 22px var(--gutter) 22px; margin-top: -14px; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.card { flex: 0 0 clamp(132px, 15vw, 200px); scroll-snap-align: start; position: relative; border: 0; padding: 0; background: none; text-align: left; cursor: pointer; border-radius: 6px; transition: transform .25s ease, z-index 0s .25s; container-type: inline-size; }
.card .poster { aspect-ratio: 2 / 3; border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.card .poster .ptitle { font-size: 17cqw; }
.card .poster .initial { font-size: 120cqw; }
.card .badge { position: absolute; top: 8px; right: 8px; font-family: var(--mono); font-size: 11px; font-weight: 500; padding: 2px 7px; border-radius: 4px; background: rgba(0,0,0,.6); }
.card .badge.ready { background: var(--good); color: #0b2416; }
.card .badge.left { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.card:has(.badge.left) .lang-badge { display: none; }   /* dar kartta kalan kelime rozetiyle çakışır */
.card .progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(to right, rgba(255,255,255,.18) 95%, rgba(229,72,77,.7) 95%); border-radius: 0 0 6px 6px; overflow: hidden; }
.card .progress i { position: relative; display: block; height: 100%; background: var(--accent); }
.card .progress.ready i { background: var(--good); }
.card .info { display: none; }
.card.skel { cursor: default; }
.card.skel .poster { background: var(--line); animation: skel 1.4s ease-in-out infinite; box-shadow: none; }
@keyframes skel { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .card.skel .poster { animation: none; } }
/* Keşfet döşemeleri (ana sayfa): konunun örnek yapımının afişi, üstünde konu adı */
.topic-tile { flex: 0 0 clamp(150px, 18vw, 230px); aspect-ratio: 16 / 10; scroll-snap-align: start; position: relative; overflow: hidden; border-radius: 8px;
  background: var(--surface); color: #fff; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.topic-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .4s ease; }
.topic-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,13,18,.92) 10%, rgba(14,13,18,.15) 70%); }
.topic-tile span { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; font-weight: 800; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.15; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.topic-tile.level span { font-family: var(--mono); color: var(--accent); }
.topic-tile:hover img, .topic-tile:focus-visible img { transform: scale(1.06); }
.topic-tile:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (min-width: 700px) {
  .card:hover, .card:focus-visible { transform: scale(1.07); z-index: 5; transition: transform .25s ease .1s; }
  .card:hover .info, .card:focus-visible .info { display: grid; }
  .card:hover .ptitle, .card:focus-visible .ptitle { opacity: 0; }
  .card .info { position: absolute; left: 0; right: 0; bottom: 0; gap: 6px; padding: 40px 12px 16px; background: linear-gradient(0deg, rgba(14,13,18,.97) 55%, rgba(14,13,18,0)); border-radius: 0 0 6px 6px; font-size: 12px; }
  .card .info b { font-size: 14px; }
  .card .info .muted { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }

/* ---------- modallar ---------- */
.modal { border: 0; padding: 0; background: var(--surface); color: var(--ink); border-radius: 10px; width: min(860px, calc(100% - 24px)); max-height: calc(100% - 40px); box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.modal::backdrop { background: rgba(0,0,0,.7); }
.modal.small { width: min(520px, calc(100% - 24px)); }
.modal form { display: grid; gap: 14px; padding: 24px; }
.modal h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 32px; margin: 0; line-height: 1; }
.modal label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.modal input, .modal textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px; color: var(--ink); font-size: 15px; }
.modal .row2 { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; }
.form-error { color: var(--bad); margin: 0; font-size: 14px; }
.detail .top { position: relative; aspect-ratio: 16 / 7; container-type: inline-size; overflow: hidden; border-radius: 10px 10px 0 0; }
.detail .top .poster { position: absolute; inset: 0; border-radius: 10px 10px 0 0; }
.detail .top .poster .initial { font-size: 60cqw; }
.detail .top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface), rgba(26,24,32,0) 70%); }
.detail .top .over { position: absolute; left: 28px; right: 28px; bottom: 18px; z-index: 1; display: grid; gap: 12px; }
/* Eylemler görselin altında, düz zeminde (görselin üstünde okunmuyordu); seyrek olanlar "⋯" menüsünde */
.detail .focus { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; position: relative; }
.detail .focus .btn { font-size: .85rem; }
.detail .more-menu { position: relative; }
.detail .more-menu > summary { list-style: none; min-width: 40px; justify-content: center; letter-spacing: .1em; }
.detail .more-menu > summary::-webkit-details-marker { display: none; }
.detail .more-menu[open] > summary { background: var(--raised); }
.detail .more-pop { position: absolute; z-index: 5; top: calc(100% + 6px); inset-inline-start: 0; display: grid; gap: 4px; min-width: 200px; padding: 6px; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.detail .more-pop .btn { justify-content: flex-start; border-color: transparent; width: 100%; }
.detail .analysis-note { margin: 6px 0 0; }
.detail .premium-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 18px 0 0; font-size: 14px; }
.detail .premium-line .linklike { color: var(--accent); font-weight: 600; }
.detail .top h2 { font-size: clamp(36px, 7vw, 64px); }
.detail .close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); cursor: pointer; font-size: 20px; line-height: 1; }
.detail .body { padding: 18px 28px 28px; max-width: 720px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); }
.chip small { font-family: var(--mono); color: var(--muted); margin-left: 4px; }
.detail h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 18px 0 8px; font-weight: 700; }
.src { font-size: 12px; color: var(--muted); margin-top: 14px; }
.detail .top3 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.detail .top3 h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.detail .top3 h3 .linklike { font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.detail .top3 h3 .pill-premium { font-size: 9px; padding: 1px 6px; }
.detail .top3 .patterns li { grid-template-columns: auto 1fr auto; }
.detail .difficulty { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 10px 0 0; }
.detail .diff { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor; }
.detail .diff.easy { color: var(--good); }
.detail .diff.medium { color: var(--accent); }
.detail .diff.hard { color: var(--bad); }
.detail .more-heat { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.detail .more-heat summary { cursor: pointer; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.detail .more-heat[open] summary { margin-bottom: 8px; }
@media (max-width: 640px) { .detail .top3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .detail .body { padding: 14px 18px 22px; } .detail .more-menu { position: static; } .detail .more-pop { inset-inline: auto 0; } .detail .top { aspect-ratio: auto; min-height: 75vw; display: flex; flex-direction: column; justify-content: flex-end; } .detail .top .over { position: relative; left: auto; right: auto; bottom: auto; margin: 0 18px 18px; padding-top: 38vw; } .detail .top .poster, .detail .top img.bg, .detail .top .bg-fallback, .detail .top::after { bottom: auto; height: 62vw; } .detail .top::after { background: linear-gradient(0deg, var(--surface) 12%, rgba(26,24,32,0) 75%); } }

/* ---------- eğitim ekranı ---------- */
.train { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); }
.train-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 16px; padding: 14px var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line); }
.train-bar .back { background: none; border: 0; cursor: pointer; font-size: 22px; padding: 4px 8px; color: var(--muted); }
.train-bar .t { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 22px; line-height: 1; }
.steps { margin-left: auto; display: flex; gap: 4px; font-size: 12px; }
.steps span { padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.steps span.on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.steps span.done { color: var(--ink); }
.train-body { max-width: 760px; margin: 0 auto; padding: clamp(20px, 5vw, 48px) var(--gutter) 64px; display: grid; gap: 20px; }
.pbar { height: 4px; background: var(--raised); border-radius: 2px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.counter { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }

.wcard { background: var(--surface); border-radius: 12px; padding: clamp(20px, 4vw, 36px); display: grid; gap: 18px; border: 1px solid var(--line); }
.wcard .hw { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 9vw, 84px); line-height: .9; margin: 0; overflow-wrap: anywhere; }
.wcard .tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag { font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 4px; background: var(--raised); color: var(--muted); }
.tag.cefr { background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.wcard .tr { font-size: 26px; font-weight: 700; color: var(--accent); }
.wcard .note { margin: 0; color: var(--muted); }
.scene { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; display: grid; gap: 2px; }
.scene .lbl { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.scene q { font-size: 19px; quotes: "“" "”"; }
.scene .trx { color: var(--muted); font-size: 15px; }
/* Örnek cümlede bilinmeyen kelime: dokununca anlamı (premium), bilinmeyenlere eklenir */
.scene .tw { position: relative; cursor: pointer; text-decoration: underline dotted color-mix(in srgb, var(--muted) 70%, transparent); text-underline-offset: 4px; }
.scene .tw:hover, .scene .tw:focus-visible { text-decoration-color: var(--accent); outline: none; }
.scene .tw.looked { text-decoration: underline solid var(--accent); }
.tw-pop { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); z-index: 5; display: grid; gap: 2px; width: max-content; max-width: min(280px, 80vw);
  padding: 8px 12px; border-radius: 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.35);
  font-size: 14px; font-style: normal; line-height: 1.35; text-align: start; white-space: normal; cursor: default; }
.tw-pop small { color: var(--muted); font-size: 12px; }
.lookups-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
mark { background: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--ink); border-radius: 3px; padding: 0 2px; }
.example { display: grid; gap: 2px; }
.example .en { font-style: italic; }
.example .trx { color: var(--muted); font-size: 14px; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.loading { display: grid; place-items: center; gap: 14px; padding: 64px 0; color: var(--muted); text-align: center; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--raised); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-note { font-size: 13px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 8px; padding: 10px 14px; }

.quiz { display: grid; gap: 18px; }
.quiz .ask { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.quiz .q { font-size: clamp(20px, 3.4vw, 26px); line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.blank { display: inline-block; min-width: 4em; border-bottom: 3px solid var(--accent); text-align: center; font-weight: 700; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.opt { text-align: left; padding: 14px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 17px; display: flex; gap: 12px; align-items: center; }
/* Telefonda (dikey) şıklar ve kart düğmeleri ekranın altında, başparmağın yetiştiği yerde; soru üstte kalır, ekranın alt yarısı boş görünmez */
@media (max-width: 640px) and (orientation: portrait) {
  .train { display: flex; flex-direction: column; }
  .train-body { flex: 1 0 auto; width: 100%; display: flex; flex-direction: column; padding-bottom: 24px; }
  .train-body > .quiz { flex: 1 0 auto; display: flex; flex-direction: column; }
  .train-body > .quiz > .opts, .train-body > .card-actions { margin-top: auto; }
  .train-body > .card-actions > .btn:only-child { margin-left: auto; }
}
.opt kbd { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.opt:hover { border-color: var(--muted); }
.opt.right { border-color: var(--good); background: color-mix(in srgb, var(--good) 14%, var(--surface)); color: var(--good); font-weight: 700; }
.opt.wrong { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, var(--surface)); color: var(--bad); }
/* "Hangisi anlamı değil" sorusu: doğru anlamlar işaretlenir, anlam olmayan şıkkın üstü çizilir */
.opt.meaning:not(.wrong) { border-color: color-mix(in srgb, var(--good) 45%, var(--line, transparent)); }
.opt.meaning span::after { content: " ✓"; color: var(--good); font-weight: 700; }
.opt.impostor { border-color: var(--accent, #e8b44a); border-style: dashed; }
.opt.impostor span { text-decoration: line-through; }
.feedback { min-height: 1.5em; font-weight: 700; }
.feedback.ok { color: var(--good); }
.feedback.no { color: var(--bad); }

.result { display: grid; gap: 22px; text-align: center; justify-items: center; }
/* Altyazı şeridi (public/strip.js, imza an K5): dolu = tanıdığın, altın çerçeve = henüz bilmediğin, altın dolu = bu oturumda dolan */
.strip { display: flex; flex-wrap: wrap; gap: 6px 5px; }
.strip i { height: 10px; border-radius: 3px; background: var(--ink); opacity: .9; }
.strip i.gap { background: transparent; border: 1.5px solid var(--accent); opacity: 1; }
.strip i.fresh { background: var(--accent); opacity: 1; box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent); animation: strip-in .6s ease-out both; }
.strip i.fresh:nth-child(3n) { animation-delay: .15s; } .strip i.fresh:nth-child(3n+1) { animation-delay: .3s; }
.strip.strip-lg i { height: 13px; }
@keyframes strip-in { from { transform: scaleX(.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .strip i.fresh { animation: none; } }
/* Detayda imza blok: "%85 → %95", şerit, plan */
.sig { display: grid; gap: 12px; margin: 4px 0 18px; }
.sig .meter { display: flex; align-items: flex-end; gap: 12px; font-family: var(--display); font-weight: 900; font-variant-numeric: tabular-nums; line-height: .8; }
.sig .meter b { font-size: clamp(64px, 16vw, 88px); }
.sig .meter .arrow { font-size: 26px; color: var(--muted); padding-bottom: 6px; }
.sig .meter .to { font-size: clamp(32px, 8vw, 40px); color: var(--accent); padding-bottom: 4px; }
.sig .meter .to.done { color: var(--good); }
.sig .plan { margin: 0; color: var(--muted); }
.sig .sig-say { margin: 0; font-weight: 700; }   /* satır oranı cümlesi (docs/LINE_COVERAGE.md) */
.sig .sig-hint { margin: -4px 0 0; font-size: 12px; }
.sig .sig-share { justify-self: start; }
:root[dir="rtl"] :is(.result .big .arrow, .sig .meter .arrow) { display: inline-block; transform: scaleX(-1); }   /* ok okuma yönünde */
.prefilm-first p { margin: 6px 0 0; max-width: 36ch; color: var(--ink); text-shadow: 0 1px 6px rgb(0 0 0 / .7); }
.sig + .meta .match { display: none; }   /* oran şeridin üstünde zaten büyük */
.sig .plan b { color: var(--ink); }
.result .sig-gain { margin: -8px 0 0; font-weight: 700; }
.result .strip { max-width: 420px; margin: 4px auto 0; justify-content: center; }
/* İzledikten sonra imza an penceresi */
.sigmoment { padding: 0; overflow: hidden; max-width: 420px; }
.sigmoment .sm-art { position: relative; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; background: var(--bg) center/cover no-repeat; isolation: isolate; }
.sigmoment .sm-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,7,11,.97) 38%, rgba(8,7,11,.35) 78%, rgba(8,7,11,.6)); }
.sigmoment .sm-pct { font-family: var(--display); font-weight: 900; font-size: clamp(110px, 34vw, 160px); line-height: .8; color: var(--accent); margin: 10px 0 14px; font-variant-numeric: tabular-nums; }
.sigmoment .sm-say { font-size: 21px; font-weight: 700; line-height: 1.25; margin: 16px 0 0; unicode-bidi: plaintext; }
.sigmoment .actions { display: flex; gap: 10px; padding: 16px 24px 22px; }
.sigmoment .actions .btn { flex: 1; }
.result .big { display: flex; align-items: baseline; gap: 18px; font-family: var(--display); font-weight: 900; font-variant-numeric: tabular-nums; }
.result .big .from { font-size: clamp(40px, 8vw, 64px); color: var(--muted); }
.result .big .arrow { font-size: 32px; color: var(--muted); }
.result .big .to { font-size: clamp(72px, 15vw, 128px); color: var(--accent); line-height: .9; }
.result .big .to.ready { color: var(--good); }
.result h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 36px; margin: 0; }
.result .chips { justify-content: center; }

/* ---------- listem ---------- */
.page { padding: 24px var(--gutter) 64px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 980px; }
.page h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 7vw, 64px); margin: 0; line-height: .9; }
.kpis { display: flex; flex-wrap: wrap; gap: 28px; }
.kpis b { display: block; font-family: var(--display); font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.kpis span { font-size: 13px; color: var(--muted); }
.wlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-radius: 8px; overflow: hidden; }
.wlist li { background: var(--surface); padding: 10px 14px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.wlist li b { min-width: 9em; }
.wlist li .muted { font-size: 13px; }
.empty { color: var(--muted); padding: 28px; text-align: center; border: 1px dashed var(--line); border-radius: 8px; }
.usage { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 8px; font-size: 14px; max-width: calc(100% - 32px); }
/* Çerez onayı (public/consent.js): iki düğme eşit ağırlıkta (reddetmek kabul etmek kadar kolay) */
.consent { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: 0 8px 30px rgba(0,0,0,.35); font-size: 14px; }
.consent p { margin: 0 0 10px; } .consent-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; } .consent-actions .btn { flex: 1 1 140px; }

/* ================= v0.2: profiller, arama, ezber ================= */
.btn.icon { width: 38px; height: 38px; padding: 0; justify-content: center; font-size: 20px; }
.btn kbd, .opt kbd { font-family: var(--mono); font-size: 10px; font-weight: 400; opacity: .7; border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; }
/* klavye ipuçları (Enter, 1-4) dokunmatik ekranda anlamsız */
@media (hover: none) and (pointer: coarse) { .btn kbd, .opt kbd { display: none; } }
.links a { position: relative; }
.dot { display: inline-block; margin-left: 6px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; text-align: center; line-height: 18px; }
.search { display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; height: 38px; }
.search:focus-within { border-color: var(--ink); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.search input { border: 0; background: none; outline: none; width: 220px; font-size: 14px; color: var(--ink); }
.avatar { width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; text-decoration: none; background: linear-gradient(135deg, hsl(var(--h, 200) 70% 55%), hsl(calc(var(--h, 200) + 40) 60% 30%)); }
.rows > *, .due-banner > div { min-width: 0; }
.links a, .nav-right { white-space: nowrap; }
.nav-right { flex-wrap: nowrap; }
@media (max-width: 760px) {
  .links a[data-route="home"], #addFilmBtn { display: none; }
  .links { gap: 10px; }
  .links .long { display: none; }
  .nav { gap: 8px; }
  .nav-right { gap: 8px; }
  .logo { font-size: 20px; }
  .search { padding: 0 9px; }
  .search input { width: 0; transition: width .2s; }
  .search:focus-within input, .search input:not(:placeholder-shown) { width: 120px; }
  .hero { min-height: 0; }
  .hero-body { padding-top: 150px; }
}

/* afiş görseli */
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
/* afiş indikçe kart kart belirir (public/app.js -> poster); o sırada yazılı kapak görünür */
.poster img.fade { opacity: 0; transition: opacity .35s ease-out; }
.poster img.fade.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .poster img.fade { transition: none; } }
.poster:has(img) .ptitle, .poster:has(img) .initial, .poster:has(img) .pgenre { display: none; }
.hero .backdrop .poster img { filter: blur(28px) saturate(1.2) brightness(.55); transform: scale(1.15); }
.hero-poster { position: absolute; right: var(--gutter); bottom: clamp(32px, 6vw, 72px); height: min(70%, 440px); aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 30px 60px rgba(0,0,0,.6); z-index: 0; }
@media (max-width: 760px) { .hero-poster { display: none; } }
/* tablette sahne görseli olmayan yapımda afiş küçülür, yazı yanında kalır (afiş gizlenince üst yarı boş kalıyordu) */
@media (min-width: 761px) and (max-width: 1000px) { .hero-poster { height: min(calc(100% - 96px - clamp(32px, 6vw, 72px)), 300px) !important; } .hero:has(.hero-poster) .hero-body { max-width: calc(100% - 230px); } }

.due-banner, .notice { margin: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-radius: 10px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.due-banner div { display: grid; gap: 2px; }
/* Günlük hedef (lib/daily.js): ana sayfa şeridi, oturum sonu satırı, Egzersiz kartı */
.daily-strip { margin: 0 var(--gutter); display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
a.daily-strip:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.result .daily-strip { margin: 12px auto; width: fit-content; max-width: 100%; text-align: start; }
.daily-strip.done { border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.daily-text { display: grid; gap: 2px; min-width: 0; }
.daily-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.daily-ring { flex: none; }
.daily-ring circle { fill: none; stroke-width: 5; }
.daily-ring .track { stroke: var(--line); }
.daily-ring .fill { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .4s ease; }
.daily-ring.done .fill { stroke: var(--good); }
.daily-ring .pct { fill: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.daily-ring.done .pct { fill: var(--good); }
.due-banner b { font-size: 17px; }
.due-banner .due-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.due-banner.practice-review { margin: 0 0 8px; }
.profile-practice { margin: 18px 0 0; }
.upcoming { margin: 0 var(--gutter); display: flex; gap: 20px; align-items: center; padding: 16px; border-radius: 10px; background: var(--surface); border: 1px dashed var(--line); }
.upcoming-poster { position: relative; flex: none; width: 92px; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; container-type: inline-size; }
.upcoming-poster .poster { position: absolute; inset: 0; }
.upcoming-poster .ptitle { font-size: 15px; }
.upcoming-poster .pgenre { display: none; }
.upcoming-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.upcoming-body b { font-size: 20px; }
.upcoming-body p { margin: 4px 0 0; font-size: 14px; max-width: 60ch; }
.page .upcoming { margin: 24px 0 0; }
.notice { background: var(--surface); border-color: var(--line); color: var(--muted); font-size: 14px; display: block; }
code { font-family: var(--mono); font-size: .9em; background: var(--raised); padding: 1px 6px; border-radius: 4px; color: var(--ink); }

.page.wide { max-width: none; }
.search-title { font-size: clamp(32px, 6vw, 52px) !important; }
.page h2.sub { font-size: 18px; margin: 12px 0 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(132px, 15vw, 190px), 1fr)); gap: 14px 10px; }
.grid .card { flex: none; width: 100%; }
.hit { position: absolute; left: 8px; bottom: 12px; z-index: 2; font-family: var(--mono); font-size: 11px; padding: 2px 7px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); }
.card .badge, .card .progress { z-index: 2; }
.chip.phr { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.chip.clean { border-color: color-mix(in srgb, var(--good) 50%, transparent); }

/* profiller */
.profiles { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 28px; padding: calc(72px + env(safe-area-inset-top, 0px)) 16px calc(40px + env(safe-area-inset-bottom, 0px)); text-align: center; }
.logo.big { font-size: 40px; }
.profiles h1 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 6vw, 56px); margin: 0; }
.ptiles { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 22px; }
.ptile { display: grid; justify-items: center; align-content: start; gap: 8px; background: none; border: 0; cursor: pointer; width: 140px; color: var(--muted); }
.ptile:hover .pavatar, .ptile:focus-visible .pavatar { outline: 3px solid var(--ink); outline-offset: 2px; }
.ptile:hover .pname { color: var(--ink); }
.pavatar { width: 128px; height: 128px; border-radius: 10px; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 64px; color: rgba(255,255,255,.92); background: linear-gradient(135deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 40) 60% 25%)); }
.pavatar.add { background: var(--surface); border: 2px dashed var(--line); color: var(--muted); }
.pname { font-size: 17px; }
.ptile.new { cursor: default; width: min(340px, 100%); gap: 14px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }
.ptile.new:hover .pavatar { outline: 0; }
.ptile.new .pavatar { width: 96px; height: 96px; font-size: 48px; transition: background .2s, color .2s; }
.ptile.new .pavatar.filled { background: linear-gradient(135deg, var(--accent), #8a5a10); border: 0; color: #15131a; }
.ptile.new input, .ptile.new select { width: 100%; box-sizing: border-box; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--ink); font: inherit; font-size: 15px; }
.ptile.new input { text-align: center; font-size: 17px; }
.ptile.new input:focus, .ptile.new select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ptile.new .native { width: 100%; text-align: left; font-size: 13px; gap: 6px; }
.ptile.new .btn { width: 100%; justify-content: center; margin-top: 4px; }
.small { font-size: 13px; }

/* ezber ekranı */
.train-bar { gap: 14px; }
.train-bar .back { font-size: 28px; line-height: 1; }
.train-bar .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 28vw; line-height: 1.3; }   /* 1: Ü, Ä noktaları kesiliyordu */
.pbar.grow { flex: 1; height: 8px; border-radius: 4px; min-width: 60px; }
.combo, .xp { font-family: var(--mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.combo.hot { color: var(--accent); font-weight: 500; }
.sound, .speak { background: none; border: 1px solid var(--line); border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; color: var(--muted); flex: none; }
.sound svg, .speak svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 1.6; }
.sound.on { color: var(--accent); border-color: var(--accent); }
.speak:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 560px) { .train-bar .t, .xp { display: none; } }
.qhead { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.flag { margin-left: auto; background: none; border: 1px solid var(--line, currentColor); color: var(--muted); border-radius: 999px; padding: 2px 10px; font-size: 12px; cursor: pointer; }
.flag:hover { color: var(--accent); border-color: var(--accent); }
.report-fields { border: 0; padding: 0; margin: 8px 0 12px; display: grid; gap: 6px; }
.report-fields .radio { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.linkish { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; text-align: start; }
table.reports tr.fixed, table.reports tr.dismissed { opacity: .55; }
table.reports td { vertical-align: top; }
.stage { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-right: 6px; }
.hwrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.quiz .hw { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 8vw, 72px); line-height: .95; margin: 0; overflow-wrap: anywhere; }
.hw.tr-big { font-family: var(--body); font-weight: 700; font-size: clamp(28px, 5vw, 40px); line-height: 1.2; }
.quiz .ask { margin: 0; text-transform: none; letter-spacing: 0; font-size: 15px; }
.literal { margin: 0; font-style: italic; color: var(--muted); }
.wcard.intro { animation: rise .25s ease-out; }
@keyframes rise { from { transform: translateY(8px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wcard.intro { animation: none; } }
.opt:disabled { cursor: default; }
.shape { font-family: var(--mono); font-size: 28px; letter-spacing: .3em; margin: 0; color: var(--muted); }
.typeform { display: flex; gap: 10px; flex-wrap: wrap; }
.typeform input { flex: 1; min-width: 180px; font-size: 22px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.typeform input:focus { border-color: var(--accent); outline: none; }
.kpis.center { justify-content: center; }
.kpis.center b { font-size: 36px; }
.res-group { display: grid; gap: 8px; justify-items: center; }
.res-group h3 { margin: 0; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.chip small { font-family: var(--body); }
.card-actions.center { justify-content: center; }
.share-actions { margin-top: 12px; }

/* kelimelerim */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 8px 12px; font-size: 13px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--raised); color: var(--ink); font-weight: 700; }
.table-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid var(--line); }
table.words { width: 100%; border-collapse: collapse; font-size: 14px; }
table.words th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 400; padding: 10px 14px; background: var(--surface); white-space: nowrap; }
table.words td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
table.words td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.boxes { display: inline-flex; gap: 3px; }
.boxes i { width: 10px; height: 10px; border-radius: 2px; background: var(--raised); }
.boxes i.on { background: var(--good); }

/* v0.3: diller */
.lang-badge { position: absolute; left: 8px; top: 8px; z-index: 2; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,.6); color: var(--ink); }
.lang-tag { font-family: var(--mono); font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; margin-left: 4px; }
.modal select, .native select { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; color: var(--ink); font-size: 15px; }
.native { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.poster .pgenre { top: 13%; }
.poster .ptitle { hyphens: auto; overflow-wrap: anywhere; }

/* ---------- dizi bölümleri ---------- */
.episodes { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; max-height: 320px; overflow-y: auto; }
.episodes .ep { width: 100%; display: grid; grid-template-columns: 28px 1fr auto auto; gap: 10px; align-items: center; text-align: left; padding: 8px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: inherit; font: inherit; cursor: pointer; }
.episodes .ep:hover, .episodes .ep:focus-visible { border-color: var(--accent); }
.episodes .epn { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.episodes .ept { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .episodes .ept { white-space: normal; overflow-wrap: anywhere; } }
/* ---------- alt bilgi ---------- */
.site-footer { margin-top: 64px; padding: 40px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; }
.footer-main { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-brand .logo { font-size: 26px; }
.footer-brand p { max-width: 42ch; margin: 10px 0 0; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h2 { margin: 0 0 4px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.footer-col a { text-decoration: none; width: fit-content; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; }
.credits { color: var(--muted); }
@media (max-width: 640px) { .footer-main { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- hazırlanıyor ---------- */
.badge.soon { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--muted); border: 1px solid var(--line); }
.card.pending .poster img { filter: saturate(.85); }
.detail .notice { margin: 16px 0 0; }
.notice.soon-music b { color: var(--text, inherit); margin-right: 8px; }

/* ---------- abonelik ---------- */
.pill-premium, .pill-free { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.pill-premium { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.pill-free { border: 1px solid var(--line); color: var(--muted); }
.premium-teaser { margin: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: 10px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.premium-teaser > div:first-child { display: grid; gap: 4px; max-width: 70ch; }
.premium-teaser .premium-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#signature .premium-teaser { margin: 18px 0 0; }
.invite-box { display: grid; gap: 10px; max-width: 72ch; }
.invite-box p, .invite-box .notice { margin: 0; }
.invite-link { display: flex; gap: 8px; flex-wrap: wrap; }
.invite-link input { flex: 1 1 240px; min-width: 0; font-family: var(--mono); font-size: 13px; }
.premium-teaser .pill-premium { justify-self: start; }
.page .premium-teaser { margin: 0; }

/* ---------- profil ---------- */
.profile-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.profile-head > div { flex: 1; min-width: 200px; }
.profile-head h1 { margin: 0 0 6px; }
.profile-head .meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 14px; }
.pavatar.big { width: 72px; height: 72px; font-size: 32px; }
.page h2.sub { margin: 32px 0 12px; }
.page h2.sub small { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 8px; font-family: var(--body); text-transform: none; letter-spacing: 0; }
.insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.insights section { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.insights h3 { margin: 0 0 10px; font-size: 15px; }
.unlock-box { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: grid; gap: 10px; justify-items: start; }
.unlock-box h3, .unlock-box p, .unlock-box ol { margin: 0; }
.unlock-box h3 { font-size: 15px; }
.reach { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin: 4px 0 18px; padding: 16px 20px; border-radius: 10px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.reach-big { display: grid; justify-items: start; }
.reach-big b { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--accent); }
.reach-big span { font-size: 13px; color: var(--muted); }
.reach-text { flex: 1 1 260px; min-width: 0; display: grid; gap: 4px; }
.reach-text p { margin: 0; }
.reach-week { color: var(--good); font-weight: 600; }
.ranked { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.ranked li { display: flex; justify-content: space-between; gap: 10px; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); }
#wordSearch, #adminSearch { flex: 1; min-width: 200px; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; }

/* ---------- yönetim ---------- */
.admin .seg { margin-bottom: 16px; flex-wrap: wrap; }
.admin-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 16px; }
.admin-filters .seg { margin-bottom: 0; }
.admin-filters select, .admin #adminSearch { font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.admin-filters #adminSearch { flex: 1 1 260px; width: auto; margin: 0; }
.admin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 14px; }
.admin-item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.admin-thumb { width: 96px; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: color-mix(in srgb, var(--line) 50%, transparent); display: grid; place-items: center; color: var(--muted); font-size: 12px; text-align: center; }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-fields { display: grid; gap: 6px; min-width: 0; }
.admin-fields label { display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.admin-fields input, .admin-fields select { font: inherit; color: inherit; background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; min-width: 0; }
.admin-fields .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.admin-login { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.admin-login input { font: inherit; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: inherit; }
.admin select[data-plan] { font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; }

/* ---------- yönetim: başlık listesi ve düzenleme penceresi ---------- */
.btn.sm { padding: 6px 12px; font-size: 13px; }
.cover-src { margin: 8px 0 0; }
.bg-fallback.book-bg { background: linear-gradient(135deg, hsl(var(--h) 40% 24%), var(--bg)); }
.book-head { display: flex; gap: 16px; align-items: flex-start; margin: 12px 0; }
.book-head > p { margin-top: 0; min-width: 0; }
.book-cover-col { width: 140px; flex: none; display: grid; gap: 4px; }
.book-cover-col .cover-src .btn { white-space: normal; text-align: center; justify-content: center; width: 100%; }
.book-cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
@media (max-width: 560px) { .book-cover-col { width: 100px; } }
.cover-src .btn { display: inline-flex; align-items: center; gap: 6px; }
.good { color: var(--good); }
.admin-rows { border: 1px solid var(--line); border-radius: 10px; overflow: clip; }
.admin-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px 44px 210px 116px 48px 48px 92px 88px; align-items: center; gap: 12px; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.admin-row:first-child { border-top: 0; }
.admin-row:not(.head):hover { background: var(--raised); }
.admin-row.head { position: sticky; top: 64px; z-index: 1; background: var(--bg); font-size: 12px; color: var(--muted); padding-block: 10px; }
.admin-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.admin-title > div:last-child { display: grid; min-width: 0; }
.admin-title b, .admin-title .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-thumb.sm { width: 36px; flex: none; border-radius: 4px; }
.admin-edit-cell { text-align: right; }
.tick { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.tick svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; background: color-mix(in srgb, currentColor 16%, transparent); }
.tick small { font-family: var(--mono); font-size: 12px; }
.tick.ok { color: var(--good); }
.tick.part { color: var(--accent); }
.tick.no { color: var(--muted); opacity: .7; }
.tick.warn { color: var(--bad); }
.tick.warn svg, .blockers svg { border-radius: 0; background: none; }
.pfs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pfs a { text-decoration: none; }
.pf { display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 5px; border-radius: 4px; font: 700 10.5px/1 var(--body); letter-spacing: .01em; color: #fff; background: var(--raised); }
.pfs a:hover .pf { outline: 2px solid var(--ink); outline-offset: 1px; }
.pf-imdb { background: #f5c518; color: #000; }
.pf-tmdb { background: #0d253f; color: #01d277; }
.pf-musicbrainz { background: #ba478f; }
.pf-wikipedia { background: #fff; color: #000; font-family: Georgia, serif; }
.pf-archive { background: #e8e8e8; color: #222; }
.pf-opensubtitles { background: #1d6fb8; }
.pf-lrclib { background: #3d3a46; color: var(--ink); }

.admin-edit { width: min(940px, calc(100% - 24px)); }
.admin-edit .close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--raised); cursor: pointer; font-size: 20px; line-height: 1; }
.admin-edit-body { padding: 24px; }
.admin-edit-head { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding-right: 40px; }
.admin-edit-head h2 { font-size: clamp(28px, 5vw, 40px); }
.admin-edit-head p { margin: 6px 0 12px; }
.admin-edit-head .admin-thumb { width: 120px; }
.admin-edit-head .pfs { margin-top: 12px; gap: 6px 8px; }
.admin-edit-ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
.admin-edit-ticks > span { display: inline-flex; align-items: center; gap: 6px; }
.admin-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 8px; }
.admin-edit-grid > section { min-width: 0; }
.admin-edit h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 20px 0 8px; font-weight: 700; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.blockers { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: 13px; }
.blockers li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.blockers svg { width: 18px; height: 18px; fill: none; stroke: var(--bad); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.admin-edit form.admin-fields { padding: 0; gap: 8px; }

@media (max-width: 860px) {
  .admin-row.head { display: none; }
  .admin-row { grid-template-columns: repeat(4, auto) 1fr; gap: 10px 16px; }
  .admin-title { grid-column: 1 / -1; }
  .admin-row [data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
  .admin-row .pfs::before { flex-basis: 100%; }
  .admin-edit-grid { grid-template-columns: 1fr; gap: 0; }
  .admin-edit-head { grid-template-columns: 80px 1fr; gap: 14px; }
  .admin-edit-head .admin-thumb { width: 80px; }
}
.tick.award { color: var(--accent); }
.tick.nom { color: var(--muted); }
.tick.award svg, .tick.nom svg { border-radius: 0; background: none; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.chip { padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; }
.cast { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; font-size: 13px; }
.cast li { display: grid; min-width: 0; }
.cast b, .cast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.awards { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 13px; }
.awards li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; }
.awards .yr { font-family: var(--mono); color: var(--accent); }
.noms { margin-top: 8px; font-size: 13px; }
.noms summary { cursor: pointer; color: var(--muted); margin-bottom: 6px; }
.noms .yr { color: var(--muted); }
.pf-wikidata { background: #006699; }
.wp { width: 22px; height: 22px; border-radius: 5px; display: block; object-fit: cover; background: var(--raised); }
.pfs a:hover .wp { outline: 2px solid var(--ink); outline-offset: 1px; }
.pf-sep { width: 1px; height: 18px; background: var(--line); margin: 0 3px; }
.kv.watch dd { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.wp-name { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.wp-name a { text-decoration: none; }
.pub { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; border: 1px solid currentColor; }
.pub.live { color: var(--good); }
.pub.hidden { color: var(--accent); }
.pub.notready { color: var(--muted); font-weight: 400; }
.pub-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pub-box .btn { margin-left: auto; }

/* ---------- yaş işareti ve içerik ayarları ---------- */
.advisory { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.admin-row .adv svg { width: 18px; height: 18px; }
.age-badge { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 4px; border: 1.5px solid currentColor; font: 700 12px/1 var(--body); color: var(--ink); }
.adv svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.notice.support { border-left: 3px solid var(--good); padding-left: 10px; }
.ptile .pavatar { position: relative; }
.ptile .lock { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--bg); fill: none; stroke: var(--ink); stroke-width: 2; }
/* Bilerek göze batmayan yer: profil sayfasının en altında, küçük ve soluk */
.content-settings { margin-top: 56px; font-size: 12px; color: var(--muted); }
.content-settings summary { cursor: pointer; width: fit-content; }
.content-settings p { margin: 8px 0; }
.content-settings .check, .modal .check { display: flex; gap: 8px; align-items: center; color: var(--ink); }
#ask form { display: grid; gap: 12px; padding: 24px; }
#ask h2 { font-size: 26px; }
#ask .err { color: var(--bad); margin: 0; min-height: 1em; }
.age-badge.est { border-style: dashed; color: var(--muted); }
.admin .year-input { width: 96px; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; }
.poster-safe { margin-bottom: 4px; }
.feed-more { padding: 24px var(--gutter); text-align: center; font-size: 14px; }
.ui-lang { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.ui-lang select { min-width: 160px; }
/* Sağdan sola arayüzde (ar) film ve kart içeriği kendi yönünde akar: İngilizce/Türkçe metnin noktalaması karışmaz */
:root[dir="rtl"] :is(.hw, .tr, .note, .literal, .scene q, .trx, .example span, .opt span, .chip, .words td, .syn, .detail p, .ptitle, .hero h1, .over h2, .info b, .train-bar .t, .result small, .shape, #typeInput, .ept) { unicode-bidi: plaintext; }

/* giriş */
.login-box { width: min(360px, 100%); display: grid; gap: 14px; text-align: start; }
.btn.google { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; width: 100%; }
.btn.google svg { width: 18px; height: 18px; }
.btn.apple { display: flex; align-items: center; justify-content: center; gap: 10px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .35); width: 100%; }
.btn.apple svg { width: 18px; height: 18px; }
.login-box .or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.login-box .or::before, .login-box .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.email-form { display: grid; gap: 10px; }
.email-form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.email-form input { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; }
.login-msg { margin: 0; min-height: 1em; font-size: 14px; }
.login-msg.err { color: var(--bad, #e5484d); }
.login-msg.ok { color: var(--good); }
.login-msg .login-next { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.login-box[aria-busy="true"] button { opacity: .6; cursor: progress; }
.login .small { text-align: center; }
/* e-posta bağlantısı sayfası (/auth/action, lib/authaction.js) */
.auth-action h1 { font-size: clamp(30px, 5vw, 44px); max-width: 20ch; text-wrap: balance; }
.auth-action .lead { max-width: 44ch; margin: 0; }
.auth-action .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.auth-action .logo { text-decoration: none; }

/* tanıtım sayfası (#/welcome) */
.welcome { max-width: 1080px; margin: 0 auto; padding: calc(32px + env(safe-area-inset-top, 0px)) var(--gutter) 48px; display: grid; gap: clamp(28px, 5vw, 48px); }
.welcome .wintro { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.welcome h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 7vw, 84px); line-height: .9; margin: 0 0 16px; text-wrap: balance; }
.welcome .lead { font-size: 18px; color: var(--muted); margin: 0 0 20px; max-width: 52ch; }
.welcome .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.wsample { gap: 10px; }
.wsample .hw { font-size: clamp(40px, 6vw, 60px); }
.wsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wsteps li { display: grid; gap: 6px; align-content: start; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.wsteps b { font-size: 17px; }
.wnum { font-family: var(--display); font-weight: 900; font-size: 36px; line-height: 1; color: var(--accent); }
.wposters h2 { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 12px; }
.wtrack { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.wposter { position: relative; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; container-type: inline-size; }
.wposter .poster { position: absolute; inset: 0; }
.welcome .wintro .wposters { margin: 0 0 22px; }
.wposters-slot:empty { display: none; }
.wposter.wmore { display: none !important; }
.wposter.wmore { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; text-align: center; cursor: pointer; }
.wposter.wmore:hover, .wposter.wmore:focus-visible { border-color: var(--accent); color: var(--accent); }
.wposter.wmore span:last-child { font-size: 20px; }
[dir="rtl"] .wposter.wmore span:last-child { transform: scaleX(-1); }
.wposter.skel { background: var(--surface); border: 1px solid var(--line); }
/* hesapsız deneme: film seçimi ve sonuçta kayıt çağrısı */
.demo-films { margin: 24px 0 16px; }
.demo-film { padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; color: inherit; font: inherit; transition: transform .15s, border-color .15s; }
.demo-film:hover, .demo-film:focus-visible { transform: translateY(-2px); border-color: var(--accent); }
.demo-title { position: absolute; inset: auto 0 0; padding: 18px 8px 8px; font-size: 12px; font-weight: 600; text-align: start; background: linear-gradient(transparent, rgb(0 0 0 / .8)); color: #fff; unicode-bidi: plaintext; }
.demo-save { margin: 20px auto 0; padding: 16px; max-width: 460px; border: 1px solid var(--accent); border-radius: 12px; text-align: center; }
.demo-save h3 { margin: 0 0 6px; }
.welcome .ui-lang { justify-self: start; }
@media (max-width: 760px) {
  .welcome .wintro, .wsteps { grid-template-columns: 1fr; }
  /* ilk ekranda afiş şeridi: yana kayar, kenara kadar taşar */
  .welcome .wintro .wposters { margin-inline: calc(-1 * var(--gutter)); }
  .welcome .wposters h2 { padding-inline: var(--gutter); }
  .wtrack { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 0 var(--gutter); scrollbar-width: none; }
  .wtrack::-webkit-scrollbar { display: none; }
  .wtrack > .wposter { flex: 0 0 31%; scroll-snap-align: start; }
  .wposter.wmore { display: flex !important; }
  .wmore-btn { display: none !important; }
}

/* ilk kullanım: kelime ölçümü ve ilk film (#/start) */
.start { max-width: 860px; margin: 0 auto; gap: 18px; }
.start .lead { max-width: 52ch; margin: 0; }
.start .pbar { width: min(420px, 100%); }
.start .sword { font-family: var(--display); font-weight: 900; font-size: clamp(56px, 12vw, 104px); line-height: 1; margin: 12px 0; overflow-wrap: anywhere; }
.start .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.start h2 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 4vw, 36px); margin: 8px 0 0; }
.start-films { width: min(860px, calc(100vw - 32px)); justify-content: center; flex-wrap: wrap; overflow: visible; text-align: left; }
/* okuma hızı sorusu: satır altyazı süresince görünür */
.flash { transition: opacity .25s; }
.flash.gone { opacity: 0; pointer-events: none; }

/* sahne görseli (yatay backdrop) ve başlık logosu */
.hero .backdrop img.bg, .detail .top img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.detail .top img.bg, .detail .top .bg-fallback { border-radius: 10px 10px 0 0; }
.bg-fallback { position: absolute; inset: 0; background: linear-gradient(135deg, var(--raised), var(--bg)); }
.title-logo { margin: 0; line-height: 0; }
.title-logo img { display: block; max-width: min(460px, 85%); max-height: clamp(90px, 16vw, 170px); object-fit: contain; object-position: left bottom; filter: drop-shadow(0 2px 14px rgba(0,0,0,.55)); }
.detail .title-logo img { max-width: min(360px, 70%); max-height: clamp(70px, 12vw, 120px); }
[dir="rtl"] .title-logo img { object-position: right bottom; }

/* arayüz dili seçici: üst menüde, girişsiz ekranlarda sağ üst köşede */
.lang-pick { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); cursor: pointer; }
.lang-pick svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
.lang-pick select { appearance: none; -webkit-appearance: none; background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; font-size: 13px; color: var(--ink); max-width: 130px; cursor: pointer; }
.lang-pick select option { background: var(--surface); color: var(--ink); }
.lang-pick:hover select, .lang-pick select:focus { border-color: var(--muted); }
.lang-pick.corner { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); inset-inline-end: var(--gutter); z-index: 5; }
.lang-pick.corner select { max-width: none; }   /* "Português (Brasil)" sığsın */
.welcome, .profiles { position: relative; }
/* Tanıtım arka planı: en çok izlenen filmlerin afişleri, yalnızca süs; yazı üstte okunur kalsın diye koyu bir örtü */
.wbackdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; user-select: none; }
.wbackdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(14 13 18 / .55) 0%, rgb(14 13 18 / .82) 45%, var(--bg) 100%); }
.wmosaic { position: absolute; inset: -10% -8%; display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; align-content: start; transform: rotate(-7deg); opacity: .34; filter: saturate(.85); }
.wmosaic img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; display: block; background: var(--surface); }
.wmosaic img:nth-child(8n+2), .wmosaic img:nth-child(8n+6) { margin-top: 34px; }
.welcome > :not(.wbackdrop):not(.corner), .profiles.login > :not(.wbackdrop):not(.corner):not(.login-back) { position: relative; z-index: 1; }
.login-back { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); inset-inline-start: 16px; z-index: 2; }
.profiles.login .login-box { background: rgb(26 24 32 / .82); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.profiles.login { place-content: start center; }
@media (max-width: 700px) { .wmosaic { grid-template-columns: repeat(4, 1fr); gap: 8px; inset: -6% -14%; opacity: .45; } .wmosaic img:nth-child(8n+2), .wmosaic img:nth-child(8n+6) { margin-top: 0; } .wmosaic img:nth-child(4n+2) { margin-top: 26px; } }
@media (prefers-reduced-motion: no-preference) { .wmosaic { animation: wfade .8s ease both; } @keyframes wfade { from { opacity: 0; } } }

/* dar ekranda yalnızca simge; liste simgenin üstündeki görünmez seçiciden açılır (iki seçici: dil ve film dili) */
.nav .lang-pick { position: relative; }
@media (max-width: 1180px) {
  .nav .lang-pick { padding: 6px; }
  .nav .lang-pick select { position: absolute; inset: 0; width: 100%; max-width: none; opacity: 0; padding: 0; }
}
/* sonuç ekranında seviye atlama */
.level-up { margin: 0; padding: 10px 16px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--ink); font-weight: 700; }
/* derlem istatistiği: imza kelimeleri ve kartta sıklık */
.chip.sig { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tag.freq { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.tag.freq.rare { border-color: var(--accent); color: var(--accent); }   /* nadir kelime: öğrenmeye değer mi, bilerek seç */
.tag.new-meaning { background: var(--accent); color: var(--bg); }   /* kelime biliniyor, bu anlamı yeni (docs/MEANING_PROGRESS.md) */
/* dilbilgisi kalıpları (film detayı) */
.patterns { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.patterns li { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: baseline; }
.patterns li .muted { grid-column: 2; }
.patterns li small { grid-column: 3; grid-row: 1; color: var(--muted); }
.patterns li .pex { grid-column: 2; font-size: 13px; color: var(--muted); font-style: italic; }
.chip.col { border-style: dashed; }

.credit-list { list-style: none; padding: 0; display: grid; gap: 14px; max-width: 80ch; }
.credit-list li { display: grid; gap: 2px; }
.credit-list span { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.legal-page { max-width: 80ch; gap: 12px; line-height: 1.6; }
.legal-page h1 { margin-bottom: 0; }
/* arama motoru sayfaları (lib/seo.js): JS'siz, /<dil>/ ve /<dil>/film/<id> */
.seo-page { max-width: 80ch; gap: 14px; line-height: 1.55; margin: 0 auto; }
.seo-page h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1; }
.seo-page h2 { font-family: var(--display); text-transform: uppercase; font-size: 24px; margin: 18px 0 0; }
.seo-page .lead { font-size: 18px; margin: 0; }
.seo-page p { margin: 0; }
.seo-steps { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.seo-stores { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-popular { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.seo-popular a { display: grid; gap: 6px; color: inherit; text-decoration: none; font-size: 13px; line-height: 1.3; }
.seo-popular img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; background: var(--card, #1b1a21); }
@media (max-width: 760px) { .seo-popular { grid-template-columns: repeat(4, 1fr); gap: 8px; } .seo-popular span { display: none; } }
.seo-films { list-style: none; margin: 0; padding: 0; columns: 2 220px; column-gap: 24px; }
.seo-films li { break-inside: avoid; padding: 3px 0; }
.seo-words { margin: 0; padding-inline-start: 28px; display: grid; gap: 6px; }
.seo-words b { margin-inline-end: 6px; }
.seo-langs { font-size: 14px; margin-top: 16px; }
/* film dil incelemesi (filmHtml) */
.seo-page:has(.seo-hero) { max-width: 920px; }
.seo-page .d-A1 { background: #5fd08e; } .seo-page .d-A2 { background: #9fd65a; } .seo-page .d-B1 { background: #f2b72b; }
.seo-page .d-B2 { background: #f28f3b; } .seo-page .d-C1 { background: #ff7a59; } .seo-page .d-C2 { background: #e0569b; } .seo-page .d-other { background: #4a4556; }
.seo-kicker { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.seo-hero { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start; padding: 8px 0 12px; }
.seo-hero:not(:has(.seo-poster)) { grid-template-columns: 1fr; }
.seo-poster { margin: 0; }
.seo-poster img { width: 180px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; display: block; background: var(--surface); }
.seo-poster figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.35; }
.seo-page .seo-hero h1 { font-size: clamp(44px, 8vw, 80px); text-transform: uppercase; margin-top: 6px; }
.seo-hero h1 small { display: block; font-size: .42em; color: var(--muted); text-transform: none; margin-top: 6px; }
.seo-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.seo-facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.seo-page .seo-credits { margin-top: 12px; font-size: 15px; color: var(--muted); }
.seo-credits b { color: var(--ink); }
.seo-verdict { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.seo-badge { width: 112px; height: 112px; border-radius: 50%; display: grid; place-content: center; text-align: center; color: var(--accent-ink); background: var(--accent); }
.seo-badge.lv-easy, .seo-lvchip.lv-easy { background: #9fd65a; } .seo-badge.lv-hard, .seo-lvchip.lv-hard { background: #f28f3b; }
.seo-badge b { font: 900 48px/1 var(--display); }
.seo-badge span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.seo-page .seo-lead { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.seo-sec { display: grid; gap: 14px; padding-top: 30px; margin-top: 14px; border-top: 1px solid var(--line); }
.seo-page .seo-sec h2 { font-size: clamp(26px, 4vw, 36px); margin: 0; }
.seo-sec h3 { margin: 12px 0 0; font-size: 17px; }
.seo-meters { display: grid; gap: 14px; margin: 0; }
.seo-meter { display: grid; grid-template-columns: 170px 1fr 170px; gap: 16px; align-items: center; }
.seo-meter dt { font-weight: 700; }
.seo-meter dd { margin: 0; }
.seo-meter .val { font-size: 14px; color: var(--muted); text-align: end; }
.seo-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; position: relative; }
.seo-scale i { height: 10px; border-radius: 3px; background: var(--raised); }
.seo-scale i.on { background: var(--accent); }
.seo-scale .avg, .seo-legend i { position: absolute; top: -5px; inset-inline-start: calc(50% - 1px); width: 2px; height: 20px; background: var(--ink); border-radius: 1px; }
.seo-legend { font-size: 13px; color: var(--muted); display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px; }
.seo-legend i { position: static; flex: none; height: 14px; margin-top: 3px; }
.seo-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.seo-note { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.seo-note h3 { margin: 0 0 4px; font-size: 15px; }
.seo-note p { color: var(--muted); font-size: 15px; }
.seo-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; margin-inline-start: 6px; vertical-align: 2px; }
.seo-page .seo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.seo-chips span { font-size: 14px; background: var(--raised); border-radius: 6px; padding: 2px 8px; color: var(--ink); }
.seo-dist { display: flex; height: 34px; border-radius: 8px; overflow: hidden; }
.seo-dist span { display: block; min-width: 3px; }
.seo-dist-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.seo-dist-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; }
.seo-dist-key b { color: var(--ink); }
.seo-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; counter-reset: w; }
.seo-top li { display: grid; gap: 4px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; position: relative; counter-increment: w; }
.seo-top li::before { content: counter(w); position: absolute; top: 14px; inset-inline-end: 16px; font: 900 40px/1 var(--display); color: var(--raised); }
.seo-top b { font: 900 34px/1 var(--display); }
/* Sağdan sola sayfada İngilizce kelime (dir=ltr) sola yaslanıp sıra numarasının altında kalıyordu */
:root[dir="rtl"] .seo-top b[dir="ltr"] { text-align: right; }
.seo-top .meta, .seo-pats .meta { font-size: 13px; color: var(--muted); }
.seo-top .mean { font-weight: 700; margin-top: 6px; }
.seo-top i, .seo-pats i { color: var(--muted); font-size: 15px; }
.seo-plan { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 4vw, 36px); display: grid; gap: 14px; }
.seo-lv { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seo-lv input { position: absolute; opacity: 0; pointer-events: none; }
.seo-lv label { cursor: pointer; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: 15px; }
.seo-lv input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.seo-lv input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.seo-lv-out { display: none; flex-basis: 100%; margin-top: 10px; }
#lv-A1:checked ~ .out-A1, #lv-A2:checked ~ .out-A2, #lv-B1:checked ~ .out-B1, #lv-B2:checked ~ .out-B2 { display: block; }
.seo-page .seo-claim { font-size: clamp(30px, 5.4vw, 50px); text-transform: none; line-height: 1.08; margin: 0 0 18px; }
.seo-claim b { color: var(--muted); unicode-bidi: isolate; }   /* sağdan sola dilde "%88 → %95" sırası bozulmasın */
.seo-claim b.to { color: var(--accent); }
.seo-gain { position: relative; height: 16px; border-radius: 8px; background: var(--raised); display: flex; margin-top: 22px; }
.seo-gain .now { background: var(--muted); opacity: .55; border-start-start-radius: 8px; border-end-start-radius: 8px; }
.seo-gain .add { background: var(--accent); border-start-end-radius: 8px; border-end-end-radius: 8px; }
.seo-gain .mark { position: absolute; top: -6px; width: 2px; height: 28px; background: var(--ink); }
.seo-gain .mark::after { content: attr(data-label); position: absolute; top: -20px; inset-inline-start: -14px; font-size: 12px; color: var(--muted); font-style: normal; }
.seo-lv-out p { margin-top: 16px; color: var(--muted); }
.seo-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }
.seo-page .seo-how { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.seo-pats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.seo-pats li { display: grid; grid-template-columns: minmax(200px, 280px) 120px 1fr; gap: 4px 16px; align-items: baseline; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.seo-pats i { grid-column: 1 / -1; }
.seo-similar { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.seo-page .seo-similar a { display: grid; gap: 4px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.seo-similar span { font-size: 14px; color: var(--muted); }
.seo-lvchip { display: inline-block; font-size: 12px; font-weight: 700; font-style: normal; border-radius: 4px; padding: 0 6px; color: var(--accent-ink); background: var(--accent); margin-inline-end: 6px; }
.seo-sec details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.seo-sec summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.seo-sec details p { color: var(--muted); margin-top: 8px; }
@media (max-width: 720px) {
  .seo-hero { grid-template-columns: 1fr; }
  .seo-poster { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: end; }
  .seo-poster img { width: 110px; }
  .seo-verdict { grid-template-columns: 1fr; }
  .seo-badge { width: 88px; height: 88px; }
  .seo-badge b { font-size: 38px; }
  .seo-meter { grid-template-columns: 1fr; gap: 6px; }
  .seo-meter .val { text-align: start; }
  .seo-pats li { grid-template-columns: 1fr; }
}
.seo-page a:not(.btn):not(.logo) { color: var(--ink); }
.legal-page h2 { font-size: 18px; margin: 14px 0 0; }
.legal-page p, .legal-page ul { margin: 0; }
.legal-page .table-wrap { overflow-x: auto; }
.legal-page table { border-collapse: collapse; font-size: 14px; min-width: 560px; }
.legal-page th, .legal-page td { border: 1px solid var(--line); padding: 6px 8px; text-align: start; vertical-align: top; }
.shell .legal-page { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }

/* ---------- dokunmatik ekran: yerel uygulama hissi ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
a, button, input, select, textarea, label, summary { touch-action: manipulation; }   /* çift dokunuşta büyütme yok */
/* arayüz parçaları uzun basınca seçilmez; içerik metni (satırlar, kartlar) seçilebilir kalır */
.nav, .tabbar, .btn, .opt, .card, .chip, .train-bar, .logo { -webkit-user-select: none; user-select: none; }
/* uygulama kabuğunda bağlantı ve görsele uzun basınca Safari menüsü açılmaz */
.app a, .app img { -webkit-touch-callout: none; }
.app img { -webkit-user-drag: none; }
@media (hover: none) {
  .btn, .opt, .tabbar a, .tabbar button { transition: transform .12s ease; }
  .btn:active, .opt:active, .tabbar a:active, .tabbar button:active { transform: scale(.96); }
}
/* iOS 16 px'ten küçük yazılı alana odaklanınca sayfayı büyütür */
@media (max-width: 760px), (pointer: coarse) {
  input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]), select, textarea { font-size: 16px !important; }
  .typeform input { font-size: 22px !important; }
  .ptile.new input { font-size: 17px !important; }
}

/* ---------- alt sekme çubuğu (dar ekran) ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  .nav .links { display: none; }
  .tabbar { display: flex; position: fixed; inset: auto 0 0; z-index: 40; padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); background: rgba(14,13,18,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  #nav[hidden] ~ .tabbar { display: none; }
  .tabbar a, .tabbar button { position: relative; flex: 1; min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 0; background: none; border: 0; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 700; line-height: 1.1; cursor: pointer; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar .active { color: var(--accent); }
  .tabbar .dot { position: absolute; top: 2px; inset-inline-start: calc(50% + 6px); margin: 0; }
  body:has(#nav:not([hidden])) { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  body:has(#nav:not([hidden])) .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- ayarlar (#/settings; uygulama kabuğunda yerel profilden açılır) ---------- */
.settings-page { max-width: 560px; padding-top: calc(24px + env(safe-area-inset-top, 0px)); }
.settings-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.settings-head h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 40px; line-height: 1; margin: 0; }
.settings-page .field { display: grid; gap: 6px; margin: 18px 0; color: var(--muted); font-size: 14px; }
.settings-page .field select { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--ink); }
.shell .credits-page, .shell .help-page { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
.admin-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0; }
.poster-review { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-top: 16px; }
.pr-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.pr-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; background: var(--line); }
.pr-card figcaption { padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.pr-card .pr-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.pr-card.safe { border-color: var(--accent); }

/* Arapça harfler birbirine bağlanır: harf aralığı (etiket, üst başlık) kelimeyi koparır */
html[dir="rtl"] *:not([lang="en"]):not([lang="en"] *) { letter-spacing: 0 !important; }
/* Eş aralıklı yazı tipi Arapça harflere eşit genişlik verip kelimeyi dağıtır: Arapçada etiketler gövde yazı tipiyle */
html[dir="rtl"] { --mono: var(--body); }

/* ---------- müzik (#/music): koyu, kapak odaklı; üstte tonlu degrade, hızlı seçim kutuları, raflar, sıralı liste ---------- */
.music { padding-bottom: 40px; }
.mu-head { padding: 28px var(--gutter) 18px; background: linear-gradient(180deg, hsl(var(--h) 45% 26%) 0%, hsl(var(--h) 35% 14% / .6) 55%, transparent 100%); }
.mu-head h1 { font-family: var(--display); font-size: clamp(30px, 4vw, 44px); margin: 8px 0 14px; letter-spacing: .01em; }
.mu-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; }
.mu-chips::-webkit-scrollbar { display: none; }
.mu-chips a { flex: none; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.08); text-decoration: none; font-size: 14px; font-weight: 700; }
.mu-chips a:hover { background: rgba(255,255,255,.14); }
.mu-chips a.on { background: var(--ink); color: var(--bg); }
.mu-quicks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mu-quick { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0 12px 0 0; border: 0; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.08); text-align: left; cursor: pointer; transition: background .15s; }
.mu-quick:hover { background: rgba(255,255,255,.16); }
.mu-qt { display: flex; flex-direction: column; min-width: 0; }
.mu-qt b, .mu-qt span, .mu-card b, .mu-card > span, .mu-artist b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }
.mu-qt .muted { font-size: 13px; }
.mu-cover { position: relative; flex: none; display: grid; place-items: center; overflow: hidden; aspect-ratio: 1; width: 100%; border-radius: 6px;
  background: linear-gradient(135deg, hsl(var(--h) 55% 38%), hsl(calc(var(--h) + 40) 50% 18%)); box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.mu-cover > span { font-family: var(--display); font-size: 42px; color: hsl(var(--h) 40% 88% / .8); }
.mu-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mu-cover.sm { width: 64px; border-radius: 0; box-shadow: none; }
.mu-cover.sm > span { font-size: 26px; }
.mu-cover.xs { width: 44px; border-radius: 4px; box-shadow: none; }
.mu-cover.xs > span { font-size: 18px; }
.mu-cover.round { border-radius: 50%; }
.mu-cover.lg { width: clamp(120px, 18vw, 200px); }
.mu-play { position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); box-shadow: 0 8px 18px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.mu-play::before { content: ""; position: absolute; left: 17px; top: 14px; border-left: 13px solid var(--accent-ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.mu-quick .mu-play { width: 34px; height: 34px; right: 10px; bottom: auto; top: 50%; transform: translateY(-50%) scale(.9); }
.mu-quick .mu-play::before { left: 13px; top: 10px; border-left-width: 11px; border-top-width: 7px; border-bottom-width: 7px; }
.mu-quick:hover .mu-play, .mu-quick:focus-visible .mu-play { opacity: 1; transform: translateY(-50%) scale(1); }
.mu-card:hover .mu-play, .mu-card:focus-visible .mu-play { opacity: 1; transform: none; }
.mu-notice { margin: 4px var(--gutter) 8px; }
.mu-row { margin-top: 22px; }
.mu-row h2 { display: flex; align-items: baseline; gap: 10px; font-size: 22px; margin: 0 var(--gutter) 4px; }
.mu-row h2 small { font-weight: 400; color: var(--muted); font-size: 13px; }
.mu-more { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.mu-more:hover { color: var(--ink); text-decoration: underline; }
.mu-track { gap: 6px; padding-top: 18px; padding-bottom: 8px; }
.mu-hit { display: flex; flex-direction: column; gap: 4px; width: 100%; min-width: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.mu-hit b, .mu-hit > span.muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }
.mu-hit > span.muted { font-size: 13px; }
.mu-card, .mu-artist { flex: none; display: flex; flex-direction: column; gap: 4px; width: clamp(140px, 15vw, 180px); padding: 12px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; text-decoration: none; scroll-snap-align: start; transition: background .15s; }
.mu-card:hover, .mu-artist:hover { background: rgba(255,255,255,.07); }
.mu-art { position: relative; display: block; margin-bottom: 8px; }
.mu-card > span.muted, .mu-artist > span.muted { font-size: 13px; }
.mu-soon { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.65); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.mu-artist .mu-cover { margin-bottom: 8px; }
.mu-chart-wrap { padding: 10px var(--gutter) 0; }
.mu-chart { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; }
.mu-chart.mu-full { grid-template-columns: 1fr; padding: 8px var(--gutter); max-width: 1000px; }
.mu-line { width: 100%; display: grid; grid-template-columns: 28px 44px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px; border: 0; border-radius: 6px; background: transparent; text-align: left; cursor: pointer; }
.mu-line:hover { background: rgba(255,255,255,.07); }
.mu-n { font-family: var(--mono); color: var(--muted); text-align: right; }
.mu-m, .mu-d { font-size: 13px; white-space: nowrap; }
.mu-d { font-family: var(--mono); min-width: 3.5ch; text-align: right; }
.mu-hero { display: flex; align-items: flex-end; gap: 24px; padding-top: 48px; padding-bottom: 28px; }
.mu-hero h1 { font-size: clamp(40px, 7vw, 84px); margin: 4px 0; line-height: 1; }
.mu-hero p { margin: 0; }
.mu-credit { margin: 32px var(--gutter) 0; font-size: 12px; }
@media (max-width: 900px) {
  .mu-quicks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mu-chart { grid-template-columns: 1fr; }
  .mu-m { display: none; }
}
@media (max-width: 560px) {
  .mu-row h2 { flex-wrap: wrap; row-gap: 0; font-size: 20px; }
  .mu-row h2 small { flex-basis: 100%; order: 3; }
  .mu-quick .mu-cover.sm { width: 52px; }
  .mu-quick { gap: 8px; font-size: 13px; }
  .mu-quick .mu-play { display: none; }
  .mu-hero { flex-direction: column; align-items: flex-start; }
  .mu-card, .mu-artist { width: 140px; padding: 8px; }
  .mu-line { grid-template-columns: 22px 44px minmax(0, 1fr) auto; }
  .mu-d { display: none; }
}
@media (hover: none) { .mu-play { display: none; } }
.mu-listen { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 2px; font-size: 11px; font-weight: 700; }
.mu-listen a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.mu-listen a:hover { color: var(--ink); text-decoration: underline; }
.mu-listen svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mu-listen.big { gap: 8px; margin-top: 14px; font-size: 14px; }
.mu-listen.big a { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: var(--ink); }
.mu-listen.big a:hover { background: rgba(255,255,255,.16); text-decoration: none; }
.mu-listen.big svg { width: 15px; height: 15px; }
.mu-chart li { display: flex; align-items: center; gap: 10px; }
.mu-chart li .mu-line { flex: 1; min-width: 0; }
.mu-listen.row { flex-direction: column; align-items: flex-end; gap: 1px; margin: 0; }
@media (max-width: 560px) { .mu-chart li { flex-wrap: wrap; gap: 0; } .mu-listen.row { flex-direction: row; flex-basis: 100%; padding: 0 8px 8px 92px; margin-top: -6px; } }

/* ---------- kitaplar (#/books): müzik sayfasının iskeleti, 2:3 kapaklar; kapak yoksa tipografik kapak ---------- */
.bk-cover { container-type: inline-size; position: relative; flex: none; display: block; overflow: hidden; aspect-ratio: 2 / 3; width: 100%; border-radius: 3px 6px 6px 3px;
  background: linear-gradient(160deg, hsl(var(--h) 42% 30%), hsl(calc(var(--h) + 30) 48% 15%)); box-shadow: 0 10px 26px rgba(0,0,0,.5), inset 4px 0 0 rgba(0,0,0,.25); }
.bk-type { position: absolute; inset: 6%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10% 3%;
  border: 1px solid hsl(var(--h) 60% 82% / .45); text-align: center; color: hsl(var(--h) 30% 95%); font-family: Georgia, "Times New Roman", serif; }
.bk-type i { width: 34%; height: 1px; background: hsl(var(--h) 60% 82% / .7); }
.bk-cover .bk-type b { font-size: clamp(10px, 10.5cqi, 22px); line-height: 1.2; overflow-wrap: break-word; hyphens: auto; max-width: 100%; }
.bk-type small { font-style: italic; font-size: clamp(9px, 7.5cqi, 15px); opacity: .85; }
.bk-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--raised); }
.bk-cover.lg { width: clamp(130px, 16vw, 210px); }

.bk-card { flex: none; display: flex; flex-direction: column; gap: 4px; width: clamp(130px, 13vw, 165px); padding: 10px; border-radius: 8px; scroll-snap-align: start; transition: background .15s; }
.bk-card:hover { background: rgba(255,255,255,.07); }
.bk-hit { display: flex; flex-direction: column; gap: 3px; width: 100%; min-width: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.bk-hit > b, .bk-hit > span.muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }
.bk-hit > span.muted { font-size: 13px; }
.bk-art { position: relative; display: block; margin-bottom: 8px; }
.bk-google { align-self: flex-start; font-size: 11px; font-weight: 700; color: var(--muted); text-decoration: none; }
.bk-google:hover { color: var(--ink); text-decoration: underline; }
.bk-google.btn { font-size: 15px; color: var(--ink); }
.bk-google.btn:hover { text-decoration: none; }
.bk-hero { display: flex; align-items: flex-end; gap: clamp(18px, 3vw, 36px); margin-top: 8px; padding: clamp(16px, 2.5vw, 28px); border-radius: 12px;
  background: linear-gradient(120deg, hsl(var(--h) 40% 22% / .85), hsl(var(--h) 30% 12% / .35)); }
.bk-hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 4vw, 52px); line-height: 1.05; margin: 6px 0 4px; letter-spacing: 0; }
.bk-by { margin: 0 0 6px; font-size: 18px; font-style: italic; font-family: Georgia, "Times New Roman", serif; }
.bk-hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.bk-author .mu-cover > span { font-family: Georgia, "Times New Roman", serif; font-size: 36px; }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px; padding: 8px var(--gutter); }
.bk-grid .bk-card { width: auto; }
@media (max-width: 560px) {
  .bk-hero { flex-direction: column; align-items: flex-start; }
  .bk-card { width: 128px; padding: 6px; }
  .bk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bk-author .mu-cover img, .mu-hero .mu-cover.round img { object-position: center 20%; filter: saturate(.9); }
.bk-photo-credit { margin: 6px 0 0; font-size: 12px; }
.bk-photo-credit a { color: inherit; }

/* ---------- katkı ekranı (metni olmayan başlığa dosya gönderme) ---------- */
.contrib, .contrib-done { padding: 28px clamp(18px, 4vw, 40px) 30px; text-align: center; }
.contrib-art { width: 150px; height: 112px; margin: 0 auto 6px; display: block; }
.contrib-poster { width: 110px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; margin: 0 auto 10px; display: block; box-shadow: 0 6px 20px rgb(0 0 0 / .35); }
.contrib-synopsis { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.contrib-art .wing { fill: color-mix(in srgb, var(--ink) 85%, transparent); transform-origin: 80px 46px; animation: flap 1.1s ease-in-out infinite; }
.contrib-art .coin { fill: var(--accent); stroke: color-mix(in srgb, var(--accent) 60%, #000); stroke-width: 2; animation: flee 3.2s ease-in-out infinite; }
.contrib-art .coin-c { font: 700 26px var(--body); fill: var(--accent-ink); animation: flee 3.2s ease-in-out infinite; }
.contrib-art .motion { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; opacity: .6; }
.contrib-art .wallet { fill: none; stroke: var(--muted); stroke-width: 2.5; }
.contrib-art .wallet-flap { stroke: var(--muted); stroke-width: 2; }
.contrib-art .moth { fill: none; stroke: var(--muted); stroke-width: 1.5; }
circle.moth { fill: var(--muted); }
.contrib-art .lens { fill: color-mix(in srgb, var(--accent) 18%, transparent); stroke: var(--accent); stroke-width: 5; }
.contrib-art .handle { stroke: var(--accent); stroke-width: 9; stroke-linecap: round; }
.contrib-art .eye { fill: var(--ink); animation: look 2.4s ease-in-out infinite; }
@keyframes flap { 50% { transform: scaleY(.55); } }
@keyframes flee { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes look { 0%, 100% { transform: translateX(0); } 40%, 60% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .contrib-art * { animation: none !important; } }
.contrib h2, .contrib-done h2 { font-family: var(--display); font-size: clamp(28px, 4vw, 38px); text-transform: uppercase; margin: 6px 0 4px; }
.contrib-joke { font-size: 17px; margin: 0 0 4px; }
.contrib-lang { max-width: 440px; margin: 6px auto 0; font-weight: 600; }
.contrib-request { margin: 14px auto 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contrib-request p { max-width: 420px; margin: 0 auto 10px; }
.contrib-form { display: grid; gap: 14px; max-width: 460px; margin: 20px auto 0; text-align: left; }
.contrib-file { display: grid; gap: 4px; padding: 16px; border: 1.5px dashed var(--line); border-radius: 10px; cursor: pointer; text-align: center; }
.contrib-file:hover, .contrib-file:focus-within { border-color: var(--accent); }
.contrib-file input { width: 100%; color: var(--muted); }
.contrib-file span { font-weight: 700; }
.contrib-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.contrib-form legend { font-weight: 700; margin-bottom: 4px; }
.contrib-form .radio, .contrib-form .check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.contrib-form .radio input, .contrib-form .check input { margin-top: 3px; accent-color: var(--accent); }
.contrib-note { display: grid; gap: 4px; font-size: 14px; }
.contrib-note textarea { background: var(--raised); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; resize: vertical; }
.contrib-form .actions, .contrib-done .actions { display: flex; justify-content: center; margin-top: 4px; }
.contrib-done p { max-width: 420px; margin: 0 auto 16px; }

/* açılış (public/splash.js). Aşamalar: 1) uygulamanın yerel açılış görseli (C) 2) web: aynı C aynı yerde, arayüz hazırlanırken üstünden ışık geçer
   3) arayüz hazır olunca C açılır ve "Cinelang" yazılır (Cine altın, lang beyaz), sonra perde açılır. Vurgu, parıltı, hale ve ses yok
   (taslaklar: docs/drafts/splash-vurgu-parilti, docs/drafts/splash-ruzgar-girdap). Aşağıdaki süreler 3. aşamanın başından. */
/* zemin uygulamaların yerel açılış ekranıyla (#0e0d12) aynı: yerelden web'e geçişte renk sıçramaz */
/* zaman iğneleri (ms): yazı açılır, arkadaki karanlığın açılması (baş/son; splash.js de okur). Ayar ekranı: /?splash=tune (public/splash-tune.js) */
.splash { --sp-open: 390ms; --sp-out: 1920ms; --sp-out-end: 2520ms;
  --fs: clamp(56px, 17vw, 148px); position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: var(--bg); overflow: hidden; transition: opacity calc(var(--sp-out-end) - var(--sp-out)) cubic-bezier(.4, 0, .2, 1); }
.splash[hidden] { display: none; }
/* önizleme (/?splash): uygulamaların yerel açılış ekranı, mobile/ios LaunchScreen ile aynı (146 pt logo) */
.splash-native { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: var(--bg); transition: opacity .3s ease-out; }
.splash-native img { width: 146px; }
.splash-native.gone { opacity: 0; }
.splash.out { opacity: 0; pointer-events: none; }
.splash.quick { transition: opacity .2s ease-out; }   /* web açılışı: arayüz hazır olunca kısa solma, bekleme yok */
html.splashing { overflow: hidden; }
/* perde arkasındaki sayfa: gizli ve hafif büyük bekler, perdeyle birlikte yerine oturur */
html.splashing #view { opacity: 0; transform: scale(1.04); }
html.splashing .nav, html.splashing .tabbar, html.splashing .site-footer { opacity: 0; }
html.splash-reveal #view { transition: opacity .7s ease, transform 1s cubic-bezier(.2, .7, .2, 1); transform-origin: 50% 30vh; }
html.splash-reveal .nav, html.splash-reveal .tabbar, html.splash-reveal .site-footer { transition: opacity .6s ease .25s; }

/* 2. aşama: C (yerel görselde 146 pt kutuda 132 pt yükseklik, tam ortada) ve üstünden geçen ışık */
.splash-c { position: absolute; left: 50%; top: 50%; height: 132px; aspect-ratio: 851 / 1640; transform: translate(-50%, -50%); fill: var(--accent); overflow: visible; }
.splash-c .sheen { animation: splash-sheen 1.3s cubic-bezier(.45, 0, .25, 1) .1s infinite; }
@keyframes splash-sheen { 0% { transform: translateX(0); } 70%, 100% { transform: translateX(2300px); } }
.splash.go .splash-c { visibility: hidden; }

/* 3. aşama: yazı. C, 2. aşamadaki C'nin yerinden ve boyundan (--dx, --dy, --s; splash.js ölçer) kendi yerine iner */
.splash-tv, .splash-word { position: relative; }
.splash-word { font: 900 var(--fs)/1 var(--display); letter-spacing: .02em; white-space: nowrap; color: var(--ink); visibility: hidden; }
.splash-word span { display: inline-block; }
.splash-word .a { color: var(--accent); }   /* Cine altın (C dahil), lang beyaz */
/* C yazı tipindeki harfle aynı ölçüde: ilerleme .49em, yükseklik .82em, taban çizgisinin .01em altına iner */
.splash-word svg.c { width: .49em; height: .82em; margin-right: .02em; vertical-align: -.01em; fill: var(--accent); position: relative; z-index: 1; }
.splash.go .splash-word { visibility: visible; }
.splash.go .splash-word .ine { animation: splash-write .45s cubic-bezier(.3, .7, .2, 1) calc(var(--sp-open) + 80ms) both; }
.splash.go .splash-word .b { animation: splash-write .45s cubic-bezier(.3, .7, .2, 1) calc(var(--sp-open) + 200ms) both; }
@keyframes splash-unfold { from { transform: translate(var(--dx, 0), var(--dy, 0)) scale(var(--s, 1)); } to { transform: none; } }
@keyframes splash-write { from { clip-path: inset(-20% 100% -20% 0); opacity: 0; transform: translateX(-.18em); } 40% { opacity: 1; } to { clip-path: inset(-20% -10% -20% 0); opacity: 1; transform: none; } }
.splash.go .splash-word { animation: splash-unfold .62s cubic-bezier(.2, .75, .15, 1) var(--sp-open) both; }
@media (prefers-reduced-motion: reduce) { .splash { display: none; } html.splashing #view, html.splashing .nav, html.splashing .tabbar, html.splashing .site-footer { opacity: 1; transform: none; } }

/* ---------- ülkeye özgü yaş işaretleri (public/app.js -> ratingMark) ---------- */
.adv-mark { display: inline-flex; }
.rm { display: inline-grid; place-items: center; height: 24px; font: 800 12px/1 var(--body); letter-spacing: .01em; }
.rm.tr { min-width: 24px; padding: 0 6px; border-radius: 12px; background: var(--c); color: #fff; }
.rm.tr[style*="#f2b72b"] { color: #17140c; }
.rm.us { padding: 0 6px; border-radius: 3px; background: #fff; color: #111; box-shadow: inset 0 0 0 1.5px #111, inset 0 0 0 2.5px #fff, inset 0 0 0 3.5px #111; }
.rm.us b { font-weight: 900; font-size: 11px; }
.rm.de { width: 26px; height: 26px; border-radius: 4px; background: var(--c); color: #fff; align-content: center; gap: 1px; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.65); }
.rm.de[style*="#fff"], .rm.de[style*="#f7d117"] { color: #111; }
.rm.de small { font-size: 6px; font-weight: 700; letter-spacing: .06em; }
.rm.de b { font-size: 13px; font-weight: 900; }

/* ---------- hero önizlemesi (Netflix tarzı): fareyle yaklaşma, karta gelince film değişimi ---------- */
.hero .backdrop img.bg { transition: transform 9s cubic-bezier(.2, .6, .2, 1); will-change: transform; }
/* Sahne görselinin önizlemesi (32 piksel): bulanıklık ekran genişliğiyle orantılı (bir piksel ~genişliğin 1/32'si, yarısı kadar
   bulanık), kenarlar içeri çekilmesin diye biraz büyütülür; görsel inince üstünü örter. */
.hero .backdrop .lqip { position: absolute; inset: 0; background: center 25% / cover no-repeat; filter: blur(1.5vw); transform: scale(1.08); }
.hero.previewing .backdrop img.bg { transform: scale(1.14) translate(-1.5%, -1%); }
.hero .backdrop, .hero .hero-body, .hero .hero-poster { transition: opacity .25s ease; }
.hero.swapping .backdrop, .hero.swapping .hero-body, .hero.swapping .hero-poster { opacity: 0; }
.detail .top img.bg { animation: detail-drift 14s ease-out forwards; }
@keyframes detail-drift { from { transform: scale(1); } to { transform: scale(1.1) translate(-1%, -.5%); } }
@media (prefers-reduced-motion: reduce) { .detail .top img.bg { animation: none; } }
.hero .eyebrow:empty { display: none; }

/* oturum ekranı: filmin sahne görseli arka planda (public/app.js -> renderTrain) */
.train-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.train-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .27; filter: blur(26px) saturate(1.1) brightness(.7); transform: scale(1.12); }
.train-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(14, 13, 18, .55) 60%, rgba(14, 13, 18, .35) 100%); }
.train-bg.win img { opacity: .75; filter: blur(2px) brightness(.85); transform: scale(1.04); animation: detail-drift 14s ease-out forwards; }
.train-bg.win::after { background: linear-gradient(0deg, var(--bg) 8%, rgba(14, 13, 18, .35) 55%, rgba(14, 13, 18, .6) 100%); }
.train.has-bg .train-bar { background: rgba(14, 13, 18, .6); backdrop-filter: blur(10px); }
.train.has-bg .train-body { position: relative; z-index: 1; }
.train-bar .t.logo-t { display: inline-flex; align-items: center; max-width: 160px; }
.train-bar .t.logo-t img { height: 26px; width: auto; max-width: 100%; object-fit: contain; display: block; }
@media (prefers-reduced-motion: reduce) { .train-bg.win img { animation: none; } }
/* Detay penceresi: nerede izlenir (platform logoları) */
.watch-on { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 4px 0 12px; }
.watch-list { display: flex; flex-wrap: wrap; gap: 8px; }
.watch-list a { display: block; border-radius: 8px; }
.watch-list .wp { width: 34px; height: 34px; border-radius: 8px; }
.watch-list .pf { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--raised); font-size: 11px; font-weight: 700; }
.watch-list a:hover .wp, .watch-list a:focus-visible .wp { outline: 2px solid var(--ink); outline-offset: 2px; }
.watch-on small { font-size: 11px; }
/* İzledikten sonra "ne kadar anladın?" ve film detayındaki film zorluğu / sıkı mod notları */
.understood { display: grid; gap: 10px; margin: 12px 0; }
.understood .radio { display: flex; align-items: center; gap: 10px; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.understood .radio:has(input:checked) { border-color: var(--accent); }
.understood .radio input { accent-color: var(--accent); }
.notice.pace, .notice.strict { font-size: 13px; }
.notice.strict .btn { margin-left: 8px; }
/* Sanal altyazı (hızlı tekrar): altyazı gibi akan satırlar, altta aranan kelimelerin anlamları */
.vs { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; width: 100%; }
.vs-screen { aspect-ratio: 16 / 7; background: #000; border-radius: 12px; display: flex; align-items: flex-end; justify-content: center; padding: 0 5% 6%; box-sizing: border-box; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.vs-line { margin: 0; color: #fff; font-size: clamp(17px, 2.6vw, 26px); line-height: 1.35; text-align: center; text-shadow: 0 2px 4px #000; unicode-bidi: plaintext; }
.vs-screen.blank .vs-line { visibility: hidden; }
.vs-line mark { background: none; color: var(--accent, #f5c518); text-decoration: underline; text-underline-offset: 3px; }
.vs .hwrow { justify-content: center; }
.vs .ask { margin: 10px 0 0; }
.vs-opts { margin: 8px 0 12px; }
.vs-opts .opt[disabled] { cursor: default; }
.vs-meta { display: flex; justify-content: space-between; gap: 12px; }
.vs-src { color: inherit; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* hesap menüsü (sağ üst), yardım ve premium sayfaları */
.acct { position: relative; }
button.avatar { border: 0; color: inherit; font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
button.avatar:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; z-index: 60; display: grid; padding: 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.acct-menu[hidden] { display: none; }
.acct-menu .acct-who { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.acct-menu a, .acct-menu button { display: block; width: 100%; text-align: start; padding: 9px 10px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; text-decoration: none; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover, .acct-menu a:focus-visible, .acct-menu button:focus-visible { background: color-mix(in srgb, var(--ink) 10%, transparent); outline: 0; }
.acct-menu button[data-logout] { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; color: var(--muted); }
.faq { display: grid; gap: 8px; margin: 18px 0 8px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; }
.faq details > div { padding-bottom: 6px; }
.premium-page > * { margin-block: 0; }
.shell .premium-page { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
.premium-page > h2.sub { margin: 22px 0 -6px; scroll-margin-top: 84px; }
.pm-hero { display: grid; gap: 10px; justify-items: start; padding: 28px clamp(18px, 4vw, 36px); border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%), var(--surface); }
.pm-hero h1 { margin: 0; font-family: var(--display); font-size: clamp(30px, 5vw, 48px); line-height: 1.02; letter-spacing: .01em; max-width: 20ch; }
.pm-hero > p { margin: 0; max-width: 62ch; }
.pm-status { font-weight: 700; }
.pm-you { padding: 10px 14px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 7%, transparent); max-width: 62ch; }
.pm-you b { color: var(--accent); }
.premium-page .premium-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pm-perks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.pm-perk { display: grid; gap: 4px; align-content: start; padding: 0 16px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.pm-perk .linklike { justify-self: start; margin-top: 4px; color: var(--accent); text-decoration: none; }
.pm-mock { margin: 0 -16px 10px; min-height: 96px; padding: 16px; display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: 8px; background: color-mix(in srgb, var(--accent) 6%, var(--raised)); border-bottom: 1px solid var(--line); }
.pm-mock .chip { pointer-events: none; }
.pm-arrow { color: var(--muted); }
.pm-tile { display: grid; place-items: center; width: 26px; height: 38px; border-radius: 4px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--good); background: color-mix(in srgb, var(--ink) 12%, transparent); }
.pm-bar { flex: 1 0 100%; display: flex; align-items: center; gap: 10px; }
.pm-bar i { flex: 1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--w), color-mix(in srgb, var(--ink) 12%, transparent) var(--w)); }
.pm-bar b { min-width: 44px; text-align: end; }
.pm-stack { position: relative; width: 66px; height: 52px; }
.pm-stack i { position: absolute; top: 0; width: 34px; height: 50px; border-radius: 4px; border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 16%, var(--surface)); }
.pm-stack i:nth-child(2) { left: 14px; transform: rotate(4deg); background: color-mix(in srgb, var(--ink) 22%, var(--surface)); }
.pm-stack i:nth-child(3) { left: 28px; transform: rotate(9deg); background: color-mix(in srgb, var(--accent) 40%, var(--surface)); }
.pm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-tags span { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); }
.pm-goal { font-family: var(--display); font-size: 30px; display: flex; gap: 8px; align-items: center; }
.pm-goal span { color: var(--muted); }
.pm-goal b { color: var(--accent); }
.pm-tap { position: relative; padding-top: 26px; }
.pm-tap u { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.pm-tap em { position: absolute; top: 0; left: 8px; font-style: normal; font-size: 12px; white-space: nowrap; padding: 2px 8px; border-radius: 6px; background: var(--ink); color: var(--bg); }
.pm-compare { width: 100%; border-collapse: collapse; }
.pm-compare th, .pm-compare td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.pm-compare th[scope="row"] { text-align: start; font-weight: 400; }
.pm-compare thead th { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pm-compare .pm-col { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.pm-compare thead .pm-col { color: var(--accent); }
.pm-compare thead .pm-note { display: block; margin-top: 2px; font-size: 10px; letter-spacing: .02em; text-transform: none; color: var(--muted); font-weight: 400; }
.pm-yes { color: var(--good); font-weight: 700; }
.pm-no { color: var(--muted); }
.pm-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.pm-streak { margin: 14px 0 0; padding: 12px 14px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 10px; }
.pm-steps li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.pm-steps b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.steps { margin: 8px 0 14px; padding-inline-start: 22px; display: grid; gap: 4px; }
/* Egzersiz döşemeleri: dokununca doğrudan oturum */
/* Egzersiz (#/practice): üst şerit, sıradaki gösterim bileti, iki sütun döşeme; basılan "tok" düğmeler */
.practice-page { max-width: 720px; }
.pr-top { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.pr-top h1 { margin: 0; }
.pr-meters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pr-meter { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; cursor: default; }
.pr-meter.streak { color: var(--bad); }
.pr-meter.streak.off { color: var(--muted); filter: grayscale(1); }
.pr-meter.freeze { color: #8fd0ff; }
.pr-meter.goal { padding-inline-start: 3px; }
.pr-meter.goal .daily-ring circle { stroke-width: 4; }
.pr-meter.goal .daily-ring .pct { display: none; }
.pr-meter.goal.done { color: var(--good); }
/* bilet: yanlarda delik oyuklar, kesik çizgi; sarı kenar */
.pr-hero { position: relative; display: grid; gap: 10px; padding: 18px 22px 20px; border-radius: 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 60%); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); overflow: hidden; }
.pr-hero::before, .pr-hero::after { content: ""; position: absolute; top: 36px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.pr-hero::before { inset-inline-start: -12px; }
.pr-hero::after { inset-inline-end: -12px; }
.pr-hero.done { border-color: color-mix(in srgb, var(--good) 50%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--good) 12%, var(--surface)), var(--surface) 60%); }
.pr-hero.done::before, .pr-hero.done::after { border-color: color-mix(in srgb, var(--good) 50%, transparent); }
.pr-kicker { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; color: var(--accent); padding-bottom: 10px; border-bottom: 2px dashed color-mix(in srgb, var(--accent) 30%, transparent); }
.pr-hero.done .pr-kicker { color: var(--good); border-color: color-mix(in srgb, var(--good) 30%, transparent); }
.pr-hero-main { display: flex; align-items: center; gap: 14px; }
.pr-hero-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(26px, 6vw, 34px); line-height: .95; letter-spacing: .01em; overflow-wrap: anywhere; }
.pr-reel { display: flex; gap: 4px; }
.pr-reel i { flex: 1; height: 8px; border-radius: 2px; background: var(--line); }
.pr-reel i.on { background: var(--accent); }
.pr-hero.done .pr-reel i.on { background: var(--good); }
.pr-hero-note { margin: 0; color: var(--muted); }
.pr-go { width: 100%; padding: 14px 18px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; box-shadow: 0 5px 0 color-mix(in srgb, var(--accent) 55%, #000); transition: transform .08s, box-shadow .08s, filter .15s; }
.pr-go:hover { filter: brightness(1.06); }
.pr-go:active { transform: translateY(4px); box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 55%, #000); }
.pr-goal-set { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 10px 2px 16px; font-size: 13px; color: var(--muted); }
.pr-goal-set select { padding: 4px 8px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line); }
.pr-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.pr-tiles > div:empty { display: none; }
.pr-tiles > div { display: grid; }
.pr-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: start; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: inherit; font: inherit; cursor: pointer; box-shadow: 0 4px 0 var(--raised); transition: border-color .15s, transform .08s, box-shadow .08s; min-width: 0; }
.pr-tile:hover, .pr-tile:focus-visible { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.pr-tile:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--raised); }
.pr-tile.locked { opacity: .6; }
.pr-tile.locked .pr-icon { filter: grayscale(1); }
.pr-badge { position: absolute; top: 10px; inset-inline-end: 10px; min-width: 24px; padding: 1px 8px; border-radius: 999px; background: var(--bad); color: var(--accent-ink); font-size: 12px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.pr-badge.lock { background: var(--raised); font-size: 11px; }
.pr-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-size: 20px; font-weight: 700; }
.pr-icon.big { width: 52px; height: 52px; border-radius: 14px; font-size: 26px; }
.pr-hero.done .pr-icon.big { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.pr-text { display: grid; gap: 2px; min-width: 0; }
.pr-tile .pr-text b { font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.pr-tiles > .pr-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* tek kalan döşeme satırı doldurur */
@media (max-width: 360px) { .pr-tiles { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .pr-go, .pr-tile { transition: none; } .pr-go:active, .pr-tile:active { transform: none; } }
.pr-stats-wrap { margin-top: 24px; }
.pr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pr-stats div { background: var(--surface); padding: 14px 16px; }
.pr-stats b { display: block; font-family: var(--display); font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pr-stats span { font-size: 13px; color: var(--muted); }
.pr-stats-wrap > p { margin-top: 8px; }

/* Kalibrasyon (profil): tahmin, beyan ve ölçüm film film */
.cal { margin-top: 24px; }
.cal-summary { margin: 4px 0 12px; }
.cal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cal-row { display: flex; gap: 12px; align-items: center; background: var(--surface); padding: 10px 14px; }
.cal-poster { flex: none; width: 36px; height: 54px; border-radius: 4px; overflow: hidden; background: hsl(var(--h) 30% 40%); }
.cal-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cal-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cal-vals { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.cal-vals b { font-variant-numeric: tabular-nums; }
.cal-mark { flex: none; font-size: 13px; font-weight: 600; }
.cal-mark.hit { color: #2e8b57; }
.cal-mark.miss { color: var(--muted); }

/* Film sonrası yoklama (public/postfilm.js) */
.postfilm .pf-body { display: grid; gap: 12px; padding: 24px; }
.postfilm .pf-word { font-size: 32px; margin: 0; }
.postfilm .pf-kpis b { font-size: 26px; }
.postfilm .actions { display: flex; gap: 8px; justify-content: flex-end; }

/* Sahne şeridi ve dizi bölüm ilerlemesi (public/detailmap.js) */
.scene-strip { display: flex; gap: 1px; height: 28px; margin-top: 6px; overflow: hidden; touch-action: pan-y; }
.scene-strip.dense { gap: 0; }
.scene-strip button { flex: 1 1 0; min-width: 0; padding: 0; border: 0; border-radius: 1px; background: color-mix(in srgb, var(--accent) calc(var(--d) * 100%), var(--line)); cursor: pointer; }
.scene-strip button.on, .scene-strip button:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.series-sum { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 18px 0 8px; }
.detail .pack-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 14px 0 0; }
.series-sum p { margin: 0; }
.episodes .ep .ep-left { white-space: nowrap; }
/* Dar ekranda "kalan kelime · ders" bölüm adının altına iner (yan yana adı kelime kelime sıkıştırıyordu) */
@media (max-width: 640px) { .episodes .ep .ep-left { grid-column: 2 / 4; grid-row: 2; white-space: normal; margin-top: -6px; } .episodes .ep:not(.season0) .epn, .episodes .ep .match { grid-row: 1 / span 2; } }
.episodes .ep.studied .epn sup { color: var(--good); margin-inline-start: 2px; }
/* İzleme listesi (public/watchlist.js): Egzersiz satırı, karttaki zil, detaydaki düğme */
.wl-row .wl-empty { margin: 0 var(--gutter) 18px; }
.wl-item { position: relative; flex: 0 0 auto; display: flex; }
.wl-item .card { flex: 0 0 clamp(132px, 15vw, 200px); }
.wl-bell { position: absolute; left: 8px; bottom: 8px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.6); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.wl-bell svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.wl-bell.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.wl-bell.on svg { fill: currentColor; }
.wl-bell:hover, .wl-bell:focus-visible { border-color: var(--accent); }
.wl-item.ready .card .badge.ready::before { content: "✓ "; }
.btn.wl-on { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.wcard .wl-hint { margin: 0; font-size: 13px; color: var(--accent); }
.chip .wl-n { color: var(--accent); font-family: var(--mono); margin-left: 6px; }
.result .wl-celebrate { margin: 4px 0 0; color: var(--good); font-weight: 600; }

/* Merak soruları (tahmin, beklenmedik anlam, sahne), cliffhanger, av listesi, dönem notu, eşdizim sınavı */
.guess-note { margin: 0; font-size: 14px; color: var(--muted); border-left: 3px solid var(--bad); padding-left: 10px; }
.guess-note.ok { border-color: var(--good); color: var(--good); }
.era { margin: 0; font-size: 14px; color: var(--muted); font-style: italic; }
.teaser { margin-top: 18px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 14px; display: grid; gap: 4px; }
.teaser .lbl { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.teaser b { font-family: var(--display); font-size: 26px; }
.teaser p { margin: 0; }
.hunt-box { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.hunt-box h3 { margin: 0 0 4px; }
.hunt-box .chips { margin-top: 8px; }
.hunt-chip { cursor: pointer; }
.hunt-chip.caught { border-color: var(--good); background: color-mix(in srgb, var(--good) 14%, var(--surface)); }
.hunt-chip.caught > span::before { content: "✓ "; color: var(--good); }
.hunt-list { list-style: none; padding: 0; margin: 4px 0 10px; display: grid; gap: 4px; }
.hunt-at { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.opts.two { grid-template-columns: 1fr; }
.quiz.colloc .opt span { font-size: 20px; }
.result .curious { margin-top: 4px; }

/* Misafir filigranı: deneme dersi olmayan filmlerde afişin üstünde "Giriş yap" */
.card.gated .poster { filter: brightness(.72) saturate(.85); }
.gate-mark { position: absolute; inset-inline: 0; top: 38%; margin-inline: auto; width: max-content; max-width: 90%; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgb(14 13 18 / .72); border: 1px solid rgb(255 255 255 / .28); color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; backdrop-filter: blur(4px); }
.gate-mark svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
#detail .top .gate-mark { top: 16px; inset-inline: auto 56px; margin: 0; z-index: 3; }

/* Giriş: mesaj şeridi, şifre gücü, doğrulama paneli */
.login-msg:not(:empty) { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--raised); line-height: 1.35; }
.login-msg.err:not(:empty) { border-color: var(--bad, #e5484d); background: rgb(229 72 77 / .14); color: #ffb4b6; }
.login-msg.ok:not(:empty) { border-color: var(--good, #3fb97a); background: rgb(63 185 122 / .14); color: #b6efd0; }
.pw-meter { display: flex; align-items: center; gap: 10px; min-height: 18px; }
.pw-bars { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.pw-bars i { height: 5px; border-radius: 3px; background: var(--line); }
.pw-meter[data-level="weak"] .pw-bars i:nth-child(1) { background: #e5484d; }
.pw-meter[data-level="medium"] .pw-bars i:nth-child(-n+2) { background: #f2b72b; }
.pw-meter[data-level="strong"] .pw-bars i { background: #3fb97a; }
.pw-label { font-size: 12px; min-width: 52px; text-align: end; color: var(--muted); }
.pw-hint { margin: -6px 0 0; }
.pw-match { margin: -6px 0 0; min-height: 1em; }
.pw-match.ok { color: #3fb97a; } .pw-match.err { color: #ff8b8e; }
.verify-sent { display: grid; gap: 10px; justify-items: center; text-align: center; }
.verify-sent h2 { margin: 0; font-family: var(--display); font-size: 22px; }
.verify-sent p { margin: 0; }
.verify-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgb(63 185 122 / .18); color: #3fb97a; font-size: 24px; font-weight: 700; }

/* Mobil web "Uygulamada aç" şeridi (public/openapp.js); kabukta ve masaüstünde hiç eklenmez */
.appbar { display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px 8px; background: var(--surface); border-bottom: 1px solid var(--line); }
.appbar-x { background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; padding: 6px 8px; cursor: pointer; }
.appbar-icon { border-radius: 10px; flex: none; }
.appbar-text { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 13px; }
.appbar-text strong { font-size: 15px; }
.appbar-text span { color: var(--muted); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.appbar-go { flex: none; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 14px; }
.seo-openapp { display: none; }
/* Dokunmatikte tek düğme: "Uygulamada aç" doğru mağazaya götürür (Android'e App Store düğmesi gösterilmez) */
@media (hover: none) and (pointer: coarse) { .seo-openapp { display: inline-flex; } .seo-stores .seo-store { display: none; } }
/* Kitaplık (public/library.js): Egzersiz sekmesinde izlenen/çalışılan yapımlar, okunan kitaplar rafı gibi liste */
.lib { margin-top: 24px; }
.lib h2 small { margin-inline-start: 10px; font-size: 13px; font-weight: 400; color: var(--muted); }
.lib-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lib-item { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.lib-main { width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 12px; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
div.lib-main { cursor: default; }
.lib-main:hover, .lib-main:focus-visible { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.lib-main .poster { width: 56px; aspect-ratio: 2 / 3; border-radius: 4px; container-type: inline-size; }
.lib-main .poster .ptitle, .lib-main .poster .pgenre { display: none; }
.lib-main .poster .initial { font-size: 70cqw; }
.lib-info { display: grid; gap: 5px; min-width: 0; }
.lib-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }
.lib-meta, .lib-nums { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.lib-nums b { font-weight: 700; color: var(--good); }
.lib-nums b.mid { color: var(--accent); }
.lib-nums b.low { color: var(--bad); }
.lib-bar { display: block; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.lib-bar i { display: block; height: 100%; background: var(--good); border-radius: 3px; }
.lib-bar.mid i { background: var(--accent); }
.lib-bar.low i { background: var(--bad); }
.lib-bar.none { opacity: .4; }
.lib-chev { color: var(--muted); font-size: 22px; line-height: 1; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; transition: transform .2s ease; }
.lib-item.open .lib-chev { transform: rotate(180deg); }
.lib-item.gone { opacity: .65; }
.lib-eps { padding: 0 12px 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.lib-eps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; width: 100%; }
.lib-ep { width: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr) 80px 48px 13rem; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg, transparent); color: inherit; font: inherit; font-size: 14px; text-align: start; cursor: pointer; }
button.lib-ep:hover, button.lib-ep:focus-visible { border-color: var(--accent); }
.lib-ep.gone { cursor: default; opacity: .6; }
.lib-epc { font-family: var(--mono); color: var(--muted); font-size: 12px; }
.lib-ept { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }
.lib-ep .match { font-weight: 700; color: var(--good); font-size: 13px; }
.lib-ep .match.mid { color: var(--accent); }
.lib-ep .match.low { color: var(--bad); }
.lib-epw { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-note { margin-top: 10px; }
.lib-empty-box { border: 1px dashed var(--line); border-radius: 10px; padding: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.lib-empty-box p { margin: 0; }
@media (max-width: 560px) {
  .lib-ep { grid-template-columns: 58px minmax(0, 1fr) 44px; }
  .lib-ep .lib-bar { display: none; }
  .lib-epw { grid-column: 2 / -1; }
}
.sig .meter sup.ast { font-size: .4em; vertical-align: super; margin-inline-start: 2px; opacity: .8; }

/* BackScene (test alanı, public/backscene.js): döşemeler bağlantı */
.bs-page a.pr-tile { text-decoration: none; }
.bs-page .eyebrow a { color: inherit; }
.bs-page h1.bs-own { text-transform: none; }
.bs-stat { margin: 8px 0; }
/* BackScene Analyzer (public/backscene-analyzer.js) */
.az-points { padding-left: 1.2em; display: grid; gap: 6px; }
.az-badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 4px; }
.az-badges > div { display: grid; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-width: 150px; }
.az-badges b { font-family: var(--display); font-size: 28px; line-height: 1.1; }
.az-map-wrap { overflow-x: auto; position: relative; }
.az-map { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; }
.az-map tbody th { position: sticky; left: 0; z-index: 1; background: var(--bg); white-space: normal; min-width: 7.5em; max-width: 11em; line-height: 1.25; }
.az-map th { text-align: left; font-weight: 600; padding: 6px 8px; white-space: nowrap; }
.az-map thead th { color: var(--muted); font-weight: 500; text-align: center; }
.az-map td { padding: 6px 8px; vertical-align: middle; min-width: 56px; }
.az-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: transparent; }
.az-n { display: block; text-align: center; color: var(--muted); font-size: 11px; margin-top: 2px; }
.az-seg.strong, .az-dot.strong { background: var(--good); }
.az-seg.weak, .az-dot.weak { background: var(--bad); }
.az-seg.unclear, .az-dot.unclear { background: var(--accent); }
.az-seg.unmeasured, .az-dot.unmeasured { background: color-mix(in srgb, var(--muted) 45%, transparent); }
.az-seg.soon, .az-dot.soon { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--muted) 70%, transparent) 0 2px, transparent 2px 5px); }
.az-legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); }
.az-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--line); }
.az-uses { list-style: none; padding: 0; display: grid; gap: 10px; }
.az-use { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); display: grid; gap: 4px; }
.az-diag { color: var(--bad); font-size: 14px; }
.az-areas { display: flex; flex-wrap: wrap; gap: 8px; }
.az-progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 6px 0 16px; }
.az-progress i { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.az-fb { padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); }
.az-fb.ok { border-color: var(--good); }
.az-fb.bad { border-color: var(--bad); }
.az-fb p { margin: 6px 0 0; }
.blank.az-ok { color: var(--good); border-color: var(--good); }
.blank.az-bad { color: var(--good); border-color: var(--good); }
.az-src a { color: inherit; }
.az-ctx { font-style: italic; margin-bottom: .25rem; }
.az-ctx + .q { margin-top: 0; }
.az-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; margin-right: 6px; }
.az-ico circle[r=".6"], .az-ico circle[r=".8"] { fill: currentColor; }
.btn .az-ico:last-child:not(:first-child) { margin: 0 0 0 6px; }
.az-points { list-style: none; padding-left: 0; }
.az-points .az-ico { color: var(--accent); }
.az-fb.ok b .az-ico { color: var(--good); }
.az-fb.bad b .az-ico { color: var(--bad); }
.az-diag .az-ico { width: 16px; height: 16px; }

.az-dk.gone { display: none; }
.az-partial { display: flex; align-items: center; color: var(--muted); }
@media (max-width: 600px) { .az-map { min-width: 460px; font-size: 13px; } .az-map td { min-width: 44px; padding: 6px 4px; } .az-map-wrap { mask-image: linear-gradient(to right, #000 88%, transparent); } }
.bs-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bs-ico.sm { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.pr-tile.locked .bs-ico { opacity: .7; }
/* CMLB rozeti (kart ve ana sayfanın büyük alanı): herkes için aynı dil puanı */
.card .badge.cmlb { background: rgba(0,0,0,.72); color: var(--accent); font-weight: 700; }
.card .badge.cmlb small { font-size: 10px; font-weight: 600; color: #fff; opacity: 1; margin-right: 2px; letter-spacing: .04em; }
.cmlb-meta { font-family: var(--mono); font-weight: 700; color: var(--accent); }
.cmlb-meta b { font-weight: 500; color: inherit; opacity: .85; margin-right: 2px; }
.cmlb-note { font-size: 13px; color: var(--muted); }
.cmlb-note b { font-family: var(--mono); color: var(--accent); margin-right: 6px; }

/* ---------- mobil vitrin (public/app.js -> heroCard): dikey afiş kartı, özet yok; arkada sahnenin renkli önizlemesi ---------- */
.hero.hero-m { display: block; min-height: 0; padding: 76px var(--gutter) 8px; }
.hero-m .backdrop .lqip { filter: blur(40px) saturate(1.4) brightness(.6); transform: scale(1.4); }
.hero-m .backdrop .poster img { filter: blur(40px) saturate(1.3) brightness(.5); transform: scale(1.4); }
.hero-m .backdrop::after { background: linear-gradient(0deg, var(--bg) 8%, rgba(14,13,18,.35) 70%, rgba(14,13,18,.6) 100%); }
.hcard { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 4 / 5; max-height: 60vh; margin-inline: auto; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 18px 50px rgba(0,0,0,.55); background: var(--surface); }
.hcard > .poster, .hcard-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hcard .actions .btn.ghost { background: rgba(20,19,26,.78); }
.hcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,8,12,.95) 0%, rgba(8,8,12,.7) 30%, rgba(8,8,12,0) 58%); pointer-events: none; }
.hcard .badge.cmlb { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; background: rgba(0,0,0,.72); color: var(--accent); font-weight: 700; }
.hcard .badge.cmlb small { font-size: 10px; font-weight: 600; color: #fff; margin-inline-end: 2px; letter-spacing: .04em; }
.hcard-body { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; display: grid; justify-items: center; gap: 6px; padding: 16px 14px 14px; text-align: center; }
.hero-m .hcard-body h1 { font-size: clamp(30px, 9vw, 44px); line-height: .9; }
.hero-m .hcard-body .title-logo { width: 100%; }
.hero-m .hcard-body .title-logo img { max-height: 84px; max-width: 78%; margin-inline: auto; object-position: center bottom; }
.hcard-tags { margin: 2px 0 0; font-size: 13px; color: #e8e6ee; }
.hcard-goal { margin: 0; font-size: 12px; color: var(--accent); font-weight: 600; }
.hcard .actions { display: flex; gap: 8px; width: 100%; margin-top: 6px; }
.hcard .actions .btn { flex: 1 1 0; min-width: 0; padding-inline: 8px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcard .actions .btn.primary { flex-grow: 1.35; }

/* ---------- günlük hedef: film şeridi (public/app.js -> dailyStrip, dailyReel) ---------- */
.daily-strip { display: grid; gap: 9px; padding: 12px 14px 13px; color: var(--ink); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface)); }
.daily-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.daily-title { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.daily-check { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-inline-end: 6px; border-radius: 50%; background: var(--good); color: #0b0b0f; font-size: 12px; vertical-align: 1px; }
.daily-strip .daily-meta { font-size: 13px; }
.reel { --hole: rgba(255,255,255,.16); position: relative; display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; padding: 9px 5px; border-radius: 4px; background: #0b0a0e; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.reel::before, .reel::after { content: ""; position: absolute; inset-inline: 5px; height: 4px; background: repeating-linear-gradient(90deg, var(--hole) 0 5px, transparent 5px 10px); border-radius: 1px; }
.reel::before { top: 2.5px; }
.reel::after { bottom: 2.5px; }
.reel i { position: relative; height: 16px; border-radius: 2px; background: #22212a; overflow: hidden; }
.reel i.on, .reel i b { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 85%, #fff), var(--accent)); }
.reel i b { position: absolute; inset-block: 0; inset-inline-start: 0; display: block; }
@media (prefers-reduced-motion: no-preference) { .reel i.on { animation: reel-in .35s ease-out both; } }
@keyframes reel-in { from { opacity: .3; } }
/* Telefonda şerit vitrin kartının üstünde (heroCard); satırlardaki kopyası gizli */
.hero-m .daily-strip { margin: 0 0 10px; }
@media (max-width: 760px) { .rows > .daily-strip { display: none; } }
@media (min-width: 761px) {
  .rows > .daily-strip { grid-template-columns: 1fr minmax(260px, 440px); align-items: center; column-gap: 28px; }
  .rows > .daily-strip .daily-top { justify-content: flex-start; gap: 6px 18px; }
}
.result .daily-strip { min-width: min(320px, 100%); }
/* Afişe düşen kart: afişin kendi yazısıyla çakışmasın diye yazılar görselin altında, düz zeminde */
.hcard.on-poster { aspect-ratio: auto; max-height: none; display: flex; flex-direction: column; }
.hcard.on-poster > .hcard-img, .hcard.on-poster > .poster { position: relative; inset: auto; aspect-ratio: 1; height: auto; flex: none; }
.hcard.on-poster::after { display: none; }
.hcard.on-poster .hcard-body { position: relative; inset: auto; margin-top: -56px; padding-top: 44px; background: linear-gradient(180deg, transparent, var(--surface) 52px); }

/* ---------- Egzersiz (public/app.js -> renderPractice): raf, gösterim yolu, geçmiş ---------- */
.pr2 { margin-inline: auto; width: 100%; }
.pr2 .daily-strip { margin: 0; }
.pr2 .pr-goal-set { margin: 8px 2px 22px; }
.pr2 h2.sub { margin: 0 0 12px; }
/* Kaldığın filmler rafı */
.pshelf { margin-bottom: 26px; }
.pshelf-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: calc(-1 * var(--gutter, 16px)); padding-inline: var(--gutter, 16px); scroll-padding-inline: var(--gutter, 16px); scrollbar-width: none; }
.pshelf-track::-webkit-scrollbar { display: none; }
.pshelf-card { flex: 0 0 128px; scroll-snap-align: start; display: grid; gap: 6px; align-content: start; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.pshelf-art { position: relative; display: grid; place-items: center; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: hsl(var(--h, 200) 30% 22%); border: 1px solid var(--line); font-family: var(--display); font-size: 44px; font-weight: 900; color: rgba(255,255,255,.5); }
.pshelf-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pshelf-play { position: absolute; inset-inline-end: 8px; bottom: 8px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink, #111); box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 50%, #000); }
.pshelf-play svg { width: 18px; height: 18px; margin-inline-start: 2px; }
.pshelf-bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pshelf-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.pshelf-card b { font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pshelf-card small { font-size: 12px; color: var(--muted); }
.pshelf-card:hover .pshelf-art, .pshelf-card:focus-visible .pshelf-art { border-color: var(--accent); }
.pshelf-card.empty { flex-basis: 100%; grid-template-columns: 72px 1fr; column-gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.pshelf-card.empty .pshelf-art { grid-row: span 2; aspect-ratio: 1; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 0; }
.pshelf-card.empty .pshelf-art svg { width: 38px; height: 38px; }
/* Gösterim yolu: zikzak düğümler, makara biçiminde */
.ppath { margin-bottom: 30px; }
.ppath-list { list-style: none; margin: 0; padding: 6px 0 0; display: grid; gap: 16px; justify-items: center; }
.pnode { --step: min(52px, 12vw); position: relative; display: grid; justify-items: center; gap: 6px; transform: translateX(calc(var(--x) * var(--step))); max-width: 240px; text-align: center; }
[dir="rtl"] .pnode { transform: translateX(calc(var(--x) * var(--step) * -1)); }
.pbtn { --c: var(--accent); position: relative; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; color: #15131b; background: radial-gradient(circle at 50% 50%, var(--c) 0 58%, color-mix(in srgb, var(--c) 82%, #000) 59% 100%); box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 45%, #000); transition: transform .08s, box-shadow .08s, filter .15s; }
/* makara delikleri: halkada altı oyuk */
.pbtn::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: repeating-conic-gradient(from 15deg, rgba(0,0,0,.28) 0 14deg, transparent 14deg 60deg); -webkit-mask: radial-gradient(circle, transparent 0 62%, #000 63% 90%, transparent 91%); mask: radial-gradient(circle, transparent 0 62%, #000 63% 90%, transparent 91%); }
.pbtn svg { position: relative; width: 30px; height: 30px; }
.pbtn:hover { filter: brightness(1.07); }
.pbtn:active { transform: translateY(5px); box-shadow: 0 1px 0 color-mix(in srgb, var(--c) 45%, #000); }
.pbtn:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.pnode.now .pbtn { width: 86px; height: 86px; }
.pnode.now .pbtn svg { width: 40px; height: 40px; }
.pnode.now .pbtn::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); animation: pnode-pulse 1.8s ease-out infinite; }
@keyframes pnode-pulse { from { transform: scale(.94); opacity: 1; } to { transform: scale(1.12); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pnode.now .pbtn::after { animation: none; } .pbtn { transition: none; } .pbtn:active { transform: none; } }
.pnode.soft .pbtn { --c: #3a3844; color: var(--muted); }
.pnode.locked .pbtn { --c: #2c2b33; color: #8a8794; }
.pnode.soft .pbtn::before, .pnode.locked .pbtn::before { background: repeating-conic-gradient(from 15deg, rgba(255,255,255,.08) 0 14deg, transparent 14deg 60deg); }
.pcount { position: absolute; top: -4px; inset-inline-end: -6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; display: grid; place-items: center; background: var(--bad); color: #fff; font-size: 12px; font-weight: 800; border: 2px solid var(--bg); font-variant-numeric: tabular-nums; }
.pbubble { position: relative; padding: 7px 14px; border-radius: 10px; background: var(--ink); color: var(--bg); font-family: var(--display); font-weight: 900; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; animation: pnode-bob 2.2s ease-in-out infinite; }
.pbubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: var(--ink); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
@keyframes pnode-bob { 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .pbubble { animation: none; } }
.plabel { display: grid; gap: 1px; }
.plabel b { font-size: 14px; line-height: 1.25; }
.plabel small { font-size: 12px; line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pnode.soft .plabel b, .pnode.locked .plabel b { color: var(--muted); font-weight: 600; }
.pnode.now .plabel b { font-size: 16px; color: var(--accent); }
/* Geçmiş: 30 günlük film şeridi */
.phist { margin: 6px 0 22px; }
.phist > p { margin: -6px 0 10px; }
.phist-roll { --hole: rgba(255,255,255,.16); position: relative; display: grid; grid-template-columns: repeat(15, 1fr); gap: 3px; padding: 10px 5px; border-radius: 5px; background: #0b0a0e; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.phist-roll::before, .phist-roll::after { content: ""; position: absolute; inset-inline: 5px; height: 4px; background: repeating-linear-gradient(90deg, var(--hole) 0 5px, transparent 5px 10px); }
.phist-roll::before { top: 3px; } .phist-roll::after { bottom: 3px; }
.phist-roll i { aspect-ratio: 3 / 4; border-radius: 2px; background: #22212a; display: grid; place-items: center; font-size: 9px; font-style: normal; color: #8fd0ff; }
.phist-roll i.some { background: color-mix(in srgb, var(--accent) 45%, #22212a); }
.phist-roll i.full { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 85%, #fff), var(--accent)); }
.phist-roll i.frozen { background: color-mix(in srgb, #8fd0ff 22%, #22212a); }
.phist-roll i.today { outline: 2px solid var(--ink); outline-offset: 1px; }
@media (min-width: 761px) { .pr2 .ppath-list { padding-block: 10px; } .pnode { --step: 56px; } }

/* Egzersiz: denetim düzeltmeleri */
.pr-stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pcount { top: auto; bottom: -2px; }
.plabel, .pshelf-card small, .pshelf-card b { unicode-bidi: plaintext; }
.plabel b { font-size: 15px; }
.plabel small, .pshelf-card small { font-size: 13px; color: color-mix(in srgb, var(--muted) 70%, var(--ink)); }
.pr2 .pr-goal-set { margin: 14px 2px 22px; }
@media (min-width: 1100px) {
  .pr2 { max-width: 1080px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: start; }
  .pr2 > * { grid-column: 1; min-width: 0; }
  .pr2 > .pr-top { grid-column: 1 / -1; }
  .pr2 > .ppath { grid-column: 2; grid-row: 2 / span 8; }
}
.pr2 .pr-goal-set { justify-content: flex-start; margin: 4px 2px 26px; }
/* iki sütunda raf kenara taşmaz (mobildeki tam genişlik taşması yan sütuna giriyordu) */
@media (min-width: 1100px) { .pr2 .pshelf-track { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; } }
@media (min-width: 1100px) { .pr2 > .wl-row > h2, .pr2 > .wl-row .wl-empty, .pr2 > .wl-row .track { margin-inline: 0; padding-inline: 0; } }

/* Gösterim makarası: kareler yan yana, film şeridi (delikli kenar); sıradaki kare tam satır */
.ppath-list { --hole: rgba(255,255,255,.17); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); column-gap: 0; row-gap: 12px; justify-items: stretch; padding: 0; }
.pnode { transform: none !important; max-width: none; display: block; }
.pframe { position: relative; display: block; width: 100%; height: 100%; padding: 19px 5px; border: 0; background: #0b0a0e; color: inherit; font: inherit; text-align: center; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 -1px 0 rgba(255,255,255,.05); }
.pframe::before, .pframe::after { content: ""; position: absolute; inset-inline: 3px; height: 7px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--hole) 0 9px, transparent 9px 17px); }
.pframe::before { top: 6px; } .pframe::after { bottom: 6px; }
.pcell { display: grid; justify-items: center; align-content: center; gap: 10px; height: 100%; min-height: 150px; padding: 16px 8px 14px; border-radius: 4px; background: linear-gradient(180deg, #24222c, #1a1920); }
.pframe:hover .pcell { background: linear-gradient(180deg, #2b2934, #1e1d25); }
.pframe:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.pframe:active .pbtn { transform: translateY(5px); box-shadow: 0 1px 0 color-mix(in srgb, var(--c) 45%, #000); }
.pbtn { cursor: inherit; }
.pnode.now { grid-column: 1 / -1; }
.pnode.now .pcell { grid-template-columns: auto 1fr; grid-template-areas: "btn lab" "btn bub"; justify-items: start; column-gap: 18px; row-gap: 8px; text-align: start; padding: 18px 18px 18px 22px; min-height: 0; background: radial-gradient(120% 140% at 0% 50%, color-mix(in srgb, var(--accent) 22%, #24222c), #1a1920 70%); }
[dir="rtl"] .pnode.now .pcell { padding: 18px 22px 18px 18px; }
.pnode.now .pbtn { grid-area: btn; }
.pnode.now .plabel { grid-area: lab; align-self: end; }
.pnode.now .pbubble { grid-area: bub; align-self: start; animation: none; padding: 6px 14px; background: var(--accent); color: #15131b; border-radius: 6px; }
.pnode.now .pbubble::after { display: none; }
.pnode.now .plabel small { -webkit-line-clamp: 3; }
.pnode.soft .pcell, .pnode.locked .pcell { background: linear-gradient(180deg, #1b1a21, #16151b); }
.pnode.now .pbtn::after { inset: -8px; }
@media (min-width: 761px) { .pr2 .ppath-list { padding-block: 0; } }

/* Profil simgeleri (lib/avatars.js): seçilmiş simge sabit renkli zemin üstünde; seçici radyo düğmeleri */
.pavatar.ico, .avatar.ico { background: linear-gradient(135deg, var(--a), var(--b)); color: #fff4dc; }
.pavatar.ico svg { width: 70%; height: 70%; }
.avatar.ico svg { width: 82%; height: 82%; stroke-width: 4; }
.pavatar.ico { box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.ptile .pavatar.ico svg { width: 66%; height: 66%; }
.avpick { border: 0; padding: 0; margin: 0 0 4px; min-width: 0; width: 100%; }
.avpick legend { width: 100%; text-align: center; padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 15px; color: var(--ink); }
.avgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 10px; }
.avopt { position: relative; display: block; cursor: pointer; }
.avopt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.avgrid .avopt .pavatar { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; font-size: 0; transition: transform .12s, filter .12s; filter: saturate(.75) brightness(.85); }
.avgrid .avopt:hover .pavatar { filter: none; }
.avgrid .avopt input:checked + .pavatar { filter: none; outline: 3px solid var(--accent); outline-offset: 3px; transform: scale(1.06); }
.avgrid .avopt input:checked + .pavatar::after { content: "✓"; position: absolute; top: -9px; right: -9px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #15131b; font: 900 12px/20px var(--body, system-ui); text-align: center; }
.avgrid .avopt input:focus-visible + .pavatar { outline: 3px solid var(--ink); outline-offset: 3px; }
.avgrid .pavatar { position: relative; }
.pavatar-edit { position: relative; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 10px; color: inherit; }
.pavatar-edit:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pavatar-edit .pedit { position: absolute; right: -6px; bottom: -6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #15131b; box-shadow: 0 0 0 3px var(--bg); }
.pavatar-edit .pedit svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
.avedit { margin: -6px 0 20px; padding: 16px; border-radius: 14px; background: var(--surface); max-width: 460px; }
@media (prefers-reduced-motion: reduce) { .avgrid .avopt .pavatar { transition: none; } .avgrid .avopt input:checked + .pavatar { transform: none; } }

/* ---------- ezber oturumu: seç + kontrol et, sonuç paneli, film şeridi (2026-11-25) ---------- */
/* İlerleme: delikli film şeridi; her cevapta dolu kısım yaylanarak uzar */
.pbar.reel { height: 16px; border-radius: 3px; background: #0f0e14; position: relative; box-shadow: inset 0 0 0 1px var(--line); }
.pbar.reel::before, .pbar.reel::after { content: ""; position: absolute; inset-inline: 3px; height: 3px; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 4px, transparent 4px 9px); }
.pbar.reel::before { top: 2px; } .pbar.reel::after { bottom: 2px; }
.pbar.reel i { min-width: 10px; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 55%, transparent); transition: width .45s cubic-bezier(.2,.9,.3,1.25); }
:root[dir="rtl"] .pbar.reel i { margin-inline-start: 0; }
.combo { padding: 3px 8px; border-radius: 999px; }
.combo.hot { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.combo.burst { animation: combo-burst .7s ease-out; }
@keyframes combo-burst { 0% { transform: scale(1); } 30% { transform: scale(1.5); box-shadow: 0 0 18px var(--accent); } 100% { transform: scale(1); } }

/* Oturum menüsü (⋯) */
.tmenu { position: relative; flex: none; }
.tm-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.tm-btn[aria-expanded="true"], .tm-btn:hover { color: var(--ink); border-color: var(--ink); }
.tm-pop { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 10; min-width: 240px; padding: 6px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0,0,0,.45); display: grid; }
.tm-pop[hidden] { display: none; }
.tm-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 8px;
  background: none; color: var(--ink); font: inherit; font-size: 15px; text-align: start; cursor: pointer; }
.tm-row:hover, .tm-row:focus-visible { background: var(--raised); outline: none; }
.sw { position: relative; flex: none; width: 36px; height: 22px; border-radius: 999px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s; }
.sw::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.sw.on { background: var(--accent); } .sw.on::after { background: var(--accent-ink); transform: translateX(14px); }
:root[dir="rtl"] .sw.on::after { transform: translateX(-14px); }

/* Şıklar: basılabilir görünen kalın alt kenar; seçili şık sarı çerçeve, cevaptan sonra yeşil/kırmızı */
.train .opt { border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 14px; min-height: 56px; padding: 12px 16px; transition: transform .08s, border-color .15s, background .15s; }
.train .opt:active:not(:disabled) { transform: translateY(2px); border-bottom-width: 2px; margin-bottom: 2px; }
.train .opt.sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, var(--surface)); color: var(--ink); }
.train .opt.sel kbd { color: var(--accent); border-color: var(--accent); }
.train .opt.right { animation: opt-pop .35s ease-out; }
.train .opt.wrong { animation: opt-shake .35s ease-out; }
@keyframes opt-pop { 50% { transform: scale(1.04); } }
@keyframes opt-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

/* Soru altı: önce "Kontrol et", cevaptan sonra alttan açılan sonuç paneli */
.qfoot { position: sticky; bottom: 0; z-index: 3; margin: 6px calc(-1 * var(--gutter)) 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid transparent; }
.qfoot-in { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.qbtn { width: 100%; justify-content: center; min-height: 52px; border-radius: 14px; border-bottom: 4px solid rgba(0,0,0,.28); }
.qbtn:disabled { background: var(--raised); color: var(--muted); border-bottom-color: rgba(0,0,0,.35); cursor: default; }
.qbtn.danger { background: var(--bad); color: #1a0d08; }
.qfoot:not(.shown) .feedback { display: none; }
.qfoot.shown { animation: sheet-up .25s ease-out; border-top-color: var(--line); }
.qfoot.ok { background: color-mix(in srgb, var(--good) 24%, var(--bg)); border-top-color: color-mix(in srgb, var(--good) 50%, transparent); }
.qfoot.no { background: color-mix(in srgb, var(--bad) 15%, var(--bg)); border-top-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.qfoot.soft { background: color-mix(in srgb, #5aa9ff 14%, var(--bg)); border-top-color: color-mix(in srgb, #5aa9ff 45%, transparent); }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
.qfoot .feedback { min-height: 0; display: grid; gap: 8px; }
.sheet-t { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.15; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sheet-b { font-weight: 400; color: var(--ink); line-height: 1.45; }
.sheet-combo { font-family: var(--mono); font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.teach { margin-top: 8px; display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--bg) 55%, transparent); }
.teach p { margin: 0; }
.teach b { font-size: 19px; }
.teach-ex span { font-style: italic; } .teach-ex small { display: block; color: var(--muted); font-size: 14px; }
:root[dir="rtl"] :is(.teach p, .teach-ex span, .teach-ex small, .sheet-b span) { unicode-bidi: plaintext; }
/* Telefonda şıklar ve panel başparmak bölgesinde */


/* Sonuç ekranı: XP önde, doğruluk küçük */
.res-kpis .k-xp b { color: var(--accent); font-size: 56px; }
.res-acc { margin-top: -10px; }

@media (prefers-reduced-motion: reduce) {
  .pbar.reel i, .train .opt { transition: none; }
  .combo.burst, .train .opt.right, .train .opt.wrong, .qfoot.shown { animation: none; }
}
/* Sayaç rakamı başlık boyunda (.kpis span küçük etiket kuralına girmesin) */
.kpis b span { font-size: inherit; color: inherit; }
/* Soru ekranı en az pencere boyu: Kontrol et / sonuç paneli her genişlikte ekranın altında, panel kenardan kenara */
.train-body:has(> .quiz) { padding-bottom: 0; min-height: calc(100dvh - 70px - env(safe-area-inset-top, 0px)); grid-template-rows: 1fr; }
.train-body > .quiz { display: flex; flex-direction: column; }
.train-body > .quiz > .qfoot { margin-top: auto; margin-inline: calc(50% - 50vw); padding-inline: max(var(--gutter), calc(50vw - 380px)); }
@media (max-width: 640px) { .train-body > .quiz > .opts { margin-top: auto; } }
@media (min-width: 641px) { .train-body > .quiz > .opts { margin-top: 12px; } }
.combo.idle { visibility: hidden; }
.train .opt.dontknow { grid-column: 1 / -1; }
@media not (hover: hover) { .train .opt kbd, .train .qbtn kbd { display: none; } }
.typeform.no input { border-color: var(--bad); color: var(--bad); text-decoration: line-through; }
.typeform.ok input { border-color: var(--good); color: var(--good); }
/* Sonuç ekranı (25 Kasım düzeltmesi): başlık en üstte, şerit açıklamalı, sahne görseli yazının arkasında koyu, düğmeler altta sabit */
.result > h2:first-child { margin-bottom: -6px; }
.result .eyebrow { font-size: 14px; }
.strip-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: -8px 0 0; font-size: 13px; color: color-mix(in srgb, var(--ink) 80%, transparent); }
.strip-legend span { display: inline-flex; align-items: center; gap: 6px; }
.strip-legend i { width: 18px; height: 9px; border-radius: 3px; display: inline-block; }
.strip-legend i.k { background: var(--ink); } .strip-legend i.f { background: var(--accent); } .strip-legend i.g { border: 1.5px solid var(--accent); }
.train-bg.win img { opacity: .6; filter: blur(3px) brightness(.6); }
.train-bg.win::after { background: linear-gradient(0deg, var(--bg) 22%, rgba(14, 13, 18, .72) 55%, rgba(14, 13, 18, .55) 100%); }
.result .daily-strip .muted, .result .daily-strip small { color: color-mix(in srgb, var(--ink) 78%, transparent); }
.res-foot { position: sticky; bottom: 0; z-index: 3; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(0deg, var(--bg) calc(100% - 22px), transparent); }
.res-foot .btn.accent { min-height: 50px; padding-inline: 28px; font-size: 17px; }
.train .opt.picked { border-color: #5aa9ff; background: color-mix(in srgb, #5aa9ff 12%, var(--surface)); color: var(--ink); }
.quiz .shape { color: var(--ink); font-size: 32px; letter-spacing: .25em; word-spacing: .6em; white-space: pre-wrap; }
.qfoot-in { max-width: calc(760px - 2 * var(--gutter)); }
:root[dir="rtl"] :is(.stage, .eyebrow, .scene .lbl) { letter-spacing: 0; font-size: 13px; }

/* Profil (2026-11-25): ortalı tek sütun, kart grupları (seviye, kelimeler, alışkanlık), düzenli ayar listesi */
.profile-page { max-width: 860px; margin-inline: auto; width: 100%; gap: 16px; }
.profile-page .profile-head { margin-bottom: 4px; flex-wrap: nowrap; }
.profile-page .pf-id { min-width: 0; flex: 1; }
.profile-page .pf-id h1 { overflow-wrap: anywhere; font-size: clamp(34px, 7vw, 56px); }
.profile-page .reach { margin: 0; }
.reach.empty, .reach.pending { display: grid; gap: 12px; justify-items: start; text-align: start; }
.reach.empty p, .reach.pending p { margin: 0; }
.reach.empty .btn { width: fit-content; color: var(--ink); background: transparent; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); opacity: 1; }
.reach.empty .btn:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.reach.pending { background: var(--surface); border-color: var(--line); min-height: 76px; align-content: center; }
.pf-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "level habit" "words words"; } .pf-level { grid-area: level; } .pf-habit { grid-area: habit; } .pf-words { grid-area: words; } .pf-words .pf-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pf-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.pf-card > p { margin: 0; }
.page .pf-h { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.pf-lv { display: flex; align-items: center; gap: 16px; }
.pf-lv > b { font-family: var(--display); font-size: 56px; line-height: .9; color: var(--accent); }
.pf-lv-bar { flex: 1; display: grid; gap: 8px; min-width: 0; font-size: 14px; }
.pf-lv-row { display: flex; justify-content: space-between; gap: 8px; }
.pf-bar { height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 12%, transparent); overflow: hidden; }
.pf-bar i { display: block; height: 100%; min-width: 6px; border-radius: inherit; background: var(--accent); }
.pf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.pf-stat { display: grid; gap: 4px; align-content: start; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); text-decoration: none; min-width: 0; }
.pf-stat b { font-family: var(--display); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pf-stat span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
a.pf-stat { background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
a.pf-stat span { color: var(--accent); font-weight: 600; }
a.pf-stat:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.pf-card .btn { width: fit-content; }
.pf-habit .daily-strip { margin: 0; }
.profile-page .cal { margin: 0; }
.pf-settings { gap: 0; padding-block: 8px; }
.pf-settings .pf-h { padding: 8px 0 10px; }
.pf-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; }
.pf-row.col { display: grid; justify-content: stretch; }
.pf-row.col > * { margin: 0; }
.pf-row.link:hover span:first-child { text-decoration: underline; }
.pf-row.link span:last-child { color: var(--muted); font-size: 20px; }
.pf-row select { max-width: 60%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--ink); font: inherit; font-size: 15px; }
.pf-row select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pf-habit .pf-stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.pf-row .content-settings { margin: 0; font-size: 15px; color: var(--ink); }
.pf-row .content-settings summary { width: auto; padding: 6px 0; }
.pf-row .content-settings p { font-size: 13px; color: var(--muted); }
.pf-row .field { display: grid; gap: 6px; }
@media (max-width: 420px) { .pf-stat b { font-size: 26px; } .pf-stats { gap: 8px; } .pf-stat { padding: 9px 10px; } }
.pf-stat b small { font-size: .55em; color: var(--muted); margin-inline-start: 2px; }
.pf-row .content-settings summary { list-style: none; display: flex; justify-content: space-between; align-items: center; }
.pf-row .content-settings summary::-webkit-details-marker { display: none; }
.pf-row .content-settings summary::after { content: "›"; color: var(--muted); font-size: 20px; transition: transform .15s; }
.pf-row .content-settings[open] summary::after { transform: rotate(90deg); }
.profile-page { padding-bottom: 32px; }

/* Gün planı (detay ve oturum sonu): her gün bir kare, o günün payı öğrenildikçe alttan dolar */
.dplan { display: grid; gap: 10px; margin: 4px 0 2px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.plan-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 14px; }
.plan-head b { font-size: 15px; }
.plan-btns { display: flex; gap: 14px; font-size: 13px; }
.plan-days { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.plan-days .pd { width: 28px; display: grid; gap: 3px; justify-items: center; }
.plan-days .pd i { position: relative; width: 28px; height: 34px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 9%, transparent); overflow: hidden; }
.plan-days .pd i::after { content: ""; position: absolute; inset: auto 0 0; height: calc(var(--f) * 100%); background: var(--accent); }
.plan-days .pd.full i::after { background: var(--good); }
.plan-days .pd.today { width: auto; min-width: 28px; }
.plan-days .pd.today span { white-space: nowrap; }
.plan-days .pd.missed i { background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--bad, #e5484d) 70%, transparent); }
.plan-days .pd span { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.plan-days .pd.today span { color: var(--accent); font-weight: 700; }
.plan-days .pd-more { align-self: start; height: 34px; display: grid; place-items: center; padding: 0 6px; font-size: 12px; color: var(--muted); }
.plan-today { margin: 0; font-size: 14px; }
.plan-today.done { color: var(--good); font-weight: 600; }
.plan-warn { margin: 0; font-size: 13px; color: var(--warn, #f0b429); }
.result .dplan.in-result { width: min(520px, 100%); margin: 6px auto; text-align: start; }
.plan-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 4px; }
.plan-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; }
.plan-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.plan-opt input { margin-top: 3px; accent-color: var(--accent); }
.plan-opt span { display: grid; gap: 2px; }
.plan-opt small { color: var(--muted); font-size: 12.5px; }
.sig-ep { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .plan-days .pd i::after { transition: height .5s ease; } }

/* Sezon dersi (Bölüm 0): sezon listesinin başında, öteki bölümlerden ayrışan satır */
.episodes li.s0 .ep.season0 { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.episodes li.s0 .ep.season0 .epn { color: var(--accent); font-weight: 800; }
.episodes li.s0 .ept { display: grid; gap: 2px; text-align: start; }
.episodes li.s0 .ept small { font-size: 12.5px; font-weight: 400; }
.episodes li.s0 .s0-go { color: var(--accent); font-size: 22px; margin-inline-start: auto; }
.episodes li.s0.done .ep.season0 { background: var(--surface); border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.episodes li.s0.done .s0-meta { color: var(--good); }
[dir="rtl"] .episodes li.s0 .s0-go { transform: scaleX(-1); }
/* Arapçada kod yazı tipinin içi noktalı sıfırı ٥ gibi okunuyordu: Bölüm 0 numarası sistem yazı tipiyle */
:root[dir="rtl"] .episodes li.s0 .epn { font-family: system-ui, sans-serif; }
.plan-opt.def b::after { content: " ★"; color: var(--accent); }

/* Boş arama (#/search): önerilen başlıkların afişleri, Netflix'teki gibi yalnızca afiş (telefonda 3 sütun) */
.page.search-home { gap: 12px; }
.page h2.sub.search-picks-title { margin: 0; }
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(104px, 12vw, 170px), 1fr)); gap: 10px; }
@media (max-width: 760px) { .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
.stile { all: unset; display: block; cursor: pointer; border-radius: 6px; container-type: inline-size; position: relative; }
.stile .poster { aspect-ratio: 2 / 3; border-radius: 6px; }
.stile .poster .ptitle { font-size: 17cqw; }
.stile .poster .initial { font-size: 120cqw; }
.stile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stile:active .poster { transform: scale(.97); }
.stile.skel { aspect-ratio: 2 / 3; background: var(--surface, rgba(255,255,255,.06)); animation: skel 1.2s ease-in-out infinite alternate; cursor: default; }
@keyframes skel { from { opacity: .45; } to { opacity: .9; } }

/* Sinefil+ (yakında) bekleme listesi (#/premium) */
.pill-soon { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; vertical-align: middle; border: 1px solid var(--line, rgba(255,255,255,.2)); color: var(--muted); }
.pm-plus { display: grid; gap: 10px; margin: 8px 0 18px; padding: 16px; border-radius: 14px; background: var(--surface, #1a1820); }
.pm-plus h2.sub { margin: 0; }
.pm-plus-form { display: grid; gap: 12px; }
.pm-plus-form fieldset { border: 0; margin: 0; padding: 0; }
.pm-plus-form ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pm-plus-form li label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.pm-plus-form li input { margin-top: 4px; accent-color: var(--accent); }
.pm-plus-form li span span { display: block; font-size: 14px; }
.pm-plus-email { display: grid; gap: 6px; }
.pm-plus-email input { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line, rgba(255,255,255,.2)); background: var(--bg); color: var(--ink); }
.pm-plus-form .btn { justify-self: start; }
.pm-plus-msg { margin: 0; min-height: 1em; font-size: 14px; }
.pm-plus-msg.err { color: var(--bad, #ff6b6b); }
.pm-plus-done { margin: 0; color: var(--good, #4cc38a); font-weight: 700; }

/* Japoncada başlık kelime ortasından bölünmesin (理 / 解しよう): tarayıcı sözcük öbeğine göre böler */
:lang(ja) :is(h1, h2, .lead) { word-break: auto-phrase; }
/* ---------- Birlikte izle ve Sessiz sinema (public/together.js, docs/TOGETHER.md) ---------- */
.tg-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.btn.tg-on { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.tg-section:empty { display: none; }
.tg-section { display: grid; gap: 12px; }
.rows > .tg-section, .home .tg-section, #view > .tg-section { margin: 0 var(--gutter); }
.tg-card { display: grid; gap: 10px; padding: 16px 18px; border-radius: 12px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); }
.tg-head { display: grid; gap: 2px; text-decoration: none; }
.tg-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.tg-title { font-size: 19px; line-height: 1.2; }
.tg-members { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tg-member { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start; }
.tg-member .pavatar, .tg-players .pavatar, .tg-opt .pavatar { width: 36px; height: 36px; font-size: 18px; border-radius: 8px; }
.tg-member .pavatar svg, .tg-players .pavatar svg, .tg-opt .pavatar svg { width: 70%; height: 70%; }
.tg-members.big .tg-member { grid-template-columns: 48px minmax(0, 1fr); padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.tg-members.big .pavatar { width: 48px; height: 48px; font-size: 24px; }
.tg-member.me.ready, .tg-members.big .tg-member.ready { border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.tg-mline { display: grid; gap: 4px; min-width: 0; }
.tg-msub .nb { white-space: nowrap; }
.tg-nudge { justify-self: start; min-height: 40px; padding: 6px 14px; font-size: 14px; white-space: nowrap; margin-top: 4px; }
.tg-nudge:disabled { opacity: .6; cursor: default; }
.tg-poke { margin: 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); font-weight: 600; }
.tg-load { margin: 6px 0 0; }
.tg-loadhigh { color: var(--bad); font-weight: 700; }
.tg-mtop { display: flex; justify-content: space-between; gap: 8px; }
.tg-pct { font-family: var(--mono); font-weight: 700; }
.tg-member.ready .tg-pct { color: var(--good); }
.tg-bar { display: block; height: 6px; border-radius: 99px; background: var(--raised); overflow: hidden; }
.tg-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .4s; }
.tg-member.ready .tg-bar i { background: var(--good); }
.tg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tg-alone { margin: 0; }
.tg-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.tg-pick legend { font-weight: 700; margin-bottom: 6px; }
.tg-opt, .modal label.tg-opt { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.tg-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.tg-opt input { accent-color: var(--accent); margin: 0; order: 3; margin-inline-start: auto; }
.tg-link-ico { background: var(--raised) !important; }
.tg-link-ico svg { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.tg-days { display: flex; gap: 8px; flex-wrap: wrap; }
.tg-days .chip { cursor: pointer; padding: 8px 14px; font-size: 14px; display: grid; justify-items: start; gap: 0; color: inherit; }
.tg-days .chip small { margin: 0; }
.tg-days .chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tg-days .chip.on small { color: var(--accent-ink); }
.tg-pick input[type=date] { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); width: fit-content; }
.tg-linkbox input { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-family: var(--mono); font-size: 13px; }
.tg-code { font-family: var(--mono); font-size: 28px; font-weight: 700; letter-spacing: .2em; text-align: center; margin: 0; }
.tg-share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.tg-how { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; color: var(--muted); }
/* plan sayfası */
.tg-page { max-width: 640px; margin-inline: auto; }
.tg-deftext { unicode-bidi: isolate; }
.tg-back { color: var(--muted); text-decoration: none; font-size: 14px; }
.tg-back:hover { color: var(--ink); }
.tg-arr { display: inline-block; }
[dir=rtl] .tg-arr { transform: scaleX(-1); }
.tg-hero { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: end; }
.tg-hero h1 { font-size: clamp(32px, 7vw, 52px) !important; }
.tg-poster { padding: 0; border: 0; background: none; cursor: pointer; width: 92px; }
.tg-poster .poster { width: 92px; aspect-ratio: 2 / 3; border-radius: 8px; font-size: 14px; }
.tg-when { margin: 6px 0 0; }
.tg-actions.main .btn { flex: 1 1 200px; justify-content: center; }
.tg-more { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; align-items: center; }
.tg-more .linklike { min-height: 44px; padding: 0 4px; }
.tg-more .danger { margin-inline-start: auto; }
.linklike.danger { color: var(--bad); }
/* oyun */
.tg-game { max-width: 560px; margin: 0 auto; min-height: calc(100dvh - 140px); align-content: start; }
.tg-ghead { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tg-center { display: grid; gap: 14px; justify-items: center; text-align: center; padding-top: 8px; }
.tg-gtitle { font-size: clamp(40px, 10vw, 60px) !important; }
.tg-rules { max-width: 420px; margin: 0; color: var(--muted); }
.tg-phones { display: flex; gap: 10px; }
.tg-phones .ph { width: 54px; height: 92px; border-radius: 12px; border: 2px solid var(--line); display: grid; place-items: center; font-size: 24px; font-weight: 900; background: var(--surface); }
.tg-phones .ph.a { color: var(--accent); transform: rotate(-6deg); }
.tg-phones .ph.b { transform: rotate(6deg); }
.tg-players { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.tg-players li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.tg-away { margin: 0; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--bad) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent); font-size: 14px; text-align: center; }
.tg-play { display: grid; gap: 14px; }
.tg-timer { position: relative; display: flex; align-items: baseline; gap: 4px; justify-content: center; padding-bottom: 10px; }
.tg-timer b { font-family: var(--mono); font-size: 40px; line-height: 1; }
.tg-timer i { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-radius: 99px; background: var(--raised); overflow: hidden; }
.tg-timer i::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p)); background: var(--accent); transition: transform .25s linear; }
[dir=rtl] .tg-timer i::after { transform-origin: right; }
.tg-timer.low b { color: var(--bad); }
.tg-timer.low i::after { background: var(--bad); }
.tg-role { margin: 0; text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--accent); }
.tg-role .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
.tg-word { text-align: center; display: grid; gap: 2px; }
.tg-word b { font-family: var(--display); font-weight: 900; font-size: clamp(48px, 14vw, 84px); line-height: .95; text-transform: uppercase; overflow-wrap: anywhere; }
.tg-word small { color: var(--muted); }
.tg-meaning { margin: 0; text-align: center; font-size: 20px; font-weight: 700; unicode-bidi: plaintext; }
.tg-def { margin: 0; text-align: center; unicode-bidi: plaintext; }
.tg-example { margin: 0; text-align: center; font-style: italic; unicode-bidi: plaintext; }
.tg-def b, .tg-def span[lang] { unicode-bidi: isolate; }
.tg-hist li span, .tg-hist li b { unicode-bidi: plaintext; }
.tg-linkbox input { direction: ltr; text-align: left; }
.tg-wrongnote { margin: 0; text-align: center; color: var(--bad); font-weight: 700; }
.tg-taboo { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; padding: 12px; border-radius: 10px; background: color-mix(in srgb, var(--bad) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); }
.tg-taboo > span { width: 100%; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bad); }
.tg-taboo b { font-size: 17px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--raised); border: 1px solid color-mix(in srgb, var(--bad) 45%, transparent); }
.tg-taboo em { font-size: 13px; color: var(--muted); }
.tg-gbtns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tg-gbtns .btn.lg { flex: 1 1 150px; justify-content: center; }
.btn.good { background: var(--good); color: #0b2416; }
.tg-listen { margin: 0; text-align: center; font-size: 18px; }
.tg-blanks { display: flex; gap: 4px; justify-content: center; flex-wrap: nowrap; margin: 0; }   /* tek satır: kırılırsa iki kelime sanılır */
.tg-blanks i { flex: 0 1 30px; min-width: 0; height: 40px; border-bottom: 3px solid var(--line); display: grid; place-items: center; font-style: normal; font-family: var(--mono); font-size: 26px; font-weight: 700; text-transform: uppercase; color: var(--accent); }
.tg-blanks i.sp { border: 0; width: 12px; }
.tg-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tg-o { padding: 16px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 18px; font-weight: 700; cursor: pointer; }
.tg-o:hover:not(:disabled) { border-color: var(--accent); }
.tg-o.wrong { opacity: .45; text-decoration: line-through; border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.tg-reveal { display: grid; gap: 8px; padding: 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tg-reveal.good { border-color: color-mix(in srgb, var(--good) 50%, transparent); }
.tg-reveal.bad { border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.tg-outcome { margin: 0; text-align: center; font-weight: 800; font-size: 18px; }
.tg-reveal.good .tg-outcome { color: var(--good); }
.tg-reveal.bad .tg-outcome { color: var(--bad); }
.tg-note { margin: 0; text-align: center; color: var(--accent); }
.tg-score { margin: 0; font-size: 20px; font-weight: 700; }
.tg-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; width: 100%; text-align: start; }
.tg-game.phase-done { max-width: 820px; }
.tg-done .tg-gbtns .btn { white-space: nowrap; }
.tg-cols h2.sub { margin: 0 0 6px; }
.tg-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tg-hist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 12px; border-radius: 8px; background: var(--surface); }
.tg-hist li span { color: var(--muted); overflow-wrap: anywhere; }
.tg-hist li.good i { color: var(--good); font-style: normal; }
.tg-hist li.bad i { color: var(--bad); font-style: normal; font-size: 12px; }
.center { text-align: center; }

/* Ana sayfa vitrini (masaüstü): öne çıkan alan ekranı doldurmaz, katalog satırları ilk ekranda görünür; uzun başlık
   küçülür ve en çok 3 satır, özet en çok 3 satır; afiş alanın içinde kalır (uzun başlıkta ekran dışına itiliyordu) */
.hero:not(.hero-m) { min-height: min(58vh, 540px); }
.hero:not(.hero-m) .hero-body { padding-top: 96px; }
.hero:not(.hero-m) h1:not(.title-logo) { font-size: clamp(48px, 7vw, 104px); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding-block: .04em; }
.hero:not(.hero-m) h1.long { font-size: clamp(36px, 4.4vw, 68px); line-height: .9; }
.hero:not(.hero-m) p.syn { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-poster { height: min(calc(100% - 96px - clamp(32px, 6vw, 72px)), 420px); }
/* Tablet (761-1100 px): üst menü sığar; arama kutusu simgeye iner, dokununca açılır, dil seçici daralır
   (720-935 px arasında arama kutusu, dil seçici ve profil düğmesi ekran dışına taşıyordu) */
@media (min-width: 761px) and (max-width: 1100px) {
  .nav { gap: 14px; }
  .links { gap: 14px; }
  .nav-right { gap: 8px; min-width: 0; }
  .search { padding: 0 9px; }
  .search input { width: 0; transition: width .2s; }
  .search:focus-within input, .search input:not(:placeholder-shown) { width: 160px; }
  .lang-pick select { max-width: 96px; }
  /* arama açıkken menü bağlantılarının üstüne binmesin */
  .nav:has(.search:focus-within, .search input:not(:placeholder-shown)) .links { display: none; }
}
/* Ezber şıkları: 4 şık 3+1 dağılmasın (tablette üç sütun sığıyordu); geniş ekranda 2x2, dar ekranda tek sütun */
@media (min-width: 521px) { .opts:has(> .opt:not(.dontknow):nth-child(4)):not(:has(> .opt:not(.dontknow):nth-child(5))) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.seo-credits > span, .seo-credits bdi { unicode-bidi: isolate; }
/* SEO açılış sayfası: 8 popüler afiş her genişlikte 4x2 (otomatik sütunla 6+2, 5+3 sarıyordu) */
@media (min-width: 761px) { .seo-popular { grid-template-columns: repeat(4, 1fr); } }

/* ---------- oturum çubuğu: bu dersin soruları kadar bölme + altında filmin gün planı (2026-11-26) ---------- */
/* Delikli film şeridi bütün filmin ilerlemesi sanılıyordu: çubuk yalnızca bu dersi gösterir, her soru bir bölme */
.train-bar { flex-wrap: wrap; row-gap: 8px; }
.pbar.seg { height: 14px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 12%, transparent); position: relative; }
.pbar.seg::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--n, 10) - 3px), var(--bg) calc(100% / var(--n, 10) - 3px) calc(100% / var(--n, 10))); }
.train.has-bg .pbar.seg::after { background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--n, 10) - 3px), #15141a calc(100% / var(--n, 10) - 3px) calc(100% / var(--n, 10))); }
.pbar.seg i { min-width: 0; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 55%, transparent); transition: width .45s cubic-bezier(.2,.9,.3,1.25); }
.train-plan { flex-basis: 100%; display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.train-plan .tp-label { font-weight: 700; color: var(--ink); white-space: nowrap; }
.train-plan.late .tp-label { color: var(--bad, #e5484d); }
.tp-days { flex: 1; min-width: 0; max-width: 380px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.tp-days i { position: relative; height: 8px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 12%, transparent); overflow: hidden; }
.tp-days i::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--f) * 100%); background: var(--accent); }
.tp-days i.full::after { background: var(--good); }
.tp-days i.today { outline: 1.5px solid var(--accent); outline-offset: 1px; }
.tp-days i.missed { background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--bad, #e5484d) 70%, transparent); }
.tp-days.long { display: block; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 12%, transparent); overflow: hidden; }
.tp-days.long b { display: block; height: 100%; width: calc(var(--f) * 100%); background: var(--accent); }
.train-plan .tp-today { white-space: nowrap; }
.train-plan .tp-today.done { color: var(--good); }
@media (prefers-reduced-motion: no-preference) { .tp-days i::after { transition: width .4s ease; } }
.plan-pos { margin: 4px 0 8px; font-size: 14px; font-weight: 700; }
.plan-pos.ahead { color: var(--good); }
.plan-pos.behind { color: var(--bad, #e5484d); }
/* Dar telefonda 10 günlük plan tek satıra sığsın (28 px'lik kartlar 9+1 kırılıyordu) */
@media (max-width: 420px) { .plan-days { gap: 4px; } .plan-days .pd, .plan-days .pd i { width: 25px; } }
/* Telefonda ders çubuğu bölmesiz (sürekli dolgu): altındaki kareli gün şeridiyle karışmasın */
@media (max-width: 560px) { .pbar.seg::after { display: none; } }
