/* Eski Smart TV tarayıcıları için: flex "gap" ve "aspect-ratio" kullanılmıyor. */

html {
  font-size: 20px;
  font-size: calc(100vw / 96); /* 1920px genişlikte 20px */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #0b0d12;
  color: #f2f3f5;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.35;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

.hidden { display: none !important; }

.focusable {
  outline: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Üst bölüm: arama ---------- */

.hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 3rem 1.5rem;
}

/* Arama ve dizi sayfalarında üst bölüm küçülür. */
.sub .hero { min-height: 0; padding-top: 1.6rem; padding-bottom: 0.6rem; }
.sub .brand { font-size: 2rem; margin-bottom: 0.8rem; }

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 62rem;
  text-align: center;
}

.brand {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1.6rem;
}

.brand span { color: #ffb020; }

.searchbar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.searchbox {
  flex: 1 1 auto;
  max-width: 44rem;
  height: 4.2rem;
  display: flex;
  align-items: center;
  padding: 0 1.6rem;
  border-radius: 2.1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 0.15rem solid rgba(255, 255, 255, 0.18);
  font-size: 1.5rem;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.searchbox svg {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  margin-right: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.search-text { white-space: pre; }
.search-hint { color: rgba(242, 243, 245, 0.55); }
.searchbox.has-text .search-hint { display: none; }

.caret {
  display: none;
  width: 0.12rem;
  height: 1.8rem;
  margin: 0 0.15rem;
  background: #ffb020;
}

.searchbox.typing .caret { display: inline-block; animation: blink 1s step-end infinite; }
.searchbox.typing .search-hint { display: none; }

@keyframes blink { 50% { opacity: 0; } }

.searchbox.focused {
  background: #f2f3f5;
  border-color: #f2f3f5;
  color: #0b0d12;
  transform: scale(1.04);
}

.searchbox.focused .search-hint { color: rgba(11, 13, 18, 0.55); }

/* ---------- Ekran klavyesi ---------- */

.keyboard { margin-top: 1.4rem; }

.krow {
  display: flex;
  justify-content: center;
}

.key {
  width: 3.6rem;
  height: 3.6rem;
  line-height: 3.3rem;
  margin: 0.2rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.09);
  border: 0.15rem solid transparent;
  font-size: 1.5rem;
  text-align: center;
  transition: transform 0.1s ease, background 0.1s ease;
}

.key.wide { width: 11.6rem; font-size: 1.15rem; }
.key.mid { width: 7.6rem; font-size: 1.15rem; }
.key.go { background: #ffb020; color: #0b0d12; font-weight: 700; }

.key.focused {
  background: #f2f3f5;
  color: #0b0d12;
  transform: scale(1.12);
}

/* ---------- Satırlar ve kartlar ---------- */

#content { min-height: 30vh; padding-bottom: 2rem; }

.zone { margin-top: 0.6rem; }

.zone-title {
  margin: 0;
  padding: 0 3rem;
  font-size: 1.55rem;
  font-weight: 700;
}

.zone-sub {
  padding: 0.2rem 3rem 0;
  font-size: 1.05rem;
  color: rgba(242, 243, 245, 0.6);
}

.scroller {
  flex-wrap: wrap;
  position: relative;
  display: flex;
  overflow-x: visible;
  overflow-y: visible;
  padding: 1.2rem 2.6rem 1.4rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroller::-webkit-scrollbar { display: none; }

.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.2rem 2.6rem 1.4rem;
}

.card {
  flex: 0 0 auto;
  width: 17.35rem;
  margin: 0 0.4rem;
  border-radius: 0.6rem;
  transition: transform 0.14s ease;
}

.grid .card { margin-bottom: 1.6rem; }

/* CARD_SHAPE=portrait: dizi kartları dikey afiş oranında (2:3) gösterilir. */
.portrait .card.series { width: 11.3rem; }
.portrait .card.series .thumb { padding-top: 150%; }

.thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #1a1e27;
  border: 0.1rem solid rgba(255, 255, 255, 0.08);
  transition: background 0.12s ease, color 0.12s ease;
}

/* Kartlar görselsizdir: ad ve alt bilgi düz kutunun içinde yazar. */
.thumb-text {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.9rem 1rem;
}

.tile-title {
  max-height: 3.2rem;
  overflow: hidden;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6rem;
}

.tile-meta {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: rgba(242, 243, 245, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  padding: 0.1rem 0.45rem;
  border-radius: 0.3rem;
  background: rgba(0, 0, 0, 0.82);
  font-size: 0.85rem;
  font-weight: 600;
}

.badge.live { background: #e5383b; }

.watched {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 0.25rem;
  background: rgba(255, 255, 255, 0.25);
}

.watched div { height: 100%; background: #ffb020; }

.card.focused {
  transform: scale(1.07);
  z-index: 2;
}

.card.focused .thumb {
  background: #f2f3f5;
  color: #0b0d12;
  box-shadow: 0 0 0 0.2rem #f2f3f5, 0 1rem 2rem rgba(0, 0, 0, 0.6);
}

.card.focused .tile-meta { color: rgba(11, 13, 18, 0.6); }

/* ---------- Dizi sayfası ---------- */

.series-head { padding: 1.2rem 3rem 0.4rem; max-width: 62rem; }
.series-title { margin: 0; font-size: 2.8rem; font-weight: 800; letter-spacing: -0.02em; }
.series-meta { margin-top: 0.3rem; font-size: 1.1rem; color: #ffb020; }

.series-desc {
  margin: 0.7rem 0 0;
  max-height: 4.5rem;
  overflow: hidden;
  font-size: 1.1rem;
  line-height: 1.5rem;
  color: rgba(242, 243, 245, 0.78);
}

.seasons { padding-top: 0.9rem; padding-bottom: 0.5rem; }

.season {
  flex: 0 0 auto;
  margin: 0 0.4rem;
  padding: 0.55rem 1.5rem;
  border-radius: 2rem;
  border: 0.15rem solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.1rem;
  white-space: nowrap;
  transition: transform 0.12s ease;
}

.season.on { color: #ffb020; border-color: rgba(255, 176, 32, 0.7); }

.season.focused {
  background: #f2f3f5;
  border-color: #f2f3f5;
  color: #0b0d12;
  transform: scale(1.07);
}

.card.skeleton .thumb { animation: pulse 1.4s ease-in-out infinite; }

@keyframes pulse { 50% { opacity: 0.45; } }

.notice {
  margin: 2rem 3rem;
  padding: 2rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.2rem;
  text-align: center;
}

.btn {
  display: inline-block;
  margin: 1.2rem 0.4rem 0;
  padding: 0.7rem 1.8rem;
  border-radius: 2rem;
  border: 0.15rem solid rgba(255, 255, 255, 0.25);
  font-size: 1.1rem;
  transition: transform 0.12s ease;
}

.btn.focused {
  background: #f2f3f5;
  border-color: #f2f3f5;
  color: #0b0d12;
  transform: scale(1.06);
}

.foot {
  padding: 1rem 3rem 2.5rem;
  font-size: 0.85rem;
  color: rgba(242, 243, 245, 0.4);
}

/* ---------- Oynatıcı ---------- */

.player {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 50;
  background: #000;
  display: flex;
  flex-direction: column;
}

.stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.stage video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.player-msg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: #000;
  font-size: 1.5rem;
  text-align: center;
}

.bar {
  flex: 0 0 auto;
  padding: 1rem 2.5rem 1.4rem;
  background: #11141b;
}

.bar-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.bar-titles { min-width: 0; flex: 1 1 auto; }

.p-title {
  font-size: 1.4rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-meta { font-size: 0.95rem; color: rgba(242, 243, 245, 0.6); }

.p-time {
  flex: 0 0 auto;
  margin-left: 2rem;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.seek { padding: 0.8rem 0; }

.seek-track {
  height: 0.4rem;
  border-radius: 0.2rem;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: height 0.1s ease;
}

.seek-fill { width: 0; height: 100%; background: #ffb020; }

.seek.focused .seek-track { height: 0.8rem; box-shadow: 0 0 0 0.15rem #f2f3f5; }

.bar-buttons { display: flex; flex-wrap: wrap; justify-content: center; }

.pbtn {
  margin: 0.25rem 0.35rem;
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 0.15rem solid transparent;
  font-size: 1.1rem;
  white-space: nowrap;
  transition: transform 0.12s ease;
}

.pbtn-main { min-width: 9rem; text-align: center; background: rgba(255, 176, 32, 0.22); }
.pbtn.disabled { opacity: 0.3; }

.pbtn.focused {
  background: #f2f3f5;
  color: #0b0d12;
  transform: scale(1.08);
}

/* ---------- Kurulum / PIN ekranı ---------- */

.gate {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 80;
  background: #0b0d12;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.gate-box { max-width: 46rem; }
.gate-box h1 { margin: 0 0 1rem; font-size: 2.2rem; }
.gate-box p { margin: 0.6rem 0; font-size: 1.2rem; color: rgba(242, 243, 245, 0.75); }
.gate-box code { padding: 0.1rem 0.4rem; border-radius: 0.3rem; background: rgba(255, 255, 255, 0.1); color: #ffb020; }

.pin-dots { height: 3rem; margin: 1rem 0; font-size: 2.6rem; letter-spacing: 0.6rem; }
.pin-error { min-height: 1.6rem; color: #ff6b6b; font-size: 1.1rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 3rem;
  z-index: 90;
  max-width: 80vw;
  padding: 0.8rem 1.6rem;
  border-radius: 2rem;
  background: #f2f3f5;
  color: #0b0d12;
  font-size: 1.1rem;
  font-weight: 600;
  transform: translateX(-50%);
}

/* ---------- Telefon / dar ekran ---------- */

@media (max-width: 900px) {
  html { font-size: 13px; }
  .hero { padding: 2rem 1rem 1rem; min-height: 0; }
  .brand { font-size: 2.6rem; }
  .key { width: 2.2rem; height: 3rem; line-height: 2.7rem; margin: 0.12rem; font-size: 1.3rem; }
  .key.wide { width: 7rem; }
  .key.mid { width: 5rem; }
  .zone-title, .zone-sub, .series-head { padding-left: 1rem; padding-right: 1rem; }
  .series-title { font-size: 2.1rem; }
  .scroller, .grid { padding-left: 0.6rem; padding-right: 0.6rem; }
  .card { width: 15rem; }
  .grid .card { width: 46%; margin: 0 2% 1.4rem; }
  .portrait .card.series { width: 9.6rem; }
  .portrait .grid .card.series { width: 29.3%; margin: 0 2% 1.4rem; }
  .bar { padding: 0.8rem 1rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html, .scroller { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Logo anasayfaya döner. */
.brand.focused, .brand:focus-visible { outline: 0.15rem solid #ffb020; outline-offset: 0.3rem; border-radius: 0.2rem; }

/* Geniş ekranda alanı dolduran, daha yoğun kart düzeni. */
@media (min-width: 901px) {
  .hero { min-height: 30vh; padding-top: 1.6rem; padding-bottom: 1rem; }
  .grid { justify-content: flex-start; }
  .grid .card { width: calc(16.666666% - 0.8rem); }
  .portrait .grid .card.series { width: calc(12.5% - 0.8rem); }
  .card.focused { transform: scale(1.035); }
}

/* dizi.ac — kompakt katalog tasarımı */
html { font-size: 16px; }
body { background: #101214; color: #f4f3ef; }
#app { max-width: 1800px; margin: 0 auto; }
.hero, .sub .hero { min-height: 0; padding: 28px 40px; border-bottom: 1px solid #292b2e; }
.hero-inner { max-width: none; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; text-align: left; }
.brand, .sub .brand { font-size: 36px; margin: 0; letter-spacing: -2px; line-height: 1; }
.brand span { color: #ffb020; }
.searchbar { width: 420px; max-width: 65%; }
.searchbox { height: 48px; padding: 0 18px; border: 1px solid #3b3d40; border-radius: 10px; background: #1b1d20; font-size: 16px; }
.searchbox svg { width: 20px; height: 20px; margin-right: 12px; }
.searchbox.focused { transform: none; background: #242522; border-color: #ffb020; color: #f4f3ef; box-shadow: 0 0 0 2px rgba(255,176,32,.12); }
.searchbox.focused .search-hint { color: #b3b3ad; }
.keyboard { width: 100%; text-align: center; }
.series-page .searchbar, .series-page .keyboard { display: none !important; }
.catalog-intro { padding: 38px 40px 24px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: #c49b58; }
.catalog-intro h1 { font-size: 34px; letter-spacing: -1px; margin: 12px 0 8px; line-height: 1.15; }
.catalog-intro p { color: #969a9f; margin: 0; font-size: 14px; }
.sub .catalog-intro { display: none; }
#content { padding: 0 28px 24px; min-height: 40vh; }
.zone { margin-top: 12px; }
.zone-title { padding: 0 12px; font-size: 20px; letter-spacing: -.4px; }
.zone-sub { padding: 6px 12px 0; font-size: 13px; color: #92969c; }
.grid { padding: 18px 6px 10px; justify-content: flex-start; }
.grid .card, .portrait .grid .card.series { width: calc(16.666666% - 12px); margin: 0 6px 12px; }
.thumb, .portrait .card.series .thumb { padding-top: 65%; border: 1px solid #333639; border-radius: 12px; background: linear-gradient(145deg, #23272b, #1a1d20); }
.card { border-radius: 12px; }
.thumb-text { justify-content: flex-end; padding: 18px; }
.thumb-text::before { content: '↗'; position: absolute; top: 12px; right: 16px; font-size: 18px; color: #62676b; }
.tile-title { font-size: 17px; line-height: 22px; max-height: 66px; font-weight: 650; letter-spacing: -.3px; }
.tile-meta { font-size: 12px; color: #969b9f; margin-top: 8px; }
.card.focused { transform: none; }
.card.focused .thumb { background: #302a1e; color: #fff4da; border-color: #ffb020; box-shadow: 0 0 0 1px #ffb020; }
.card.focused .tile-meta { color: #cfb88f; }
.card.focused .thumb-text::before { color: #ffb020; }
.card:hover .thumb { border-color: #b28a46; }
.badge { top: 12px; left: 14px; right: auto; font-size: 10px; background: #101214; color: #c8b38e; padding: 3px 6px; }
.series-head { margin: 24px 12px 22px; padding: 28px; max-width: none; border: 1px solid #35332d; border-radius: 14px; background: linear-gradient(120deg, #29251d, #191c1f); }
.series-title { margin-top: 14px; font-size: 36px; }
.series-meta { font-size: 14px; margin-top: 12px; }
.series-desc { max-width: 800px; font-size: 14px; line-height: 1.7; }
.scroller.seasons { padding: 0 12px 14px; }
.season { margin: 0 8px 8px 0; font-size: 14px; padding: 8px 18px; }
.foot { margin: 0 40px; padding: 20px 0 28px; border-top: 1px solid #292b2e; font-size: 12px; }
@media (min-width: 901px) and (max-width: 1200px) {
  .grid .card, .portrait .grid .card.series { width: calc(20% - 12px); }
  .thumb-text { padding: 14px; }
  .tile-title { font-size: 15px; }
}
@media (max-width: 900px) {
  .hero, .sub .hero { padding: 22px 20px; }
  .brand, .sub .brand { font-size: 30px; }
  .searchbar { width: 340px; }
  .catalog-intro { padding: 28px 20px 18px; }
  .catalog-intro h1 { font-size: 28px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
  #content { padding: 0 8px 20px; }
  .grid .card, .portrait .grid .card.series { width: calc(33.333333% - 12px); }
  .tile-title { font-size: 15px; }
  .thumb-text { padding: 14px; }
  .foot { margin: 0 20px; }
  .series-head { padding: 22px; }
}
@media (max-width: 560px) {
  .hero-inner { align-items: flex-start; }
  .searchbar { width: 100%; max-width: none; margin-top: 20px; }
  .grid .card, .portrait .grid .card.series { width: calc(50% - 12px); }
  .thumb, .portrait .card.series .thumb { padding-top: 76%; }
  .series-title { font-size: 28px; }
}

/* Katalog için birbirini takip eden, farklı koyu renk tonları. */
.tone-0 .thumb { background: linear-gradient(135deg, hsl(0, 32%, 23%), hsl(0, 24%, 13%)); border-color: hsl(0, 25%, 32%); }
.tone-1 .thumb { background: linear-gradient(135deg, hsl(138, 32%, 23%), hsl(138, 24%, 13%)); border-color: hsl(138, 25%, 32%); }
.tone-2 .thumb { background: linear-gradient(135deg, hsl(275, 32%, 23%), hsl(275, 24%, 13%)); border-color: hsl(275, 25%, 32%); }
.tone-3 .thumb { background: linear-gradient(135deg, hsl(53, 32%, 23%), hsl(53, 24%, 13%)); border-color: hsl(53, 25%, 32%); }
.tone-4 .thumb { background: linear-gradient(135deg, hsl(190, 32%, 23%), hsl(190, 24%, 13%)); border-color: hsl(190, 25%, 32%); }
.tone-5 .thumb { background: linear-gradient(135deg, hsl(328, 32%, 23%), hsl(328, 24%, 13%)); border-color: hsl(328, 25%, 32%); }
.tone-6 .thumb { background: linear-gradient(135deg, hsl(105, 32%, 23%), hsl(105, 24%, 13%)); border-color: hsl(105, 25%, 32%); }
.tone-7 .thumb { background: linear-gradient(135deg, hsl(243, 32%, 23%), hsl(243, 24%, 13%)); border-color: hsl(243, 25%, 32%); }
.tone-8 .thumb { background: linear-gradient(135deg, hsl(20, 32%, 23%), hsl(20, 24%, 13%)); border-color: hsl(20, 25%, 32%); }
.tone-9 .thumb { background: linear-gradient(135deg, hsl(158, 32%, 23%), hsl(158, 24%, 13%)); border-color: hsl(158, 25%, 32%); }
.tone-10 .thumb { background: linear-gradient(135deg, hsl(295, 32%, 23%), hsl(295, 24%, 13%)); border-color: hsl(295, 25%, 32%); }
.tone-11 .thumb { background: linear-gradient(135deg, hsl(73, 32%, 23%), hsl(73, 24%, 13%)); border-color: hsl(73, 25%, 32%); }
.tone-12 .thumb { background: linear-gradient(135deg, hsl(210, 32%, 23%), hsl(210, 24%, 13%)); border-color: hsl(210, 25%, 32%); }
.tone-13 .thumb { background: linear-gradient(135deg, hsl(348, 32%, 23%), hsl(348, 24%, 13%)); border-color: hsl(348, 25%, 32%); }
.tone-14 .thumb { background: linear-gradient(135deg, hsl(125, 32%, 23%), hsl(125, 24%, 13%)); border-color: hsl(125, 25%, 32%); }
.tone-15 .thumb { background: linear-gradient(135deg, hsl(263, 32%, 23%), hsl(263, 24%, 13%)); border-color: hsl(263, 25%, 32%); }
.tone-16 .thumb { background: linear-gradient(135deg, hsl(40, 32%, 23%), hsl(40, 24%, 13%)); border-color: hsl(40, 25%, 32%); }
.tone-17 .thumb { background: linear-gradient(135deg, hsl(178, 32%, 23%), hsl(178, 24%, 13%)); border-color: hsl(178, 25%, 32%); }
.tone-18 .thumb { background: linear-gradient(135deg, hsl(315, 32%, 23%), hsl(315, 24%, 13%)); border-color: hsl(315, 25%, 32%); }
.tone-19 .thumb { background: linear-gradient(135deg, hsl(93, 32%, 23%), hsl(93, 24%, 13%)); border-color: hsl(93, 25%, 32%); }
.tone-20 .thumb { background: linear-gradient(135deg, hsl(230, 32%, 23%), hsl(230, 24%, 13%)); border-color: hsl(230, 25%, 32%); }
.tone-21 .thumb { background: linear-gradient(135deg, hsl(8, 32%, 23%), hsl(8, 24%, 13%)); border-color: hsl(8, 25%, 32%); }
.tone-22 .thumb { background: linear-gradient(135deg, hsl(145, 32%, 23%), hsl(145, 24%, 13%)); border-color: hsl(145, 25%, 32%); }
.tone-23 .thumb { background: linear-gradient(135deg, hsl(283, 32%, 23%), hsl(283, 24%, 13%)); border-color: hsl(283, 25%, 32%); }
 .card.series .tile-meta { color: #c2c5c9; }
.card.series .thumb-text::before { color: rgba(255,255,255,.38); }
.card.series.focused .thumb { background: #302a1e; border-color: #ffb020; }

/* Sayfa içi oynatıcı; yalnızca düğmeyle tam ekran. */
.player { position: relative; inset: auto; width: calc(100% - 24px); margin: 24px 12px; border: 1px solid #35383b; border-radius: 14px; overflow: hidden; z-index: 1; }
.player .stage { flex: none; height: 0; padding-top: 48%; }
.player .bar { padding: 16px; }
.player .pbtn { font-size: 13px; padding: 8px 14px; margin: 4px; }
.player:fullscreen, .player:-webkit-full-screen { width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; }
.player:fullscreen .stage, .player:-webkit-full-screen .stage { flex: 1 1 auto; height: auto; padding-top: 0; }
.series-head.tone-0 { background: linear-gradient(120deg, hsl(0,32%,23%), hsl(0,24%,13%)); border-color: hsl(0,25%,32%); }
.series-head.tone-1 { background: linear-gradient(120deg, hsl(138,32%,23%), hsl(138,24%,13%)); border-color: hsl(138,25%,32%); }
.series-head.tone-2 { background: linear-gradient(120deg, hsl(275,32%,23%), hsl(275,24%,13%)); border-color: hsl(275,25%,32%); }
.series-head.tone-3 { background: linear-gradient(120deg, hsl(53,32%,23%), hsl(53,24%,13%)); border-color: hsl(53,25%,32%); }
.series-head.tone-4 { background: linear-gradient(120deg, hsl(190,32%,23%), hsl(190,24%,13%)); border-color: hsl(190,25%,32%); }
.series-head.tone-5 { background: linear-gradient(120deg, hsl(328,32%,23%), hsl(328,24%,13%)); border-color: hsl(328,25%,32%); }
.series-head.tone-6 { background: linear-gradient(120deg, hsl(105,32%,23%), hsl(105,24%,13%)); border-color: hsl(105,25%,32%); }
.series-head.tone-7 { background: linear-gradient(120deg, hsl(243,32%,23%), hsl(243,24%,13%)); border-color: hsl(243,25%,32%); }
.series-head.tone-8 { background: linear-gradient(120deg, hsl(20,32%,23%), hsl(20,24%,13%)); border-color: hsl(20,25%,32%); }
.series-head.tone-9 { background: linear-gradient(120deg, hsl(158,32%,23%), hsl(158,24%,13%)); border-color: hsl(158,25%,32%); }
.series-head.tone-10 { background: linear-gradient(120deg, hsl(295,32%,23%), hsl(295,24%,13%)); border-color: hsl(295,25%,32%); }
.series-head.tone-11 { background: linear-gradient(120deg, hsl(73,32%,23%), hsl(73,24%,13%)); border-color: hsl(73,25%,32%); }
.series-head.tone-12 { background: linear-gradient(120deg, hsl(210,32%,23%), hsl(210,24%,13%)); border-color: hsl(210,25%,32%); }
.series-head.tone-13 { background: linear-gradient(120deg, hsl(348,32%,23%), hsl(348,24%,13%)); border-color: hsl(348,25%,32%); }
.series-head.tone-14 { background: linear-gradient(120deg, hsl(125,32%,23%), hsl(125,24%,13%)); border-color: hsl(125,25%,32%); }
.series-head.tone-15 { background: linear-gradient(120deg, hsl(263,32%,23%), hsl(263,24%,13%)); border-color: hsl(263,25%,32%); }
.series-head.tone-16 { background: linear-gradient(120deg, hsl(40,32%,23%), hsl(40,24%,13%)); border-color: hsl(40,25%,32%); }
.series-head.tone-17 { background: linear-gradient(120deg, hsl(178,32%,23%), hsl(178,24%,13%)); border-color: hsl(178,25%,32%); }
.series-head.tone-18 { background: linear-gradient(120deg, hsl(315,32%,23%), hsl(315,24%,13%)); border-color: hsl(315,25%,32%); }
.series-head.tone-19 { background: linear-gradient(120deg, hsl(93,32%,23%), hsl(93,24%,13%)); border-color: hsl(93,25%,32%); }
.series-head.tone-20 { background: linear-gradient(120deg, hsl(230,32%,23%), hsl(230,24%,13%)); border-color: hsl(230,25%,32%); }
.series-head.tone-21 { background: linear-gradient(120deg, hsl(8,32%,23%), hsl(8,24%,13%)); border-color: hsl(8,25%,32%); }
.series-head.tone-22 { background: linear-gradient(120deg, hsl(145,32%,23%), hsl(145,24%,13%)); border-color: hsl(145,25%,32%); }
.series-head.tone-23 { background: linear-gradient(120deg, hsl(283,32%,23%), hsl(283,24%,13%)); border-color: hsl(283,25%,32%); }

/* Tam ekranda kontroller videonun üzerinde açılır; görüntü yer değiştirmez. */
.player:fullscreen .bar { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; background: linear-gradient(transparent, rgba(10,12,15,.97) 30%); padding-top: 42px; }
.player:-webkit-full-screen .bar { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; background: linear-gradient(transparent, rgba(10,12,15,.97) 30%); padding-top: 42px; }

/* Tüm katalog ve bölüm kartlarında ortak renk. */
.grid .card .thumb { background: linear-gradient(145deg, #23272b, #1a1d20); border-color: #333639; }
.grid .card:hover .thumb { border-color: #b28a46; }
.grid .card.focused .thumb { background: #302a1e; border-color: #ffb020; }
.series-head { background: linear-gradient(120deg, #29251d, #191c1f) !important; border-color: #35332d !important; }

.card.series { color: inherit; text-decoration: none; }

/* Yayını henüz bulunmayan bölümler için sakin durum etiketi. */
.badge-pending { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid rgba(222,186,122,.25); border-radius: 20px; background: #2b2821; color: #dec79e; font-size: 10px; font-weight: 500; line-height: 1.2; }
.badge-pending::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: #d2ae70; }

.badge-watched { position: absolute; top: 12px; right: 12px; padding: 4px 8px; border: 1px solid #416355; border-radius: 20px; background: #20372b; color: #b7ddc2; font-size: 10px; font-weight: 600; line-height: 1.3; }
.card:has(.badge-watched) .thumb-text::before { display: none; }
.thumb:has(.badge-watched) .badge-pending { display: none; }

/* Bölüm kartlarında izleme ilerlemesini belirginleştir. */
.card .watched { height: 5px; background: #39434b; }
.card .watched div { background: #45e0ce; box-shadow: 0 0 8px rgba(69,224,206,.35); }

.youtube-frame { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player.youtube-mode .stage { min-height: 200px; }
.youtube-mode #pSeek, .youtube-mode #pTime, .youtube-mode #bPlay, .youtube-mode #bBack, .youtube-mode #bFwd { display: none; }
.player.youtube-mode:fullscreen .bar { position: relative; padding-top: 16px; background: #11141b; }
.player.youtube-mode:-webkit-full-screen .bar { position: relative; padding-top: 16px; background: #11141b; }

#bYoutube { color: #f4f3ef; text-decoration: none; background: #492328; }
#bYoutube.focused { background: #f2f3f5; color: #0b0d12; }

/* Arama önerileri arama alanının hemen altında açılır. */
.autocomplete { flex: 0 0 100%; width: 100%; margin-top: 14px; padding: 6px; border: 1px solid #383c40; border-radius: 12px; background: #191c1f; text-align: left; }
.suggestion { display: block; padding: 12px 16px; border-radius: 8px; color: #f4f3ef; text-decoration: none; font-size: 16px; }
.suggestion::after { content: '↗'; float: right; color: #8b9298; }
.suggestion:hover, .suggestion.focused { background: #302a1e; color: #ffcf77; }
.suggestion-empty { padding: 12px 16px; color: #a3a7ac; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.keyboard-toggle { flex: 0 0 48px; width: 48px; height: 48px; margin-left: 8px; padding: 11px; border: 1px solid #3b3d40; border-radius: 10px; background: #1b1d20; color: #d3d6d8; cursor: pointer; }
.keyboard-toggle svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.keyboard-toggle:hover, .keyboard-toggle.focused, .keyboard-toggle:focus-visible, .keyboard-toggle[aria-expanded="true"] { color: #ffcf77; background: #302a1e; border-color: #ffb020; outline: none; }
.searchbox { min-width: 0; }

.searchbar { position: relative; }
.search-control { position: relative; flex: 1 1 auto; min-width: 0; }
.search-control .searchbox { width: 100%; padding-right: 44px; }
.search-text { overflow: hidden; text-overflow: ellipsis; }
.search-clear { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #b7bcc0; font: 26px/32px Arial, sans-serif; cursor: pointer; }
.search-clear:hover, .search-clear.focused, .search-clear:focus-visible { color: #ffcf77; background: #393329; outline: none; }
.searchbar .autocomplete { position: absolute; top: 100%; left: 0; right: 56px; width: auto; margin-top: 8px; z-index: 12; box-shadow: 0 12px 30px rgba(0,0,0,.4); }

/* Mobil bölüm listesi: ince, tam genişlikte yatay kartlar. */
@media (max-width: 600px) {
  .grid .card:not(.series) { width: calc(100% - 12px); margin-bottom: 8px; }
  .grid .card:not(.series) .thumb { height: 64px; padding-top: 0; border-radius: 9px; }
  .card:not(.series) .thumb-text { position: static; height: 100%; padding: 10px 142px 10px 14px; justify-content: center; }
  .card:not(.series) .thumb-text::before { display: none; }
  .card:not(.series) .tile-title { max-height: 22px; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; }
  .card:not(.series) .tile-meta { margin-top: 3px; font-size: 11px; }
  .card:not(.series) .badge { top: 10px; right: 12px; left: auto; font-size: 10px; }
  .card:not(.series) .badge-pending { top: 21px; }
  .card:not(.series) .badge-watched { top: auto; bottom: 10px; right: 12px; }
  .card:not(.series) .watched { height: 4px; }
  .series-head { margin-top: 16px; margin-bottom: 16px; padding: 18px; }
  .series-title { font-size: 25px; }
}

/* Mobil anasayfada güncel dizileri ince yatay satırlarda göster. */
@media (max-width: 600px) {
  .zone-current .grid .card.series { width: calc(100% - 12px); margin-bottom: 8px; }
  .zone-current .card.series .thumb { height: 64px; padding-top: 0; border-radius: 9px; }
  .zone-current .card.series .thumb-text { position: static; height: 100%; justify-content: center; padding: 10px 42px 10px 14px; }
  .zone-current .card.series .tile-title { max-height: 22px; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
  .zone-current .card.series .tile-meta { margin-top: 3px; font-size: 11px; }
  .zone-current .card.series .thumb-text::before { top: 20px; right: 14px; }
}

/* Gerçek input, mobil telefonun yerel klavyesini açar. */
.search-control input.searchbox { display: block; padding-left: 46px; font-family: inherit; color: #f4f3ef; -webkit-appearance: none; appearance: none; }
.search-control input.searchbox::placeholder { color: #a4a8ad; opacity: 1; }
.search-control input.searchbox::-webkit-search-cancel-button { display: none; }
.search-icon { position: absolute; left: 17px; top: 14px; width: 20px; height: 20px; fill: none; stroke: #c2c6ca; stroke-width: 2; stroke-linecap: round; pointer-events: none; z-index: 1; }
