/* ============================================================================
   KuTube — uygulama CSS'i
   Tüm renkler web/theme/tokens.css içindeki tema değişkenlerinden gelir.
   Burada SABİT renk yok: tema değişince arayüz baştan renklenir.
   Aile farkı (mono/zen) yalnız tipografi ve köşe yarıçapında.
   ============================================================================ */

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html {
  background: var(--surface);
  color: var(--on-surface);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-ui, var(--font-display, system-ui)), system-ui, sans-serif;
  font-size: var(--fs-body-md, 14px);
  line-height: var(--lh-body-md, 20px);
  letter-spacing: var(--ls-body-md, 0);
  background: var(--surface);
  color: var(--on-surface);
  overflow-x: hidden;
}

/* Köşe yarıçapları: iki temada da aynı (dark/light yalnız renk ve tipografi). */
:root { --r-card: 12px; --r-ctl: 10px; --r-pill: 999px; }

img, video { max-width: 100%; display: block; }
/* Görseller RENKLİ (kullanıcı: "webde neden herşey siyah beyaz").
   Monokrom yalnız ZEN ailesinde ve yalnız KAPAK görsellerinde uygulanır;
   MONO ailesinde içerik renkli kalır. Video her zaman renkli. */
/* Renkli içerik: hiçbir ailede gri filtre yok (kullanıcı isteği). */
video { filter: none; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--r-ctl);
}

.skip-link {
  position: fixed; left: 8px; top: -60px; z-index: 999;
  padding: 10px 14px; border-radius: var(--r-ctl);
  background: var(--primary); color: var(--on-primary);
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

.ic { flex: 0 0 auto; }

/* ------------------------------------------------------------------ iskelet */

.shell { display: flex; min-height: 100vh; }

.rail {
  position: fixed; inset: 0 auto 0 0; width: 240px; z-index: 50;
  display: flex; flex-direction: column;
  background: var(--surface-container-low);
  border-right: 1px solid var(--outline-variant);
  padding: 10px 8px 14px;
  overflow-y: auto; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }

.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px 14px;
}
.brand-mark {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: var(--r-ctl);
  background: var(--primary); color: var(--on-primary);
}
.brand-word {
  font-size: 15px; font-weight: 700; letter-spacing: .08em;
  color: var(--primary);
}

.rail-nav { display: flex; flex-direction: column; gap: 2px; }

.rail-link {
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 12px;
  border-radius: var(--r-card);
  color: var(--on-surface-variant);
  font-size: var(--fs-title-sm, 14px);
  transition: background .14s ease, color .14s ease;
}
.rail-link:hover { background: var(--surface-container); color: var(--on-surface); }
.rail-link.is-active {
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}

.rail-sep { height: 1px; margin: 10px 12px; background: var(--outline-variant); }

.rail-label {
  padding: 6px 12px 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--outline);
}

.rail-ch {
  display: flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 12px; border-radius: var(--r-card);
  color: var(--on-surface-variant); font-size: 13px;
}
.rail-ch:hover { background: var(--surface-container); color: var(--on-surface); }
.rail-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto;
  background: var(--surface-container-highest);
  color: var(--on-surface); font-size: 10px; font-weight: 700;
  overflow: hidden;
}
.rail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rail-ch-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rail-foot { margin-top: auto; padding: 12px 8px 0; }

.shell-main { flex: 1; min-width: 0; margin-left: 240px; }

/* -------------------------------------------------------------------- header */

.hdr {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 18px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--outline-variant);
}
.hdr-menu { display: none; color: var(--on-surface-variant); }
.hdr-brand {
  display: none;
  font-size: 14px; font-weight: 700; letter-spacing: .08em;
}

.hdr-search {
  flex: 1; max-width: 520px;
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--outline-variant);
  background: var(--surface-container-low);
  color: var(--outline);
}
.hdr-search:focus-within { border-color: var(--primary); }
.hdr-search input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  color: var(--on-surface); font-size: 13px;
}
.hdr-search input::placeholder { color: var(--outline); }
.hdr-search kbd {
  font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px;
  background: var(--surface-container-highest); color: var(--on-surface-variant);
}

.hdr-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hdr-ic {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: var(--r-ctl); color: var(--on-surface-variant);
}
.hdr-ic:hover { background: var(--surface-container); color: var(--on-surface); }
.hdr-user {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; overflow: hidden;
  background: var(--primary); color: var(--on-primary);
}
.hdr-user img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------- tema seçici */

.theme-picker { display: flex; gap: 6px; }
.theme-picker.is-compact { gap: 4px; }
.theme-pick {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--outline-variant);
  color: var(--on-surface-variant);
  font-size: 12px; font-weight: 600;
  transition: border-color .14s ease, background .14s ease;
}
.theme-picker.is-compact .theme-pick { width: 28px; height: 28px; padding: 0; justify-content: center; }
.theme-pick:hover { border-color: var(--primary); color: var(--on-surface); }
.theme-pick.is-on { border-color: var(--primary); color: var(--on-surface); background: var(--surface-container); }
.theme-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--dot); border: 1px solid var(--outline);
}
.theme-name { white-space: nowrap; }

/* --------------------------------------------------------------------- page */

.page { padding: 20px 24px 80px; max-width: 1680px; }

.page-head { margin: 4px 0 20px; }
.page-head h1 {
  margin: 0 0 6px;
  font-family: var(--font-display, system-ui), system-ui, sans-serif;
  font-size: var(--fs-headline-lg, 30px);
  line-height: var(--lh-headline-lg, 38px);
  letter-spacing: var(--ls-headline-lg, -0.02em);
  font-weight: var(--fw-headline-lg, 600);
  color: var(--on-surface);
}
.page-sub { margin: 0; color: var(--on-surface-variant); font-size: 13px; }

.row-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 28px 0 12px;
}
.row-head h2 {
  margin: 0;
  font-size: var(--fs-title-lg, 18px); font-weight: 600;
  letter-spacing: -0.01em;
}
.row-head a { font-size: 12px; color: var(--on-surface-variant); }
.row-head a:hover { color: var(--primary); }

/* -------------------------------------------------------------------- hero */

.hero {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 24px; align-items: stretch;
  padding: 22px;
  border-radius: var(--r-card);
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
}
.hero-media {
  position: relative; display: block; overflow: hidden;
  border-radius: calc(var(--r-card) - 4px);
  background: var(--surface-container-highest);
  aspect-ratio: 16 / 9;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.kicker {
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--outline);
}
.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display, system-ui), system-ui, sans-serif;
  font-size: var(--fs-headline-xl, 32px);
  line-height: var(--lh-headline-xl, 40px);
  letter-spacing: var(--ls-headline-xl, -0.02em);
  font-weight: 600;
}
.hero-sub { margin: 0; color: var(--on-surface-variant); font-size: 13px; }
.hero-empty { grid-template-columns: 1fr; min-height: 240px; }

/* ------------------------------------------------------------------- butonlar */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
  align-self: flex-start;
}
.btn-solid { background: var(--primary); color: var(--on-primary); }
.btn-solid:hover { opacity: .88; }
.btn-outline { border: 1px solid var(--outline-variant); color: var(--on-surface); }
.btn-outline:hover { border-color: var(--primary); background: var(--surface-container); }

.chip {
  height: 28px; padding: 0 12px; border-radius: var(--r-pill);
  border: 1px solid var(--outline-variant); color: var(--on-surface-variant);
  font-size: 12px; font-weight: 600;
}
.chip.is-on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.chips { display: inline-flex; gap: 6px; }

.badge-dub, .badge-live {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  padding: 2px 6px; border-radius: 4px;
  font-size: 9px; font-weight: 800; letter-spacing: .06em;
}
.badge-dub { background: var(--primary); color: var(--on-primary); }
.badge-live { background: var(--error); color: var(--on-error); }

/* -------------------------------------------------------------------- kartlar */

.grid {
  display: grid; gap: 22px 16px;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
}

.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card-thumb {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-card);
  background: var(--surface-container-highest);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-thumb img { transform: scale(1.03); }
.card-ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--outline);
}
.card-dur {
  position: absolute; right: 6px; bottom: 6px; z-index: 2;
  padding: 1px 5px; border-radius: 4px;
  background: color-mix(in srgb, var(--surface-container-lowest) 86%, transparent);
  color: var(--on-surface); font-size: 10px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.card-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card-title {
  font-size: 13.5px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--on-surface);
}
.card-sub { font-size: 11.5px; color: var(--on-surface-variant); }
.card-sub + .card-sub { color: var(--outline); }

.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 168px;
  gap: 14px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip .card-thumb { aspect-ratio: 9 / 16; }
.strip .card { scroll-snap-align: start; }

/* -------------------------------------------------------------------- watch */

.watch {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px;
  align-items: start;
}
.watch-main { min-width: 0; }

.player {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  background: #000; aspect-ratio: 16 / 9;
}
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }

.player-bar {
  position: absolute; inset: auto 0 0 0;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .88));
  color: #fff;
}
.pb-btn {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: var(--r-ctl); color: #fff;
}
.pb-btn:hover { background: rgba(255, 255, 255, .14); }
.pb-time { font-size: 11.5px; font-variant-numeric: tabular-nums; opacity: .9; white-space: nowrap; }
.pb-seek { flex: 1; min-width: 60px; accent-color: #fff; height: 3px; }
.pb-pill {
  height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .5); color: #fff;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.pb-pill:hover, .pb-pill.is-on { background: #fff; color: #000; border-color: #fff; }

.watch-title {
  margin: 16px 0 6px;
  font-size: var(--fs-headline-md, 22px); font-weight: 600; line-height: 1.3;
  letter-spacing: -0.01em;
}
.watch-sub { display: flex; gap: 8px; color: var(--on-surface-variant); font-size: 12.5px; }
.watch-actions { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.watch-channel {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--outline-variant);
  border-bottom: 1px solid var(--outline-variant);
}
.ch-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-container-highest); font-weight: 700;
}
.ch-copy { display: flex; flex-direction: column; }
.ch-copy strong { font-size: 14px; }
.ch-copy span { font-size: 11.5px; color: var(--outline); }
.watch-channel .btn { margin-left: auto; }
.watch-desc { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r-card); background: var(--surface-container-low); }
.watch-desc summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.watch-desc p { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: var(--on-surface-variant); white-space: pre-wrap; }

.watch-side { min-width: 0; }
.side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.side-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.side-row { display: flex; gap: 10px; padding: 6px 0; border-radius: var(--r-ctl); }
.side-row:hover { background: var(--surface-container-low); }
.side-thumb { position: relative; flex: 0 0 140px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--surface-container-highest); }
.side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.side-empty { color: var(--outline); font-size: 13px; }

/* ------------------------------------------------------------------- shorts */

.shorts { position: fixed; inset: 0; background: #000; z-index: 60; }
.shorts-track { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; }
.shorts-track::-webkit-scrollbar { display: none; }
.short { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; }
.short-frame {
  position: relative; height: 100%; aspect-ratio: 9 / 16;
  max-width: min(100vw, calc(100vh * 9 / 16));
  background: #000; overflow: hidden;
}
@media (min-width: 760px) {
  .short-frame { border-radius: 16px; height: calc(100% - 32px); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
}
.short-frame video { width: 100%; height: 100%; object-fit: cover; }
.short-back {
  position: absolute; left: 12px; top: 14px; z-index: 3;
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff;
}
.short-count { position: absolute; right: 14px; top: 20px; z-index: 3; font-size: 11px; color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; }
.short-info {
  position: absolute; left: 0; right: 64px; bottom: 0; z-index: 3;
  padding: 40px 16px 18px; color: #fff;
  background: none; text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 8px rgba(0, 0, 0, .6);
}
[data-surface="tv"] .short-info { background: linear-gradient(transparent, rgba(0, 0, 0, .78)); text-shadow: none; } /* TV eski görünüm */
.short-ch { font-size: 13px; font-weight: 700; }
.short-cap { margin: 4px 0 0; font-size: 12.5px; line-height: 1.4; opacity: .92; }
.short-acts { position: absolute; right: 10px; bottom: 90px; z-index: 3; display: flex; flex-direction: column; gap: 16px; }
.short-acts button {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff;
}
.short-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: #fff; z-index: 3; }

/* ------------------------------------------------------ shorts (PC sahnesi) */

.shorts-pc { padding: 20px 24px 16px; color: var(--on-surface); overflow-x: clip; box-sizing: border-box; }
.shorts-pc *, .shorts-pc *::before, .shorts-pc *::after { box-sizing: border-box; }
.shorts-pc-stage {
  display: flex; flex-wrap: nowrap; align-items: flex-start; justify-content: center; gap: 16px;
  min-width: 0; max-width: 100%;
}

.shorts-pc-nav {
  flex: 0 0 64px; height: 780px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
}
.shorts-pc-navbtn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: #2a2a2c; color: #fff; transition: background .15s ease;
}
.shorts-pc-navbtn:hover { background: var(--surface-container-highest); }
.shorts-pc-navlabel {
  writing-mode: vertical-rl; font-size: 11px; letter-spacing: .04em;
  color: var(--on-surface-variant); text-transform: uppercase;
}

.shorts-pc-frame {
  position: relative; flex: 0 1 440px; width: auto; min-width: 320px; height: 780px;
  border-radius: 16px; overflow: hidden; background: #0e0e10;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.shorts-pc-item { position: absolute; inset: 0; background: #000; }
.shorts-pc-item[hidden] { display: none; }
.shorts-pc-video { width: 100%; height: 100%; object-fit: contain; background: #000; }

.shorts-pc-top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 12px 0; pointer-events: none;
}
.shorts-pc-top > * { pointer-events: auto; }
.shorts-pc-chip {
  padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px;
}
.shorts-pc-top-acts { display: flex; gap: 8px; }
.shorts-pc-iconbtn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0, 0, 0, .5); color: #fff; transition: background .15s ease;
}
.shorts-pc-iconbtn:hover { background: rgba(0, 0, 0, .75); }

.shorts-pc-center {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff;
  opacity: 0; transition: opacity .15s ease;
}
.shorts-pc-frame:hover .shorts-pc-center,
.shorts-pc-center:focus-visible { opacity: 1; }

.shorts-pc-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 56px 16px 14px; color: #fff;
  background: none; text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 8px rgba(0, 0, 0, .6);
}
.shorts-pc-chrow { display: flex; align-items: center; gap: 8px; }
.shorts-pc-avatar {
  display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px;
  border-radius: 50%; background: var(--primary); color: var(--on-primary);
  font-size: 14px; font-weight: 700;
}
.shorts-pc-avatar-sm { width: 32px; height: 32px; background: var(--surface-container-highest); color: var(--on-surface); }
.shorts-pc-chname { font-size: 14px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shorts-pc-verified { display: inline-grid; place-items: center; color: rgba(255, 255, 255, .8); }
.shorts-pc-sub {
  margin-left: auto; height: 36px; padding: 0 16px; border-radius: var(--r-pill);
  background: #ff0033; color: #fff; font-size: 13px; font-weight: 700;
}
.shorts-pc-sub:hover { filter: brightness(1.1); }
.shorts-pc-cap {
  margin: 8px 0 10px; font-size: 13px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shorts-pc-prog { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.shorts-pc-prog-bar { display: block; height: 100%; width: 0; background: #ff0033; }
.shorts-pc-time { display: block; margin-top: 6px; font-size: 11px; font-variant-numeric: tabular-nums; opacity: .85; }

.shorts-pc-rail {
  flex: 0 0 64px; align-self: flex-end; height: 780px;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 14px;
}
.shorts-pc-act { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.shorts-pc-actbtn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: #2a2a2c; color: #fff; transition: background .15s ease;
}
.shorts-pc-act:hover .shorts-pc-actbtn { background: var(--surface-container-highest); }
.shorts-pc-actlbl { font-size: 11px; color: var(--on-surface-variant); font-variant-numeric: tabular-nums; }

.shorts-pc-panel {
  flex: 0 1 340px; width: auto; min-width: 300px; height: 780px; display: flex; flex-direction: column;
  border-radius: 16px; background: var(--surface-container-low);
  border: 1px solid var(--outline-variant); overflow: hidden;
}
.shorts-pc-panel-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; }
.shorts-pc-panel-title { margin: 0; font-size: 16px; font-weight: 700; }
.shorts-pc-badge {
  padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--surface-container-highest); font-size: 12px; font-variant-numeric: tabular-nums;
}
.shorts-pc-sort {
  margin-left: auto; padding: 4px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--outline-variant); font-size: 12px; color: var(--on-surface-variant);
}
.shorts-pc-compose { display: flex; align-items: center; gap: 8px; padding: 6px 16px 12px; }
.shorts-pc-input {
  flex: 1; min-width: 0; height: 40px; padding: 0 14px; border-radius: var(--r-pill);
  background: var(--surface-container-high); border: 1px solid var(--outline-variant);
}
.shorts-pc-send {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--on-primary);
}
.shorts-pc-comments { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 16px; scrollbar-width: thin; }
.shorts-pc-empty { margin: 24px 0; text-align: center; color: var(--on-surface-variant); font-size: 13px; }
.shorts-pc-cmt { display: flex; gap: 10px; padding: 8px 0; }
.shorts-pc-cmt-body { min-width: 0; }
.shorts-pc-cmt-head { font-size: 12px; color: var(--on-surface-variant); }
.shorts-pc-cmt-head b { color: var(--on-surface); margin-right: 6px; }
.shorts-pc-cmt-text { margin: 2px 0 0; font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; }
.shorts-pc-cmt-foot { margin-top: 4px; font-size: 12px; color: var(--on-surface-variant); }

.shorts-pc-nexts { flex: 0 0 auto; padding: 10px 16px 14px; border-top: 1px solid var(--outline-variant); }
.shorts-pc-nexts-title { margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.shorts-pc-nextlist { display: flex; flex-direction: column; gap: 8px; }
.shorts-pc-next { display: flex; gap: 10px; width: 100%; text-align: left; min-height: 44px; }
.shorts-pc-next-thumb {
  position: relative; flex: 0 0 56px; aspect-ratio: 14 / 20; border-radius: 8px;
  overflow: hidden; background: var(--surface-container-highest);
}
.shorts-pc-next-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shorts-pc-next-dur {
  position: absolute; right: 3px; bottom: 3px; padding: 0 4px; border-radius: 4px;
  background: rgba(0, 0, 0, .75); color: #fff; font-size: 10px; font-variant-numeric: tabular-nums;
}
.shorts-pc-next-meta { display: flex; flex-direction: column; justify-content: center; min-width: 0; gap: 2px; }
.shorts-pc-next-title { font-size: 13px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shorts-pc-next-ch { font-size: 12px; color: var(--on-surface-variant); }

.shorts-pc-hint {
  margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--on-surface-variant);
}
.shorts-pc-hint kbd {
  display: inline-block; min-width: 22px; padding: 1px 6px; margin: 0 2px; border-radius: 6px;
  border: 1px solid var(--outline-variant); background: var(--surface-container-high);
  font: inherit; font-size: 11px; text-align: center;
}

/* Geniş ekran: 1500px ve üstü 480x820 çerçeve, 420px panel. */
@media (min-width: 1500px) {
  .shorts-pc-nav, .shorts-pc-rail { height: 820px; }
  .shorts-pc-frame { flex-basis: 480px; height: 820px; }
  .shorts-pc-panel { flex-basis: 420px; height: 820px; }
}
/* Dar masaüstü: yan düğme sütunları gizlenir, panel 340px kalır. */
@media (max-width: 1180px) {
  .shorts-pc-nav, .shorts-pc-rail { display: none; }
  .shorts-pc-panel { flex-basis: 340px; }
}
/* Tablet/mobil: sahne gizlenmez, tek kolona dizilir. */
@media (max-width: 900px) {
  .shorts-pc-stage { flex-direction: column; align-items: center; }
  .shorts-pc-frame { width: 100%; max-width: 440px; min-width: 0; height: auto; aspect-ratio: 9 / 16; flex: 0 0 auto; }
  .shorts-pc-panel { width: 100%; max-width: 440px; min-width: 0; height: auto; max-height: 520px; flex: 0 0 auto; }
}

/* ----------------------------------------------------------------- settings */

.settings-block {
  margin: 0 0 28px; padding: 20px;
  border-radius: var(--r-card);
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  max-width: 900px;
}
.settings-block h2 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.settings-hint { margin: 0 0 16px; font-size: 12.5px; color: var(--on-surface-variant); }

.settings-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--outline-variant); font-size: 13.5px;
}
.settings-row select {
  height: 34px; padding: 0 10px; border-radius: var(--r-ctl);
  background: var(--surface-container-high);
  border: 1px solid var(--outline-variant); color: var(--on-surface);
}

.theme-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.theme-card {
  display: flex; flex-direction: column; gap: 8px; text-align: left;
  padding: 10px; border-radius: var(--r-card);
  border: 1px solid var(--outline-variant);
  background: var(--surface-container);
  transition: border-color .14s ease, transform .14s ease;
}
.theme-card:hover { border-color: var(--primary); }
.theme-card.is-on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.theme-card-name { font-size: 13px; font-weight: 600; }
.theme-card-mode { font-size: 10.5px; color: var(--outline); letter-spacing: .06em; text-transform: uppercase; }

/* Tema önizleme: 2 temanın (dark/light) kendi renkleriyle minik iskelet */
.theme-preview {
  position: relative; display: block; height: 92px; border-radius: 8px; overflow: hidden;
  display: grid; grid-template-columns: 26px 1fr; grid-template-rows: 12px 1fr;
}
.theme-preview .tp-bar { grid-column: 1 / -1; }
.theme-preview .tp-side { grid-row: 2; }
.theme-preview .tp-card { width: 26px; height: 20px; border-radius: 3px; margin: 4px 0 0 4px; align-self: start; }
.theme-preview::after { content: ''; }

.preview-dark { background: #131313; }
.preview-dark .tp-bar { background: #1f1f1f; }
.preview-dark .tp-side { background: #2a2a2a; }
.preview-dark .tp-card { background: #353535; }

.preview-light { background: #ffffff; }
.preview-light .tp-bar { background: #f4f4f4; }
.preview-light .tp-side { background: #e8e8e8; }
.preview-light .tp-card { background: #d8d8d8; }

/* ------------------------------------------------------------ boş / basit */

.empty-state {
  display: grid; place-items: center; gap: 14px;
  padding: 80px 20px; text-align: center;
  color: var(--on-surface-variant);
}
.empty-state h1, .empty-state p { margin: 0; }

/* --------------------------------------------------- mobil alt menü ve uyum */

.bnav { display: none; }

@media (max-width: 1023px) {
  .rail { display: none; }
  .shell-main { margin-left: 0; }
  .hdr-menu { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-ctl); }
  .hdr-brand { display: inline; }
  .watch { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding: 14px; }
  .page { padding: 14px 14px 90px; }
}

@media (max-width: 640px) {
  /* Dokunma hedefleri: en az 44×44 (erişilebilirlik) */
  .hdr-ic, .hdr-menu, .hdr-user { width: 44px; height: 44px; }
  .btn { min-height: 44px; }
  .chip { min-height: 34px; }
  .rail-link { min-height: 44px; }
  .bnav {
    position: fixed; inset: auto 0 0 0; z-index: 45;
    display: grid; grid-template-columns: repeat(4, 1fr);
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    border-top: 1px solid var(--outline-variant);
    backdrop-filter: blur(14px);
  }
  .bnav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: 10px; color: var(--outline);
  }
  .bnav-item.is-active { color: var(--primary); }
  .hdr-search kbd { display: none; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .strip { grid-auto-columns: 140px; }
  .watch-side { order: 2; }
}

/* ------------------------------------------------------------- TV yüzeyi */

[data-surface="tv"] body,
body.surface-tv { font-size: 18px; }

body.surface-tv .page { padding: 40px 56px 120px; max-width: none; }
body.surface-tv .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
body.surface-tv .card-title { font-size: 20px; }
body.surface-tv .card-sub { font-size: 16px; }
body.surface-tv .row-head h2 { font-size: 28px; }
body.surface-tv .page-head h1 { font-size: 36px; }

/* TV: uzaktan kumanda odağı — kalın beyaz halka, 8px boşluk */
body.surface-tv :focus-visible,
body.surface-tv .card:focus-visible .card-thumb,
body.surface-tv .rail-link:focus-visible,
body.surface-tv .btn:focus-visible,
body.surface-tv .pb-btn:focus-visible,
body.surface-tv .pb-pill:focus-visible {
  outline: 4px solid var(--primary);
  outline-offset: 8px;
}

.tvbar {
  position: fixed; inset: 0 0 auto 0; z-index: 41;
  display: flex; align-items: center; gap: 20px;
  height: 84px; padding: 0 56px;
  background: linear-gradient(var(--surface), transparent);
}
.tvbar-brand { font-size: 24px; font-weight: 700; letter-spacing: .1em; }
.tvbar-title { font-size: 22px; color: var(--on-surface-variant); }
.tvbar-hint { margin-left: auto; font-size: 18px; color: var(--outline); }

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


/* Node.js yüzeyleri: PC ve TV için ayrı kompozisyon */
body.surface-pc .page { max-width: 1760px; padding: 24px 36px 72px; }
body.surface-pc .hero { grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 28px; min-height: 350px; padding: 24px; border: 1px solid var(--outline-variant); box-shadow: 0 18px 56px color-mix(in srgb, var(--primary) 10%, transparent); }
body.surface-pc .hero-media { min-height: 300px; border-radius: 16px; }
body.surface-pc .hero-copy h1 { font-size: clamp(30px, 3.1vw, 48px); line-height: 1.08; }
body.surface-pc .rows { display: grid; gap: 12px; }
body.surface-pc .grid { grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 28px 18px; }
body.surface-pc .card { border-radius: 14px; transition: transform .18s ease, background .18s ease; }
body.surface-pc .card:hover { transform: translateY(-3px); }
body.surface-pc .card-thumb { border-radius: 14px; }
body.surface-pc .row-head { margin-top: 30px; }
body.surface-pc .row-head h2 { font-size: 23px; }
body.surface-pc .hdr { height: 64px; }
body.surface-pc .hdr-search { max-width: 680px; }

body.surface-tv { --tv-safe: 48px; --tv-rail: 100px; font-size: 24px; }
body.surface-tv .tvbar { height: 88px; padding-inline: var(--tv-safe); background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, transparent), transparent); }
body.surface-tv .tvbar-brand { font-size: 30px; }
body.surface-tv .tvbar-hint { font-size: 20px; padding: 10px 18px; border: 1px solid var(--outline-variant); border-radius: 999px; background: var(--surface-container); }
body.surface-tv .page { width: 100%; max-width: none; padding: 112px var(--tv-safe) 136px; }
body.surface-tv .meta-strip { margin: 0 0 24px; padding: 12px 18px; border-radius: 12px; font-size: 17px; }
body.surface-tv .hero { grid-template-columns: minmax(0, 1.25fr) minmax(500px, .75fr); gap: 36px; min-height: 480px; padding: 28px; border-radius: 28px; border: 1px solid var(--outline-variant); box-shadow: 0 22px 70px color-mix(in srgb, var(--primary) 15%, transparent); }
body.surface-tv .hero-media { min-height: 420px; border-radius: 22px; }
body.surface-tv .hero-copy { gap: 18px; padding: 20px 10px; }
body.surface-tv .hero-copy h1 { font-size: clamp(42px, 3.2vw, 66px); line-height: 1.04; }
body.surface-tv .hero-sub { font-size: 22px; line-height: 1.4; }
body.surface-tv .btn { min-height: 64px; padding-inline: 28px; border-radius: 18px; font-size: 22px; }
body.surface-tv .rows { display: grid; gap: 26px; }
body.surface-tv .row-head { margin: 24px 0 16px; }
body.surface-tv .row-head h2 { font-size: 34px; }
body.surface-tv .row-note, body.surface-tv .row-head > a { font-size: 20px; }
body.surface-tv .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 24px; }
body.surface-tv .strip { grid-auto-columns: 260px; gap: 24px; padding: 10px 8px 22px; scroll-padding-inline: 8px; }
body.surface-tv .card { border-radius: 20px; padding: 4px; }
body.surface-tv .card-thumb { border-radius: 18px; }
body.surface-tv .card-meta { gap: 8px; padding: 14px 10px; }
body.surface-tv .card-title { font-size: 24px; line-height: 1.22; }
body.surface-tv .card-sub { font-size: 19px; line-height: 1.3; }
body.surface-tv .card-dur, body.surface-tv .badge-live, body.surface-tv .badge-dub { font-size: 17px; padding: 6px 10px; }
body.surface-tv .end-card { margin-top: 30px; padding: 36px; border-radius: 24px; }
body.surface-tv :focus-visible, body.surface-tv .card:focus-visible, body.surface-tv .card:focus-visible .card-thumb, body.surface-tv .tvbar a:focus-visible, body.surface-tv .btn:focus-visible { outline: 5px solid var(--primary); outline-offset: 8px; box-shadow: 0 0 0 12px color-mix(in srgb, var(--primary) 28%, transparent), 0 18px 52px rgba(0,0,0,.55); }
body.surface-tv .card:focus-visible { transform: scale(1.045); z-index: 5; }
body.surface-tv .tvbar, body.surface-tv .page, body.surface-tv .hero { scroll-margin-top: var(--tv-safe); }
body.surface-tv .watch { gap: 36px; padding: 110px var(--tv-safe) 80px; }
body.surface-tv .watch-title { font-size: 34px; }
body.surface-tv .watch-side { min-width: 420px; }
@media (min-width: 1024px) and (max-width: 1500px) {
 body.surface-tv { --tv-safe: 36px; }
 body.surface-tv .hero { grid-template-columns: minmax(0,1fr) minmax(360px,.8fr); }
 body.surface-tv .grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 1023px) {
 body.surface-pc .page { padding: 18px 22px 76px; }
 body.surface-pc .hero { grid-template-columns: 1fr 1fr; }
}

/* ---------- /app/account — HUD hesap paneli ---------- */
.acct-wrap { display: flex; justify-content: flex-end; align-items: flex-start; gap: 24px; width: 100%; max-width: 100%; }
.acct-panel { position: sticky; top: 84px; width: 390px; max-width: 100%; max-height: calc(100vh - 96px); overflow: hidden; display: flex; flex-direction: column; background: var(--surface-container-high); border-radius: 14px; box-shadow: 0 24px 64px rgba(0,0,0,.6); }
.acct-panel::before { content: ''; display: block; height: 2px; flex: 0 0 auto; background: linear-gradient(90deg, #ff0033, transparent); }
.acct-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 0 4px; }
.acct-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 8px; }
.acct-head-title { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; margin: 0; font-size: 16px; font-weight: 700; color: var(--on-surface); }
.acct-head a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--on-surface-variant); border-radius: 10px; }
.acct-head a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.acct-profile { display: flex; align-items: center; gap: 14px; padding: 10px 18px 14px; }
.acct-avatar { position: relative; flex: 0 0 auto; width: 56px; height: 56px; padding: 2px; border-radius: 50%; background: linear-gradient(135deg, #ff0033, #ff1744, #00daf3); }
.acct-avatar-in { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; background: var(--surface-container-high); color: var(--on-surface); font-size: 22px; font-weight: 700; }
.acct-avatar-in img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-dot { position: absolute; right: 0; bottom: 0; width: 13px; height: 13px; border-radius: 50%; background: #2ecc71; border: 2px solid var(--surface-container-high); }
.acct-id { min-width: 0; flex: 1 1 auto; }
.acct-name { margin: 0; font-size: 17px; font-weight: 700; color: var(--on-surface); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-mail { margin: 2px 0 0; font-size: 13px; color: var(--on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.acct-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--on-surface); background: color-mix(in srgb, var(--on-surface) 12%, transparent); }
.acct-pill-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #2ecc71; animation: acct-pulse 1.8s ease-in-out infinite; }
@keyframes acct-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.acct-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 18px 14px; }
.acct-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--on-surface); background: color-mix(in srgb, var(--on-surface) 10%, transparent); cursor: pointer; text-decoration: none; }
.acct-btn-primary { background: #ff0033; color: #fff; }
.acct-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.acct-card { margin: 0 18px 14px; padding: 4px 14px; border-radius: 12px; background: color-mix(in srgb, var(--on-surface) 6%, transparent); }
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; font-size: 13px; }
.acct-row + .acct-row { border-top: 1px solid color-mix(in srgb, var(--on-surface) 8%, transparent); }
.acct-row dt { margin: 0; color: var(--on-surface-variant); }
.acct-row dd { margin: 0; min-width: 0; color: var(--on-surface); font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-group { margin: 0 10px 8px; padding: 0; list-style: none; }
.acct-group-label { margin: 6px 18px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--on-surface-variant); text-transform: uppercase; }
.acct-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 14px; color: var(--on-surface); text-align: left; text-decoration: none; cursor: pointer; }
.acct-item:hover { background: color-mix(in srgb, var(--on-surface) 8%, transparent); }
.acct-item:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.acct-item-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-item-val { flex: 0 0 auto; max-width: 45%; font-size: 12.5px; color: var(--on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-item-chev { flex: 0 0 auto; color: var(--on-surface-variant); }
.acct-item-info { cursor: default; }
.acct-item-info:hover { background: transparent; }
.acct-item-accent { color: #ff4d6a; font-weight: 600; }
.acct-item kbd { padding: 2px 6px; border-radius: 6px; font: 600 11px/1.4 inherit; color: var(--on-surface-variant); background: color-mix(in srgb, var(--on-surface) 12%, transparent); }
.acct-keys { margin: 2px 10px 8px 44px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--on-surface) 6%, transparent); }
.acct-keys[hidden] { display: none; }
.acct-keys-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; font-size: 12.5px; color: var(--on-surface); }
.acct-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: 0 0 auto; padding: 10px 18px; font-size: 11px; letter-spacing: .06em; color: var(--on-surface-variant); border-top: 1px solid color-mix(in srgb, var(--on-surface) 8%, transparent); }
.acct-foot-core { display: inline-flex; align-items: center; gap: 6px; }
.acct-foot-core::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #2ecc71; }
.acct-foot a { color: var(--on-surface-variant); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 1100px) { .acct-panel { width: 360px; } }
@media (max-width: 760px) {
 .acct-wrap { display: block; }
 .acct-panel { position: static; width: 100%; max-height: none; }
}

/* Hesap + Bildirim sağ çekmecesi (rota değişmez) */
body.kt-drawer-open { overflow: hidden; }
.kt-drawer-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .62); backdrop-filter: blur(3px); }
.kt-drawer-scrim[hidden] { display: none; }
.kt-drawer { position: fixed; top: 76px; right: 24px; width: 390px; max-height: calc(100vh - 100px); z-index: 81; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .85), 0 0 24px rgba(255, 0, 51, .18); }
.kt-drawer[hidden], .kt-drawer.acct-panel[hidden] { display: none; }
.kt-drawer.acct-panel { height: auto; margin: 0; background: var(--surface, #0f0f0f); color: var(--on-surface); border: 1px solid color-mix(in srgb, var(--on-surface) 14%, transparent); animation: kt-drawer-in .22s ease-out; }
.kt-drawer .acct-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: 0 0 auto; padding: 12px 18px; border-bottom: 1px solid color-mix(in srgb, var(--on-surface) 8%, transparent); }
.kt-drawer .acct-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 0 18px; }
.kt-drawer .acct-scroll > p { margin: 0; padding: 0 18px 12px; }
.kt-drawer .acct-scroll > .acct-btn { margin: 0 18px 12px; width: calc(100% - 36px); }
.kt-drawer .acct-profile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 18px 12px; text-align: center; }
.kt-drawer .acct-profile img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.kt-drawer .acct-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0 18px 10px; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.kt-drawer .acct-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 18px 14px; }
.kt-drawer .acct-quick .acct-btn { min-width: 0; }
.kt-drawer .acct-item { padding: 6px 10px; }
@keyframes kt-drawer-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
 .kt-drawer, .kt-drawer.acct-panel { top: auto; right: 0; left: 0; bottom: 0; width: 100%; max-height: 88vh; border-radius: 14px 14px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .kt-drawer.acct-panel { animation: none; } }

/* Yansıt (cast) açılır paneli — üst çubuk [data-cast-open] düğmesinin altında */
.kx-ic.is-cast-open { color: #ff0033; }
.kt-cast-pop { position: fixed; z-index: 60; width: 320px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #1c1b1d; color: #f1f1f1; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.kt-cast-pop[hidden] { display: none; }
.kt-cast-pop__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.kt-cast-pop__title { font-size: 15px; font-weight: 700; }
.kt-cast-pop__pill { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: #c9c9c9; background: rgba(255, 255, 255, .1); white-space: nowrap; }
.kt-cast-pop__list { margin: 0; padding: 6px; list-style: none; overflow-y: auto; overscroll-behavior: contain; }
.kt-cast-pop__row { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 8px; border-radius: 12px; }
.kt-cast-pop__row:hover { background: rgba(255, 255, 255, .06); }
.kt-cast-pop__dev { flex: 0 0 32px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 11px; font-weight: 700; color: #f1f1f1; background: rgba(255, 255, 255, .1); }
.kt-cast-pop__info { flex: 1 1 auto; min-width: 0; }
.kt-cast-pop__name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-cast-pop__state { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12px; color: #9a9a9a; }
.kt-cast-pop__dot { width: 7px; height: 7px; border-radius: 50%; background: #6b6b6b; }
.kt-cast-pop__state.is-on { color: #2ecc71; }
.kt-cast-pop__state.is-on .kt-cast-pop__dot { background: #2ecc71; }
.kt-cast-pop__act, .kt-cast-pop__del { min-height: 44px; border: 0; border-radius: 10px; font: inherit; cursor: pointer; }
.kt-cast-pop__act { flex: 0 0 auto; padding: 0 14px; font-size: 13px; font-weight: 700; color: #fff; background: #ff0033; }
.kt-cast-pop__act:disabled { cursor: not-allowed; color: #8a8a8a; background: rgba(255, 255, 255, .08); }
.kt-cast-pop__del { flex: 0 0 auto; padding: 0 8px; font-size: 12px; color: #c9c9c9; background: transparent; }
.kt-cast-pop__del:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.kt-cast-pop__act:focus-visible, .kt-cast-pop__del:focus-visible, .kt-cast-pop__link:focus-visible, .kt-cast-pop__set:focus-visible { outline: 2px solid #ff0033; outline-offset: 2px; }
.kt-cast-pop__empty { padding: 20px 16px; text-align: center; font-size: 13px; color: #c9c9c9; }
.kt-cast-pop__empty p { margin: 0 0 8px; }
.kt-cast-pop__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.kt-cast-pop__link, .kt-cast-pop__set { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: #f1f1f1; text-decoration: none; }
.kt-cast-pop__link:hover, .kt-cast-pop__set:hover { color: #ff4d6a; }
@media (max-width: 760px) { .kt-cast-pop { left: 12px; right: 12px; top: 64px; width: auto; } }

/* ---------- /library — PC Kitaplık (lib-*) ---------- */
.lib-page { display: flex; flex-direction: column; gap: 28px; width: 100%; max-width: 100%; min-width: 0; }
.lib-page [hidden] { display: none !important; }
.lib-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px 22px; border-radius: var(--r-card); background: var(--surface-container-high); border: 1px solid var(--outline-variant); }
.lib-hero-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.lib-avatar { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--primary); color: var(--on-primary); font-size: 22px; font-weight: 700; }
.lib-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lib-hero-text { min-width: 0; }
.lib-hero-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lib-hero-title h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; color: var(--on-surface); }
.lib-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; color: var(--on-surface); background: color-mix(in srgb, var(--on-surface) 12%, transparent); }
.lib-hero-user { margin: 4px 0 0; font-size: 13px; color: var(--on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-hero-stats { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lib-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 14px; border-radius: var(--r-ctl); background: color-mix(in srgb, var(--on-surface) 6%, transparent); }
.lib-stat-label { font-size: 11px; color: var(--on-surface-variant); }
.lib-stat-value { font-size: 15px; font-weight: 700; color: var(--on-surface); }
.lib-refresh, .lib-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-ctl); font-size: 14px; font-weight: 600; color: var(--on-primary); background: var(--primary); cursor: pointer; text-decoration: none; }
.lib-refresh { color: var(--on-surface); background: color-mix(in srgb, var(--on-surface) 10%, transparent); }
.lib-btn:disabled { cursor: not-allowed; color: var(--on-surface-variant); background: color-mix(in srgb, var(--on-surface) 10%, transparent); }
.lib-refresh:focus-visible, .lib-btn:focus-visible, .lib-chip:focus-visible, .lib-more:focus-visible, .lib-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.lib-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.lib-chip { min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--on-surface); background: color-mix(in srgb, var(--on-surface) 10%, transparent); border: 1px solid transparent; cursor: pointer; }
.lib-chip.is-active { color: var(--on-primary); background: var(--primary); }

.lib-section { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lib-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lib-section-head h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--on-surface); }
.lib-more { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--primary); }

.lib-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; min-width: 0; }
.lib-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--on-surface); text-decoration: none; }
.lib-thumb { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-card); background: var(--surface-container-high); }
.lib-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lib-dur { position: absolute; right: 6px; bottom: 8px; padding: 1px 6px; border-radius: 6px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .78); }
.lib-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: color-mix(in srgb, var(--on-surface) 30%, transparent); }
.lib-progress > span { display: block; height: 100%; background: var(--primary); }
.lib-card-title { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lib-card-meta { margin: 0; font-size: 12px; color: var(--on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-pl-cover { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 28px; font-weight: 700; color: var(--on-surface-variant); }

.lib-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; border-radius: var(--r-card); background: color-mix(in srgb, var(--on-surface) 6%, transparent); }
.lib-empty p { margin: 0; font-size: 14px; color: var(--on-surface-variant); }
.lib-empty a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--r-ctl); font-size: 14px; font-weight: 600; color: var(--on-primary); background: var(--primary); }

.lib-newlist { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lib-newlist input { flex: 1 1 220px; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: var(--r-ctl); border: 1px solid var(--outline-variant); background: var(--surface); color: var(--on-surface); }
.lib-newlist-msg { flex: 1 1 100%; margin: 0; font-size: 12px; color: var(--on-surface-variant); }

.lib-showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; min-width: 0; }
.lib-show-card { display: flex; align-items: center; gap: 18px; min-width: 0; padding: 18px; border-radius: var(--r-card); background: var(--surface-container-high); border: 1px solid var(--outline-variant); }
.lib-stack { position: relative; flex: 0 0 148px; width: 148px; aspect-ratio: 16 / 9; }
.lib-stack img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1px solid var(--outline-variant); }
.lib-stack img:nth-child(2) { transform: translate(8px, -6px); }
.lib-stack img:nth-child(3) { transform: translate(16px, -12px); }
.lib-stack-empty { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 10px; font-size: 12px; color: var(--on-surface-variant); background: color-mix(in srgb, var(--on-surface) 8%, transparent); }
.lib-show-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.lib-show-body h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--on-surface); }
.lib-show-count { margin: 0; font-size: 13px; color: var(--on-surface-variant); }

.lib-offline { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border-radius: var(--r-card); border: 1px dashed var(--outline-variant); }
.lib-offline h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--on-surface); }
.lib-offline p { margin: 0; font-size: 13px; color: var(--on-surface-variant); }
.lib-soon { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; color: var(--on-surface-variant); background: color-mix(in srgb, var(--on-surface) 10%, transparent); }

@media (max-width: 1100px) { .lib-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .lib-showcase { grid-template-columns: 1fr; } .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lib-grid { grid-template-columns: 1fr; } .lib-show-card { flex-direction: column; align-items: flex-start; } }

/* ------------------------------------------------------------ ABONELİKLER */

.subs-page { min-width: 0; overflow-x: clip; }
.subs-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.subs-chip { min-height: 34px; padding: 0 16px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; color: var(--on-surface-variant); background: var(--surface-container-high); white-space: nowrap; }
.subs-chip:hover { background: var(--surface-container-highest); color: var(--on-surface); }
.subs-chip.is-on { color: var(--on-primary); background: var(--primary); font-weight: 700; }
.subs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.subs-card { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.subs-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; background: var(--surface-container-highest); }
.subs-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .18s ease; }
.subs-card:hover .subs-thumb img { transform: scale(1.04); }
.subs-thumb.is-empty::after { content: "KuTube"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--on-surface-variant); }
.subs-dur { position: absolute; right: 6px; bottom: 6px; padding: 2px 5px; border-radius: 5px; color: #fff; background: rgba(8,8,9,.85); font: 500 10.5px/1.2 ui-monospace,monospace; }
.subs-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.subs-title { display: -webkit-box; overflow: hidden; color: var(--on-surface); font-size: 13.5px; font-weight: 600; line-height: 1.38; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.subs-ch { overflow: hidden; color: var(--on-surface-variant); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.subs-sub { color: var(--on-surface-variant); font-size: 11px; }
.subs-status { margin: 14px 0; color: var(--on-surface-variant); font-size: 13.5px; }
.subs-link { color: var(--primary); font-weight: 600; }
.subs-retry { margin-left: 10px; min-height: 36px; padding: 0 16px; border-radius: var(--r-ctl); font-size: 12.5px; font-weight: 600; color: var(--on-surface); background: var(--surface-container-high); }
@media (max-width: 1100px) { .subs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .subs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .subs-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------- gerçek akış sayfaları */
.feed-page { min-width: 0; }
.feed-page .feed-status { margin-top: 14px; color: var(--on-surface-variant, #aaa7b0); font-size: 13px; }
.feed-page .feed-status a.feed-link { color: var(--primary, #ff0033); font-weight: 600; }
.feed-page .feed-retry { margin-left: 10px; padding: 6px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #e7e5e9; background: #2a2a2c; font-size: 12px; cursor: pointer; }
.feed-page .feed-retry:hover { background: #39393b; }

/* --------------------------- v2.6 oynatıcı ayar menüsü (page-watch) */
body.surface-pc.page-watch .pb-settings-wrap { position:relative; display:inline-flex; }
body.surface-pc.page-watch .pb-menu {
  position:absolute; right:0; bottom:calc(100% + 10px); z-index:6;
  min-width:190px; padding:6px; border:1px solid rgba(255,255,255,.12);
  border-radius:12px; background:rgba(16,16,18,.97); box-shadow:0 14px 38px rgba(0,0,0,.55);
}
body.surface-pc.page-watch .pb-menu[hidden] { display:none; }
body.surface-pc.page-watch .pb-menu-btn {
  display:flex; width:100%; min-height:38px; padding:0 12px; align-items:center; gap:8px;
  border:0; border-radius:8px; color:#f4f4f6; background:transparent; font-size:12.5px;
  font-weight:600; text-align:left; cursor:pointer; white-space:nowrap;
}
body.surface-pc.page-watch .pb-menu-btn:hover { background:rgba(255,255,255,.09); }
body.surface-pc.page-watch .pb-pill.pb-speed { min-width:44px; justify-content:center; font-variant-numeric:tabular-nums; }

/* ================================ v2.7 PLATFORM KAPISI (/app/gate) */
body.page-gate .kx-shell .page { padding:0; }
.pgate { position:relative; max-width:1120px; margin:0 auto; padding:24px 24px 32px; overflow:hidden; }
.pgate .pg-glow { position:absolute; border-radius:50%; pointer-events:none; filter:blur(120px); }
.pgate .pg-glow--a { top:-120px; left:50%; transform:translateX(-50%); width:380px; height:280px; background:rgba(255,82,92,.10); }
.pgate .pg-glow--b { top:200px; left:40px; width:260px; height:260px; background:rgba(0,159,178,.10); }

.pgate .pg-hero { position:relative; display:flex; flex-direction:column; align-items:center; text-align:center; margin-bottom:20px; }
.pgate .pg-brand { display:inline-flex; align-items:center; gap:10px; margin-bottom:8px; }
.pgate .pg-word { color:#f4f4f6; font-size:38px; font-weight:800; line-height:1; letter-spacing:-.04em; }
.pgate .pg-word--red { color:#ff525c; text-shadow:0 0 18px rgba(255,82,92,.45); }
.pgate .pg-ver { display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:999px; background:#2a2a2c; color:#e9bcba; font:500 10px/12px 'JetBrains Mono',monospace; letter-spacing:.08em; text-transform:uppercase; }
.pgate .pg-dot { width:6px; height:6px; border-radius:50%; background:#ff525c; }
.pgate .pg-dot--cyan { background:#00daf3; }
.pgate .pg-h1 { margin:0 0 6px; max-width:640px; color:#f4f4f6; font-size:24px; line-height:30px; font-weight:800; letter-spacing:-.03em; }
.pgate .pg-sub { margin:0 0 12px; max-width:520px; color:#aaa7b0; font-size:15px; line-height:22px; }
.pgate .pg-detect { display:inline-flex; align-items:center; gap:8px; padding:6px 14px; border-radius:999px; background:#0e0e10; color:#aaa7b0; font-size:12px; }
.pgate .pg-detect strong { color:#e5e1e4; font-weight:600; }

.pgate .pg-grid { position:relative; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-bottom:12px; }
.pgate .pg-card, .pgate .pg-wide { position:relative; border-radius:12px; background:#1c1b1d; overflow:hidden; }
.pgate .pg-card { display:flex; flex-direction:column; padding:18px; transition:transform .25s ease, background .25s ease; }
.pgate .pg-card:hover { transform:translateY(-4px); background:#201f21; }
.pgate .pg-edge { position:absolute; inset:0 0 auto 0; height:2px; opacity:0; transition:opacity .3s ease; }
.pgate .pg-edge--red { background:linear-gradient(90deg,transparent,rgba(255,82,92,.55),transparent); }
.pgate .pg-edge--cyan { background:linear-gradient(90deg,transparent,rgba(0,218,243,.55),transparent); }
.pgate .pg-card:hover .pg-edge, .pgate .pg-wide:hover .pg-edge { opacity:1; }

.pgate .pg-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:12px; }
.pgate .pg-card-ic { display:grid; place-items:center; width:48px; height:48px; border-radius:12px; background:#353437; }
.pgate .pg-card-ic--tv { color:#ff525c; }
.pgate .pg-card-ic--pc { color:#00daf3; }
.pgate .pg-tag { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:999px; background:#353437; font:500 10px/12px 'JetBrains Mono',monospace; letter-spacing:.06em; }
.pgate .pg-tag--red { color:#ffb3b1; }
.pgate .pg-tag--cyan { color:#00daf3; }
.pgate .pg-h2 { display:flex; align-items:center; gap:8px; margin:0 0 4px; color:#f4f4f6; font-size:20px; font-weight:700; letter-spacing:-.02em; }
.pgate .pg-h2-note { color:#aaa7b0; font:400 10px/12px 'JetBrains Mono',monospace; }
.pgate .pg-p { margin:0 0 14px; color:#aaa7b0; font-size:12.5px; line-height:18px; }
.pgate .pg-chips { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.pgate .pg-chip { padding:3px 8px; border-radius:5px; background:#0e0e10; color:#e9bcba; font:500 10px/12px 'JetBrains Mono',monospace; letter-spacing:.04em; }
.pgate .pg-chip--cyan { color:#00daf3; }
.pgate .pg-feats { margin:0 0 14px; padding:0; list-style:none; display:flex; flex-direction:column; gap:8px; color:#e5e1e4; font-size:12.5px; }
.pgate .pg-feat { display:flex; align-items:center; gap:10px; }
.pgate .pg-feat-ic { color:#ff525c; display:grid; place-items:center; }
.pgate .pg-feat-ic--cyan { color:#00daf3; }

.pgate .pg-act { margin-top:auto; display:flex; flex-direction:column; gap:8px; padding:12px 0 0; border-top:1px solid rgba(255,255,255,.05); }
.pgate .pg-go { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0 18px; border:0; border-radius:10px; font-size:13px; font-weight:700; letter-spacing:.01em; cursor:pointer; text-decoration:none; }
.pgate .pg-go--red { background:#ff0033; color:#fff; box-shadow:0 6px 18px rgba(255,0,51,.22); }
.pgate .pg-go--red:hover { filter:brightness(1.08); }
.pgate .pg-go--cyan { background:#353437; color:#f4f4f6; }
.pgate .pg-go--cyan:hover { background:#39393b; }
.pgate .pg-go--ghost { background:transparent; color:#e5e1e4; border:1px solid rgba(255,255,255,.14); font-weight:600; }
.pgate .pg-go--ghost:hover { background:rgba(255,255,255,.06); }
.pgate .pg-act-meta { display:flex; align-items:center; justify-content:space-between; color:#8e8e98; font:500 10px/12px 'JetBrains Mono',monospace; }

.pgate .pg-wide { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:16px; padding:16px; margin-bottom:10px; }
.pgate .pg-wide-head { display:flex; align-items:center; gap:14px; margin-bottom:10px; }
.pgate .pg-wide-head .pg-card-ic { width:48px; height:48px; }
.pgate .pg-wide-title { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.pgate .pg-wide-title h3 { margin:0; color:#f4f4f6; font-size:18px; font-weight:700; }
.pgate .pg-badge { padding:3px 9px; border-radius:999px; background:rgba(255,0,51,.16); color:#ff8a92; font:700 10px/12px 'JetBrains Mono',monospace; text-transform:uppercase; }
.pgate .pg-wide-act { display:flex; flex-direction:column; gap:8px; justify-content:center; }
.pgate .pg-check-meta { display:flex; justify-content:center; color:#00daf3; font:500 10px/12px 'JetBrains Mono',monospace; }

.pgate .pg-remember { display:flex; align-items:center; justify-content:center; gap:14px; margin:4px 0 10px; }
.pgate .pg-check { display:flex; gap:10px; max-width:520px; cursor:pointer; }
.pgate .pg-check input { position:absolute; opacity:0; pointer-events:none; }
.pgate .pg-check-box { flex:0 0 auto; width:20px; height:20px; margin-top:2px; border-radius:5px; background:#353437; }
.pgate .pg-check input:checked + .pg-check-box { background:#ff0033; }
.pgate .pg-check-text { display:flex; flex-direction:column; gap:3px; }
.pgate .pg-check-text strong { color:#e5e1e4; font-size:13px; }
.pgate .pg-check-text span:last-child { color:#8e8e98; font-size:11.5px; line-height:16px; }
.pgate .pg-reset { color:#00daf3; font-size:12px; text-decoration:underline; }

.pgate .pg-foot { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; padding:12px 18px; border-radius:10px; background:rgba(14,14,16,.5); color:#8e8e98; font:500 10px/12px 'JetBrains Mono',monospace; }
.pgate .pg-foot-left, .pgate .pg-foot-right { display:flex; align-items:center; gap:8px; }

.pgate .pg-toast { position:fixed; bottom:28px; left:50%; transform:translateX(-50%); z-index:70; padding:10px 18px; border-radius:999px; background:#353437; color:#f4f4f6; font-size:12.5px; font-weight:600; box-shadow:0 12px 34px rgba(0,0,0,.5); }

@media (max-width: 960px) {
  .pgate { padding:28px 16px 40px; }
  .pgate .pg-grid { grid-template-columns:1fr; }
  .pgate .pg-wide { grid-template-columns:1fr; }
}

/* ---------------- v2.8: kapı TAM EKRAN tek sayfa (shell yok) + geri sayım */
body.page-gate { margin:0; min-height:100vh; display:grid; place-items:center; background:#131315; }
body.page-gate .skip-link { position:absolute; left:-9999px; }
body.page-gate .pgate { margin:0; width:100%; max-width:1120px; box-sizing:border-box; }
body.page-gate .pg-count { display:inline-flex; align-items:center; gap:8px; margin-top:12px; padding:7px 14px; border-radius:999px; background:rgba(255,0,51,.12); color:#ff8a92; font:600 12px/16px 'JetBrains Mono',monospace; }
body.page-gate .pg-count strong { color:#fff; }
body.page-gate .pg-count-cancel { margin-left:4px; padding:2px 10px; border:1px solid rgba(255,255,255,.18); border-radius:999px; background:transparent; color:#e5e1e4; font:600 11px/16px 'JetBrains Mono',monospace; cursor:pointer; }
body.page-gate .pg-count-cancel:hover { background:rgba(255,255,255,.08); }
