/* Kaze public site — paper, ink and one red sun. */
:root {
  --paper: #FAFAF7; --ink: #1A1A1A; --muted: #5C5C5C; --body: #3D3D3D; --line: #D6D6D0; --sun: #C8102E;
  /* theme tokens: the light values are the original design; the dark theme ("Urushi") redefines them below */
  --paper-rgb: 250 250 247; --card: #FFFFFF; --rule: #1A1A1A; --faint: #8A8A85; --soft: #E4E4DE; --hover: #F4F2EC;
  --band: #F1EEE6; --band-line: #DDD7C9; --deep: #141414; --on-deep: #FAFAF7; --on-sun: #FAFAF7; --ink-hover: #000000;
  --sun-soft: #FDF1F2; --sun-deep: #A00D25; --today: #FFF7F5; --ok: #2F7D4F; --ok-soft: #EEF6F0; --ok-deep: #1F5A37;
  --switch-off: #C9C9C3; --mid: #A8A8A2; --prose: #2B2B2B; --deep-edge: transparent; --foot-line: transparent; --poster-edge: transparent; --glow: none;
  --wave: url("/static/seigaiha.svg"); --wave-red: url("/static/seigaiha-red.svg"); --wave-card: url("/static/seigaiha.svg");
  --wave-gold: url("/static/seigaiha-gold.svg"); --wave-silver: url("/static/seigaiha-silver.svg"); --wave-bronze: url("/static/seigaiha-bronze.svg");
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --jp: "Noto Serif JP", serif;
  color-scheme: light;
}
/* Dark theme "Urushi" (black lacquer): warm black, washi-cream text, gold rules and waves, a glowing vermilion sun.
   Chosen with the header switch (html[data-theme]); without a choice it follows the device setting. */
:root[data-theme="dark"] {
  --paper: #13110F; --paper-rgb: 19 17 15; --ink: #EDE6D8; --muted: #A0978A; --body: #CFC6B6; --line: #36312A; --sun: #E2283E;
  --card: #1B1815; --rule: #8C7A55; --faint: #857C6F; --soft: #2C2721; --hover: #24201B;
  --band: #211712; --band-line: #3A2E24; --deep: #0B0A09; --on-deep: #EDE6D8; --on-sun: #FFF6F0; --ink-hover: #FFFFFF;
  --sun-soft: #2A1416; --sun-deep: #F0606C; --today: #241A16; --ok: #7CC795; --ok-soft: #16241B; --ok-deep: #9BD7AF;
  --switch-off: #4A433A; --mid: #5E564B; --prose: #DCD4C5; --deep-edge: #2E2923; --foot-line: #8C7A55; --poster-edge: rgba(237, 230, 216, .14); --glow: 0 0 14px rgba(226, 40, 62, .55);
  --wave: url("/static/seigaiha-urushi.svg"); --wave-red: url("/static/seigaiha-red-urushi.svg"); --wave-card: url("/static/seigaiha-urushi-card.svg");
  --wave-gold: url("/static/seigaiha-gold-urushi.svg"); --wave-silver: url("/static/seigaiha-silver-urushi.svg"); --wave-bronze: url("/static/seigaiha-bronze-urushi.svg");
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --paper: #13110F; --paper-rgb: 19 17 15; --ink: #EDE6D8; --muted: #A0978A; --body: #CFC6B6; --line: #36312A; --sun: #E2283E;
  --card: #1B1815; --rule: #8C7A55; --faint: #857C6F; --soft: #2C2721; --hover: #24201B;
  --band: #211712; --band-line: #3A2E24; --deep: #0B0A09; --on-deep: #EDE6D8; --on-sun: #FFF6F0; --ink-hover: #FFFFFF;
  --sun-soft: #2A1416; --sun-deep: #F0606C; --today: #241A16; --ok: #7CC795; --ok-soft: #16241B; --ok-deep: #9BD7AF;
  --switch-off: #4A433A; --mid: #5E564B; --prose: #DCD4C5; --deep-edge: #2E2923; --foot-line: #8C7A55; --poster-edge: rgba(237, 230, 216, .14); --glow: 0 0 14px rgba(226, 40, 62, .55);
  --wave: url("/static/seigaiha-urushi.svg"); --wave-red: url("/static/seigaiha-red-urushi.svg"); --wave-card: url("/static/seigaiha-urushi-card.svg");
  --wave-gold: url("/static/seigaiha-gold-urushi.svg"); --wave-silver: url("/static/seigaiha-silver-urushi.svg"); --wave-bronze: url("/static/seigaiha-bronze-urushi.svg");
  color-scheme: dark;  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--sun); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; margin: 0; }

/* header */
.site-head { position: relative; border-bottom: 1px solid var(--rule); background: var(--paper); }
/* Seigaiha (waves) in the site red at the header's left and right edges, fading out towards the middle
   (same 35% as the other textures) */
.site-head::before { content: ""; position: absolute; inset: 0; background: var(--wave-red) 0 0 / 36px 18px repeat; opacity: .35; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 26%, transparent 74%, #000 100%); mask-image: linear-gradient(90deg, #000 0, transparent 26%, transparent 74%, #000 100%); }
.site-head .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 24px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 700; font-size: 24px; letter-spacing: 6px; }
.logo .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--sun); box-shadow: var(--glow); }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; font-weight: 500; letter-spacing: 1px; }
.site-search { flex: 1 1 280px; max-width: 440px; display: flex; align-items: stretch; border: 1px solid var(--rule); background: var(--card); }
.site-search input { flex: 1 1 auto; min-width: 0; height: 44px; border: 0; background: transparent; padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink); }
.site-search input:focus { outline: none; }
.site-search:focus-within { outline: 2px solid var(--sun); outline-offset: 2px; }
.site-search button { width: 48px; border: 0; border-left: 1px solid var(--rule); background: var(--ink); color: var(--paper); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.site-search button:hover { background: var(--ink-hover); }
/* search suggestions under the header box */
.site-search { position: relative; }
.sugg { position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); z-index: 30; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); box-shadow: 0 16px 40px rgba(26, 26, 26, .18); max-height: min(70vh, 520px); overflow-y: auto; }
.sugg[hidden] { display: none; }
.sg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--hover); }
.sg:hover, .sg[aria-selected="true"] { background: var(--hover); }
.sg:hover .sg-t, .sg[aria-selected="true"] .sg-t { color: var(--sun); }
.sg-p { display: block; width: 34px; aspect-ratio: 2 / 3; overflow: hidden; }
.sg-p img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sg-t { font-family: var(--serif); font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-m { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-all { display: flex; align-items: center; gap: 6px; padding: 12px; border-bottom: 0; font-size: 13px; font-weight: 600; }
.sg-none { margin: 0; padding: 14px 12px; font-size: 14px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 720px) { .site-search { order: 3; flex-basis: 100%; max-width: none; } }

/* hero */
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: center; padding-block: 72px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-size: clamp(44px, 7vw, 80px); line-height: 1.05; letter-spacing: -1.5px; }
.hero p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--body); max-width: 520px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; transition: opacity .25s ease; }
.hero-copy.fading { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hero-copy { transition: none; } }
.btn span { margin-left: 8px; transition: transform .2s; }
.btn:hover span { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn { height: 52px; display: inline-flex; align-items: center; padding: 0 28px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 500; letter-spacing: 1px; }
.btn:hover { color: var(--paper); background: var(--ink-hover); }
.link-line { height: 52px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--rule); }
.hero-art { flex: 1 1 380px; min-width: 0; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; min-height: 420px; }
.hero-art .sun { position: absolute; left: 50%; top: 50%; width: min(420px, 92%); aspect-ratio: 1; border-radius: 50%; background: var(--sun); transform: translate(-58%, -50%); }
.hero-art[data-carousel] .sun { top: calc(50% - 32px); }
.feat-stack { position: relative; width: min(280px, 66%); aspect-ratio: 2 / 3; transform: translateX(40px); }
.hero-art .feat { position: absolute; inset: 0; display: block; box-shadow: 0 24px 48px rgba(26, 26, 26, .25); opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.hero-art .feat.on { opacity: 1; visibility: visible; }
.hero-art .feat .poster { aspect-ratio: auto; height: 100%; }
.car-ctrl { position: relative; display: flex; align-items: center; gap: 12px; transform: translateX(40px); }
.car-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.car-btn:hover { background: var(--ink); color: var(--paper); }
.car-pause .i-play { display: none; }
.car-pause.paused .i-play { display: block; }
.car-pause.paused .i-pause { display: none; }
.car-dots { display: flex; gap: 2px; }
.car-dot { width: 24px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.car-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .2s, transform .2s; }
.car-dot[aria-current="true"]::before { background: var(--ink); transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) { .hero-art .feat { transition: none; } }
.hero-art .feat-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; color: var(--on-deep); background: linear-gradient(transparent, rgba(0, 0, 0, .65)); display: flex; flex-direction: column; gap: 4px; }
.hero-art .feat-cap small { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; }
.hero-art .feat-cap strong { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; }
.hero-art .vert { position: absolute; right: 0; top: 0; writing-mode: vertical-rl; font-family: var(--jp); font-weight: 600; font-size: 48px; letter-spacing: 12px; }
@media (max-width: 560px) { .hero-art .vert { display: none; } .feat-stack, .car-ctrl { transform: none; } }
/* Hero with the featured anime's AniList banner behind it (design "Ana sayfa B"): the picture fills the top,
   melts into the paper colour, the poster rises onto it and the text sits on the faded part. */
.hero { position: relative; }
.hero-banners { position: absolute; left: 0; right: 0; top: 0; height: 420px; overflow: clip; }
.hero-banners::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(var(--paper-rgb) / 0) 18%, rgb(var(--paper-rgb) / .82) 62%, var(--paper) 100%); }
.hb { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.hb.on { opacity: 1; }
.hb img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero.has-banner .wrap { position: relative; align-items: flex-end; padding-top: 250px; }
.hero.has-banner .hero-art { margin-top: -170px; }
.hero.has-banner .hero-art .feat { outline: 4px solid var(--paper); }
@media (prefers-reduced-motion: reduce) { .hb { transition: none; } }
@media (max-width: 900px) {
  .hero-banners { height: 260px; }
  .hero.has-banner .wrap { padding-top: 170px; }
  .hero.has-banner .hero-art { margin-top: 0; }
}

/* posters */
.poster { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: #1F2A44; }
/* dark theme: a hairline keeps posters from melting into the black */
.poster::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--poster-edge); pointer-events: none; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster .ph-dot { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; right: -12%; top: 14%; }

/* section */
.section .wrap { padding-bottom: 88px; }
/* "Bu hafta yayında" (homepage): dark next-episode card with countdown + the week in seven columns */
.ws-head { align-items: flex-end; }
.ws-head .see-all { margin-bottom: -6px; }
/* the next-episode card runs as a band above the week, so each day column gets the full width's share */
.ws-grid { display: flex; flex-direction: column; gap: 16px; }
.ws-next { position: relative; overflow: hidden; overflow: clip; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 18px 24px; background: var(--deep); color: var(--on-deep); }
.ws-next::before { content: ""; position: absolute; right: -70px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: var(--sun); opacity: .16; pointer-events: none; }
.ws-next:hover { color: var(--on-deep); }
.ws-next:hover .ws-next-title { color: #F26A7E; }
.ws-next-top { position: relative; flex: 1 1 320px; min-width: 0; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: center; }
.ws-next-poster .poster { box-shadow: 0 8px 20px rgba(0, 0, 0, .45); }
.ws-next-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ws-next-title { font-family: var(--serif); font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; transition: color .15s; }
.ws-next-meta { font-size: 13px; color: #D6D6D0; }
.ws-next .un-count { gap: 8px; }
.ws-next .un-box b { font-size: 40px; min-width: 64px; padding: 8px 4px; }
.ws-next .un-sep { font-size: 30px; padding-bottom: 24px; }
.ws-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--card); }
.ws-day { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--soft); }
.ws-day:last-child { border-right: 0; }
.ws-day.past { opacity: .5; }
.ws-day.today { background: var(--today); }
.ws-dh { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; padding: 10px 10px 8px; border-bottom: 1px solid var(--soft); }
.ws-day.today .ws-dh { border-bottom: 2px solid var(--sun); }
.ws-dn { font-size: 12px; font-weight: 600; letter-spacing: 2px; }
.ws-day.today .ws-dn { color: var(--sun); }
.ws-dc { font-size: 11px; color: var(--muted); white-space: nowrap; }
.ws-eps { display: flex; flex-direction: column; gap: 10px; padding: 10px; }
.ws-ep { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: start; }
.ws-thumb { display: block; width: 30px; }
.ws-thumb .poster { aspect-ratio: 2 / 3; }
.ws-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ws-time { font-size: 12px; font-weight: 600; color: var(--muted); }
.ws-t { font-size: 13px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word; }
.ws-ep:hover .ws-t { color: var(--sun); }
.ws-more { font-size: 12px; font-weight: 600; border-bottom: 1px solid currentColor; align-self: flex-start; }
.ws-none { font-size: 12px; color: var(--faint); }
/* phones: the week scrolls sideways, each day keeps a readable width */
@media (max-width: 760px) {
  .ws-week { overflow-x: auto; grid-template-columns: repeat(7, minmax(132px, 1fr)); scroll-snap-type: x proximity; }
  .ws-day { scroll-snap-align: start; }
}
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 16px; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 40px); }
.sec-head span { font-size: 14px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 32px 24px; }
.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card .row1 { display: flex; gap: 10px; align-items: baseline; }
.card .no { font-family: var(--serif); font-size: 15px; color: var(--muted); }
.card .no.first { color: var(--sun); }
.card .t { font-family: var(--serif); font-size: 18px; line-height: 1.25; }
.card .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); margin-top: -4px; }
.card .meta b { font-weight: 600; color: var(--ink); }
.card .meta .why { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .meta .star { flex-shrink: 0; }
.star { display: inline-flex; align-items: center; gap: 4px; }
.star svg { flex-shrink: 0; }
.empty { padding: 48px 0; color: var(--muted); }

.board { min-width: 0; display: flex; flex-direction: column; }
.board .sec-head { margin-bottom: 28px; align-items: flex-end; flex-wrap: nowrap; }
.board .sec-head h2 { min-width: 0; }
.board .sec-head .see-all { flex-shrink: 0; margin-bottom: -6px; }
.board .grid { align-content: start; }
.see-all { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 600; letter-spacing: .5px; white-space: nowrap; }
.see-all span { transition: transform .2s; }
.see-all:hover span { transform: translateX(3px); }
.board-empty { flex: 1 1 auto; min-height: 320px; border: 1px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 32px; text-align: center; color: var(--muted); }
.board-empty p { margin: 0; max-width: 280px; }
.board-empty .sun-sm { width: 56px; height: 56px; border-radius: 50%; background: var(--sun); opacity: .9; }
.board .sec-head h2 { font-size: clamp(26px, 2.3vw, 32px); }
/* ---------- Homepage boards, design "Panolar A": each board in its own shape ---------- */
.boards-a .wrap { display: flex; flex-direction: column; gap: 88px; }
.board-head { align-items: flex-end; margin-bottom: 28px; flex-wrap: nowrap; }
.bh-l { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bh-k { font-size: 12px !important; font-weight: 600; letter-spacing: 3px; color: var(--muted); }
.board-pick .bh-k { color: var(--sun) !important; }
.board-head h2 { font-size: clamp(28px, 3vw, 40px); }
.board-rank .board-head h2, .board-soon .board-head h2 { font-size: clamp(26px, 2.4vw, 32px); }
.board-head .see-all { flex-shrink: 0; margin-bottom: -6px; }
/* Seçki (design "Seçki A · Kapak hikâyesi"): the first pick is a wide cover over its banner, which melts into
   the paper colour from the left so the text reads on a calm ground; the poster sits on the right.
   Picks 2–6 follow in a row, each card with the seigaiha texture fading down from its top. */
.pk { display: flex; flex-direction: column; gap: 22px; }
.pk-lead { position: relative; overflow: hidden; overflow: clip; display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; align-items: end; min-height: 360px; padding: 36px 40px; border: 1px solid var(--rule); background: var(--band); }
.pk-bn { position: absolute; inset: 0; }
.pk-bn img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.pk-bn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--paper-rgb) / .97) 0%, rgb(var(--paper-rgb) / .9) 40%, rgb(var(--paper-rgb) / .2) 75%, rgb(var(--paper-rgb) / 0) 100%); }
.pk-sun { position: absolute; right: 120px; top: 50%; width: 320px; aspect-ratio: 1; border-radius: 50%; background: var(--sun); transform: translateY(-50%); }
.pk-lead > .pk-body, .pk-lead > .pk-poster { position: relative; }
.pk-body { display: flex; flex-direction: column; gap: 14px; max-width: 580px; min-width: 0; }
.pk-top { display: flex; align-items: baseline; gap: 16px; }
.pk-no { font-family: var(--serif); font-size: 72px; line-height: .9; color: var(--sun); }
.pk-k { font-size: 12px; font-weight: 600; letter-spacing: 3px; color: var(--muted); }
.pk-t { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; overflow-wrap: break-word; }
.pk-lead:hover .pk-t { color: var(--sun); }
.pk-note { font-size: 16px; line-height: 1.6; color: var(--body); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pk-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.pk-go { height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; letter-spacing: .5px; }
.pk-lead:hover .pk-go { background: var(--ink-hover); }
.pk-m { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.pk-m b { font-weight: 600; }
.pk-poster .poster { outline: 4px solid var(--paper); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.pk-rest { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.pk-item { position: relative; overflow: hidden; overflow: clip; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; background: var(--card); border: 1px solid var(--band-line); }
.pk-item::before { content: ""; position: absolute; inset: 0; background: var(--wave-card) 0 0 / 36px 18px repeat; opacity: .35; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 70%); mask-image: linear-gradient(180deg, #000 0, transparent 70%); }
.pk-item > * { position: relative; }
.pk-ip .poster { box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }
.pk-it { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pk-ino { font-family: var(--serif); font-size: 22px; line-height: 1; color: var(--sun); }
.pk-itt { font-family: var(--serif); font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pk-item:hover .pk-itt { color: var(--sun); }
.pk-im { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); }
.pk-im b { color: var(--ink); font-weight: 600; }
/* Popüler / Tüm zamanlar: ranked lists; the first three are larger */
/* the two headings share one row height (subgrid), so both lists start level even if one title wraps */
.rk-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr; column-gap: 64px; }
.rk-row > .board-rank { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.rk-row.solo { grid-template-columns: minmax(0, 1fr); }
.rk { list-style: none; margin: -28px 0 0; padding: 0; }
.rk li { border-bottom: 1px solid var(--soft); }
.rk-a { display: grid; grid-template-columns: 52px 36px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px 0; }
.rk li.top .rk-a { grid-template-columns: 52px 48px minmax(0, 1fr) auto; padding: 14px 0; }
.rk-no { font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--faint); text-align: center; }
.rk li.top .rk-no { font-size: 40px; color: var(--ink); }
.rk li.first .rk-no { color: var(--sun); }
.rk-thumb { display: block; }
.rk-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rk-t { font-family: var(--serif); font-size: 16px; line-height: 1.2; overflow-wrap: break-word; }
.rk li.top .rk-t { font-size: 18px; }
.rk-a:hover .rk-t { color: var(--sun); }
.rk-g { font-size: 12px; color: var(--muted); }
.rk-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 14px; }
.rk-side b { font-weight: 600; }
.rk-tr { font-size: 12px; font-weight: 600; white-space: nowrap; }
.rk-tr.up { color: var(--ok); }
.rk-tr.down, .rk-tr.new { color: var(--sun); }
.rk-tr.same { color: var(--faint); }
.rk-row.solo .rk { columns: 2; column-gap: 64px; }
.rk-row.solo .rk li { break-inside: avoid; }
/* Yakında sits on its own warm band; a faint seigaiha (青海波) texture shows at the left and right edges
   and fades out towards the middle, so the timeline itself stays on a clean ground. */
.yk-band { position: relative; background: var(--band); border-top: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line); padding-top: 72px; margin-bottom: 72px; }
.yk-band::before { content: ""; position: absolute; inset: 0; background: var(--wave) 0 0 / 36px 18px repeat; opacity: .35; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 24%, transparent 76%, #000 100%); mask-image: linear-gradient(90deg, #000 0, transparent 24%, transparent 76%, #000 100%); }
.yk-band .wrap { position: relative; padding-bottom: 72px; }
.yk-band .yk-dot { border-color: var(--band); }
.yk-band .board-empty { background: rgba(250, 250, 247, .6); }
/* Yakında: dated timeline */
.yk { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.yk::before { content: ""; position: absolute; left: 0; right: 0; top: 54px; height: 2px; background: var(--ink); } /* through the dots: 40px date + 10px gap + half the dot */
.yk-a { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
/* date and dot sit centred over the poster; the title below stays left-aligned */
.yk-when { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; min-height: 40px; }
.yk-d { font-family: var(--serif); font-size: 18px; line-height: 1.1; }
.yk-in { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; color: var(--muted); }
.yk li.first .yk-in { color: var(--sun); }
.yk-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); margin: -2px 0 0; align-self: center; }
.yk li.first .yk-dot { background: var(--sun); }
.yk-t { font-family: var(--serif); font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yk-a:hover .yk-t { color: var(--sun); }
.yk-g { font-size: 12px; color: var(--muted); }
@media (max-width: 1000px) {
  .pk-rest { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(240px, 32%); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; }
  .pk-item { scroll-snap-align: start; }
  .rk-row { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 72px; }
  .rk-row > .board-rank { display: flex; grid-row: auto; }
  .rk-row.solo .rk { columns: 1; }
}
@media (max-width: 760px) {
  .pk-lead { grid-template-columns: minmax(0, 1fr) 96px; gap: 18px; min-height: 0; padding: 22px 18px; align-items: start; }
  .pk-bn::after { background: linear-gradient(180deg, rgb(var(--paper-rgb) / .55) 0%, rgb(var(--paper-rgb) / .94) 45%, rgb(var(--paper-rgb) / .97) 100%); }
  .pk-sun { right: -60px; top: 0; width: 200px; transform: none; }
  .pk-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pk-no { font-size: 48px; }
  .pk-t { font-size: 26px; }
  .pk-note { font-size: 15px; -webkit-line-clamp: 3; }
  .pk-rest { grid-auto-columns: 78%; }
  .yk { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; }
  .yk::before { right: auto; width: calc(6 * 44% + 5 * 20px); }
  .yk li { scroll-snap-align: start; }
  .rk-a, .rk li.top .rk-a { grid-template-columns: 36px 36px minmax(0, 1fr) auto; gap: 12px; }
  .rk li.top .rk-no { font-size: 30px; }
}
.grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
@media (max-width: 480px) { .grid.g3, .board.wide .grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* same card height everywhere: titles take exactly two lines */
.grid.g3 .card .row1 { min-height: calc(2 * 1.25em); align-items: flex-start; }
.grid.g3 .card .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grid.g3 .card .no { font-size: 18px; line-height: 1.25; }

/* footer */
/* Dark footer: the page ends on a dark ground (the hero banner opens it, this closes it) */
.site-foot { background: var(--deep); color: #D6D6D0; }
.site-foot a { color: #FAFAF7; }
.site-foot a:hover { color: #F26A7E; }
.foot-top { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px 64px; padding-block: 56px 40px; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.foot-brand .logo { color: #FAFAF7; }
.foot-brand p { margin: 0; font-size: 14px; line-height: 1.6; color: #A8A8A2; }
.foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 12px 48px; font-size: 14px; font-weight: 500; letter-spacing: .5px; }
.foot-jp { writing-mode: vertical-rl; font-family: var(--jp); font-weight: 600; font-size: 28px; letter-spacing: 8px; color: #3A3A3A; line-height: 1; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px 28px; border-top: 1px solid #2A2A2A; font-size: 13px; color: #A8A8A2; }
.foot-bottom a { border-bottom: 1px solid #5C5C5C; }
.foot-credit { margin: 0; font-size: 12px; color: var(--faint); }
@media (max-width: 600px) { .foot-jp { display: none; } .foot-nav { gap: 12px 32px; } }

/* Top 100 on the homepage: 15 rows, numbered down three columns */
.top-head { align-items: flex-end; flex-wrap: nowrap; }
.top-head .see-all { flex-shrink: 0; margin-bottom: -6px; }
/* one row per anime, general info in aligned columns on the right */
/* Top 100 podium: 2 · 1 · 3 on screen (1 · 2 · 3 in reading order); seigaiha in gold / silver / bronze
   at the top of each card, fading out before the poster */
.podium { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: end; }
.podium .pd-1 { order: 2; }
.podium .pd-2 { order: 1; }
.podium .pd-3 { order: 3; }
.pd-card { position: relative; overflow: hidden; overflow: clip; display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--card); border: 1px solid var(--band-line); }
.pd-1 .pd-card { padding: 26px; border-color: var(--ink); }
.pd-card::before { content: ""; position: absolute; inset: 0; background: var(--wave-gold) 0 0 / 36px 18px repeat; opacity: .35; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 58%); mask-image: linear-gradient(180deg, #000 0, transparent 58%); }
.pd-2 .pd-card::before { background-image: var(--wave-silver); }
.pd-3 .pd-card::before { background-image: var(--wave-bronze); }
.pd-card > * { position: relative; }
.pd-head { display: flex; align-items: flex-end; gap: 16px; }
.pd-no { font-family: var(--serif); font-size: 84px; line-height: .8; }
.pd-1 .pd-no { font-size: 120px; color: var(--sun); }
.pd-hs { display: flex; flex-direction: column; gap: 4px; padding-bottom: 4px; }
.pd-medal { font-size: 11px; font-weight: 600; letter-spacing: 2px; }
.pd-1 .pd-medal { color: #8A6A12; }
.pd-2 .pd-medal { color: #5F666D; }
.pd-3 .pd-medal { color: #8A4F22; }
.pd-sc { display: inline-flex; align-items: baseline; gap: 6px; }
.pd-sc b { font-family: var(--serif); font-weight: 400; font-size: 28px; }
.pd-sc small { font-size: 12px; color: var(--muted); }
.pd-card .poster { aspect-ratio: 4 / 5; box-shadow: 0 14px 30px rgba(0, 0, 0, .18); }
.pd-1 .pd-card .poster { aspect-ratio: 3 / 4; }
.pd-t { font-family: var(--serif); font-size: 20px; line-height: 1.2; overflow-wrap: break-word; }
.pd-1 .pd-t { font-size: 24px; }
.pd-card:hover .pd-t { color: var(--sun); }
.pd-m { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .podium { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .podium .pd-1, .podium .pd-2, .podium .pd-3 { order: 0; }
  .pd-card, .pd-1 .pd-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 6px 16px; padding: 16px; }
  .pd-card .poster, .pd-1 .pd-card .poster { grid-column: 1; grid-row: 1 / span 3; aspect-ratio: 2 / 3; }
  .pd-head { grid-column: 2; gap: 12px; }
  .pd-no { font-size: 48px; }
  .pd-1 .pd-no { font-size: 60px; }
  .pd-t, .pd-m { grid-column: 2; }
  .pd-t, .pd-1 .pd-t { font-size: 18px; }
}
.toplist { list-style: none; margin: 0; padding: 0; }
.toplist li { border-bottom: 1px solid var(--line); }
.trow { display: grid; grid-template-columns: 48px 52px minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.1fr) 96px; gap: 20px; align-items: center; padding: 12px 0; }
.thead { padding: 0 0 10px; border-bottom: 1px solid var(--rule); font-size: 11px; font-weight: 600; letter-spacing: 2px; color: var(--muted); }
.r { text-align: right; justify-self: end; }
a.trow:hover .tt { color: var(--sun); }
.tn { font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.tn.podium { color: var(--sun); }
.tthumb .poster { width: 52px; }
.tbody { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tt { font-family: var(--serif); font-size: 19px; line-height: 1.3; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc { font-size: 14px; color: var(--body); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl { display: none; }
.tinfo { display: contents; }
.chip.sm { display: inline-block; font-size: 10px; letter-spacing: 1.5px; padding: 4px 8px; }
.ts { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ts b { font-weight: 600; font-size: 16px; color: var(--ink); }
.ts small { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
/* narrower screens: info drops under the title as labelled pairs */
@media (max-width: 900px) {
  .thead { display: none; }
  .trow { grid-template-columns: 36px 48px minmax(0, 1fr) auto; gap: 6px 14px; align-items: start; }
  .trow .tn { grid-row: 1 / span 2; align-self: center; font-size: 22px; }
  .trow .tthumb { grid-row: 1 / span 2; }
  .tthumb .poster { width: 48px; }
  .trow .tbody { grid-column: 3; grid-row: 1; }
  .trow .ts { grid-column: 4; grid-row: 1; }
  .tinfo { grid-column: 3 / span 2; grid-row: 2; display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .tinfo .tc { font-size: 13px; color: var(--muted); overflow: visible; }
  .tl { display: inline; font-weight: 600; color: var(--ink); margin-right: 5px; }
}

/* weekly schedule */
.sched-page { padding-bottom: 80px; }
.list-head.sched-head { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 0; }
.sched-head > div { display: flex; flex-direction: column; gap: 8px; }
.week-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.week-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--rule); font-size: 14px; font-weight: 600; }
.week-nav a:hover { background: var(--ink); color: var(--paper); }
.week-nav a.now { background: var(--ink); color: var(--paper); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.day { min-width: 0; padding: 0 12px 20px; border-right: 1px solid var(--line); }
.day:first-child { padding-left: 0; }
.day:last-child { border-right: 0; padding-right: 0; }
.day.today { background: var(--card); box-shadow: inset 0 3px 0 var(--sun); padding-left: 12px; }
/* every day header has the same two lines: name, then date (+ "BUGÜN") */
.day-h { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 18px 0 12px; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-weight: 400; font-size: clamp(16px, 1.45vw, 20px); line-height: 1.2; white-space: nowrap; }
.day-sub { display: flex; align-items: center; gap: 8px; min-height: 20px; }
.day-h small { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.day-h em { font-style: normal; font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 1.5px; line-height: 1; color: var(--on-sun); background: var(--sun); padding: 4px 6px; }
.sched-page { max-width: 1440px; }
.day-h .d-short { display: none; }
@media (max-width: 1100px) and (min-width: 901px) {
  .day-h .d-long { display: none; }
  .day-h .d-short { display: inline; }
  .day-sub { gap: 6px; }
}
.day-empty { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.ep { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ep:last-child { border-bottom: 0; }
.ep:hover .ep-title { color: var(--sun); }
.ep-time { font-family: var(--serif); font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums; }
.ep-row { display: flex; gap: 10px; min-width: 0; }
.ep-thumb { flex: 0 0 40px; }
.ep-thumb .poster { width: 40px; }
.ep-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ep-title { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ep-no { font-size: 12px; color: var(--muted); }
.badge { display: inline-block; font-size: 9px; font-weight: 600; letter-spacing: 1px; padding: 2px 5px; margin-left: 2px; vertical-align: 1px; }
.badge.new { background: var(--ink); color: var(--paper); }
.badge.fin { background: var(--sun); color: var(--on-sun); }
.ep-state { font-size: 12px; color: var(--muted); }
.ep.aired { opacity: .55; }
.ep.is-next .ep-time, .ep.is-next .ep-state { color: var(--sun); font-weight: 600; }
.sched-note { margin: 20px 0 0; font-size: 13px; color: var(--muted); max-width: 760px; line-height: 1.6; }
.day-tabs { display: none; }
@media (max-width: 1100px) and (min-width: 901px) { .ep-thumb { display: none; } }
@media (max-width: 900px) {
  .day-tabs:not([hidden]) { position: relative; display: flex; gap: 6px; overflow-x: auto; padding: 16px 0 4px; scrollbar-width: none; }
  .day-tabs button { flex: 0 0 auto; min-width: 56px; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    border: 1px solid var(--line); background: var(--card); font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--ink); cursor: pointer; }
  .day-tabs button small { font-size: 16px; font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
  .day-tabs button.is-today { border-color: var(--sun); color: var(--sun); }
  .day-tabs button[aria-selected=true] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .day-tabs button:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
  .cal { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
  .day, .day:first-child, .day:last-child, .day.today { border-right: 0; padding: 0 0 12px; box-shadow: none; background: transparent; }
  .cal.tabbed .day { display: none; }
  .cal.tabbed .day.active { display: block; }
  .ep { flex-direction: row; align-items: flex-start; gap: 14px; }
  .ep-time { flex: 0 0 52px; padding-top: 2px; }
  .ep-thumb { flex-basis: 48px; }
  .ep-thumb .poster { width: 48px; }
  .ep-title { font-size: 16px; }
}

/* "Hepsini gör" list pages */
.list-page { padding-bottom: 96px; }
.list-head { padding: 32px 0 24px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.list-head h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; }
.list-head p { margin: 0; color: var(--body); }
.alist { list-style: none; margin: 0; padding: 0; }
.alist li { border-bottom: 1px solid var(--line); }
.arow { display: grid; grid-template-columns: 56px 80px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 18px 0; }
.arow:hover .at { color: var(--sun); }
.anum { font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.anum.first { color: var(--sun); }
.athumb .poster { width: 80px; }
.abody { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.at { font-family: var(--serif); font-size: 24px; line-height: 1.25; color: var(--ink); }
.ameta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--muted); }
.asyn { font-size: 15px; color: var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 720px; }
.aside-info { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 15px; text-align: right; }
.aside-info .chip { font-size: 11px; padding: 5px 10px; }
.aside-info .muted { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) {
  .arow { grid-template-columns: 36px 64px minmax(0, 1fr); gap: 14px; }
  .anum { font-size: 22px; }
  .athumb .poster { width: 64px; }
  .at { font-size: 19px; }
  .asyn { display: none; }
  .aside-info { grid-column: 3; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; text-align: left; }
}
/* "Tüm animeler" filter bar */
.flt { display: flex; flex-direction: column; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.flt-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; }
.flt-f { display: flex; flex-direction: column; gap: 6px; flex: 1 1 140px; min-width: 0; }
.flt-f > span { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.flt-f select { height: 44px; width: 100%; padding: 0 36px 0 12px; border: 1px solid var(--rule); border-radius: 0; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231A1A1A' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; font: inherit; font-size: 15px; color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer; }
.flt-f select:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
.flt-sort { flex: 0 1 170px; margin-left: auto; }
.flt-go { height: 44px; padding: 0 20px; border: 0; background: var(--ink); color: var(--paper); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.flt.js .flt-go { display: none; }
.flt-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.flt-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; }
.flt-chip span { font-size: 16px; line-height: 1; }
.flt-chip:hover { background: var(--sun); color: var(--on-sun); }
.flt-clear { font-size: 13px; font-weight: 600; border-bottom: 1px solid currentColor; margin-left: 6px; }
@media (max-width: 640px) {
  .flt-f, .flt-sort { flex: 1 1 calc(50% - 7px); margin-left: 0; }
}
.pager { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 32px; }
.pager a, .pager span { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); font-size: 15px; }
.pager span[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 600; }

/* detail */
/* tags */
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); font-size: 13px; color: var(--body); background: var(--card); }
.tag:hover { border-color: var(--ink); color: var(--ink); }
/* related anime */
.rel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .rel-grid { grid-template-columns: minmax(0, 1fr); } }
.rel { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); background: var(--card); }
a.rel:hover { border-color: var(--ink); }
a.rel:hover .rel-title { color: var(--sun); }
.rel.off { background: transparent; }
.rel.off .rel-thumb img { opacity: .55; }
.rel-thumb { width: 60px; aspect-ratio: 2 / 3; background: var(--line); overflow: hidden; }
.rel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rel-label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sun); }
.rel-title { font-family: var(--serif); font-size: 17px; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.rel-meta { font-size: 13px; color: var(--muted); }
/* characters */
.chars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
@media (max-width: 640px) { .chars { grid-template-columns: repeat(2, minmax(0, 1fr)); } .chars .char-img { aspect-ratio: 1; } }
/* Characters: square-cornered 3:4 portraits, like everything else on the site */
.char { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 4px; min-width: 0; }
.char-img { width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: var(--line); margin-bottom: 8px; }
.char-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.char-name { font-family: var(--serif); font-size: 17px; line-height: 1.3; }
.char-role { font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.char-va { font-size: 13px; color: var(--body); }
.note-sm { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.backbar { padding-top: 20px; }
.back { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); transition: background .15s, color .15s; }
.back:hover { background: var(--ink); color: var(--paper); }
.d-titles { display: flex; flex-direction: column; gap: 14px; }
.d-titles h1 { line-height: 1.08; }
.grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); padding-top: 20px; }
.crumbs span:last-child { color: var(--ink); }
/* Detail hero (design OzetB): left column = poster, synopsis, Künye; right column = title block, then
   "Nerede izlenir?" and "Bölümler". The left column spans both rows, so a long synopsis never opens a gap. */
.d-hero { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 64px 56px; align-items: start; padding-block: 40px 64px; }
.d-left { grid-column: 1; grid-row: 1 / span 2; min-width: 0; display: flex; flex-direction: column; }
.d-watch { grid-column: 2; grid-row: 2; min-width: 0; display: flex; flex-direction: column; gap: 64px; }
.d-poster { min-width: 0; position: relative; }
.d-poster .sun { position: absolute; left: -40px; top: -30px; width: 240px; height: 240px; border-radius: 50%; background: var(--sun); }
.d-poster .poster { box-shadow: 0 24px 48px rgba(26, 26, 26, .22); }
/* Banner (AniList artwork) across the top. Its lower part fades into the paper colour; the poster rises onto
   it and the text starts below it, so nothing is ever read on top of the picture. */
.d-banner { position: relative; height: 380px; overflow: clip; background: var(--line); }
.d-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.d-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(var(--paper-rgb) / 0) 30%, rgb(var(--paper-rgb) / .55) 72%, var(--paper) 100%); pointer-events: none; }
.d-banner-bar { position: relative; z-index: 1; padding-top: 20px; }
.d-banner .back { border-color: rgba(250, 250, 247, .8); color: var(--on-deep); background: rgba(20, 20, 20, .35); }
.d-banner .back:hover { background: var(--paper); color: var(--ink); }
.has-banner .d-hero { position: relative; margin-top: -230px; padding-top: 0; }
.has-banner .d-poster .sun { display: none; }
.has-banner .d-poster .poster { outline: 4px solid var(--paper); }
.has-banner .d-info { padding-top: 254px; }
/* Tablets: a smaller poster beside the title block; synopsis + Künye, then where to watch, run full width below.
   Phones: one column — poster, title block, synopsis + Künye, where to watch. */
@media (max-width: 920px) {
  .d-banner { height: 220px; }
  .has-banner .d-hero { margin-top: -120px; }
  .d-hero { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); grid-template-rows: none; gap: 48px 32px; }
  .d-left { display: contents; }
  .d-poster { grid-column: 1; grid-row: 1; }
  .d-info { grid-column: 2; grid-row: 1; }
  .has-banner .d-info { padding-top: 140px; }
  /* synopsis, then where to watch, then Künye (so the platforms are not pushed far down) */
  .d-hero .d-under { display: contents; }
  .d-under > .syn, .d-under > .no-synopsis, .d-under > .kunye { grid-column: 1 / -1; max-width: 680px; min-width: 0; }
  .d-under > .syn, .d-under > .no-synopsis { grid-row: 2; }
  .d-watch { grid-column: 1 / -1; grid-row: 3; }
  .d-under > .kunye { grid-row: 4; }
}
@media (max-width: 600px) {
  .d-hero { grid-template-columns: minmax(0, 1fr); }
  .d-poster { width: min(300px, 100%); }
  .has-banner .d-poster { width: 220px; }
  .d-info { grid-column: 1; grid-row: 2; }
  .has-banner .d-info { padding-top: 0; }
  .d-under > .syn, .d-under > .no-synopsis { grid-row: 3; }
  .d-watch { grid-row: 4; }
  .d-under > .kunye { grid-row: 5; }
}
.d-info { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: 13px; font-weight: 600; letter-spacing: 2px; padding: 7px 14px; border: 1px solid var(--rule); text-transform: uppercase; }
.chip.live { background: var(--sun); border-color: var(--sun); color: var(--on-sun); }
.chip.soon { border-color: var(--mid); color: var(--muted); }
.d-info h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; letter-spacing: -1.5px; }
.orig { font-size: 16px; color: var(--muted); }
.orig .jp { font-family: var(--jp); }
.facts-row { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; color: var(--body); }
.scores { display: flex; flex-wrap: wrap; gap: 40px; padding: 24px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line); }
.score small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 3px; color: var(--muted); }
.score .v { display: flex; align-items: center; gap: 10px; }
.score .num { font-family: var(--serif); font-size: 52px; line-height: 1.1; }
.score .of { font-size: 18px; color: var(--muted); }
/* stat strip on the detail page: up to 4 equal cells */
.stats { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat small { font-size: 12px; font-weight: 600; letter-spacing: 3px; color: var(--muted); }
.stat .v { display: flex; align-items: center; gap: 10px; min-width: 0; }
a.stat .v, .stat a.v:hover .num { color: var(--sun); }
.stat .num { font-family: var(--serif); font-size: 48px; line-height: 1.1; white-space: nowrap; }
.stat .num.txt { font-size: 30px; white-space: normal; line-height: 1.2; overflow-wrap: anywhere; }
.stat .of { font-size: 16px; color: var(--muted); }
.stat .v { flex-wrap: wrap; row-gap: 2px; }
@media (max-width: 920px) { /* also tablets, where the strip sits beside the poster */
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 18px 16px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat .num { font-size: 38px; }
  .stat .num.txt { font-size: 24px; }
}
.no-synopsis { margin: 0; color: var(--muted); font-size: 16px; }
.synopsis { margin: 0; font-size: 18px; line-height: 1.7; max-width: 640px; }
.d-body { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-bottom: 72px; }
.d-main { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 64px; }
/* One heading system for both columns: a thin ink rule on top of every block, a serif title below it
   (32px on the left, 26px on the right). */
.d-main > div, .d-aside > div, .d-watch > div { border-top: 1px solid var(--rule); padding-top: 18px; }
.d-main h2, .d-watch h2 { font-size: 32px; line-height: 1.15; margin-bottom: 18px; }
.table { border: 1px solid var(--rule); overflow-x: auto; }
.table .tr { display: grid; grid-template-columns: minmax(140px, 2fr) repeat(3, minmax(90px, 1fr)); gap: 12px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 15px; min-width: 520px; }
.table .th { font-size: 12px; font-weight: 600; letter-spacing: 2px; color: var(--muted); border-bottom-color: var(--ink); padding-block: 12px; }
.table .tr b { font-weight: 600; }
.table .note { margin: 0; padding: 14px 20px; font-size: 13px; color: var(--muted); }
.d-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 64px; }
.d-aside h2 { font-size: 26px; line-height: 1.15; margin-bottom: 14px; }
.kunye h2 { margin-bottom: 4px; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-weight: 600; text-align: right; }
/* "Sezonlar ve ilişkili yapımlar" in the right column, under Künye: one card per row */
.aside-rel .rel-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.aside-rel .rel { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 8px; }
.aside-rel .rel-thumb { width: 52px; }
.aside-rel .rel-title { font-size: 16px; }
.rel-more { margin-top: 14px; }
.rel-more summary { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.rel-more summary::-webkit-details-marker { display: none; }
.rel-more summary:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
.rel-more-ic::before { content: '↓'; }
.rel-more[open] .rel-more-ic::before { content: '↑'; }
.rel-more ul { list-style: none; margin: 8px 0 0; padding: 0; }
.rel-more li { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--soft); }
.rel-more .rel-label { color: var(--muted); }
.rel-more-t { font-size: 15px; overflow-wrap: anywhere; }
.rel-more .rel-meta { font-size: 12px; }
.rel-grid + .rel-more { margin-top: 14px; }
/* "Bunu sevdiysen" in the right column: two posters per row */
.sim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
.sim-grid .card { gap: 8px; }
.sim-grid .card .t { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sim-grid .card .meta { font-size: 12px; margin-top: 0; }
/* One column (phones, small tablets): both columns melt into one list so "Sezonlar" follows "Bölümler"
   instead of dropping to the very bottom; Künye stays last. */
@media (max-width: 960px) {
  .d-body { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 64px; }
  .d-main, .d-aside { display: contents; }
  .d-main > * { order: 5; }
  #nerede-izlenir { order: 1; }
  #bolumler { order: 2; }
  #iliskili { order: 3; }
  #benzer { order: 6; }
  #benzer.main-sim { order: 4; } /* films: above Karakterler, as on desktop */
  .kunye { order: 9; }
  .d-aside h2 { font-size: 32px; margin-bottom: 18px; } /* one column: every block the same size */
  .sim-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
}
@media (max-width: 640px) { .sim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } }

/* ---------- profiles and lists ---------- */
.u-line { border-bottom: 1px solid currentColor; }

/* Episode list on the detail page (design "Bölümler A": rows, summary folds open under its row) */
.eps { display: flex; flex-direction: column; gap: 16px; }
.eps-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; }
.d-main .eps-h h2, .d-watch .eps-h h2 { margin-bottom: 0; }
.eps-count { font-size: 14px; color: var(--muted); }
/* "Sıradaki bölüm" band in Bölümler: the weekly schedule's band (.up-next), sized for the narrower column */
.ep-up-next { margin: 0; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 22px; padding: 20px 24px; }
.ep-up-next .un-poster { width: 84px; }
.ep-up-next .un-title { font-size: clamp(22px, 2.2vw, 30px); }
.ep-up-next .un-box b { font-size: 48px; min-width: 76px; padding: 8px 4px; }
.ep-up-next .un-sep { font-size: 36px; padding-bottom: 30px; }
.un-cal { align-self: flex-start; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--on-deep); border-bottom: 1px solid #5C5C5C; }
.un-cal:hover { color: #F26A7E; border-color: currentColor; }
.ep-list { list-style: none; margin: 0; padding: 0; }
.el { border-bottom: 1px solid var(--soft); }
.el-row { display: grid; grid-template-columns: var(--no-w, 56px) minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 14px 4px; }
.ep-list.d3 { --no-w: 64px; }
.ep-list.d4 { --no-w: 84px; }
summary.el-row { cursor: pointer; list-style: none; }
summary.el-row::-webkit-details-marker { display: none; }
summary.el-row:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
.el-no { font-family: var(--serif); font-size: 30px; line-height: 1; }
.el-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.el-t { font-family: var(--serif); font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.el-meta { font-size: 13px; color: var(--muted); }
/* "Özeti aç": a plain underlined link while closed (12 boxes in a row were too heavy), a black box when open */
.el-btn { height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid transparent; font-size: 13px; font-weight: 600; letter-spacing: .5px; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.el-open { text-decoration: underline; text-decoration-color: var(--mid); text-underline-offset: 5px; }
.el-ic::before { content: '+'; font-size: 15px; line-height: 1; }
.el-close { display: none; }
summary.el-row:hover .el-btn { border-color: var(--ink); }
summary.el-row:hover .el-open { text-decoration-color: currentColor; }
.el-d[open] .el-btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.el-d[open] .el-open { display: none; }
.el-d[open] .el-close { display: inline; }
.el-d[open] .el-ic::before { content: '−'; }
.el-panel { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; margin: 0 4px 18px 78px; padding: 20px; background: var(--card); border: 1px solid var(--soft); }
.el-panel img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--soft); }
.el-panel:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.el-text { display: flex; flex-direction: column; gap: 8px; }
.el-kicker { font-size: 12px; font-weight: 600; letter-spacing: 2px; color: var(--sun); }
.el-text p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--prose); }
.el.future .el-row { opacity: .55; }
.el.future .el-no { color: var(--mid); }
.el.next .el-row { opacity: 1; }
.el.next .el-no { color: var(--sun); }
.el-soon { font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--muted); border: 1px dashed var(--mid); padding: 9px 12px; white-space: nowrap; }
.el.next .el-soon { color: var(--sun); border-color: var(--sun); border-style: solid; }
.ep-all { height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--rule); font-size: 15px; font-weight: 500; letter-spacing: 1px; transition: background .15s, color .15s; }
.ep-all:hover { background: var(--ink); color: var(--paper); }
.ep-all[aria-busy] { opacity: .6; }
.eps .note-sm { margin: 0; }
@media (max-width: 600px) {
  .el-row { grid-template-columns: var(--no-w, 40px) minmax(0, 1fr); gap: 6px 12px; }
  .ep-list.d2 { --no-w: 40px; }
  .ep-list.d3 { --no-w: 50px; }
  .ep-list.d4 { --no-w: 66px; }
  .el-no { font-size: 24px; }
  .el-t { font-size: 17px; }
  .el-btn, .el-soon { grid-column: 2; justify-self: start; height: 36px; }
  .el-btn { margin-left: -12px; } /* closed it reads as a link: line its text up with the title */
  .el-soon { height: auto; padding: 6px 10px; }
  .el-panel { grid-template-columns: minmax(0, 1fr); margin: 0 0 16px; padding: 16px; gap: 14px; }
}
.muted { color: var(--muted); }
.flash { margin: 20px 0 0; padding: 14px 18px; border-left: 4px solid var(--rule); background: var(--card); font-size: 15px; }
.flash.err { border-left-color: var(--sun); }
.btn.sm { height: 46px; padding: 0 22px; border: 0; cursor: pointer; font: inherit; font-weight: 500; letter-spacing: 1px; }
.btn-o { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--rule); background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-o:hover { background: var(--ink); color: var(--paper); }
.avatar { width: var(--s); height: var(--s); flex: 0 0 var(--s); border-radius: 50%; overflow: hidden; background: var(--sun); color: var(--on-sun); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: calc(var(--s) * .45); line-height: 1; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-me { display: inline-flex; align-items: center; gap: 8px; }
.nav-me:hover .avatar { outline: 2px solid var(--sun); outline-offset: 2px; }
.soon-box { position: relative; max-width: 640px; padding: 72px 0 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.soon-box h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; }
.soon-box p { margin: 0; font-size: 18px; color: var(--body); }
.sun-sm { width: 56px; height: 56px; border-radius: 50%; background: var(--sun); }

.profile-page { padding-bottom: 96px; }
.p-head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; padding: 32px 0; }
.p-id { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.p-id h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; overflow-wrap: anywhere; }
.p-handle { margin: 0; font-size: 14px; color: var(--muted); }
.p-bio { margin: 0; font-size: 17px; color: var(--body); max-width: 640px; white-space: pre-line; }
.p-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.p-stats { margin-bottom: 8px; }
.p-sec { padding-top: 56px; }
.p-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.p-sec-h h2 { font-size: 34px; }
.p-empty { margin: 0; padding: 28px; border: 1px dashed var(--line); color: var(--muted); }
.showcase { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.showcase .card .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) { .showcase { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 14px; } }
@media (max-width: 420px) { .showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 24px; align-items: start; }
.lcard { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lcover { display: grid; aspect-ratio: 4 / 3; gap: 3px; background: var(--line); overflow: hidden; border: 1px solid var(--line); }
.lcover > span { position: relative; overflow: hidden; min-height: 0; }
.lcover img { width: 100%; height: 100%; object-fit: cover; }
.lcover.n1 { grid-template-columns: 1fr; }
.lcover.n2 { grid-template-columns: 1fr 1fr; }
.lcover.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.lcover.n3 > span:first-child { grid-row: span 2; }
.lcover.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.lcover .lc-empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; background: var(--card); }
.lcard:hover .lcover { border-color: var(--ink); }
.lt { font-family: var(--serif); font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.lmeta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); margin: 0; }
.lmeta .lock { color: var(--ink); font-weight: 600; }
.lnew summary { list-style: none; cursor: pointer; aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px dashed var(--muted); font-size: 15px; font-weight: 600; }
.lnew summary::-webkit-details-marker { display: none; }
.lnew summary:hover { border-color: var(--ink); color: var(--sun); }
.lnew .plus { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); display: inline-flex; align-items: center; justify-content: center; font-size: 26px; line-height: 1; }
.lnew[open] summary { aspect-ratio: auto; min-height: 56px; flex-direction: row; }
.lnew .pform { padding-top: 16px; }

.pform { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.pform.big { padding-top: 32px; max-width: 640px; }
.pform label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; width: 100%; }
.pform label small, .pform > small { font-weight: 400; color: var(--muted); font-size: 13px; }
.pform input:not([type=checkbox]):not([type=file]), .pform textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 10px 12px; border: 1px solid var(--rule); background: var(--card); color: var(--ink); width: 100%; border-radius: 0; }
.pform input:focus, .pform textarea:focus { outline: 2px solid var(--sun); outline-offset: 1px; }
.pform textarea { resize: vertical; }
.pform input[type=file] { font: inherit; font-size: 14px; font-weight: 400; }
.check { flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 400 !important; font-size: 15px !important; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--sun); flex-shrink: 0; margin: 0; }
.pform fieldset { border: 1px solid var(--line); padding: 16px 18px; margin: 0; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.pform legend { font-size: 14px; font-weight: 600; padding: 0 6px; }
.pform.danger { padding-top: 24px; margin-top: 8px; border-top: 1px solid var(--line); }
.av-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; width: 100%; }
.av-ctl { display: flex; flex-direction: column; gap: 8px; flex: 1 1 260px; }
.narrow { max-width: 860px; }

.owner { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--body); }
.ledit { margin-top: 20px; border: 1px solid var(--line); background: var(--card); }
.ledit summary { cursor: pointer; padding: 14px 18px; font-size: 14px; font-weight: 600; }
.ledit .pform { padding: 4px 18px 20px; }
.alist li:has(+ .arow-tools) { border-bottom: 0; }
.alist .arow-tools { padding: 0 0 14px 80px; }
.arow-tools form { display: flex; flex-wrap: wrap; gap: 6px; }
.arow-tools button, .sc-edit button { min-width: 40px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.arow-tools button:hover:not(:disabled), .sc-edit button:hover:not(:disabled) { border-color: var(--ink); }
.arow-tools button:disabled, .sc-edit button:disabled { opacity: .35; cursor: default; }
.arow-tools .rm:hover, .sc-edit .rm:hover { color: var(--sun); border-color: var(--sun); }
@media (max-width: 640px) { .alist .arow-tools { padding-left: 50px; } }
.sc-edit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sc-edit li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sc-edit .athumb .poster { width: 48px; }
.sc-edit .t { font-family: var(--serif); font-size: 18px; }
.sc-edit form { display: flex; gap: 6px; }
@media (max-width: 520px) { .sc-edit li { grid-template-columns: 48px minmax(0, 1fr); } .sc-edit form { grid-column: 2; } }

/* "Listeme ekle" on the detail page */
.d-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Top row of the detail page: season · status chips, then list / watched / calendar buttons, all one height */
.d-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.d-top { gap: 12px 24px; }
.d-top .d-actions { gap: 10px; }
/* Season and status: plain information, not boxes, so they do not look like the buttons next to them */
.d-meta { margin: 0; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; font-weight: 600; letter-spacing: 2px; }
.d-sep { width: 1px; height: 14px; background: var(--mid); }
.d-status { display: inline-flex; align-items: center; gap: 8px; }
.d-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.d-status.done .d-dot { background: var(--ok); }
.d-status.live { color: var(--sun); }
.d-status.soon { color: var(--muted); }
.d-status.soon .d-dot { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.d-top .add-btn, .d-top .watch-btn { height: 40px; padding: 0 16px; font-size: 14px; }
.d-top .add-btn .ic { width: 20px; height: 20px; font-size: 14px; }
.d-top .btn span { margin-left: 0; }
.d-top .add-btn { gap: 8px; }
.d-top .cal-btn { width: 40px; height: 40px; }
.d-top .cal-btn svg { width: 20px; height: 20px; }
.d-top .watch-btn svg { width: 18px; height: 18px; }
@media (max-width: 480px) { .d-meta { letter-spacing: 1.5px; font-size: 12px; } }
.addwrap { position: relative; }
.add-btn { border: 0; cursor: pointer; font: inherit; font-size: 15px; font-weight: 500; letter-spacing: 1px; gap: 10px; }
.add-btn .ic { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; }
.add-btn.in { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.add-btn.in:hover { background: var(--ink); color: var(--paper); }
.add-btn.in .ic { background: var(--sun); border-color: var(--sun); color: var(--on-sun); }
.lmenu { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: min(340px, calc(100vw - 40px)); background: var(--card); border: 1px solid var(--rule); box-shadow: 0 16px 40px rgba(26, 26, 26, .18); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.lmenu[hidden] { display: none; }
.lm-h { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.lm-lists { display: flex; flex-direction: column; gap: 2px; max-height: 240px; overflow-y: auto; }
.lmenu .check { display: flex; min-height: 40px; padding: 0 4px; }
.lmenu .check span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.lmenu .check small { font-size: 12px; color: var(--muted); }
.lmenu .check:hover { background: var(--paper); }
.lm-sc { border-top: 1px solid var(--line); padding-top: 8px !important; }
.lm-new { display: flex; border: 1px solid var(--rule); }
.lm-new input { flex: 1 1 auto; min-width: 0; height: 40px; border: 0; padding: 0 10px; font: inherit; font-size: 14px; background: transparent; }
.lm-new input:focus { outline: none; }
.lm-new:focus-within { outline: 2px solid var(--sun); outline-offset: 1px; }
.lm-new button { border: 0; background: var(--ink); color: var(--paper); padding: 0 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.lm-msg { margin: 0; min-height: 1.4em; font-size: 13px; color: var(--body); }
.lm-link { align-self: flex-start; font-size: 13px; font-weight: 600; }

/* AniList import */
.imp-result { margin-top: 28px; padding: 24px; background: var(--card); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 12px; }
.imp-result h2 { font-size: 26px; }
.imp-result p { margin: 0; }
.imp-lists { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.imp-lists span { color: var(--muted); font-size: 14px; }
.imp-result summary { cursor: pointer; font-weight: 600; }
.imp-missing { columns: 2 220px; font-size: 14px; color: var(--body); margin: 8px 0 0; padding-left: 18px; }

/* schedule: all / mine */
.sched-ctl { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--rule); }
.seg a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 16px; font-size: 14px; font-weight: 600; }
.seg a + a { border-left: 1px solid var(--rule); }
.seg a[aria-current] { background: var(--ink); color: var(--paper); }
.sched-mine-note { margin: 20px 0 0; padding: 16px 18px; background: var(--card); border-left: 4px solid var(--sun); font-size: 15px; }
.avatar.guest { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* pop-up windows */
dialog.modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 0 24px 24px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); box-shadow: 0 24px 64px rgba(26, 26, 26, .3); }
dialog.modal::backdrop { background: rgba(26, 26, 26, .55); }
dialog.modal[open] { animation: m-in .18s ease-out; }
@keyframes m-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { dialog.modal[open] { animation: none; } }
.m-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0 16px; margin-bottom: 8px; background: var(--paper); border-bottom: 1px solid var(--rule); }
.m-head h2 { font-size: 26px; }
.m-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule); background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.m-x:hover { background: var(--ink); color: var(--paper); }
.m-sub { margin: 8px 0 12px; font-size: 14px; color: var(--muted); }
.m-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 4px; }
dialog.modal .pform { padding-top: 12px; }
dialog.modal .pform.danger { margin-top: 20px; }
dialog.modal .p-empty { padding: 18px; margin-top: 12px; }
.pform .hint { margin-top: -10px; font-size: 13px; color: var(--muted); }
.pform select { font: inherit; font-weight: 400; font-size: 16px; height: 44px; padding: 0 10px; border: 1px solid var(--rule); background: var(--card); color: var(--ink); width: 100%; border-radius: 0; }
.sc-add { margin-top: 16px; padding-top: 16px !important; border-top: 1px solid var(--line); }
.pform-page { padding-top: 32px; max-width: 640px; }

/* "new list" tile is a button now */
button.lnew { width: 100%; aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 1px dashed var(--muted); background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
button.lnew:hover { border-color: var(--ink); color: var(--sun); }
.lcard.fresh .lcover { border-color: var(--sun); box-shadow: 0 0 0 2px var(--sun); }
.lcover .lc-empty { padding: 12px; text-align: center; line-height: 1.4; }
.list-head .btn-o { margin-top: 4px; }

/* toasts (bottom right) */
.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.toast { position: relative; overflow: hidden; pointer-events: auto; display: flex; align-items: center; gap: 12px; width: min(380px, calc(100vw - 32px)); padding: 14px 12px 16px 16px; background: var(--ink); color: var(--paper); box-shadow: 0 18px 40px rgba(26, 26, 26, .28); animation: toast-in .34s cubic-bezier(.2, .9, .3, 1.15) both; }
.toast p { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.toast-dot { width: 12px; height: 12px; flex: 0 0 12px; border-radius: 50%; background: var(--sun); }
.toast.err { box-shadow: inset 4px 0 0 var(--sun), 0 18px 40px rgba(26, 26, 26, .28); }
.toast.err .toast-dot { background: transparent; box-shadow: inset 0 0 0 2px var(--sun); }
.toast-x { width: 30px; height: 30px; flex: 0 0 30px; border: 0; border-radius: 50%; background: transparent; color: #A8A8A2; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.toast-x:hover { background: rgba(250, 250, 247, .12); color: var(--paper); }
.toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--sun); transform-origin: left; animation: toast-bar linear forwards; }
.toast.paused .toast-bar { animation-play-state: paused; }
.toast.out { animation: toast-out .26s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }
@keyframes toast-bar { to { transform: scaleX(0); } }
@media (max-width: 560px) { .toasts { left: 16px; right: 16px; bottom: 16px; align-items: stretch; } .toast { width: auto; } }
@media (prefers-reduced-motion: reduce) { .toast, .toast.out { animation: none; } .toast-bar { display: none; } }

/* showcase pop-up: search with posters */
.sc-search { position: relative; display: flex; align-items: center; margin-top: 8px; border: 1px solid var(--rule); background: var(--card); }
.sc-search svg { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.sc-search input { flex: 1 1 auto; min-width: 0; height: 46px; border: 0; padding: 0 12px 0 40px; font: inherit; font-size: 16px; background: transparent; color: var(--ink); }
.sc-search input:focus { outline: none; }
.sc-search:focus-within { outline: 2px solid var(--sun); outline-offset: 1px; }
.sc-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px 10px; margin-top: 14px; }
.sc-results:empty { display: none; }
.sc-none { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); }
.sc-hit { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.sc-hit .poster { width: 100%; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s, transform .15s; }
.sc-hit:hover .poster { outline-color: var(--ink); transform: translateY(-2px); }
.sc-hit-t { font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-tick { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--sun); color: var(--on-sun); display: none; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.sc-hit.on .sc-tick { display: inline-flex; }
.sc-hit.on .poster { outline-color: var(--sun); }
.sc-btns { display: flex; gap: 6px; }
.sc-edit .poster { width: 48px; }
#sc-count { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 520px) { .sc-edit .sc-btns { grid-column: 2; } }

/* lists: drag to reorder */
.p-hint { font-size: 13px; color: var(--muted); }
.lcard-w { position: relative; min-width: 0; }
.ldrag { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(250, 250, 247, .92); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: grab; touch-action: none; box-shadow: 0 2px 8px rgba(26, 26, 26, .2); opacity: 0; transition: opacity .15s; }
.lcard-w:hover .ldrag, .ldrag:focus-visible { opacity: 1; }
@media (hover: none) { .ldrag { opacity: 1; } }
.ldrag:active { cursor: grabbing; }
.lcard-w.dragging { opacity: .35; }
.lcard-w.dragging .lcover { border: 1px dashed var(--ink); }
.lcard-w.ghost { position: fixed; z-index: 900; pointer-events: none; transform: rotate(-1.5deg) scale(1.03); box-shadow: 0 24px 48px rgba(26, 26, 26, .3); background: var(--paper); }
.lcard-w.ghost .ldrag { opacity: 1; cursor: grabbing; }
/* a just-created list is highlighted briefly, then the frame fades away */
.lcard-w.fresh .lcover { animation: fresh 2.6s ease-out .3s both; }
@keyframes fresh { 0%, 40% { box-shadow: 0 0 0 2px var(--sun); border-color: var(--sun); } 100% { box-shadow: 0 0 0 2px transparent; border-color: var(--line); } }
.lcard:focus-visible { outline-color: var(--ink); }
.sc-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.sc-edit .poster, .sc-hit .poster { display: block; }

/* while a pop-up is open the page behind it does not scroll */
html:has(dialog.modal[open]) { overflow: hidden; }
dialog.modal { overscroll-behavior: contain; }
html { scrollbar-gutter: stable; }

/* ---------- profile, layout A: cover band ---------- */
.profile-page .p-cover { position: relative; height: 300px; background: var(--deep); overflow: hidden; }
.pc-strip { position: absolute; inset: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); opacity: .42; filter: grayscale(.65) contrast(1.05); }
.pc-strip span { overflow: hidden; }
.pc-strip img { width: 100%; height: 100%; object-fit: cover; }
.pc-shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--deep) 12%, rgba(20, 20, 20, .55) 55%, rgba(20, 20, 20, .25)), linear-gradient(0deg, rgba(20, 20, 20, .6), transparent 45%); }
.pc-sun { position: absolute; right: 9%; top: 40px; width: 220px; height: 220px; border-radius: 50%; background: var(--sun); }
.pc-top { position: relative; }
.p-cover .back { border-color: rgba(250, 250, 247, .7); color: var(--on-deep); background: rgba(20, 20, 20, .3); }
.p-cover .back:hover { background: var(--paper); color: var(--ink); }
.profile-page .p-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 32px; margin-top: -64px; padding: 0; position: relative; }
.profile-page .p-head > .avatar { border: 6px solid var(--paper); box-sizing: content-box; }
.profile-page .p-id { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-bottom: 6px; }
.profile-page .p-id h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.08; }
.profile-page .p-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 8px; }
.profile-page .p-actions .btn.sm { height: 44px; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.profile-page .p-actions .btn-o { gap: 8px; }
.p-about { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; }
.p-about .p-bio { font-size: 17px; }
.p-genres { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.p-label { font-size: 12px; font-weight: 600; letter-spacing: 2px; color: var(--muted); margin-right: 6px; }
.tag.strong { border-color: var(--ink); font-weight: 600; color: var(--ink); }
.p-mini { font-size: 13px; color: var(--muted); border-bottom: 1px dashed currentColor; margin-left: 4px; }
.p-sec-h.ruled { border-bottom: 1px solid var(--rule); padding-bottom: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.p-link { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.p-link:hover { color: var(--sun); }
.p-sec-tools { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; }
.profile-page .p-sec { padding-top: 64px; }
.profile-page .p-sec:last-child { padding-bottom: 96px; }
@media (max-width: 640px) {
  .profile-page .p-cover { height: 200px; }
  .pc-sun { width: 140px; height: 140px; top: 30px; right: 6%; }
  .profile-page .p-head { margin-top: -48px; }
  .profile-page .p-head > .avatar { --s: 104px !important; }
}

/* showcase: No. 1 big with the sun, 2–5 smaller */
.showcase2 { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr)); gap: 24px; align-items: end; }
.sc-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sc-card .poster { position: relative; display: block; }
.sc-card.first .poster { box-shadow: 0 20px 40px rgba(26, 26, 26, .25); }
.sc-sun { position: absolute; left: -28px; top: -28px; width: 150px; height: 150px; border-radius: 50%; background: var(--sun); }
.sc-cap { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.sc-no { font-family: var(--serif); font-size: 20px; color: var(--muted); line-height: 1; }
.sc-card.first .sc-no { font-size: 40px; color: var(--sun); }
.sc-t { font-family: var(--serif); font-size: 17px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-card.first .sc-t { font-size: 24px; }
.sc-card:hover .sc-t { color: var(--sun); }
@media (max-width: 760px) {
  .showcase2 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 12px; }
  .sc-card.first { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 16px; }
  .sc-sun { left: -16px; top: -16px; width: 110px; height: 110px; }
  .sc-t { font-size: 14px; }
  .sc-no { font-size: 16px; }
}

/* "Bu hafta" + "Son eklenenler" */
.p-duo { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.p-week { flex: 1 1 420px; min-width: 0; background: var(--deep); color: var(--on-deep); padding: 28px; display: flex; flex-direction: column; }
.pw-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pw-h h2 { font-size: 28px; }
.pw-h span { font-size: 12px; letter-spacing: 1px; color: #A8A8A2; }
.pw-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid #3A3A3A; color: var(--on-deep); }
.pw-row:hover .pw-t { color: #FF6B7F; }
.pw-row.aired { opacity: .55; }
.pw-when { font-size: 13px; font-weight: 600; }
.pw-when.today { color: #FF6B7F; }
.pw-t { font-family: var(--serif); font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.pw-ep { font-size: 13px; color: #A8A8A2; white-space: nowrap; }
.pw-empty { margin: 0; padding: 14px 0; border-top: 1px solid #3A3A3A; color: #C9C9C3; font-size: 15px; }
.pw-more { align-self: flex-start; margin-top: 14px; color: var(--on-deep); font-size: 14px; font-weight: 600; border-bottom: 1px solid currentColor; }
.pw-more:hover { color: #FF6B7F; }
@media (max-width: 520px) { .pw-row { grid-template-columns: minmax(0, 1fr) auto; } .pw-when { grid-column: 1 / -1; } }
.p-recent { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.p-recent h2 { font-size: 28px; }
.pr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 14px; }
.pr-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pr-card .poster { display: block; }
.pr-t { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pr-l { font-size: 12px; color: var(--muted); margin-top: -4px; }
.pr-card:hover .pr-t { color: var(--sun); }

/* genre picker in the profile form */
.genre-pick legend small { font-weight: 400; color: var(--muted); }
.gp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gp { position: relative; width: auto !important; cursor: pointer; }
.gp input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gp span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 500; }
.gp input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.gp input:focus-visible + span { outline: 2px solid var(--sun); outline-offset: 2px; }
.gp input:disabled + span { opacity: .4; cursor: not-allowed; }
.pf-more { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.sc-slot { padding: 0; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.sc-slot-box { display: flex; align-items: center; justify-content: center; aspect-ratio: 2 / 3; border: 1px dashed var(--muted); background: transparent; transition: border-color .15s, background .15s; }
.sc-slot-box .plus { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; line-height: 1; transition: background .15s, color .15s; }
.sc-slot:hover .sc-slot-box { border-color: var(--ink); background: var(--card); }
.sc-slot:hover .plus { background: var(--ink); color: var(--paper); }
.sc-slot .sc-no { color: #A8A8A2; }
.sc-slot .sc-t { font-family: var(--sans); font-size: 13px; }

/* ---------- profile A, round 2: vivid cover, aligned showcase, full-width "Bu hafta" ---------- */
.pc-strip { display: flex; gap: 4px; height: 100%; opacity: 1; filter: none; }
.pc-strip span { flex: 0 0 auto; height: 100%; aspect-ratio: 2 / 3; overflow: hidden; }
.pc-shade, .pc-sun { display: none; }
.p-cover.empty { background: var(--deep); }
/* captions take the same height everywhere, so all poster bottoms line up */
.sc-cap { height: 64px; align-items: flex-start; overflow: hidden; }
.sc-card.first .sc-cap { height: 64px; }
.sc-card.first .sc-t { font-size: 22px; }
@media (max-width: 760px) { .sc-cap { height: 44px; } .sc-card.first .sc-cap { height: auto; } }

.p-week { display: block; flex: none; padding: 48px 0 56px; background: var(--deep); color: var(--on-deep); }
.p-week .pw-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-bottom: 24px; }
.p-week .pw-h h2 { font-size: 34px; }
.p-week .pw-h span { flex: 1 1 auto; font-size: 13px; letter-spacing: .5px; color: #A8A8A2; }
.p-week .pw-more { margin: 0; }
.pw-row-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pw-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; background: #242424; color: var(--on-deep); border: 1px solid #333333; transition: border-color .15s; }
.pw-card:hover { border-color: #FF6B7F; color: var(--on-deep); }
.pw-card.aired { opacity: .55; }
.pw-thumb .poster { width: 64px; display: block; }
.pw-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.p-week .pw-when { font-size: 13px; font-weight: 600; }
.p-week .pw-when.today { color: #FF6B7F; }
.p-week .pw-t { font-family: var(--serif); font-size: 18px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-week .pw-ep { font-size: 13px; color: #A8A8A2; white-space: normal; }
.p-week .pw-empty { border-top: 1px solid #3A3A3A; }

/* ---------- profile cover: AniList banner or wave pattern ---------- */
.profile-page .p-cover { height: 320px; background: var(--deep); }
.pc-strip { display: none; }
.pc-art { position: absolute; inset: 0; display: block; }
.pc-banner { background-size: cover; background-position: center 30%; background-color: var(--ink); }
.p-cover.banner::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(0deg, rgba(20, 20, 20, .45), transparent); pointer-events: none; }
/* seigaiha (Japanese wave) pattern; --bg ground, --line waves, --size tile width */
.seigaiha {
  --s: var(--size, 96px);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 100% 150%, var(--bg) 24%, var(--line) 24%, var(--line) 28%, var(--bg) 28%, var(--bg) 36%, var(--line) 36%, var(--line) 40%, transparent 40%, transparent),
    radial-gradient(circle at 0 150%, var(--bg) 24%, var(--line) 24%, var(--line) 28%, var(--bg) 28%, var(--bg) 36%, var(--line) 36%, var(--line) 40%, transparent 40%, transparent),
    radial-gradient(circle at 50% 100%, var(--line) 10%, var(--bg) 10%, var(--bg) 23%, var(--line) 23%, var(--line) 30%, var(--bg) 30%, var(--bg) 43%, var(--line) 43%, var(--line) 50%, var(--bg) 50%, var(--bg) 63%, var(--line) 63%, var(--line) 71%, transparent 71%, transparent),
    radial-gradient(circle at 100% 50%, var(--line) 5%, var(--bg) 5%, var(--bg) 15%, var(--line) 15%, var(--line) 20%, var(--bg) 20%, var(--bg) 29%, var(--line) 29%, var(--line) 34%, var(--bg) 34%, var(--bg) 44%, var(--line) 44%, var(--line) 49%, transparent 49%, transparent),
    radial-gradient(circle at 0 50%, var(--line) 5%, var(--bg) 5%, var(--bg) 15%, var(--line) 15%, var(--line) 20%, var(--bg) 20%, var(--bg) 29%, var(--line) 29%, var(--line) 34%, var(--bg) 34%, var(--bg) 44%, var(--line) 44%, var(--line) 49%, transparent 49%, transparent);
  background-size: var(--s) calc(var(--s) / 2);
}
.pc-credit, .pc-edit { position: absolute; bottom: 14px; z-index: 1; min-height: 32px; display: inline-flex; align-items: center; padding: 0 12px; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .5px; color: var(--on-deep); background: rgba(20, 20, 20, .55); border: 1px solid rgba(250, 250, 247, .35); backdrop-filter: blur(4px); }
.pc-credit { right: max(20px, calc((100% - 1280px) / 2 + 20px)); max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 30px; }
.pc-credit:hover, .pc-edit:hover { color: var(--on-deep); background: rgba(20, 20, 20, .85); }
.pc-edit { right: max(20px, calc((100% - 1280px) / 2 + 20px)); top: 20px; bottom: auto; cursor: pointer; }
.p-cover.pattern .pc-credit { display: none; }
@media (max-width: 640px) { .profile-page .p-cover { height: 180px; } .pc-credit { display: none !important; } .pc-edit { top: 14px; } }

/* cover picker in the profile form */
.cover-pick { gap: 14px !important; }
.cp-preview { position: relative; aspect-ratio: 4.75 / 1; overflow: hidden; border: 1px solid var(--line); background: var(--deep); }
.cp-note { margin: 0; font-size: 13px; color: var(--muted); }
.cp-anime { display: flex; flex-direction: column; gap: 10px; }
.cp-anime .sc-search { margin-top: 0; }
.cp-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cp-results:empty { display: none; }
.cp-hit { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; min-width: 0; }
.cp-img { display: block; aspect-ratio: 4.75 / 1; background-size: cover; background-position: center; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s; }
.cp-hit:hover .cp-img { outline-color: var(--ink); }
.cp-hit.on .cp-img { outline-color: var(--sun); }
.cp-t { font-size: 12px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cp-sw { position: relative; display: flex !important; flex-direction: column; gap: 4px !important; cursor: pointer; font-weight: 400 !important; }
.cp-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cp-sw .seigaiha { display: block; height: 44px; outline: 2px solid transparent; outline-offset: 2px; }
.cp-sw input:checked + .seigaiha { outline-color: var(--ink); }
.cp-sw input:focus-visible + .seigaiha { outline-color: var(--sun); }
.cp-sw small { font-size: 12px; color: var(--body); }
[data-cp-for][hidden] { display: none !important; }
#kapak-sec { scroll-margin-top: 96px; }

/* ---------- "Profili düzenle": tabs on top, scrolling body, fixed footer ---------- */
dialog.modal.tabbed { width: min(620px, calc(100vw - 32px)); height: min(860px, calc(100dvh - 48px)); padding: 0; overflow: hidden; }
dialog.modal.tabbed[open] { display: flex; flex-direction: column; }
dialog.modal.tabbed .m-head { position: static; flex: none; margin: 0; padding: 20px 28px 12px; border-bottom: 0; }
.ptabs-form { flex: 1 1 auto; min-height: 0; display: flex !important; flex-direction: column; gap: 0 !important; align-items: stretch !important; padding: 0 !important; }
.ptabs { flex: none; display: flex; gap: 2px; padding: 0 28px; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.ptabs::-webkit-scrollbar { display: none; }
.ptabs [role=tab] { flex: none; min-height: 46px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; }
.ptabs [role=tab]:hover { color: var(--ink); }
.ptabs [role=tab][aria-selected=true] { color: var(--ink); font-weight: 600; border-bottom-color: var(--sun); }
.ptabs-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 28px 28px; }
.ptab { display: flex; flex-direction: column; gap: 18px; }
.ptab[hidden] { display: none; }
.ptab > label:not(.check) { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.ptab .genre-pick, .ptab.cover-pick { border: 0; padding: 0; margin: 0; }
.ptab .genre-pick legend { padding: 0 0 10px; font-size: 14px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.ptab .genre-pick .hint { margin-top: 10px; display: block; }
.ptabs-foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 28px; border-top: 1px solid var(--rule); background: var(--card); }
.pf-dirty { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--body); }
.pf-dirty[hidden] { display: none; }
.pf-dirty .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.pf-actions { display: inline-flex; gap: 10px; margin-left: auto; }
.pf-actions .btn-o, .pf-actions .btn.sm { min-height: 44px; height: 44px; }
.sc-msg { margin: -8px 0 0; font-size: 13px; color: var(--sun); min-height: 0; }
.sc-msg:empty { display: none; }
.sc-count { margin: 0 !important; padding-top: 14px; border-top: 1px solid var(--line); }
.pg-block { display: flex; flex-direction: column; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.pg-block:last-child { border-bottom: 0; }
.pg-text { margin: 0; font-size: 14px; color: var(--body); }
.pg-row { display: flex; gap: 10px; }
.pg-row input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--rule); background: var(--card); font: inherit; font-size: 16px; }
.pg-row input:focus { outline: 2px solid var(--sun); outline-offset: 1px; }
.pg-row .btn.sm { height: 44px; white-space: nowrap; }
.pg-soon { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--faint); }
.pg-soon:last-child { border-bottom: 0; }
.pg-soon small { font-size: 12px; }
/* the stand-alone settings page uses the same form */
.pform-page .ptabs-form { border: 1px solid var(--rule); background: var(--paper); }
.pform-page .ptabs { padding-top: 6px; }
@media (max-width: 520px) {
  dialog.modal.tabbed { height: calc(100dvh - 24px); width: calc(100vw - 16px); }
  dialog.modal.tabbed .m-head, .ptabs-body, .ptabs-foot { padding-left: 16px; padding-right: 16px; }
  .ptabs { padding: 0 8px; }
  .ptabs [role=tab] { padding: 0 10px; }
}
.gp-auto-note { margin: 0 0 10px; font-size: 13px; color: var(--body); }
.genre-pick.auto .gp input:checked + span { background: var(--card); color: var(--ink); border: 1px dashed var(--ink); }

/* calendar icon on the anime page (airing anime only) */
.cal-form { display: contents; }
.cal-btn { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer; transition: background .15s, color .15s; }
.cal-btn:hover { background: var(--ink); color: var(--paper); }
.cal-btn .cal-check { display: none; }
.cal-btn.on { background: var(--sun); border-color: var(--sun); color: var(--on-sun); }
.cal-btn.on .cal-plus { display: none; }
.cal-btn.on .cal-check { display: inline; }
.cal-btn.on:hover { background: #A50D26; }
.cal-btn:disabled { opacity: .6; }

/* ---------- profile: lists + "Bu hafta" side by side, same height ---------- */
.p-split { display: block; }
.p-split.with-week { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: stretch; }
.p-split .lists { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.lcard-w[hidden] { display: none; }
.lists-more { display: block; width: 100%; margin-top: 24px; min-height: 48px; border: 1px solid var(--rule); background: transparent; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.lists-more:hover { background: var(--ink); color: var(--paper); }
.p-week-col { min-width: 0; display: flex; }
.p-week-col .p-week { flex: 1 1 auto; display: flex; flex-direction: column; padding: 24px 22px; background: var(--deep); color: var(--on-deep); }
.p-week-col .pw-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; }
.p-week-col .pw-h h2 { font-size: 28px; }
.p-week-col .pw-h span { flex: none; font-size: 12px; color: #A8A8A2; }
.pw-sub { margin: 4px 0 14px; font-size: 13px; color: #A8A8A2; }
.pw-rows { display: flex; flex-direction: column; }
.pw-row2 { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #333333; color: var(--on-deep); }
.pw-row2[hidden] { display: none; }
.pw-row2:hover { color: var(--on-deep); }
.pw-row2:hover .pw-t { color: #FF6B7F; }
.pw-row2 .pw-thumb .poster { width: 44px; display: block; }
.pw-row2 .pw-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pw-row2 .pw-when { font-size: 12px; font-weight: 600; color: var(--on-deep); }
.pw-row2 .pw-when.today { color: #FF6B7F; }
.pw-row2 .pw-t { font-family: var(--serif); font-size: 16px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-row2 .pw-ep { font-size: 12px; color: #A8A8A2; }
.pw-dots { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #333333; color: #C9C9C3; font-size: 13px; }
.pw-dots[hidden] { display: none; }
.pw-dots span[aria-hidden] { font-size: 22px; line-height: 1; letter-spacing: 2px; color: var(--on-deep); }
.pw-dots:hover { color: #FF6B7F; }
.p-week-col .pw-empty { margin: 0; padding: 12px 0; border-top: 1px solid #333333; color: #C9C9C3; font-size: 14px; line-height: 1.5; }
.p-week-col .pw-empty[hidden] { display: none; }
.p-week-col .pw-more { margin-top: auto; padding-top: 16px; align-self: flex-start; }
@media (max-width: 960px) {
  .p-split.with-week { display: flex; flex-direction: column; gap: 32px; }
  .p-week-col { order: -1; } /* phones: "Bu hafta" above the lists */
}
/* "Bu hafta" keeps the height of the folded lists (set by script); it does not grow when more lists open */
.p-split.with-week { align-items: start; }
.p-week-col { align-self: start; }
.p-week-col .p-week { min-height: 100%; }
/* user-written text: break long words or links instead of running off the screen */
.p-bio, .p-handle, .list-head p, .owner span, .lt, .pw-t, .sc-t, .imp-missing li { overflow-wrap: anywhere; word-break: break-word; }
.p-about { min-width: 0; }
.p-about .p-bio { max-width: min(640px, 100%); }

/* ---------- ranks ---------- */
.emblem { display: block; flex: none; }
.p-av { position: relative; flex: none; display: inline-block; }
.p-av-badge { position: absolute; right: -2px; bottom: 6px; width: 58px; height: 58px; border-radius: 50%; background: var(--paper); display: inline-flex; align-items: center; justify-content: center; }
.p-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.rank-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px 0 5px; border: 1px solid var(--rule); background: var(--card); font-size: 13px; font-weight: 600; letter-spacing: 2px; color: var(--ink); }
.rank-pill:hover { border-color: var(--sun); }
.rank-pill.r-ka, .pr-title.r-ka { color: var(--sun); }
.p-rank { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); margin-top: 32px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line); }
.pr-main { padding: 20px 28px 20px 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pr-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pr-left { font-size: 13px; color: var(--muted); }
.pr-left b { color: var(--ink); }
.pr-name { display: flex; align-items: center; gap: 14px; }
.pr-title { font-family: var(--serif); font-size: 34px; line-height: 1.1; }
.pr-kanji { font-family: var(--jp); font-weight: 400; font-size: 15px; letter-spacing: 3px; color: var(--muted); }
.pr-bar { height: 8px; background: var(--soft); position: relative; overflow: hidden; }
.pr-bar span { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.pr-bar span.r-ru { background: #2F4A6B; }
.pr-bar span.r-me { background: #5F7D6F; }
.pr-bar span.r-ka { background: var(--sun); }
.pr-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.pr-stat { padding: 20px 22px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pr-num { font-family: var(--serif); font-size: 40px; line-height: 1.1; overflow-wrap: anywhere; }
.pr-stat:last-child .pr-num { font-size: 30px; }
.pr-sub { font-size: 13px; color: var(--muted); }
.pr-hint { margin: 12px 0 0; font-size: 14px; color: var(--body); }
@media (max-width: 900px) {
  .p-rank { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pr-main { grid-column: 1 / -1; padding-right: 0; border-bottom: 1px solid var(--line); }
  .pr-stat:nth-child(2) { border-left: 0; padding-left: 0; }
  .pr-num { font-size: 30px; }
  .pr-stat:last-child .pr-num { font-size: 22px; }
}
@media (max-width: 640px) { .p-av-badge { width: 44px; height: 44px; right: -4px; bottom: 2px; } .p-av-badge .emblem { width: 38px; height: 38px; } }

/* "İzledim" on the anime page */
.watch-btn { height: 52px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .15s, color .15s; }
.watch-btn:hover { background: var(--ink); color: var(--paper); }
.watch-btn.on { background: var(--ink); color: var(--paper); }
.watch-btn.on svg circle { fill: var(--sun); stroke: var(--sun); }
.watch-btn.on:hover { background: var(--ink-hover); }
.watch-btn:disabled { opacity: .6; }
/* name block sits a little lower, clear of the cover (the avatar still overlaps it) */
.profile-page .p-id { padding-top: 90px; padding-bottom: 0; }
.profile-page .p-head { align-items: flex-start; }
.profile-page .p-actions { padding-top: 100px; padding-bottom: 0; }
@media (max-width: 720px) { .profile-page .p-id { padding-top: 8px; } .profile-page .p-actions { padding-top: 0; } }

/* rank box opens the "Kaze rütbeleri" pop-up */
a.pr-main { color: var(--ink); cursor: pointer; transition: background .15s; }
a.pr-main:hover { color: var(--ink); background: var(--card); box-shadow: -12px 0 0 var(--card); }
a.pr-main:hover .pr-all { color: var(--sun); }
.pr-all { margin-left: 8px; letter-spacing: 0; font-weight: 500; color: var(--muted); text-transform: none; font-size: 12px; }

dialog.rank-modal { width: min(1040px, calc(100vw - 32px)); padding: 0; }
dialog.rank-modal .m-head { margin: 0; padding: 20px 28px 16px; }
.rk-head { display: flex; flex-direction: column; gap: 4px; }
.rk-head span { font-size: 14px; color: var(--muted); }
.rk-now { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 20px 28px; background: var(--card); border-bottom: 1px solid var(--line); }
.rk-now-text { flex: 1 1 280px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rk-now-name { display: flex; align-items: baseline; gap: 12px; }
.rk-now-name .pr-title { font-size: 38px; }
.rk-now-sub { font-size: 15px; color: var(--body); }
.rk-now-bar { flex: 0 1 260px; display: flex; flex-direction: column; gap: 8px; }
.rk-pct { font-size: 13px; color: var(--muted); text-align: right; }
.rk-road { --pos: 0; position: relative; padding: 30px 20px 6px; }
.rk-line, .rk-fill { position: absolute; top: 96px; height: 4px; left: 10%; }
.rk-line { right: 10%; background: var(--soft); }
.rk-fill { width: calc(80% * var(--pos)); background: var(--ink); }
.rk-marker { position: absolute; top: 86px; left: calc(10% + 80% * var(--pos)); width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: var(--sun); border: 4px solid var(--paper); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.rk-list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rk-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; min-width: 0; }
.rk-emb { display: block; }
.rk-item.locked .rk-emb { filter: grayscale(1); opacity: .4; }
.rk-name { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.rk-item.locked .rk-name { color: var(--faint); }
.rk-item:last-child.reached .rk-name { color: var(--sun); }
.rk-kanji { font-family: var(--jp); font-size: 13px; letter-spacing: 3px; color: var(--muted); }
.rk-range { font-size: 13px; color: var(--muted); }
.rk-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; font-size: 12px; font-weight: 600; border: 1px solid var(--rule); }
.rk-item.current .rk-chip { background: var(--sun); border-color: var(--sun); color: var(--on-sun); }
.rk-item.locked .rk-chip { border-style: dashed; border-color: var(--mid); color: var(--faint); }
.rk-foot { margin: 18px 0 0; padding: 16px 28px 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.rk-foot b { color: var(--ink); }
/* phones: the road turns into a list */
@media (max-width: 760px) {
  .rk-line, .rk-fill, .rk-marker { display: none; }
  .rk-road { padding: 12px 16px 0; }
  .rk-list { grid-template-columns: 1fr; gap: 0; }
  .rk-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "e n c" "e k c" "e r c"; align-items: center; text-align: left; gap: 0 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .rk-emb { grid-area: e; } .rk-emb .emblem { width: 76px; height: 76px; }
  .rk-name { grid-area: n; } .rk-kanji { grid-area: k; } .rk-range { grid-area: r; } .rk-chip { grid-area: c; }
  .rk-item.current { background: var(--card); }
  dialog.rank-modal .m-head, .rk-now, .rk-foot { padding-left: 16px; padding-right: 16px; }
  .rk-now .emblem { width: 80px; height: 80px; }
}
/* road line from the first emblem centre to the last (5 columns, 8px gaps, 20px side padding) */
.rk-line, .rk-fill { left: calc(20px + (100% - 72px) / 10); }
.rk-line { right: calc(20px + (100% - 72px) / 10); }
.rk-fill { width: calc(((100% - 72px) * 0.8 + 32px) * var(--pos)); }
.rk-marker { left: calc(20px + (100% - 72px) / 10 + ((100% - 72px) * 0.8 + 32px) * var(--pos)); }

/* badges: shelf cell in the rank strip + pop-up */
a.pr-badges { color: var(--ink); cursor: pointer; gap: 8px; }
a.pr-badges:hover { color: var(--ink); background: var(--card); }
a.pr-badges:hover .pr-all { color: var(--sun); }
.pb-row { display: flex; align-items: flex-end; gap: 6px; flex-wrap: wrap; }
.pb-item { display: inline-block; line-height: 0; transition: transform .15s; }
.pb-item.locked { filter: grayscale(1); opacity: .4; }
a.pr-badges:hover .pb-item:not(.locked) { transform: translateY(-2px); }
.p-rank { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.3fr); }
dialog.badge-modal { width: min(1040px, calc(100vw - 32px)); padding: 0; }
dialog.badge-modal .m-head { margin: 0; padding: 20px 28px 16px; }
.bz-list { list-style: none; margin: 0; padding: 24px 24px 4px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.bz-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 16px 10px; border: 1px solid var(--line); }
.bz-item.earned { background: var(--card); border-color: var(--ink); }
.bz-art { line-height: 0; }
.bz-item.locked .bz-art { filter: grayscale(1); opacity: .45; }
.bz-name { font-family: var(--serif); font-size: 21px; line-height: 1.15; }
.bz-item.locked .bz-name { color: var(--faint); }
.bz-rule { font-size: 13px; line-height: 1.45; color: var(--body); min-height: 38px; }
.bz-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid var(--rule); font-size: 12px; font-weight: 600; }
.bz-prog { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.bz-short { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .p-rank { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .bz-list { grid-template-columns: 1fr; padding: 12px 16px 0; gap: 0; }
  .bz-item { display: grid; grid-template-columns: 70px minmax(0, 1fr); grid-template-areas: "a n" "a r" "a s"; align-items: center; text-align: left; gap: 2px 14px; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .bz-item.earned { background: transparent; }
  .bz-art { grid-area: a; } .bz-art .badge-svg { width: 70px; height: 102px; }
  .bz-name { grid-area: n; } .bz-rule { grid-area: r; min-height: 0; } .bz-chip, .bz-prog { grid-area: s; justify-self: start; }
  dialog.badge-modal .m-head { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 1000px) and (min-width: 761px) { .bz-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* user list page (design A: poster fan + rows/grid) */
.ul-head { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 64px; padding: 32px 0 40px; border-bottom: 1px solid var(--rule); }
.ul-fan { position: relative; width: 340px; height: 262px; flex-shrink: 0; }
.ul-fan-card { position: absolute; width: 150px; border: 4px solid var(--paper); box-shadow: 0 14px 30px rgba(26,26,26,.28); background: var(--paper); }
.ul-fan-card:nth-child(1) { left: 0; top: 24px; transform: rotate(-9deg); z-index: 4; }
.ul-fan-card:nth-child(2) { left: 62px; top: 8px; transform: rotate(-3deg); z-index: 3; }
.ul-fan-card:nth-child(3) { left: 124px; top: 6px; transform: rotate(3deg); z-index: 2; }
.ul-fan-card:nth-child(4) { left: 186px; top: 22px; transform: rotate(9deg); z-index: 1; }
.ul-fan.n1 { width: 200px; } .ul-fan.n1 .ul-fan-card { left: 20px; top: 10px; transform: rotate(-3deg); }
.ul-fan.n2 { width: 250px; } .ul-fan.n3 { width: 300px; }
.ul-info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ul-info h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; overflow-wrap: anywhere; }
.ul-desc { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); max-width: 560px; overflow-wrap: anywhere; }
.ul-prog { display: flex; align-items: center; gap: 16px; max-width: 520px; margin-top: 4px; }
.ul-bar { flex: 1 1 auto; height: 8px; background: var(--soft); position: relative; }
.ul-bar > span { position: absolute; inset: 0 auto 0 0; background: var(--sun); transition: width .3s; }
.ul-prog-t { font-size: 14px; white-space: nowrap; }
.ul-actions { margin-top: 4px; }
.ul-bar-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 20px 0; }
.ul-view { display: inline-flex; border: 1px solid var(--rule); }
.ul-view button { min-height: 40px; padding: 0 16px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.ul-view button + button { border-left: 1px solid var(--rule); }
.ul-view button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.ul-hint { font-size: 13px; color: var(--muted); }
.ul-hint span { font-size: 16px; letter-spacing: -2px; }

.ul-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ul-item { display: grid; grid-template-columns: 40px 56px minmax(0, 1fr) 120px; grid-template-areas: "no thumb body chip"; align-items: center; gap: 18px; padding: 14px 12px 14px 4px; border-bottom: 1px solid var(--line); background: var(--paper); transition: opacity .2s; }
.ul-items.own .ul-item { grid-template-columns: 28px 40px 56px minmax(0, 1fr) 120px 40px; grid-template-areas: "drag no thumb body chip rm"; }
.ul-drag { grid-area: drag; width: 28px; height: 40px; border: 0; background: transparent; color: var(--faint); font-size: 20px; letter-spacing: -3px; cursor: grab; touch-action: none; padding: 0; }
.ul-drag:hover, .ul-drag:focus-visible { color: var(--ink); }
.ul-no { grid-area: no; font-family: var(--serif); font-size: 24px; color: var(--muted); text-align: right; }
.ul-thumb { grid-area: thumb; position: relative; display: block; width: 56px; }
.ul-check { display: none; }
.ul-body { grid-area: body; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ul-t { font-family: var(--serif); font-size: 21px; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.ul-t:hover { color: var(--sun); }
.ul-meta { font-size: 13px; color: var(--muted); }
.ul-chip-c { grid-area: chip; }
.ul-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; background: var(--sun); color: var(--on-sun); font-size: 12px; font-weight: 600; white-space: nowrap; }
.ul-rm { grid-area: rm; width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ul-rm:hover { border-color: var(--sun); color: var(--sun); }
.ul-item.dragging { opacity: .25; }
.ul-item.leaving { opacity: 0; }
.ul-ghost { position: fixed; z-index: 50; pointer-events: none; margin: 0; list-style: none; background: var(--card); box-shadow: 0 16px 36px rgba(26,26,26,.22); border-left: 3px solid var(--sun); transform: rotate(-.4deg); }
.ul-ghost .ul-drag { cursor: grabbing; }

/* grid view */
.ul-items.grid { border-top: 0; padding-top: 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 32px 20px; }
.ul-items.grid .ul-item, .ul-ghost.in-grid { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; background: transparent; }
.ul-ghost.in-grid { border: 0; box-shadow: none; transform: rotate(-2deg); filter: drop-shadow(0 16px 20px rgba(26,26,26,.3)); }
.ul-items.grid .ul-thumb, .ul-ghost.in-grid .ul-thumb { width: 100%; order: 1; }
.ul-items.grid .ul-body, .ul-ghost.in-grid .ul-body { order: 2; gap: 4px; }
.ul-items.grid .ul-t, .ul-ghost.in-grid .ul-t { font-size: 16px; line-height: 1.25; }
.ul-items.grid .ul-meta, .ul-ghost.in-grid .ul-meta { font-size: 12px; }
.ul-items.grid .ul-chip-c, .ul-ghost.in-grid .ul-chip-c { display: none; }
.ul-items.grid .ul-check, .ul-ghost.in-grid .ul-check { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; background: var(--sun); color: var(--on-sun); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.ul-items.grid .ul-no, .ul-ghost.in-grid .ul-no { position: absolute; left: 0; top: 0; z-index: 2; min-width: 34px; height: 34px; padding: 0 8px; box-sizing: border-box; background: var(--paper); font-size: 17px; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.ul-items.grid .ul-rm, .ul-items.grid .ul-drag, .ul-ghost.in-grid .ul-drag { position: absolute; top: 6px; z-index: 2; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(26,26,26,.72); color: var(--on-deep); display: inline-flex; align-items: center; justify-content: center; }
.ul-items.grid .ul-rm { right: 6px; }
.ul-items.grid .ul-drag, .ul-ghost.in-grid .ul-drag { right: 42px; font-size: 15px; letter-spacing: -2px; }
.ul-items.grid .ul-rm:hover { background: var(--sun); color: var(--on-sun); }
.ul-items.grid .ul-drag:hover, .ul-items.grid .ul-drag:focus-visible { background: var(--ink); }

@media (max-width: 760px) {
  .ul-head { gap: 24px; padding-top: 20px; }
  .ul-fan { transform: scale(.8); transform-origin: left top; height: 210px; margin-bottom: -10px; }
  .ul-hint { display: none; }
  .ul-item { grid-template-columns: 30px 48px minmax(0, 1fr); grid-template-areas: "no thumb body" "no thumb chip"; gap: 4px 12px; }
  .ul-items.own .ul-item { grid-template-columns: 24px 48px minmax(0, 1fr) 40px; grid-template-areas: "drag thumb body rm" "drag thumb chip rm"; }
  .ul-items.own .ul-no { display: none; }
  .ul-thumb { width: 48px; }
  .ul-t { font-size: 17px; }
  .ul-chip-c:empty { display: none; }
  .ul-items.own.grid .ul-no { display: inline-flex; }
  .ul-items.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
}
.ul-ghost:not(.in-grid) { grid-template-columns: 28px 40px 56px minmax(0, 1fr) 120px 40px; grid-template-areas: "drag no thumb body chip rm"; }
@media (max-width: 760px) { .ul-ghost:not(.in-grid) { grid-template-columns: 24px 48px minmax(0, 1fr) 40px; grid-template-areas: "drag thumb body rm" "drag thumb chip rm"; } .ul-ghost:not(.in-grid) .ul-no { display: none; } }

/* list form: counters, switch, footer (trash left, Vazgeç / Kaydet right) */
.lf-lab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cc { font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc.near { color: var(--sun); }
.pform label.switch-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.sw-text { display: flex; flex-direction: column; gap: 2px; }
.sw-text b { font-size: 14px; font-weight: 600; }
.sw-text small { font-size: 13px; font-weight: 400; color: var(--muted); }
.switch-row:has(.switch:checked) .sw-off, .switch-row:has(.switch:not(:checked)) .sw-on { display: none; }
.switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 48px; height: 28px; margin: 0; border-radius: 14px; background: var(--switch-off); cursor: pointer; transition: background .18s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .18s; }
.switch:checked { background: var(--sun); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: 2px solid var(--rule); outline-offset: 2px; }
.lf-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; width: 100%; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.lf-foot .pf-actions { margin-left: auto; display: flex; gap: 10px; }
.lf-foot .pf-actions .btn-o, .lf-foot .pf-actions .btn.sm { min-height: 44px; height: 44px; }

/* schedule: dark "Sıradaki bölüm" band (Benim takvimim), ŞİMDİ line, wide today column, faded past days */
.up-next { position: relative; overflow: hidden; overflow: clip; /* clip: the decorative circle can never be scrolled into view */ display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 28px; margin: 4px 0 28px; padding: 24px 32px; background: var(--deep); color: var(--on-deep); }
.up-next::before { content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: var(--sun); opacity: .16; pointer-events: none; }
.un-poster { position: relative; display: block; width: 112px; box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.un-body { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.un-kicker { font-size: 12px; font-weight: 600; letter-spacing: 3px; color: #F26A7E; }
.un-title { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); line-height: 1.08; color: var(--on-deep); overflow-wrap: anywhere; }
.un-title:hover { color: #F26A7E; }
.un-meta { font-size: 15px; color: #D6D6D0; }
.un-after { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 4px; font-size: 13px; color: #A8A8A2; }
.un-after-h { letter-spacing: 2px; font-weight: 600; }
.un-after b { color: var(--on-deep); font-weight: 600; }
.un-count { position: relative; display: flex; align-items: flex-end; gap: 10px; }
.un-box { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.un-box b { font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1; min-width: 96px; text-align: center; padding: 10px 6px; border: 1px solid #3A3A3A; font-variant-numeric: tabular-nums; }
.un-box.red b { border-color: var(--sun); }
.un-box small { font-size: 11px; letter-spacing: 3px; color: #A8A8A2; }
.un-sep { font-family: var(--serif); font-size: 48px; padding-bottom: 34px; color: #5C5C5C; }
@media (max-width: 900px) {
  .up-next { grid-template-columns: 76px minmax(0, 1fr); gap: 16px 18px; padding: 18px; }
  .un-poster { width: 76px; }
  .un-count { grid-column: 1 / -1; justify-content: flex-start; }
  .un-box b { font-size: 40px; min-width: 70px; padding: 8px 4px; }
  .un-sep { font-size: 32px; padding-bottom: 26px; }
}
@media (min-width: 901px) {
  .cal { grid-template-columns: var(--cols, repeat(7, minmax(0, 1fr))); }
  .day.today { box-shadow: inset 0 3px 0 var(--sun), 0 0 0 1px var(--ink); position: relative; z-index: 1; padding-right: 12px; }
  .day.today .day-h { font-size: clamp(20px, 1.8vw, 26px); }
  .day.today .ep-thumb { flex-basis: 56px; } .day.today .ep-thumb .poster { width: 56px; }
  .day.today .ep-title { font-size: 16px; }
  .day.past { opacity: .5; transition: opacity .2s; }
  .day.past:hover { opacity: 1; }
  .day.past .ep-thumb .poster { filter: grayscale(.6); }
}
.day.today .ep.is-next { box-shadow: inset 3px 0 0 var(--sun); padding-left: 10px; }
.now-line { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.nl-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(200,16,46,.18); }
.nl-t { font-size: 11px; font-weight: 600; letter-spacing: 2px; color: var(--sun); white-space: nowrap; }
.nl-bar { flex: 1 1 auto; height: 2px; background: var(--sun); }
.now-line + .ep { border-top: 0; }
@media (max-width: 900px) { .un-title { font-size: 24px; } .un-meta { font-size: 14px; } }
@media (max-width: 900px) {
  .ep-up-next .un-poster { width: 76px; }
  .ep-up-next .un-box b { font-size: 40px; min-width: 70px; padding: 8px 4px; }
  .ep-up-next .un-sep { font-size: 32px; padding-bottom: 26px; }
}

/* ================= Membership (UyelikA page, UyelikB pop-up) ================= */
.nav-in { color: var(--sun); font-weight: 600; }
.nav-in:hover { text-decoration: underline; text-underline-offset: 4px; }
.p-out { margin: 0; display: contents; }
.au-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); padding-top: 48px; padding-bottom: 80px; align-items: stretch; }
.au-why { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 44px; background: var(--deep); color: var(--on-deep); }
.au-sun { position: absolute; right: -90px; top: -90px; width: 360px; height: 360px; border-radius: 50%; background: var(--sun); opacity: .85; }
.au-jp { position: absolute; right: 36px; top: 40px; writing-mode: vertical-rl; font-family: 'Noto Serif JP', 'Noto Serif', serif; font-weight: 600; font-size: 44px; letter-spacing: 10px; }
.au-pitch { position: relative; display: flex; flex-direction: column; gap: 14px; max-width: 440px; padding-right: 60px; }
.au-kick { font-size: 12px; font-weight: 600; letter-spacing: 3px; color: #F26A7E; }
.au-kick.dark { color: var(--sun); }
.au-pitch h1 { margin: 0; font-weight: 400; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; color: var(--on-deep); }
.au-pitch p { margin: 0; font-size: 16px; line-height: 1.6; color: #D6D6D0; }
.au-perks { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.au-perks li { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid #3A3A3A; }
.au-perks b { font-family: 'Noto Serif', serif; font-weight: 400; font-size: 20px; }
.au-perks b span { color: #F26A7E; }
.au-perks li > span { font-size: 14px; line-height: 1.5; color: #A8A8A2; }
.au-posters { position: relative; display: flex; gap: 12px; align-items: flex-end; }
.au-posters span { display: block; width: 70px; aspect-ratio: 2 / 3; overflow: hidden; background: #2A2A2A; box-shadow: 0 12px 24px rgba(0,0,0,.35); }
.au-posters span:nth-child(even) { width: 84px; }
.au-posters img { width: 100%; height: 100%; object-fit: cover; display: block; }
.au-card { display: flex; flex-direction: column; padding: 44px 40px; background: var(--card); border: 1px solid var(--rule); border-left: 0; }

.au { display: flex; flex-direction: column; gap: 20px; }
.au-tabs { display: flex; border-bottom: 1px solid var(--rule); }
.au-tabs a { flex: 1; padding: 0 0 14px; margin-bottom: -1px; border-bottom: 3px solid transparent; font-family: 'Noto Serif', serif; font-size: 26px; color: var(--faint); text-align: center; }
.au-tabs a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--sun); }
.au-tabs a:hover { color: var(--ink); }
.au-form { display: flex; flex-direction: column; gap: 16px; }
.au-form[hidden] { display: none; }
.au-f { display: flex; flex-direction: column; gap: 6px; }
.au-l { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; color: var(--body); }
.au-l a { font-weight: 500; letter-spacing: 0; color: var(--muted); border-bottom: 1px solid var(--mid); }
.au-l a:hover { color: var(--ink); border-color: var(--ink); }
.au-f input { width: 100%; box-sizing: border-box; height: 48px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 0; background: var(--card); font: inherit; font-size: 15px; color: var(--ink); }
.au-f input:focus { outline: 2px solid var(--sun); outline-offset: 0; }
.au-f input.bad { border-color: var(--sun); }
.au-h { font-size: 12px; line-height: 1.45; color: var(--muted); }
.au-h.ok { color: var(--ok); }
.au-h.err, .au-err { font-size: 13px; line-height: 1.45; color: var(--sun); }
.au-err { margin: 0; }
.au-form-err { padding: 10px 14px; border: 1px solid var(--sun); background: var(--sun-soft); }
.au-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.au-meter i { height: 4px; background: var(--soft); }
.au-meter[data-n="1"] i:nth-child(-n+1) { background: var(--sun); }
.au-meter[data-n="2"] i:nth-child(-n+2) { background: #C98A1B; }
.au-meter[data-n="3"] i:nth-child(-n+3), .au-meter[data-n="4"] i { background: var(--ok); }
.au-check { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.au-check.top { align-items: flex-start; }
.au-check input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--ink); }
.au-check.top input { margin-top: 1px; }
.au-check a { border-bottom: 1px solid var(--rule); }
.au-check.bad { color: var(--sun); }
.au-go { height: 52px; border: 0; background: var(--ink); color: var(--paper); font: inherit; font-size: 15px; font-weight: 600; letter-spacing: 1px; cursor: pointer; }
.au-go.red { background: var(--sun); }
.au-go:hover { filter: brightness(1.15); }
.au-sw { margin: 0; font-size: 14px; color: var(--muted); }
.au-sw a { border-bottom: 1px solid var(--rule); font-weight: 600; color: var(--ink); }
.au-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.au-google { display: flex; align-items: center; justify-content: center; gap: 12px; height: 50px; border: 1px solid var(--rule); background: var(--card); font-size: 15px; font-weight: 600; color: var(--ink); }
.au-google:hover { background: var(--hover); }
.au-or { display: flex; align-items: center; gap: 14px; margin: -4px 0; font-size: 12px; letter-spacing: 2px; color: var(--faint); text-transform: uppercase; }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.au-dlg { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: auto; }
.au-dlg::backdrop { background: rgba(20,20,20,.6); }
.au-dh { position: relative; overflow: hidden; display: flex; gap: 16px; align-items: center; padding: 18px 22px; background: var(--deep); color: var(--on-deep); }
.au-dh-sun { position: absolute; right: -50px; top: -70px; width: 200px; height: 200px; border-radius: 50%; background: var(--sun); opacity: .2; }
.au-dh-p { position: relative; flex: none; width: 56px; aspect-ratio: 2 / 3; overflow: hidden; background: #2A2A2A; box-shadow: 0 10px 20px rgba(0,0,0,.35); }
.au-dh-p[hidden] { display: none; }
.au-dh-p img { width: 100%; height: 100%; object-fit: cover; display: block; }
.au-dh-t { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.au-dh-t .au-kick { font-size: 11px; letter-spacing: 2px; }
.au-dh-h { font-family: 'Noto Serif', serif; font-size: 20px; line-height: 1.2; }
.au-x { position: relative; align-self: flex-start; flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #5C5C5C; background: transparent; color: var(--on-deep); cursor: pointer; }
.au-x:hover { border-color: var(--on-deep); }
.au-db { display: flex; flex-direction: column; gap: 16px; padding: 24px 26px 26px; }
.au-dlg .au-tabs a { font-size: 22px; }
.au-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--faint); }

.au-text { max-width: 760px; padding-bottom: 80px; }
.au-text .au-kick { display: block; margin-top: 24px; }
.au-text h1 { margin: 8px 0 20px; font-size: clamp(34px, 5vw, 48px); line-height: 1.1; }
.au-text h2 { margin: 32px 0 10px; font-size: 22px; }
.au-text p, .au-text li { font-size: 16px; line-height: 1.7; color: var(--body); }
.au-text ul { padding-left: 20px; }
.au-text .muted { color: var(--muted); font-size: 14px; }
.au-text .rs-form { max-width: 440px; margin: 8px 0 20px; }

@media (max-width: 900px) {
  .au-page { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .au-card { order: -1; border-left: 1px solid var(--rule); padding: 32px 22px; }
  .au-why { padding: 32px 22px; }
  .au-jp { font-size: 32px; right: 18px; top: 24px; }
  .au-sun { width: 240px; height: 240px; right: -70px; top: -70px; }
}
@media (max-width: 560px) {
  .au-perks { grid-template-columns: minmax(0, 1fr); }
  .au-posters span { width: 54px; } .au-posters span:nth-child(even) { width: 64px; }
  .au-tabs a { font-size: 22px; }
  .au-db { padding: 20px 18px 22px; }
}

/* ================= Hesap ve güvenlik (HesapB) ================= */
.pg-acc { align-self: flex-start; gap: 6px; }
.ac-page { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 32px; padding-bottom: 80px; }
.ac-side { position: sticky; top: 20px; overflow: hidden; display: flex; flex-direction: column; gap: 22px; padding: 28px; background: var(--deep); color: var(--on-deep); }
.ac-side .au-sun { width: 220px; height: 220px; right: -70px; top: -70px; }
.ac-back { position: relative; font-size: 13px; color: #D6D6D0; }
.ac-back:hover { color: var(--on-deep); }
.ac-who { position: relative; display: flex; align-items: center; gap: 14px; }
.ac-who > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ac-who b { font-family: 'Noto Serif', serif; font-weight: 400; font-size: 22px; overflow-wrap: anywhere; }
.ac-who small { font-size: 13px; color: #A8A8A2; }
.ac-ways { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid #3A3A3A; }
.ac-ways .au-kick { font-size: 11px; letter-spacing: 2px; }
.ac-ways > span:not(.au-kick) { display: flex; justify-content: space-between; font-size: 14px; }
.ac-ways .on { color: #8FD1A8; }
.ac-ways > span > span:last-child:not(.on) { color: #A8A8A2; }
.ac-nav { position: relative; display: flex; flex-direction: column; gap: 2px; padding-top: 18px; border-top: 1px solid #3A3A3A; font-size: 14px; }
.ac-nav a { padding: 10px 12px; color: #D6D6D0; }
.ac-nav a:hover { background: #2A2A27; color: var(--on-deep); }
.ac-nav a.red { color: #F26A7E; }
.ac-jp { position: relative; align-self: flex-end; font-family: 'Noto Serif JP', 'Noto Serif', serif; font-size: 28px; letter-spacing: 8px; color: #3A3A3A; }
.ac-main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.ac-head { display: flex; flex-direction: column; gap: 6px; }
.ac-head h1 { margin: 0; font-size: clamp(34px, 4vw, 44px); line-height: 1.1; }
.ac-head p { margin: 0; font-size: 15px; color: var(--muted); }
.ac-card { border: 1px solid var(--rule); background: var(--card); scroll-margin-top: 20px; }
.ac-card h2 { margin: 0; font-weight: 400; font-size: 22px; }
.ac-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ac-two > * + * { border-left: 1px solid var(--line); }
.ac-form { display: flex; flex-direction: column; gap: 12px; padding: 24px; min-width: 0; }
.ac-form form { margin: 0; }
.ac-side-by { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0; }
.ac-intro { display: flex; flex-direction: column; gap: 8px; padding: 24px 0 24px 24px; }
.ac-intro p, .ac-p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--body); }
.ac-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; align-items: end; }
.ac-grid > .ac-msg, .ac-full { grid-column: 1 / -1; }
.ac-grid .au-go { justify-self: start; }
.au-go.sm { height: 44px; padding: 0 18px; font-size: 14px; align-self: flex-start; }
.au-go:disabled, .btn-o:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn-o:disabled:hover { background: transparent; color: var(--ink); }
.au-f input:disabled { background: var(--hover); color: var(--muted); }
.ac-g { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); }
.ac-g > span { display: flex; flex-direction: column; gap: 2px; }
.ac-g b { font-size: 14px; font-weight: 600; }
.ac-g small { font-size: 12px; color: var(--muted); }
.ac-form .btn-o { align-self: flex-start; }
.ac-msg { margin: 0; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.ac-msg.ok { border: 1px solid var(--ok); background: var(--ok-soft); color: var(--ok-deep); }
.ac-msg.err { border: 1px solid var(--sun); background: var(--sun-soft); color: var(--sun-deep); }
.ac-danger { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; border-color: var(--sun); background: var(--sun-soft); }
.ac-danger > div { display: flex; flex-direction: column; gap: 6px; }
.ac-danger h2 { color: var(--sun-deep); }
.ac-danger p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--body); }
.ac-del-btn { flex: none; min-height: 44px; padding: 0 18px; border: 1px solid var(--sun); background: var(--card); color: var(--sun); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ac-del-btn:hover { background: var(--sun); color: var(--on-sun); }
.ac-del { width: min(480px, calc(100vw - 24px)); padding: 0; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.ac-del::backdrop { background: rgba(20,20,20,.6); }
.ac-del .ac-form { padding: 28px; gap: 14px; }
.ac-del h2 { font-size: 26px; }
.ac-del-act { display: flex; justify-content: flex-end; gap: 10px; }
.ac-del-act .au-go { align-self: auto; }
@media (max-width: 900px) {
  .ac-page { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .ac-side { position: relative; top: 0; }
  .ac-nav, .ac-jp { display: none; }
}
@media (max-width: 640px) {
  .ac-two, .ac-side-by, .ac-grid { grid-template-columns: minmax(0, 1fr); }
  .ac-two > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .ac-intro { padding: 20px 20px 0; }
  .ac-form { padding: 20px; }
  .ac-danger { flex-direction: column; align-items: stretch; }
}

/* ================= Theme switch (sun / moon) and dark-theme finishing ================= */
.theme-sw { display: inline-flex; margin: 0; border: 1px solid var(--rule); }
.theme-sw button { width: 36px; height: 34px; border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.theme-sw button:hover { color: var(--ink); }
.theme-sw button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
/* dark panels stay a step darker than the page, with a hairline so they do not dissolve into it */
.ws-next, .up-next, .au-why, .ac-side, .au-dh, .p-week { outline: 1px solid var(--deep-edge); outline-offset: -1px; }
.site-foot { border-top: 1px solid var(--foot-line); }
.ac-theme { flex-direction: row; flex-wrap: wrap; align-items: center; }
.ac-theme .btn-o.on { background: var(--ink); color: var(--paper); }

/* 500 page */
.err-page { position: relative; overflow: hidden; overflow: clip; padding-block: 96px 120px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.err-page h1 { position: relative; font-size: clamp(36px, 5vw, 56px); line-height: 1.1; }
.err-page p { position: relative; margin: 0; max-width: 560px; font-size: 17px; color: var(--body); }
.err-page .kicker { position: relative; }
.err-act { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
/* the sun half-set behind the text: the wind has paused */
.err-sun { position: absolute; right: 6%; bottom: -150px; width: 300px; height: 300px; border-radius: 50%; background: var(--sun); opacity: .9; box-shadow: var(--glow); }
@media (max-width: 640px) { .err-sun { width: 180px; height: 180px; bottom: -90px; right: -40px; } }

/* Hakkında, İletişim, legal texts */
.kunye-fix { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--mid); }
.kunye-fix:hover { color: var(--sun); border-color: var(--sun); }
.au-draft { margin: 24px 0 0; padding: 12px 14px; border: 1px dashed var(--sun); background: var(--sun-soft); font-size: 14px; color: var(--sun-deep); }
.ab-page { padding-bottom: 80px; }
.ab-hero { position: relative; overflow: hidden; overflow: clip; display: flex; flex-direction: column; gap: 18px; padding: 72px 0 56px; border-bottom: 1px solid var(--rule); }
.ab-hero h1 { position: relative; max-width: 760px; font-size: clamp(36px, 5vw, 60px); line-height: 1.06; }
.ab-hero p { position: relative; max-width: 640px; margin: 0; font-size: 18px; line-height: 1.6; color: var(--body); }
.ab-hero .kicker { position: relative; }
.ab-sun { position: absolute; right: 4%; top: 40px; width: 240px; height: 240px; border-radius: 50%; background: var(--sun); box-shadow: var(--glow); }
.ab-jp { position: absolute; right: calc(4% + 270px); top: 48px; writing-mode: vertical-rl; font-family: var(--jp); font-size: 30px; letter-spacing: 10px; color: var(--faint); }
.ab-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-bottom: 1px solid var(--line); }
.ab-grid > div { display: flex; flex-direction: column; gap: 8px; padding: 28px 24px 32px 0; }
.ab-grid > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.ab-grid b { font-family: var(--serif); font-weight: 400; font-size: 21px; }
.ab-grid b span { color: var(--sun); }
.ab-grid p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.ab-text { max-width: 760px; padding-top: 16px; }
.ab-text h2 { margin: 36px 0 10px; font-size: 26px; }
.ab-text p { margin: 0 0 12px; font-size: 16px; line-height: 1.7; color: var(--body); }
.ct-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 56px; align-items: start; padding-top: 56px; padding-bottom: 80px; }
.ct-intro { display: flex; flex-direction: column; gap: 16px; }
.ct-intro h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; }
.ct-intro > p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--body); }
.ct-notes { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ct-notes li { padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--body); }
.ct-mail { font-size: 15px; }
.ct-card { padding: 32px; background: var(--card); border: 1px solid var(--rule); }
.ct-form { display: flex; flex-direction: column; gap: 16px; }
.ct-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ct-select, .ct-area { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 0; background: var(--card); font: inherit; font-size: 15px; color: var(--ink); }
.ct-select { height: 48px; padding-block: 0; }
.ct-area { resize: vertical; min-height: 160px; line-height: 1.55; }
.ct-select:focus, .ct-area:focus { outline: 2px solid var(--sun); outline-offset: 0; }
.ct-area.bad { border-color: var(--sun); }
.au-l small { font-weight: 400; letter-spacing: 0; color: var(--faint); }
.ct-sent { position: relative; overflow: hidden; overflow: clip; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 0 8px; }
.ct-sent h2 { font-size: 30px; }
.ct-sent p { margin: 0; color: var(--body); }
.ct-sun { width: 56px; height: 56px; border-radius: 50%; background: var(--sun); box-shadow: var(--glow); }
@media (max-width: 900px) {
  .ct-page { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; }
  .ab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ab-grid > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .ab-sun { width: 140px; height: 140px; top: 24px; right: -30px; }
  .ab-jp { display: none; }
}
@media (max-width: 560px) {
  .ab-grid { grid-template-columns: minmax(0, 1fr); }
  .ab-grid > div, .ab-grid > div + div { padding: 22px 0; border-left: 0; }
  .ab-grid > div + div { border-top: 1px solid var(--line); }
  .ct-two { grid-template-columns: minmax(0, 1fr); }
  .ct-card { padding: 22px 18px; }
}

/* ================= Star rating (YildizB) and Kaze score ================= */
.stat small.kz-label, .kz-label { font-size: 12px; font-weight: 600; letter-spacing: 2px; color: var(--sun); }
.stat a.kz-v:hover .num { color: var(--sun); }
/* Kaze score distribution, at the top of İncelemeler */
.rv-dist { display: grid; grid-template-columns: auto minmax(0, 360px); gap: 12px 32px; align-items: center; padding: 4px 0 22px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.rv-dist-h { display: flex; flex-direction: column; gap: 4px; }
.rv-dist-h b { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; }
.rv-dist-h small { font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .rv-dist { grid-template-columns: minmax(0, 1fr); } }
.kz-dist { display: flex; flex-direction: column; gap: 3px; }
.kz-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 34px; gap: 8px; align-items: center; font-size: 11px; color: var(--faint); }
.kz-row > span:last-child { text-align: right; }
.kz-bar { height: 6px; background: var(--soft); }
.kz-bar i { display: block; height: 6px; background: var(--ink); opacity: .75; }
.kz-bar i.hi { background: var(--sun); opacity: 1; }
.kz-friends { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--body); }
.kz-faces { display: inline-flex; }
.kz-faces a { display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 2px var(--paper); }
.kz-faces a + a { margin-left: -8px; }
.kz-friends .red { color: var(--sun); }
.watch-btn.on [data-watch-label] { white-space: nowrap; }

.rt-dlg { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: auto; }
.rt-dlg::backdrop { background: rgba(20,20,20,.6); }
.rt-body { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 26px 24px; }
.rt-stars { display: flex; gap: 4px; }
.rt-stars button { width: 40px; height: 40px; padding: 3px; border: 0; background: none; cursor: pointer; }
.rt-stars svg { display: block; width: 100%; height: 100%; }
.rt-stars path { fill: var(--soft); stroke: var(--mid); stroke-width: 1.1; stroke-linejoin: round; transition: fill .12s, stroke .12s, transform .12s; transform-origin: center; }
.rt-stars button.on path { fill: var(--sun); stroke: var(--sun); }
.rt-stars button:hover path { transform: scale(1.08); }
.rt-stars button:focus-visible { outline: 2px solid var(--sun); outline-offset: 0; }
.rt-read { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; }
.rt-read b { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--sun); }
.rt-read span { font-size: 15px; color: var(--body); }
.rt-act { display: flex; gap: 10px; width: 100%; margin-top: 6px; }
.rt-act .au-go { flex: 1; height: 50px; }
.rt-act .au-go:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.rt-act .btn-o { min-height: 50px; }
.rt-undo { border: 0; background: none; padding: 4px; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.rt-undo:hover { color: var(--sun); }
.rt-note { align-self: flex-start; margin: 0; font-size: 12px; color: var(--faint); }
@media (prefers-reduced-motion: reduce) { .rt-stars path { transition: none; } }
@media (max-width: 640px) {
  .rt-stars { gap: 0; }
  .rt-stars button { width: 31px; height: 36px; padding: 2px; }
  .rt-act { flex-direction: column; }
}

/* ================= Follow (profile) and Topluluk (ToplulukB) ================= */
.site-nav a[aria-current="page"] { color: var(--sun); box-shadow: inset 0 -2px 0 var(--sun); }
.p-more { position: relative; }
.p-more > summary { list-style: none; cursor: pointer; min-width: 44px; justify-content: center; font-size: 18px; }
.p-more > summary::-webkit-details-marker { display: none; }
.p-more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 210px; background: var(--card); border: 1px solid var(--rule); box-shadow: 0 12px 30px rgba(0,0,0,.14); }
.p-more-menu a, .p-more-menu button { display: block; width: 100%; padding: 12px 16px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); text-align: left; cursor: pointer; }
.p-more-menu a { border-bottom: 1px solid var(--line); }
.p-more-menu a:hover, .p-more-menu button:hover { background: var(--hover); }
.p-more-menu form { margin: 0; }
.p-more-menu .red { color: var(--sun); }
.p-blocked { margin: 16px 0 0; padding: 12px 14px; border: 1px dashed var(--sun); background: var(--sun-soft); font-size: 14px; color: var(--sun-deep); }
.p-social { display: flex; flex-wrap: wrap; margin-top: 28px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line); }
.ps-cell { display: flex; flex-direction: column; gap: 4px; padding: 16px 24px 16px 0; margin-right: 24px; border-right: 1px solid var(--line); color: var(--ink); }
.ps-cell:last-child { border-right: 0; }
a.ps-cell:hover b { color: var(--sun); }
.ps-cell b { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.ps-cell > span { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; color: var(--muted); }
.ps-match { margin-left: auto; max-width: 340px; border-right: 0; }
.ps-match b { color: var(--sun); }
.ps-match small { font-size: 13px; line-height: 1.45; color: var(--body); }
@media (max-width: 640px) { .ps-cell { padding-right: 16px; margin-right: 16px; } .ps-match { margin-left: 0; flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 14px; } }

.cm-page { padding-top: 40px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.cm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 32px; }
.cm-title { display: flex; align-items: flex-end; gap: 18px; }
.cm-title h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1; }
.cm-jp { font-family: var(--jp); font-size: 28px; letter-spacing: 6px; color: var(--sun); padding-bottom: 6px; }
.cm-search { display: flex; align-items: center; gap: 10px; width: min(440px, 100%); height: 48px; padding: 0 14px; border: 1px solid var(--rule); background: var(--card); color: var(--ink); }
.cm-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.cm-search:focus-within { outline: 2px solid var(--sun); outline-offset: 0; }
.cm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.cm-tabs a { flex: none; min-height: 48px; display: inline-flex; align-items: center; padding: 0 18px; margin-bottom: -1px; border-bottom: 3px solid transparent; font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.cm-tabs a:hover { color: var(--ink); }
.cm-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--sun); }
.cm-sub { margin: 0; font-size: 14px; color: var(--muted); }
.cm-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px 0; }
.cm-empty p { margin: 0; font-size: 17px; color: var(--body); max-width: 620px; }
.cm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pc-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); transition: border-color .15s; }
.pc-card:hover { border-color: var(--rule); }
.pc-link { position: absolute; inset: 0; z-index: 1; }
.pc-band { height: 64px; }
.pc-in { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 16px; margin-top: -26px; }
.pc-av { align-self: flex-start; display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 3px var(--card); }
.pc-id { display: flex; flex-direction: column; gap: 2px; }
.pc-id b { font-size: 16px; }
.pc-id small { font-size: 12px; color: var(--faint); }
.pc-posters { display: flex; gap: 6px; }
.pc-posters span { position: relative; width: 40px; aspect-ratio: 2 / 3; overflow: hidden; box-shadow: inset 0 0 0 1px var(--poster-edge); }
.pc-posters img { width: 100%; height: 100%; object-fit: cover; }
.pc-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 2px; }
.pc-foot form { margin: 0; }
.pc-match { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--muted); }
.pc-match b { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--sun); }
.pc-match small { font-size: 12px; color: var(--faint); }
.pc-meta { font-size: 13px; color: var(--muted); }
.pc-you { font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--faint); }
.fl-chip { height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--rule); background: var(--ink); color: var(--paper); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.fl-chip.on { background: transparent; color: var(--ink); }
.fl-chip:hover { filter: brightness(1.15); }
.cm-feedwrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.cm-feed { display: flex; flex-direction: column; }
.cm-day { margin-top: 18px; font-size: 12px; font-weight: 600; letter-spacing: 2px; color: var(--muted); }
.cm-day:first-child { margin-top: 0; }
.cm-ev { display: grid; grid-template-columns: 40px minmax(0, 1fr) 36px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cm-ev-av { display: inline-flex; }
.cm-ev-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 15px; line-height: 1.45; }
.cm-ev-t a { border-bottom: 1px solid transparent; }
.cm-ev-t a:hover { border-color: currentColor; }
.cm-who { font-weight: 600; }
.cm-ev-t small { font-size: 12px; color: var(--faint); }
.cm-ev .red { color: var(--sun); }
.cm-ev-p { position: relative; display: block; width: 36px; aspect-ratio: 2 / 3; overflow: hidden; box-shadow: inset 0 0 0 1px var(--poster-edge); }
.cm-ev-p img { width: 100%; height: 100%; object-fit: cover; }
.cm-around { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--deep); color: var(--on-deep); outline: 1px solid var(--deep-edge); outline-offset: -1px; }
.cm-around .au-kick { font-size: 11px; letter-spacing: 2px; }
.cm-around b { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.3; }
.cm-around-p { display: block; width: 90px; aspect-ratio: 2 / 3; overflow: hidden; }
.cm-around-p img { width: 100%; height: 100%; object-fit: cover; }
.cm-around > span:last-child { font-size: 13px; color: #A8A8A2; }
.cm-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cm-col { display: flex; flex-direction: column; gap: 4px; }
.cm-none { margin: 8px 0 0; font-size: 14px; color: var(--faint); }
.cm-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cm-row > a { display: inline-flex; }
.cm-row form { margin: 0; }
.cm-row-t { display: flex; flex-direction: column; min-width: 0; }
.cm-row-t b { font-size: 14px; }
.cm-row-t small { font-size: 12px; color: var(--faint); }
.fl-page { padding-top: 32px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.fl-back { font-size: 14px; color: var(--muted); }
.fl-list { display: flex; flex-direction: column; }
/* feed: review excerpt under the event, status details */
.cm-ev-t a.cm-rv { display: block; margin-top: 4px; padding: 8px 12px; border: 0; border-left: 2px solid var(--sun); background: var(--card); font-family: var(--serif); font-size: 15px; line-height: 1.5; color: var(--body); }
.cm-ev-t a.cm-rv:hover { color: var(--ink); }
.cm-ev-t a.cm-rv-sp { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.cm-ev-sub { color: var(--muted); }
/* "Senin için": anime cards with the reason underneath */
.fy-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 20px; }
@media (max-width: 1200px) { .fy-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fy-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fy-p { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; margin-bottom: 4px; box-shadow: inset 0 0 0 1px var(--poster-edge); }
.fy-p img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.fy-card:hover .fy-p img { transform: scale(1.03); }
.fy-t { font-family: var(--serif); font-size: 17px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fy-t:hover { color: var(--sun); }
.fy-meta { font-size: 12px; color: var(--faint); }
.fy-why { display: flex; align-items: flex-start; gap: 8px; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.45; color: var(--body); }
.fy-why > a { display: inline-flex; flex: none; }
.fy-why .red { color: var(--sun); }
@media (prefers-reduced-motion: reduce) { .fy-p img { transition: none; } }
@media (max-width: 960px) { .cm-grid, .cm-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cm-feedwrap { grid-template-columns: minmax(0, 1fr); } .fy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cm-grid, .cm-feat { grid-template-columns: minmax(0, 1fr); } .fy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } }

/* Followers / following pop-up (TakipPopA) */
.fp-dlg { width: min(520px, calc(100vw - 24px)); height: min(760px, calc(100dvh - 48px)); padding: 0; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.45); flex-direction: column; overflow: hidden; }
.fp-dlg[open] { display: flex; }
.fp-dlg::backdrop { background: rgba(20,20,20,.55); }
.fp-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px 16px; }
.fp-who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.fp-who b { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.fp-who small { font-size: 12px; color: var(--faint); }
.fp-x { color: var(--ink); border-color: var(--rule); }
.fp-x:hover { border-color: var(--sun); color: var(--sun); }
.fp-tabs { margin: 0 22px; }
.fp-tabs a { font-size: 20px; }
.fp-tabs small { font-family: var(--sans); font-size: 13px; color: var(--faint); }
.fp-search { display: flex; align-items: center; gap: 10px; height: 44px; margin: 14px 22px 4px; padding: 0 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.fp-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); }
.fp-search:focus-within { outline: 2px solid var(--sun); outline-offset: 0; }
.fp-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 22px 8px; }
.fp-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fp-row[hidden] { display: none; }
.fp-av { display: inline-flex; }
.fp-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fp-n { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fp-n b { font-size: 15px; }
.fp-n a:hover { color: var(--sun); }
.fp-tag { font-size: 11px; font-weight: 600; letter-spacing: .5px; padding: 2px 6px; background: var(--band); color: var(--body); }
.fp-t > small { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-row form { margin: 0; }
.fp-empty, .fp-none { margin: 0; padding: 24px 0; font-size: 14px; color: var(--muted); }
.fp-foot { margin: 0; padding: 12px 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .fp-dlg { height: calc(100dvh - 24px); } .fp-head, .fp-list { padding-left: 16px; padding-right: 16px; } .fp-tabs, .fp-search { margin-left: 16px; margin-right: 16px; } .fp-tabs a { font-size: 17px; } }

/* ================= İzleme durumu (DurumA), review in the pop-up, İncelemeler ================= */
.st-wrap { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.st-menu { position: relative; }
.st-menu > summary { list-style: none; cursor: pointer; gap: 10px; }
.st-menu > summary::-webkit-details-marker { display: none; }
.st-caret { font-size: 12px; opacity: .8; }
.st-dot { display: inline-block; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--mid); }
.st-watching { background: var(--ok); } .st-done { background: var(--ink); } .st-paused { background: #C98A1B; } .st-dropped { background: var(--sun); }
.watch-btn.on .st-done { background: var(--paper); }
.st-pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; width: 300px; background: var(--card); border: 1px solid var(--rule); box-shadow: 0 16px 40px rgba(0,0,0,.16); }
.st-pop form { margin: 0; }
.st-pop button { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.st-pop button:hover:not(:disabled), .st-pop button[aria-checked="true"] { background: var(--hover); }
.st-pop button:disabled { opacity: .45; cursor: not-allowed; }
.st-t { display: flex; flex-direction: column; gap: 2px; }
.st-t b { font-size: 14px; }
.st-t small { font-size: 12px; color: var(--faint); }
.st-tick { color: var(--sun); }
.st-pop .st-clear { display: block; border-bottom: 0; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.st-count { display: inline-flex; align-items: center; height: 48px; margin: 0; border: 1px solid var(--rule); background: var(--card); }
.st-count button { width: 40px; height: 46px; border: 0; background: none; font-size: 18px; color: var(--ink); cursor: pointer; }
.st-count button:last-child { border-left: 1px solid var(--line); }
.st-count button:hover { background: var(--hover); }
.st-ep { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 100%; min-width: 86px; padding: 0 10px; border-left: 1px solid var(--line); line-height: 1; }
.st-num { display: inline-flex; align-items: baseline; white-space: nowrap; font-size: 16px; }
.st-num b { font-weight: 700; }
.st-of { margin-left: 4px; color: var(--muted); font-size: 14px; }
.st-ep small { font-size: 10px; letter-spacing: 1px; color: var(--faint); }

.rt-rev { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.rt-rev small { font-weight: 400; letter-spacing: 0; color: var(--faint); }
.rt-rev textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 0; background: var(--card); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.55; resize: vertical; min-height: 110px; }
.rt-rev textarea:focus { outline: 2px solid var(--sun); outline-offset: 0; }
.rt-sp { align-self: flex-start; }
.rt-sp small { color: var(--faint); }

.rv-sec { display: flex; flex-direction: column; margin-top: 8px; }
.rv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.rv-head h2 small { font-family: var(--sans); font-size: 15px; color: var(--faint); }
.rv-sort { display: flex; gap: 6px; flex-wrap: wrap; }
.rv-sort a { height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 600; }
.rv-sort a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.rv-mine { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rv-mine-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rv-mine-t b { font-size: 15px; }
.rv-mine-t > span { font-size: 14px; color: var(--body); overflow-wrap: anywhere; }
.rv-hidden { font-size: 12px; color: var(--sun); }
.rv-edit { border: 0; border-bottom: 1px solid var(--rule); background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.rv-cta { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--body); }
.rv { display: flex; flex-direction: column; gap: 10px; padding: 20px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.rv:target { background: var(--today); }
.rv-h { display: flex; align-items: center; gap: 12px; }
.rv-h > a { display: inline-flex; }
.rv-who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.rv-who b { font-size: 15px; }
.rv-who > small { font-size: 12px; color: var(--faint); }
.rv-score { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--sun); }
.rv-body { margin: 0; font-size: 15px; line-height: 1.65; color: var(--body); white-space: pre-line; overflow-wrap: anywhere; }
.rv-spoiler > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px dashed var(--sun); background: var(--sun-soft); font-size: 14px; color: var(--sun-deep); cursor: pointer; }
.rv-spoiler > summary::-webkit-details-marker { display: none; }
.rv-spoiler[open] > summary { margin-bottom: 10px; }
.rv-f { display: flex; gap: 14px; align-items: center; }
.rv-f form { margin: 0; }
.rv-help { height: 32px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rv-help.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.rv-report { border: 0; border-bottom: 1px solid var(--line); background: none; padding: 0; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.rv-report:hover { color: var(--sun); border-color: var(--sun); }
@media (max-width: 640px) { .st-pop { width: min(300px, calc(100vw - 40px)); } }

/* ================= Profile tabs and İzlediklerim (IzledimB) ================= */
.pt-tabs { display: flex; gap: 4px; margin-top: 24px; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.pt-tabs a { flex: none; min-height: 48px; display: inline-flex; align-items: center; gap: 6px; padding: 0 18px; margin-bottom: -1px; border-bottom: 3px solid transparent; font-size: 15px; font-weight: 600; color: var(--muted); }
.pt-tabs a:hover { color: var(--ink); }
.pt-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--sun); }
.pt-tabs small { font-size: 12px; color: var(--faint); }
.wd-page { padding-top: 32px; padding-bottom: 72px; }
.wd-who { display: inline-flex; align-items: center; gap: 14px; }
.wd-who > span { display: flex; flex-direction: column; gap: 2px; }
.wd-who b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.wd-who small { font-size: 14px; color: var(--muted); }
.wd-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 28px; }
.wd-card { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 20px; padding: 24px; background: var(--deep); color: var(--on-deep); outline: 1px solid var(--deep-edge); outline-offset: -1px; }
.wd-card .au-kick { font-size: 11px; letter-spacing: 2px; }
.wd-big { font-size: 16px; color: #A8A8A2; }
.wd-big b { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; color: var(--on-deep); margin-right: 4px; }
.wd-sub { font-size: 13px; color: #A8A8A2; margin-top: -14px; }
.wd-block { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid #3A3A3A; }
.wd-block .wd-sub { margin-top: 0; }
.wd-label { font-size: 11px; font-weight: 600; letter-spacing: 2px; color: #A8A8A2; }
.wd-dist { display: flex; align-items: flex-end; gap: 4px; height: 76px; }
.wd-dist > span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wd-dist i { display: block; width: 100%; background: #5C5C5C; }
.wd-dist i.hi { background: var(--sun); }
.wd-dist small { font-size: 9px; color: #8A8A85; }
.wd-genre { display: grid; grid-template-columns: 96px minmax(0, 1fr) 26px; gap: 10px; align-items: center; font-size: 13px; }
.wd-genre > span:last-child { color: #A8A8A2; text-align: right; }
.wd-bar { height: 6px; background: #2A2A2A; }
.wd-bar i { display: block; height: 6px; background: var(--on-deep); }
.wd-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--on-deep); }
a.wd-row:hover { color: #FF6B7F; }
.wd-row > span:last-child { color: #A8A8A2; }
.wd-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.wd-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.wd-chips, .wd-sortnav { display: flex; flex-wrap: wrap; gap: 6px; }
.wd-chips a, .wd-sortnav a { height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 600; }
.wd-chips a[aria-current], .wd-sortnav a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.wd-right { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wd-view { display: inline-flex; border: 1px solid var(--rule); }
.wd-view a { height: 34px; display: inline-flex; align-items: center; padding: 0 12px; font-size: 13px; font-weight: 600; }
.wd-view a[aria-current] { background: var(--ink); color: var(--paper); }
.wd-month { display: flex; flex-direction: column; }
.wd-mh { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--rule); font-size: 12px; font-weight: 600; letter-spacing: 2px; }
.wd-mh small { font-weight: 400; letter-spacing: 0; color: var(--faint); }
.wd-entry { display: grid; grid-template-columns: 52px 56px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.wd-day { display: flex; flex-direction: column; align-items: center; }
.wd-day b { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1; }
.wd-day small { font-size: 11px; letter-spacing: 1px; color: var(--faint); }
.wd-p { position: relative; display: block; width: 56px; aspect-ratio: 2 / 3; overflow: hidden; box-shadow: inset 0 0 0 1px var(--poster-edge); }
.wd-p img, .wd-tp img { width: 100%; height: 100%; object-fit: cover; }
.wd-et { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.wd-en { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wd-en b { font-size: 16px; }
.wd-en a:hover { color: var(--sun); }
.wd-st { padding: 2px 7px; color: #FFFFFF; font-size: 11px; font-weight: 600; }
.st-bg-watching { background: var(--ok); } .st-bg-paused { background: #C98A1B; } .st-bg-dropped { background: var(--sun); }
.wd-stars { display: inline-flex; gap: 2px; }
.wd-stars svg { width: 13px; height: 13px; }
.wd-stars path { fill: var(--soft); }
.wd-stars path.on { fill: var(--sun); }
.wd-rev { font-size: 14px; line-height: 1.5; color: var(--body); overflow-wrap: anywhere; }
.wd-rev .u-line { font-size: 13px; color: var(--muted); }
.wd-score { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--sun); min-width: 28px; text-align: right; }
.wd-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 20px 16px; }
.wd-tile { display: flex; flex-direction: column; gap: 6px; }
.wd-tp { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; box-shadow: inset 0 0 0 1px var(--poster-edge); }
.wd-badge { position: absolute; left: 0; bottom: 0; display: inline-flex; align-items: center; gap: 3px; padding: 4px 7px; background: rgba(20,20,20,.84); color: #FFFFFF; font-size: 12px; font-weight: 700; }
.wd-badge svg { width: 11px; height: 11px; fill: var(--sun); }
.wd-corner { position: absolute; right: 0; top: 0; padding: 3px 7px; color: #FFFFFF; font-size: 11px; font-weight: 600; }
.wd-tt { font-size: 13px; font-weight: 600; line-height: 1.3; }
.wd-tile:hover .wd-tt { color: var(--sun); }
@media (max-width: 900px) { .wd-grid { grid-template-columns: minmax(0, 1fr); } .wd-card { position: relative; top: 0; } }
@media (max-width: 560px) { .wd-entry { grid-template-columns: 40px 48px minmax(0, 1fr) auto; gap: 12px; } .wd-p { width: 48px; } }

/* ================= Notifications (bell) ================= */
.bell-wrap { position: relative; display: inline-flex; }
.nav-bell { position: relative; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); border: 1px solid transparent; }
.nav-bell:hover, .nav-bell[aria-expanded="true"] { border-color: var(--rule); color: var(--ink); }
.bell-n { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--sun); color: var(--on-sun); font-size: 11px; font-weight: 700; letter-spacing: 0; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--paper); }
.bell-pop { position: absolute; right: -120px; top: calc(100% + 10px); z-index: 40; width: min(420px, calc(100vw - 24px)); background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 24px 60px rgba(0,0,0,.2); letter-spacing: 0; font-weight: 400; }
.bell-pop[hidden] { display: none; }
.bell-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.bell-h b { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.bell-h form { margin: 0; }
.bell-h button { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bell-list { max-height: min(460px, 60vh); overflow-y: auto; overscroll-behavior: contain; }
.bell-f { display: flex; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13px; }
.bell-f a:first-child { font-weight: 600; border-bottom: 1px solid var(--rule); }
.bell-f a:last-child { color: var(--muted); }
.nt-group { display: block; padding: 10px 18px 6px; font-size: 11px; font-weight: 600; letter-spacing: 2px; color: var(--muted); }
.nt-row { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.nt-row.unread { background: var(--today); }
.nt-row:hover { background: var(--hover); }
.nt-link { position: absolute; inset: 0; z-index: 1; }
.nt-act { position: relative; z-index: 2; margin: 0; }
.nt-ic { display: inline-flex; }
.nt-p { position: relative; display: block; width: 40px; aspect-ratio: 2 / 3; overflow: hidden; }
.nt-p img { width: 100%; height: 100%; object-fit: cover; }
.nt-rank { width: 40px; height: 40px; border-radius: 50%; background: var(--band); box-shadow: inset 0 0 0 1px var(--line); display: inline-flex; align-items: center; justify-content: center; font-family: var(--jp); font-size: 18px; color: var(--sun); }
.nt-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.4; color: var(--ink); }
.nt-t small { font-size: 12px; color: var(--faint); }
.nt-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sun); }
.nt-empty { margin: 0; padding: 22px 18px; font-size: 14px; color: var(--muted); }
.nt-page { padding-top: 40px; padding-bottom: 72px; max-width: 760px; }
.nt-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.nt-head h1 { font-size: clamp(34px, 4vw, 44px); }
.nt-list .nt-row { padding-left: 0; padding-right: 0; }
.nt-list .nt-group { padding-left: 0; }
.ac-notify { display: flex; flex-direction: column; gap: 12px; }
.ac-notify label { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 14px; cursor: pointer; }
@media (max-width: 640px) { .bell-pop { position: fixed; left: 12px; right: 12px; top: 72px; width: auto; } }

/* English synopsis shown until a Turkish one exists */
/* Under the poster (design OzetB): synopsis cut after ~9 lines, then Künye */
.d-under { display: flex; flex-direction: column; gap: 36px; margin-top: 40px; }
.d-under .d-lab { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 2px; line-height: 1.3; color: var(--muted); text-transform: uppercase; margin: 0; }
.d-under .d-lab span { font-weight: 500; letter-spacing: .5px; text-transform: none; color: var(--faint); }
.syn { display: flex; flex-direction: column; gap: 10px; }
.syn-text { position: relative; font-size: 15px; line-height: 1.7; color: var(--body); }
.syn-text p { margin: 0 0 10px; }
.syn-text p:last-child { margin-bottom: 0; }
.syn-text.clamped { max-height: calc(1.7em * 9); overflow: hidden; }
.syn-text.clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4.5em; background: linear-gradient(rgb(var(--paper-rgb) / 0), var(--paper)); pointer-events: none; }
.syn-more { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.syn-more:hover { color: var(--sun); }
.syn-more[hidden] { display: none; }
.syn-src { font-size: 12px; line-height: 1.5; color: var(--faint); }
.d-under .kunye { border-top: 1px solid var(--rule); padding-top: 14px; }
.d-under .kv { font-size: 14px; padding: 10px 0; }

/* ================= Motion =================
   Short (150–600 ms), only opacity and transforms, nothing moves the layout. Everything stops with
   "reduce motion" (last rule of this section). */
:root { --e-out: cubic-bezier(.2, .8, .2, 1); --e-spring: cubic-bezier(.3, 1.5, .5, 1); }

/* --- small interactions --- */
/* every link to an anime (cards, boards, Seçki, Top 100 rows, the week…): the poster picture leans in */
a[href^="/anime/"] .poster img { transition: transform .5s var(--e-out); }
a[href^="/anime/"]:hover .poster img { transform: scale(1.05); }
/* poster cards also rise a little */
.card .poster { transition: transform .25s var(--e-out), box-shadow .25s var(--e-out); }
.card .t { transition: color .2s; }
.card:hover .poster { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(0, 0, 0, .22); }
.card:hover .t { color: var(--sun); }
.card:active .poster { transform: translateY(-1px); transition-duration: .08s; }
.rel .rel-thumb img, .cm-ev-p img, .sg-p img { transition: transform .4s var(--e-out); }
.rel:hover .rel-thumb img, .cm-ev-p:hover img, .sg:hover .sg-p img, .sg[aria-selected="true"] .sg-p img { transform: scale(1.06); }
.btn, .btn-o, .au-go, .add-btn, .watch-btn, .fl-chip, .cal-btn, .rv-help { transition: background .15s, color .15s, box-shadow .15s, filter .15s, transform .12s var(--e-out); }
.btn:active, .btn-o:active, .au-go:active, .add-btn:active, .watch-btn:active, .fl-chip:active, .cal-btn:active, .rv-help:active { transform: translateY(1px) scale(.98); }
.btn span { display: inline-block; }
.btn:hover span { transform: translateX(3px); }
/* "Listeme ekle": + turns into ✓ */
.add-btn .ic.pop { animation: ic-pop .5s var(--e-spring); }
@keyframes ic-pop { 0% { transform: rotate(-120deg) scale(.2); opacity: 0; } 100% { transform: none; opacity: 1; } }
/* star pop-up: stars fill one after another, the picked one pops */
.rt-stars.fill button.on path { transition-delay: calc(var(--i, 0) * 28ms); }
.rt-stars button.pick svg { animation: star-pop .42s var(--e-spring); }
@keyframes star-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25) rotate(-8deg); } 100% { transform: none; } }
/* episode counter: the number rolls up or down */
.st-num b { display: inline-block; }
.st-num b.roll-up { animation: roll-up .28s var(--e-out); }
.st-num b.roll-down { animation: roll-down .28s var(--e-out); }
@keyframes roll-up { from { transform: translateY(70%); opacity: 0; } }
@keyframes roll-down { from { transform: translateY(-70%); opacity: 0; } }
/* "Takip et": a red fill sweeps across */
.just-followed { animation: fl-sweep .6s var(--e-out); }
@keyframes fl-sweep { 0% { box-shadow: inset 0 0 0 0 var(--sun); } 55% { box-shadow: inset 260px 0 0 0 var(--sun); color: var(--on-sun); } 100% { box-shadow: inset 260px 0 0 0 transparent; } }
/* bell: rings once */
.nav-bell.ring svg { animation: ring 1s ease-in-out; transform-origin: 50% 12%; }
@keyframes ring { 0%, 100% { transform: none; } 12% { transform: rotate(16deg); } 26% { transform: rotate(-14deg); } 40% { transform: rotate(10deg); } 54% { transform: rotate(-7deg); } 68% { transform: rotate(4deg); } 82% { transform: rotate(-2deg); } }
.nav-bell.ring .bell-n { animation: n-pop .5s var(--e-spring) .1s both; }
@keyframes n-pop { from { transform: scale(0); } }

/* --- page transitions: a short cross-fade; the clicked poster flies to the anime page's poster --- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .24s; }
::view-transition-group(kz-poster) { animation-duration: .42s; animation-timing-function: var(--e-out); }
::view-transition-old(kz-poster), ::view-transition-new(kz-poster) { height: 100%; object-fit: cover; }
.d-poster .poster { view-transition-name: kz-poster; }
/* theme switch: the new theme opens as a circle from the button (script); no cross-fade then */
html.vt-theme::view-transition-old(root), html.vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.vt-theme .d-poster .poster { view-transition-name: none; }

/* --- rise in on scroll --- */
.rv-pre { opacity: 0; transform: translateY(16px); }
.rv-in { transition: opacity .55s var(--e-out), transform .55s var(--e-out); transition-delay: var(--rv-d, 0ms); }
/* bars fill, countdown digits flip */
.bar-go { animation: bar-in 1s var(--e-out) both; transform-origin: left center; }
@keyframes bar-in { from { transform: scaleX(0); } }
.un-box b.flip { animation: flip .45s var(--e-out); transform-origin: 50% 50%; }
@keyframes flip { 0% { transform: perspective(300px) rotateX(-90deg); opacity: .2; } 100% { transform: none; opacity: 1; } }

/* --- loading skeletons (followers pop-up, bell) --- */
.sk { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.sk-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; }
.sk-ls { display: flex; flex-direction: column; gap: 8px; }
.sk-c, .sk-l { background: linear-gradient(90deg, var(--soft) 30%, var(--line) 50%, var(--soft) 70%) 0 0 / 300% 100%; animation: sk 1.3s linear infinite; }
.sk-c { width: 36px; height: 36px; border-radius: 50%; }
.sk-l { height: 10px; }
.sk-l.s { width: 55%; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* --- brand: the sun on the logo glows, the waves drift with the wind, banners slowly settle --- */
.logo .dot { transition: transform .35s var(--e-spring), box-shadow .35s; }
.logo:hover .dot { transform: scale(1.18); box-shadow: 0 0 0 6px rgb(200 16 46 / .16), var(--glow); }
.site-head::before, .yk-band::before { animation: wave-drift 24s linear infinite; }
@keyframes wave-drift { to { background-position: 36px 0; } }
.d-banner img { animation: settle 14s var(--e-out) both; }
.hb.on img { animation: settle 10s var(--e-out) both; }
@keyframes settle { from { transform: scale(1.08); } }

/* --- rank-up celebration --- */
.ru-dlg { width: min(420px, calc(100vw - 24px)); padding: 36px 28px 28px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); text-align: center; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.ru-dlg[open] { display: flex; flex-direction: column; align-items: center; gap: 10px; animation: ru-in .5s var(--e-spring); }
.ru-dlg::backdrop { background: rgba(20, 20, 20, .6); }
@keyframes ru-in { from { opacity: 0; transform: translateY(18px) scale(.94); } }
.ru-kick { font-size: 12px; font-weight: 600; letter-spacing: 3px; color: var(--sun); }
.ru-em { display: inline-flex; margin: 6px 0 2px; animation: ru-em .9s var(--e-spring) .15s both; }
@keyframes ru-em { 0% { transform: scale(.3) rotate(-25deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.ru-h { font-size: 40px; line-height: 1.1; }
.ru-jp { font-family: var(--jp); font-size: 22px; letter-spacing: 6px; color: var(--muted); }
.ru-t { margin: 4px 0 10px; font-size: 15px; color: var(--body); }
.ru-ok { width: 100%; }
.ru-leaves { position: absolute; inset: 0; pointer-events: none; }
.ru-leaf { position: absolute; left: -24px; top: var(--y); width: 14px; height: 8px; border-radius: 0 100% 0 100%; background: var(--sun); opacity: 0; animation: leaf 2.6s var(--d) ease-in-out both; }
.ru-leaf:nth-child(3n) { background: #C9A86A; }
.ru-leaf:nth-child(3n + 1) { background: #5F7D6F; }
@keyframes leaf { 0% { opacity: 0; transform: translate(0, 0) rotate(var(--r)); } 15% { opacity: .9; } 100% { opacity: 0; transform: translate(480px, -60px) rotate(calc(var(--r) + 540deg)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  @view-transition { navigation: none; }
  .rv-pre { opacity: 1; transform: none; }
}
