/* ==========================================================================
   Canlı TV — site teması
   Referans: Netflix (Refero stil dosyası). Saf siyah sahne, tek vurgu rengi,
   tek yazı ailesi, gölge yok; derinlik katmanlarla ve koyu gradyanla.
   ========================================================================== */

:root {
  /* Renk rolleri */
  --accent: #e50914;              /* yalnızca marka, birincil eylem, aktif gösterge */
  --accent-ink: #ffffff;
  --bg: #000000;                  /* sahne */
  --surface-1: #161616;           /* yarı saydam paneller, program blokları */
  --surface-2: #2d2d2d;           /* grafit: bileşen zemini */
  --surface-3: #414141;           /* kömür: pasif öğeler, ilerleme izi */
  --line: #5a5a5a;                /* form ve etkileşim kenarları */
  --line-soft: #262626;           /* ayraçlar */
  --bg-rgb: 0 0 0;                /* --bg ile aynı renk; saydam geçişler için */
  --bg-glow: none;                /* temanın ortam ışığı */
  --text: #ffffff;
  --text-2: #b3b3b3;
  --text-3: #808080;
  --feature: linear-gradient(149deg, #192247, #210e17);

  /* Yazı */
  --font: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display-stretch: 72%;
  --fs-caption: 13px;
  --fs-body: 16px;
  --fs-sub: 20px;
  --fs-h-sm: 24px;
  --fs-h: clamp(32px, 4.2vw, 56px);
  --fs-display: clamp(44px, 8.2vw, 100px);

  /* Ölçü */
  --gutter: clamp(16px, 4vw, 60px);
  --page-max: 1280px;
  --header-h: 68px;
  --tabbar-h: 0px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;

  /* Hareket */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur-fast: 150ms;
  --dur: 240ms;
  --dur-lights: 700ms;

  color-scheme: dark;
}

@media (max-width: 899px) {
  :root { --header-h: 56px; --tabbar-h: calc(60px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Temel ---------- */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  padding-bottom: var(--tabbar-h);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: rgba(255, 255, 255, .06); }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: var(--r-sm); }

[hidden] { display: none !important; }
.icon { flex: none; }
.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; }
.tabular { font-variant-numeric: tabular-nums; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: #fff; color: #000; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--page-max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Duyuru bandı ---------- */

.announcement {
  position: relative; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px var(--gutter);
  background: var(--surface-1); color: var(--text-2);
  font-size: 14px; text-align: center;
}
.announcement a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Üst başlık ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 32px;
  padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgb(var(--bg-rgb) / .78) 0%, rgb(var(--bg-rgb) / 0) 100%);
  transition: background-color var(--dur) var(--ease);
}
.page-home .site-header { position: fixed; left: 0; right: 0; }
.page-home.has-announcement .site-header { top: 40px; }
.page-home.has-announcement.scrolled .site-header { top: 0; }
.site-header.is-solid, .scrolled .site-header { background-color: rgb(var(--bg-rgb) / .82); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); }
/* İç sayfalarda üstteyken saydam (temanın ortam ışığı görünür); kaydırınca buzlu cam */
body:not(.page-home) .site-header { background: rgb(var(--bg-rgb) / .5); transition: background-color var(--dur) var(--ease); }
body.scrolled:not(.page-home) .site-header { background: rgb(var(--bg-rgb) / .85); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); }

.brand { display: inline-flex; align-items: center; flex: none; min-width: 0; }
.brand img { height: var(--logo-h, 30px); width: auto; max-width: 180px; object-fit: contain; }
.wordmark {
  color: var(--accent);
  font-weight: 900; font-stretch: var(--display-stretch);
  font-size: 28px; line-height: 1; letter-spacing: .01em; text-transform: uppercase;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 24px; }
.nav a { font-size: 14px; color: #e5e5e5; transition: color var(--dur-fast) var(--ease); }
.nav a:hover { color: var(--text-2); }
.nav a[aria-current="page"] { color: #fff; font-weight: 700; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--r-sm);
  color: #fff; transition: background-color var(--dur-fast) var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); }

@media (max-width: 899px) {
  .nav, .header-actions .btn { display: none; }
  .site-header { gap: 12px; }
  .wordmark { font-size: 24px; }
}

/* ---------- Düğmeler ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 24px;
  border-radius: var(--r-sm);
  font-size: 16px; font-weight: 700; letter-spacing: .01em; line-height: 1;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { opacity: .88; }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: rgba(255, 255, 255, .78); }
.btn-secondary { background: rgba(109, 109, 110, .7); color: #fff; }
.btn-secondary:hover { background: rgba(109, 109, 110, .5); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid var(--text-3); background: rgba(0, 0, 0, .4); }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { min-height: 34px; padding: 0 16px; font-size: 14px; font-weight: 600; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 18px; }
.btn[aria-pressed="true"] { background: #fff; color: #000; }

/* ---------- Canlı rozeti ve ilerleme ---------- */

.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #fff;
}
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.live-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
  animation: live-pulse 1.8s var(--ease) infinite;
}
@keyframes live-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }

.progress { position: relative; height: 3px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.progress > span { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--accent); border-radius: inherit; transition: width 1s linear; }

.meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0;
  color: var(--text-2); font-size: 15px;
}
.meta > * + *::before { content: '·'; margin: 0 8px; color: var(--text-3); }
.meta .rating { border: 1px solid var(--text-3); border-radius: 2px; padding: 0 6px; font-size: 12px; line-height: 18px; color: #fff; }
.meta .rating::before { display: none; }
.meta > .rating + *::before { content: none; }
.meta > .rating { margin-right: 8px; }

/* ---------- Başlık kartı (görsel yoksa) ---------- */

.title-card {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(70% 90% at 78% 0%, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 38%, transparent 64%),
    linear-gradient(180deg, var(--surface-1) 0%, var(--bg) 100%);
}
.title-card::before {
  /* projektör huzmesi */
  content: ''; position: absolute; top: -10%; right: 4%; width: 60%; height: 140%;
  background: linear-gradient(200deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 60%);
  clip-path: polygon(70% 0, 82% 0, 100% 100%, 8% 100%);
  filter: blur(18px);
}
.title-card::after {
  /* film greni */
  content: ''; position: absolute; inset: 0; opacity: .09; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.title-card-text {
  position: absolute; right: -2%; bottom: -6%;
  font-weight: 900; font-stretch: var(--display-stretch); text-transform: uppercase;
  font-size: clamp(90px, 22vw, 340px); line-height: .8; letter-spacing: -.01em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .14);
  white-space: nowrap; user-select: none; pointer-events: none;
}

/* ---------- Kahraman alanı ---------- */

.hero {
  position: relative; isolation: isolate;
  min-height: min(92vh, 900px);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 48px) var(--gutter) clamp(48px, 9vh, 120px);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--bg); }
.hero-media > img, .hero-media > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-media > video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-media > video.is-playing { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(77deg, rgb(var(--bg-rgb) / .92) 0%, rgb(var(--bg-rgb) / .55) 38%, rgb(var(--bg-rgb) / 0) 72%),
    linear-gradient(0deg, var(--bg) 0%, rgb(var(--bg-rgb) / .55) 18%, rgb(var(--bg-rgb) / 0) 42%),
    linear-gradient(180deg, rgb(var(--bg-rgb) / .55) 0%, rgb(var(--bg-rgb) / 0) 22%);
}
.hero-body { width: 100%; max-width: 680px; display: grid; gap: 16px; }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.hero-channel { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--text-2); }
.hero-channel img { height: 28px; width: auto; max-width: 120px; object-fit: contain; }
.hero-title {
  font-size: var(--fs-display); font-weight: 900; font-stretch: var(--display-stretch);
  line-height: .92; letter-spacing: -.005em; text-transform: uppercase;
}
.hero-title.is-long { font-size: clamp(40px, 6vw, 76px); }
.hero-sub { font-size: var(--fs-sub); font-weight: 600; color: #fff; }
.hero-desc { color: #e5e5e5; font-size: 17px; max-width: 56ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-progress { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 14px; }
.hero-progress .progress { width: min(260px, 50vw); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-next { color: var(--text-2); font-size: 15px; }
.hero-next strong { color: #fff; font-weight: 600; }
.hero-mute {
  position: absolute; right: var(--gutter); bottom: clamp(48px, 9vh, 120px);
  display: none; align-items: center; gap: 12px;
}
.hero-mute.is-visible { display: inline-flex; }
.hero-mute .icon-btn { border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; }

.hero-dots { display: flex; gap: 8px; margin-top: 16px; }
.hero-dots button { width: 28px; height: 3px; background: var(--surface-3); border-radius: 2px; }
.hero-dots button[aria-current="true"] { background: #fff; }
.slide { display: none; }
.slide.is-active { display: grid; animation: fade-in .6s var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 899px) {
  .hero { min-height: 82svh; padding-bottom: 40px; }
  .hero-scrim {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgb(var(--bg-rgb) / .86) 26%, rgb(var(--bg-rgb) / .2) 62%, rgb(var(--bg-rgb) / .45) 100%);
  }
  .hero-desc { font-size: 15px; -webkit-line-clamp: 2; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; }
  .hero-mute { top: calc(var(--header-h) + 16px); bottom: auto; }
}

/* ---------- Satırlar ve kaydırmalı raylar ---------- */

.rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 48px); padding: 8px 0 64px; position: relative; z-index: 2; }
.rows > * { min-width: 0; }
.page-home .rows { margin-top: -24px; }

.row-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter); margin-bottom: 12px;
}
.row-title { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; letter-spacing: .005em; }
.row-link { display: inline-flex; align-items: center; gap: 2px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.row-link:hover { color: #fff; }

.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--col, minmax(240px, 22%));
  gap: 8px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 4px var(--gutter) 8px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; min-width: 0; }

.rail-btn {
  position: absolute; top: 4px; bottom: 8px; z-index: 3; width: calc(var(--gutter) - 4px); min-width: 36px;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .55); color: #fff;
  opacity: 0; transition: opacity var(--dur) var(--ease), background-color var(--dur-fast) var(--ease);
}
.rail-btn:hover { background: rgba(0, 0, 0, .8); }
.rail-btn[data-dir="prev"] { left: 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.rail-btn[data-dir="next"] { right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); }
.rail-wrap:hover .rail-btn:not([hidden]) { opacity: 1; }
.rail-btn:focus-visible { opacity: 1; }
@media (hover: none), (max-width: 899px) { .rail-btn { display: none; } }

@media (max-width: 899px) {
  .rail { grid-auto-columns: var(--col-m, 72%); }
}

/* ---------- Kanal ve program karoları ---------- */

.tile { position: relative; display: grid; gap: 10px; color: #fff; }
.tile-media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r-sm); background: var(--surface-1);
}
.tile-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tile:hover .tile-media > img { transform: scale(1.04); }
.tile-media .title-card-text { font-size: 120px; right: -4%; bottom: -10%; }
.tile-logo {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  max-height: 34px; max-width: 45%; width: auto; object-fit: contain;
}
.tile-name { position: absolute; left: 12px; bottom: 10px; z-index: 2; font-weight: 800; font-size: 18px; text-transform: uppercase; font-stretch: var(--display-stretch); }
.tile-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0) 55%); z-index: 1; }
.tile-badge { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 4px 8px; background: rgba(0, 0, 0, .65); border-radius: 2px; }
.tile-num {
  position: absolute; right: 10px; top: 4px; z-index: 2;
  font-weight: 900; font-stretch: var(--display-stretch); font-size: 44px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .55);
}
.tile-body { display: grid; gap: 6px; }
.tile-title { font-size: 15px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.tile-sub { color: var(--text-2); font-size: 13px; letter-spacing: .01em; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.tile .progress { height: 2px; }
.tile-play {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
  opacity: 0; background: rgba(0, 0, 0, .25); transition: opacity var(--dur) var(--ease);
}
.tile-play span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(0, 0, 0, .55); border: 1.5px solid #fff; }
.tile:hover .tile-play, .tile:focus-visible .tile-play { opacity: 1; }

/* Numaralı afiş rafı (Bu Akşam) */
.rank-rail { --col: minmax(250px, 19%); --col-m: 64%; gap: 16px; }
.rank { position: relative; display: flex; align-items: flex-end; width: 100%; height: 100%; text-align: left; }
.rank-num {
  flex: none; width: 44%; margin-right: -8%;
  font-weight: 900; font-stretch: var(--display-stretch);
  font-size: clamp(120px, 11vw, 190px); line-height: .8; text-align: right; letter-spacing: -.04em;
  color: var(--bg); -webkit-text-stroke: 3px #595959;
  user-select: none;
}
.rank-poster {
  position: relative; z-index: 1; flex: none; width: 64%; aspect-ratio: 2 / 3; overflow: hidden;
  border-radius: var(--r-sm); background: var(--surface-2);
}
.rank-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-card {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px 12px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .14), transparent 60%),
    linear-gradient(180deg, var(--surface-2) 0%, var(--surface-1) 100%);
}
.poster-card .p-cat { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.poster-card .p-title {
  font-weight: 900; font-stretch: var(--display-stretch); text-transform: uppercase;
  font-size: clamp(19px, 1.7vw, 26px); line-height: .95; letter-spacing: .005em;
  overflow-wrap: break-word; hyphens: manual;
}
.poster-card .p-time { font-size: 13px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 6px; }
.rank-poster .p-live { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 8px; background: rgba(0, 0, 0, .7); border-radius: 2px; }

/* Bugünün akışı rafı */
.today-rail { --col: minmax(220px, 17%); --col-m: 58%; gap: 0; }
.today-item {
  display: grid; align-content: start; gap: 8px;
  padding: 16px 20px 18px 0; margin-right: 20px;
  border-top: 2px solid var(--surface-3);
  text-align: left;
  transition: border-color var(--dur) var(--ease);
}
.today-item:hover { border-top-color: #fff; }
.today-item.is-now { border-top-color: var(--accent); }
.today-time { font-size: 28px; font-weight: 800; font-stretch: var(--display-stretch); line-height: 1; font-variant-numeric: tabular-nums; }
.today-item.is-past .today-time, .today-item.is-past .today-title { color: var(--text-3); }
.today-title { font-size: 16px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.today-cat { color: var(--text-2); font-size: 13px; letter-spacing: .01em; }
.today-now { display: inline-flex; }

/* Özellik kartları (referanstaki gradyan) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 var(--gutter); }
.feature { background: var(--feature); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 10px; align-content: start; min-height: 180px; }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); margin-bottom: 8px; }
.feature h3 { font-size: 22px; font-weight: 900; line-height: 1.2; }
.feature p { color: #d6d6d6; font-size: 15px; }
@media (max-width: 899px) { .features { grid-template-columns: 1fr; } .feature { min-height: 0; } }

/* ---------- İzleme sayfası ---------- */

.watch { padding-bottom: 64px; }
.player-stage { background: #000; position: relative; z-index: 41; }
.player-frame { margin: 0 auto; width: min(100%, calc((100vh - var(--header-h) - 140px) * 16 / 9)); min-width: min(100%, 640px); }

.player {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: #000; overflow: hidden; color: #fff;
  user-select: none; -webkit-user-select: none;
}
.player-video, .player iframe, .player-embed > * { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player-embed { position: absolute; inset: 0; }
.player-poster { position: absolute; inset: 0; z-index: 0; }
.player-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }

.player-state {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; pointer-events: none;
}
.player-state > * { pointer-events: auto; }
.player-spinner {
  width: 54px; height: 54px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--accent);
  animation: spin .9s linear infinite; display: none;
}
.player.is-loading .player-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-big-play {
  display: none; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); border: 2px solid #fff; color: #fff;
}
.player.is-paused:not(.is-loading):not(.has-error) .player-big-play { display: grid; }
.player-error { display: none; max-width: 420px; padding: 24px; text-align: center; gap: 12px; justify-items: center; }
.player.has-error .player-error { display: grid; }
.player-error h3 { font-size: 20px; font-weight: 800; }
.player-error p { color: var(--text-2); font-size: 15px; }

.player-unmute {
  position: absolute; z-index: 5; left: 16px; top: 16px;
  display: none; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  background: #fff; color: #000; border-radius: var(--r-sm); font-weight: 700; font-size: 14px;
}
.player.needs-unmute .player-unmute { display: inline-flex; }

.player-ui {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; justify-content: space-between;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.player.hide-ui:not(.is-paused) .player-ui { opacity: 0; }
.player.hide-ui:not(.is-paused) { cursor: none; }
.player-top, .player-bar { pointer-events: auto; display: flex; align-items: center; gap: 4px; padding: 12px 16px; }
.player-top { background: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent); justify-content: space-between; gap: 12px; }
.player-top .player-title { font-weight: 700; font-size: 15px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.player-bar { background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent); padding-top: 32px; }
.player-bar .spacer { flex: 1; }
.pbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); color: #fff; transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease); }
.pbtn:hover { background: rgba(255, 255, 255, .1); }
.pbtn:active { transform: scale(.92); }
.pbtn[hidden] { display: none; }
.player [data-show="playing"], .player.is-paused [data-show="paused"] { display: block; }
.player [data-show="paused"], .player.is-paused [data-show="playing"] { display: none; }
.player [data-show="muted"], .player.is-muted [data-show="unmuted"] { display: none; }
.player.is-muted [data-show="muted"], .player [data-show="unmuted"] { display: block; }
.player [data-show="fs"] { display: none; }
.player.is-fullscreen [data-show="fs"] { display: block; }
.player.is-fullscreen [data-show="nofs"] { display: none; }

.volume { width: 84px; accent-color: #fff; height: 4px; cursor: pointer; }
@media (hover: none) { .volume { display: none; } }

.live-edge {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; margin-left: 8px;
  border-radius: var(--r-sm); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255, 255, 255, .1);
}
.live-edge .live-dot { background: var(--text-3); }
.live-edge .live-dot::after { display: none; }
.player.is-live-edge .live-edge { background: transparent; cursor: default; }
.player.is-live-edge .live-edge .live-dot { background: var(--accent); }
.player.is-live-edge .live-edge .live-dot::after { display: block; }

.quality { position: relative; }
.quality-menu {
  position: absolute; right: 0; bottom: 52px; min-width: 150px; padding: 6px;
  background: rgba(22, 22, 22, .96); border: 1px solid var(--surface-2); border-radius: var(--r-md);
  display: grid; gap: 2px;
}
.quality-menu[hidden] { display: none; }
.quality-menu button { text-align: left; padding: 9px 12px; border-radius: var(--r-sm); font-size: 14px; display: flex; justify-content: space-between; gap: 12px; }
.quality-menu button:hover { background: rgba(255, 255, 255, .08); }
.quality-menu button[aria-checked="true"]::after { content: '✓'; }

.player:fullscreen, .player.is-fullscreen { aspect-ratio: auto; width: 100%; height: 100%; }

.watch-info {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: start;
  padding-top: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line-soft);
}
.watch-channel { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.channel-mark {
  width: 48px; height: 48px; flex: none; border-radius: var(--r-sm); background: var(--surface-1);
  display: grid; place-items: center; overflow: hidden; padding: 6px;
}
.channel-mark img { width: 100%; height: 100%; object-fit: contain; }
.channel-mark span { font-weight: 900; font-stretch: var(--display-stretch); font-size: 20px; }
.watch-channel-name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.watch-channel-tag { color: var(--text-2); font-size: 13px; }
.watch-title { font-size: clamp(26px, 3vw, 38px); font-weight: 900; line-height: 1.1; margin-bottom: 8px; }
.watch-desc { color: var(--text-2); margin-top: 12px; max-width: 72ch; }
.watch-progress { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: var(--text-2); font-size: 14px; }
.watch-progress .progress { flex: 0 1 320px; }
.watch-progress > span, .hero-progress > span { white-space: nowrap; }
.watch-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.watch-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-top: 32px; }
.watch-cols > *, .watch-info > * { min-width: 0; }
.side-title, .section-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; }

@media (max-width: 899px) {
  .player-stage { position: sticky; top: 0; z-index: 45; }
  .page-watch .site-header { position: relative; }
  .player-frame { width: 100%; min-width: 0; }
  .watch-info { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
  .watch-actions { justify-content: flex-start; }
  .watch-actions .btn { flex: 1 1 auto; }
  .watch-cols { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 24px; }
  .player-top { padding: 8px 10px; }
  .player-bar { padding: 24px 6px 4px; }
  .pbtn { width: 40px; height: 40px; }
}

/* Işıkları kapat */
.lights-veil {
  position: fixed; inset: 0; z-index: 40; background: #000; opacity: 0; pointer-events: none;
  transition: opacity var(--dur-lights) var(--ease);
}
body.lights-off .lights-veil { opacity: .94; pointer-events: auto; cursor: pointer; }
body.lights-off .site-header, body.lights-off .tabbar { opacity: .06; transition: opacity var(--dur-lights) var(--ease); }
.lights-hint {
  position: fixed; left: 50%; bottom: calc(24px + var(--tabbar-h)); z-index: 42; transform: translate(-50%, 12px);
  color: var(--text-3); font-size: 13px; letter-spacing: .02em; opacity: 0; pointer-events: none;
  transition: opacity var(--dur-lights) var(--ease), transform var(--dur-lights) var(--ease);
}
body.lights-off .lights-hint { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Gün sekmeleri ve program listesi ---------- */

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-grid; justify-items: center; gap: 0; min-height: 44px; padding: 6px 14px;
  border-radius: var(--r-sm); background: var(--surface-1); color: var(--text-2);
  font-size: 14px; font-weight: 600; line-height: 1.25;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.chip small { font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--text-3); }
.chip:hover { color: #fff; background: var(--surface-2); }
.chip[aria-selected="true"], .chip[aria-current="page"] { background: #fff; color: #000; }
.chip[aria-selected="true"] small, .chip[aria-current="page"] small { color: #3a3a3a; }

.program-list { list-style: none; margin: 16px 0 0; padding: 0; }
.program-item {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: start;
  padding: 16px 12px; margin: 0 -12px;
  border-radius: var(--r-sm);
  border-bottom: 1px solid var(--line-soft);
  text-align: left; width: calc(100% + 24px);
  transition: background-color var(--dur-fast) var(--ease);
}
.program-item:hover { background: var(--surface-1); }
.program-item .p-time { font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.program-item .p-end { display: block; font-size: 12px; font-weight: 500; color: var(--text-3); }
.program-item .p-title { font-weight: 700; font-size: 16px; line-height: 1.35; }
.program-item .p-meta { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.program-item .p-desc { color: var(--text-3); font-size: 14px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.program-item .progress { margin-top: 10px; max-width: 240px; }
.program-item.is-past { opacity: .5; }
.program-item.is-now { background: var(--surface-1); }
.program-item .chev { color: var(--text-3); align-self: center; }
.program-empty { color: var(--text-2); padding: 32px 0; }

/* Kanal listesi (yan sütun) */
.channel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.channel-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 8px; border-radius: var(--r-sm); transition: background-color var(--dur-fast) var(--ease);
}
.channel-row:hover { background: var(--surface-1); }
.channel-row[aria-current="page"] { background: var(--surface-2); }
.channel-row .channel-mark { width: 56px; height: 56px; }
.channel-row .c-name { font-weight: 700; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.channel-row .c-num { color: var(--text-3); font-variant-numeric: tabular-nums; font-weight: 600; }
.channel-row .c-now { color: var(--text-2); font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.channel-row .progress { margin-top: 6px; height: 2px; }

/* ---------- Yayın akışı rehberi ---------- */

.page-head { padding-top: 32px; padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.page-title { font-size: var(--fs-h); font-weight: 900; line-height: 1.05; }
.page-sub { color: var(--text-2); margin-top: 6px; }

.guide-toolbar { display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter) 16px; }
.guide-toolbar .chips { flex: 1; min-width: 0; }

.guide {
  --ppm: 5px; --chan-w: 200px; --ruler-h: 40px; --row-h: 84px;
  position: relative; overflow: auto; overscroll-behavior: contain;
  max-height: calc(100vh - var(--header-h) - 190px); min-height: 220px;
  border-top: 1px solid var(--line-soft);
  scrollbar-color: var(--surface-3) transparent;
}
.guide-inner { position: relative; width: calc(var(--chan-w) + var(--span-min) * var(--ppm)); }
.guide-ruler {
  position: sticky; top: 0; z-index: 4; height: var(--ruler-h); display: flex;
  background: var(--bg); border-bottom: 1px solid var(--line-soft);
}
.guide-corner {
  position: sticky; left: 0; z-index: 2; flex: none; width: var(--chan-w); height: 100%;
  background: var(--bg); display: flex; align-items: center; padding-left: var(--gutter);
  color: var(--text-3); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.guide-times { position: relative; flex: 1; }
.guide-times span {
  position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding-left: 10px;
  font-size: 13px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums;
  border-left: 1px solid var(--line-soft);
}
.guide-row { display: flex; height: var(--row-h); border-bottom: 1px solid #0d0d0d; border-bottom-color: color-mix(in srgb, var(--line-soft) 40%, var(--bg)); }
.guide-channel {
  position: sticky; left: 0; z-index: 3; flex: none; width: var(--chan-w);
  display: flex; align-items: center; gap: 12px; padding: 0 12px 0 var(--gutter);
  background: var(--bg); border-right: 1px solid var(--line-soft);
}
.guide-channel:hover .g-name { text-decoration: underline; text-underline-offset: 3px; }
.guide-channel .g-num { color: var(--text-3); font-weight: 700; font-size: 13px; width: 22px; font-variant-numeric: tabular-nums; }
.guide-channel .g-logo { width: 64px; height: 40px; display: grid; place-items: center; }
.guide-channel .g-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.guide-channel .g-name { font-weight: 700; font-size: 14px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.guide-track { position: relative; flex: 1; }
.guide-prog {
  position: absolute; top: 4px; bottom: 4px; overflow: clip; clip-path: inset(0 round var(--r-sm));
  display: flex; align-items: center; padding: 0 12px;
  background: var(--surface-1); border-radius: var(--r-sm);
  text-align: left; border-left: 2px solid var(--bg);
  transition: background-color var(--dur-fast) var(--ease);
}
.guide-prog:hover { background: var(--surface-2); }
.guide-prog .g-inner { position: sticky; left: calc(var(--chan-w) + 10px); display: grid; gap: 2px; min-width: 0; max-width: 100%; }
.guide-prog .g-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide-prog .g-time { color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.guide-prog.is-past { background: #0b0b0b; background: color-mix(in srgb, var(--surface-1) 45%, var(--bg)); }
.guide-prog.is-past .g-title, .guide-prog.is-past .g-time { color: var(--text-3); }
.guide-prog.is-now { background: var(--surface-2); }
.guide-prog.is-now::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: var(--p, 0%); background: var(--accent); }
.guide-prog.is-tiny { padding: 0 6px; }
.guide-prog.is-tiny .g-time { display: none; }
.guide-now {
  position: absolute; top: 0; bottom: 0; z-index: 2; width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none;
}
.guide-now-pill {
  position: absolute; top: 50%; z-index: 1; transform: translate(-50%, -50%);
  background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; padding: 3px 6px; border-radius: 2px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.guide-corner { z-index: 3; }
.guide-empty { padding: 48px var(--gutter); color: var(--text-2); }

@media (max-width: 899px) {
  .guide { --ppm: 4px; --chan-w: 76px; --row-h: 76px; max-height: calc(100svh - var(--header-h) - var(--tabbar-h) - 150px); }
  .guide-channel { padding: 0 6px; justify-content: center; flex-direction: column; gap: 4px; }
  .guide-channel .g-name, .guide-corner { display: none; }
  .guide-ruler::before { content: ''; position: sticky; left: 0; width: var(--chan-w); flex: none; background: var(--bg); z-index: 2; }
  .guide-channel .g-num { width: auto; font-size: 11px; }
  .guide-channel .g-logo { width: 56px; height: 34px; }
  .page-head { padding-top: 20px; padding-bottom: 12px; }
}

/* ---------- Kanallar sayfası ---------- */

.filter-bar { padding: 0 var(--gutter) 24px; }
.channel-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 12px;
  padding: 0 var(--gutter) 64px;
}
@media (max-width: 599px) { .channel-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Arama ---------- */

.search-form { position: relative; max-width: 720px; }
.search-form .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search-input {
  width: 100%; min-height: 60px; padding: 0 20px 0 52px;
  background: rgba(22, 22, 22, .7); border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 18px; color: #fff;
}
.search-input::placeholder { color: var(--text-3); }
.search-input:focus { outline: none; border-color: #fff; }
.result-section { padding-top: 32px; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px 12px; }

/* ---------- İçerik sayfaları ---------- */

.prose { max-width: 720px; padding-bottom: 80px; color: #e5e5e5; font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 26px; font-weight: 800; margin-top: 1.6em; color: #fff; }
.prose h3 { font-size: 20px; font-weight: 700; margin-top: 1.4em; color: #fff; }
.prose a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--r-sm); height: auto; }
.prose ul, .prose ol { padding-left: 1.3em; }

/* ---------- Durum sayfaları ---------- */

.stage {
  position: relative; min-height: calc(100vh - var(--header-h) - var(--tabbar-h)); display: grid; place-items: center;
  padding: 64px var(--gutter); text-align: center; overflow: hidden;
}
.stage-body { position: relative; z-index: 1; display: grid; gap: 16px; justify-items: center; max-width: 560px; }
.stage-code { font-weight: 900; font-stretch: var(--display-stretch); font-size: clamp(96px, 18vw, 200px); line-height: .85; color: transparent; -webkit-text-stroke: 2px var(--text-3); }
.stage h1 { font-size: var(--fs-h); font-weight: 900; line-height: 1.05; }
.stage p { color: var(--text-2); font-size: 17px; }

/* ---------- Alt bilgi ---------- */

.site-footer { border-top: 1px solid var(--line-soft); padding: 48px 0 40px; color: var(--text-2); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 12px; max-width: 40ch; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-head { color: var(--text-3); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.socials { display: flex; gap: 4px; margin-left: -10px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); color: #fff; }
.socials a:hover { background: rgba(255, 255, 255, .08); }
.footer-bottom { margin-top: 40px; color: var(--text-3); font-size: 13px; }
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Mobil sekme çubuğu ---------- */

.tabbar { display: none; }
@media (max-width: 899px) {
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(4, 1fr);
    height: var(--tabbar-h); padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgb(var(--bg-rgb) / .94); border-top: 1px solid var(--line-soft);
    -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  }
  .tabbar a {
    display: grid; justify-items: center; align-content: center; gap: 4px;
    color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .02em;
  }
  .tabbar a[aria-current="page"] { color: #fff; }
  .tabbar .tab-live { position: relative; }
  .tabbar .tab-live .live-dot { position: absolute; top: 9px; left: calc(50% + 8px); width: 7px; height: 7px; }
}

/* ---------- Diyaloglar (arama, program ayrıntısı) ---------- */

dialog.sheet {
  width: min(560px, calc(100vw - 32px)); max-height: min(86vh, 760px); padding: 0; margin: auto;
  border: 1px solid var(--surface-2); border-radius: var(--r-md);
  background: var(--surface-1); color: #fff; overflow: hidden; overscroll-behavior: contain;
}
dialog.sheet::backdrop { background: rgba(0, 0, 0, .72); }
dialog.sheet[open] { animation: sheet-in var(--dur) var(--ease); display: flex; flex-direction: column; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.sheet-media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-1); flex: none; }
.sheet-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface-1), transparent 55%); }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-1); display: grid; place-items: center; }
.sheet-body { padding: 0 24px 24px; margin-top: -40px; position: relative; z-index: 2; display: grid; gap: 12px; overflow-y: auto; }
.sheet-title { font-size: 28px; font-weight: 900; line-height: 1.1; }
.sheet-desc { color: #d6d6d6; font-size: 15px; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
@media (max-width: 599px) {
  dialog.sheet { width: 100vw; max-width: 100vw; max-height: 88vh; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 0; }
  dialog.sheet[open] { animation: sheet-up var(--dur) var(--ease); }
  .sheet-body { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .sheet-actions .btn { flex: 1 1 auto; }
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }

dialog.search-dialog { width: min(720px, calc(100vw - 32px)); margin: 12vh auto auto; border: 0; padding: 0; background: transparent; overflow: visible; }
dialog.search-dialog::backdrop { background: rgba(0, 0, 0, .86); }
dialog.search-dialog .search-hint { margin-top: 12px; color: var(--text-3); font-size: 13px; }
@media (max-width: 599px) { dialog.search-dialog { margin-top: 16px; } }

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--tabbar-h)); z-index: 300; transform: translate(-50%, 20px);
  background: #fff; color: #000; padding: 12px 18px; border-radius: var(--r-sm); font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Hareket azaltma ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Slayt geçişi */
.hero-slide-media { opacity: 0; transition: opacity .9s var(--ease); }
.hero-slide-media.is-active { opacity: 1; }
.slide.is-active { gap: 16px; }

/* Ses ve altyazı menüsü */
.tracks-menu:not([hidden]) {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 4px 20px;
  min-width: min(360px, 84vw); max-height: min(60vh, 340px); overflow-y: auto; padding: 12px;
}
.tracks-col { display: grid; gap: 2px; align-content: start; }
.tracks-head { padding: 4px 12px 8px; color: var(--text-3); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tracks-menu button { text-align: left; }
.tracks-menu button[aria-checked="true"] { color: #fff; font-weight: 700; }
.tracks-menu button[aria-checked="false"] { color: var(--text-2); }
@media (max-width: 899px) {
  .tracks-menu:not([hidden]) { max-height: 150px; min-width: min(320px, 88vw); }
}

/* Altyazı görünümü */
.player-video::cue {
  background: rgba(0, 0, 0, .72); color: #fff;
  font-family: var(--font); font-weight: 600; line-height: 1.35;
}

/* Telefonda canlı önizleme: video üstte tam genişlikte 16:9 oynar, alt kenarı siyaha karışır */
@media (max-width: 899px) {
  .hero-media > video { inset: 0 0 auto 0; height: auto; aspect-ratio: 16 / 9; }
  .hero-media > img, .hero-media > .title-card { transition: opacity 1.2s var(--ease); }
  .hero-media.has-video > img, .hero-media.has-video > .title-card { opacity: 0; }
  .hero-media.has-video + .hero-scrim {
    background: linear-gradient(180deg,
      rgb(var(--bg-rgb) / .45) 0, rgb(var(--bg-rgb) / 0) calc(var(--header-h) + 24px),
      rgb(var(--bg-rgb) / 0) calc(56.25vw - 64px), var(--bg) calc(56.25vw + 4px), var(--bg) 100%);
  }
}

/* Dikey telefonda oynatıcı menüleri (ses/altyazı, kalite) ekranın altından tam genişlikte açılır;
   düğmenin konumuna bağlı kalıp ekranın solundan taşmaz. Yatay ve geniş ekranlar etkilenmez. */
@media (max-width: 599px) {
  .player .quality-menu:not([hidden]) {
    position: fixed; z-index: 70; left: 0; right: 0; top: auto; bottom: var(--tabbar-h);
    min-width: 0; max-height: 55vh; overflow-y: auto; overscroll-behavior: contain;
    padding: 14px 12px calc(14px + env(safe-area-inset-bottom, 0px));
    border-width: 1px 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0;
    background: #161616;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .6); /* arka planı karartan perde (gölge değil) */
  }
  .player.is-fullscreen .quality-menu:not([hidden]) { bottom: 0; }
  .player .tracks-menu:not([hidden]) { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 4px 12px; }
  .player .quality-menu button { min-height: 44px; font-size: 15px; }
}

/* Bakım sayfası filigranı: kırpılmadan, ortada ve site adının uzunluğuna göre boyutlanır */
.title-card-text.is-full {
  left: 50%; right: auto; bottom: 4vh; transform: translateX(-50%);
  font-size: clamp(48px, calc(94vw / (var(--chars, 7) * var(--wm-char, .62))), 340px);
  line-height: 1;
}

/* Üst bardaki "Canlı İzle": yayın simgesi, dalgalar hafifçe nabız atar; rengi buton yazısıyla aynı */
.btn-live { gap: 8px; padding-left: 14px; }
.live-icon circle { fill: currentColor; }
.live-icon path { animation: live-wave 2.2s ease-in-out infinite; }
@keyframes live-wave { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ==========================================================================
   Arka plan temaları (Ayarlar › Görünüm). Sinema siyahı varsayılandır.
   Her tema zemini, yüzeyleri ve ortam ışığını birlikte değiştirir;
   video perdesi ve "ışıkları kapat" karartması her temada siyah kalır.
   ========================================================================== */

body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--bg-glow);
}

:root[data-bg="charcoal"] {
  --bg: #141414; --bg-rgb: 20 20 20;
  --surface-1: #1f1f1f; --surface-2: #303030; --surface-3: #474747; --line-soft: #2b2b2b;
}

:root[data-bg="navy"] {
  --bg: #0a1120; --bg-rgb: 10 17 32;
  --surface-1: #121c31; --surface-2: #1c2a47; --surface-3: #2b3d63; --line-soft: #1a2640;
  --text-2: #b6c0d4; --text-3: #7d8aa5;
  --bg-glow:
    radial-gradient(120% 70% at 50% -20%, rgba(52, 96, 196, .42), transparent 62%),
    radial-gradient(60% 50% at 100% 100%, rgba(30, 60, 140, .25), transparent 70%);
}

:root[data-bg="velvet"] {
  --bg: #120609; --bg-rgb: 18 6 9;
  --surface-1: #1f0d12; --surface-2: #301920; --surface-3: #4a2731; --line-soft: #2b141a;
  --text-2: #cfb6ba; --text-3: #94767b;
  --bg-glow:
    radial-gradient(120% 70% at 50% -20%, rgba(170, 24, 48, .45), transparent 62%),
    radial-gradient(60% 45% at 0% 100%, rgba(120, 14, 32, .30), transparent 70%);
}

:root[data-bg="glow"] {
  --bg: #070707; --bg-rgb: 7 7 7;
  --surface-1: #171717; --surface-2: #2a2a2a; --surface-3: #404040; --line-soft: #232323;
  --bg-glow:
    radial-gradient(80% 55% at 0% 0%, rgb(var(--accent-rgb) / .20), transparent 65%),
    radial-gradient(70% 55% at 100% 35%, rgb(var(--accent-rgb) / .10), transparent 65%);
}
