/* Yazı boyutu (2026-09-27): html[data-yazi] (api.js, TV'de kendiliğinden "buyuk"). Sayfa `zoom` ile
   büyür; ekran ölçülü (vw/vh) kurallar aynı orana BÖLÜNÜR -- yoksa büyük yazıda tam ekran taşardı.
   Normal modda --yz: 1, görünüm birebir eskisi. Mühür: tools/web-bekcisi.js kural 19. */
:root { --yz: 1; }
html[data-yazi="buyuk"] { --yz: 1.25; }
html[data-yazi="cokbuyuk"] { --yz: 1.5; }
html[data-yazi] body { zoom: var(--yz, 1); }

/* ==============================================================================
   NEXORA OTT — Web & Smart TV Tasarım Sistemi
   Temalar: NEXORA_AMBER (#1B1827 / #FE7B31) & OLED Sinematik Siyah
   Hedefler: Safari (iOS/Mac), LG webOS, Samsung Tizen, Masaüstü Tarayıcılar
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Renk Belirteçleri (Design Tokens) */
  --bg-base: #14111E;
  --bg-deep: #0D0A14;
  --bg-glow: #282338;
  --card-surface: rgba(36, 32, 49, 0.72);
  --card-surface-hover: rgba(50, 45, 68, 0.85);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-focus: #FE7B31;

  /* Vurgu Renkleri */
  --accent: #FE7B31;
  --accent-soft: #FF9A5C;
  --accent-glow: rgba(254, 123, 49, 0.45);
  --accent-cyan: #00E5FF;
  --accent-red: #FF334B;

  /* Metin Renkleri */
  --text-primary: #FFFFFF;
  --text-secondary: #A09BAE;
  --text-muted: #6E687E;

  /* TV Odak & Animasyon */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s var(--ease-spring);
  --transition-normal: 0.28s var(--ease-spring);
  --nav-width: 80px;
  --nav-width-expanded: 240px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

/* ==============================================================================
   ANA ÇERÇEVE & DÜZEN (APP SHELL)
   ============================================================================== */
#app-container {
  display: flex;
  width: calc(100vw / var(--yz, 1));
  height: calc(100vh / var(--yz, 1));
  position: relative;
  background: radial-gradient(circle at 75% 20%, rgba(54, 50, 74, 0.6) 0%, rgba(20, 17, 30, 0.98) 70%);
  overflow: hidden;
}

/* SOL MENÜ RAYI (NAVIGATION RAIL) */
#sidebar {
  width: var(--nav-width);
  height: 100%;
  background: rgba(18, 15, 26, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  z-index: 50;
  transition: width var(--transition-normal);
  flex-shrink: 0;
}

#sidebar:hover,
#sidebar.expanded {
  width: var(--nav-width-expanded);
  align-items: flex-start;
  padding-left: 20px;
  padding-right: 20px;
}

.brand-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 20px;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(254, 123, 49, 0.4);
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent) 0%, #D45B17 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
  flex-shrink: 0;
}

.brand-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

#sidebar:hover .brand-title,
#sidebar.expanded .brand-title {
  opacity: 1;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  list-style: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 48px;
  border-radius: 14px;
  padding: 0 16px;
  color: var(--text-secondary);
  cursor: pointer;
  outline: none;
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.nav-item svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

.nav-label {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

#sidebar:hover .nav-label,
#sidebar.expanded .nav-label {
  opacity: 1;
  transform: translateX(0);
}

.nav-item.active {
  color: #fff;
  background: rgba(254, 123, 49, 0.16);
  border-color: rgba(254, 123, 49, 0.35);
}

.nav-item.active svg {
  color: var(--accent);
}

/* TV & KLAVYE ODAK DURUMU */
.focusable {
  outline: none;
  position: relative;
}

.focusable.focused,
.focusable:focus-visible {
  border-color: var(--card-border-focus) !important;
  box-shadow: 0 0 26px var(--accent-glow), inset 0 0 12px rgba(254, 123, 49, 0.25) !important;
  transform: scale(1.03) translateZ(0);
  z-index: 10;
}

.nav-item.focused {
  background: rgba(254, 123, 49, 0.22);
  color: #fff;
}

/* ==============================================================================
   ANA İÇERİK ALANI (MAIN VIEWPORT)
   ============================================================================== */
#main-content {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 44px 44px 44px;
  scroll-behavior: smooth;
  position: relative;
}

/* ÜST BAR: ARAMA VE BİLGİ */
.top-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(36, 32, 49, 0.65);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 10px 18px;
  width: 380px;
  transition: all var(--transition-fast);
}

.search-box:focus-within,
.search-box.focused {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.search-box svg {
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  width: 100%;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.top-status-pills {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pill {
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(36, 32, 49, 0.6);
  border: 1px solid var(--card-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==============================================================================
   🎬 SİNEMATİK HERO BILLBOARD / NETFLIX DÖNER VİTRİN
   ============================================================================== */
.hero-spotlight {
  width: 100%;
  height: 400px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  background: #0B0813;
  user-select: none;
}

.hero-backdrop-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.hero-backdrop-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1), transform 7s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.hero-backdrop-layer.active {
  opacity: 1;
  transform: scale(1.01);
}

.hero-vignette-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 8, 19, 0.96) 0%, rgba(11, 8, 19, 0.84) 34%, rgba(11, 8, 19, 0.42) 65%, transparent 100%),
    linear-gradient(0deg, var(--bg-primary, #0B0813) 0%, rgba(11, 8, 19, 0.75) 20%, transparent 60%),
    linear-gradient(180deg, rgba(11, 8, 19, 0.45) 0%, transparent 35%);
}

.spotlight-content {
  position: relative;
  z-index: 3;
  max-width: 640px;
  padding: 0 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.spotlight-content.hero-fade-out {
  opacity: 0;
  transform: translateY(8px);
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 61, 68, 0.16);
  border: 1px solid rgba(255, 61, 68, 0.35);
  color: #FF4D55;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  width: fit-content;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF3D44;
  box-shadow: 0 0 10px #FF3D44;
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.spotlight-title {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 10px;
  color: #FFFFFF;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 193, 7, 0.16);
  border: 1px solid rgba(255, 193, 7, 0.4);
  color: #FFD54F;
  font-size: 13px;
  font-weight: 700;
}

.hero-rating svg {
  width: 14px;
  height: 14px;
  fill: #FFD54F;
}

.hero-meta-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
}

.hero-meta-dot {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

.hero-meta-type {
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.spotlight-subtitle.hero-overview {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 22px;
  max-width: 560px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-play-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FF3D44 0%, #E62E35 100%);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 61, 68, 0.45);
  transition: all var(--transition-fast);
}

.btn-play-hero:hover,
.btn-play-hero:focus {
  transform: scale(1.04);
  box-shadow: 0 8px 28px rgba(255, 61, 68, 0.65);
  border-color: rgba(255, 255, 255, 0.4);
  outline: none;
}

.btn-play-hero svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-hero-secondary:hover,
.btn-hero-secondary:focus {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.04);
  outline: none;
}

.btn-hero-secondary svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 12, 24, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.65;
  transition: all var(--transition-fast);
}

.hero-nav-arrow:hover,
.hero-nav-arrow:focus {
  opacity: 1;
  background: rgba(255, 61, 68, 0.9);
  border-color: #FF3D44;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 61, 68, 0.45);
  outline: none;
}

.hero-nav-arrow svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.hero-nav-prev {
  left: 18px;
}

.hero-nav-next {
  right: 22px;
}

.hero-indicators {
  position: absolute;
  bottom: 22px;
  right: 36px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 20px;
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.hero-dot.active {
  width: 38px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot-progress {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: #FF3D44;
  border-radius: 4px;
}

.hero-dot.active .hero-dot-progress {
  animation: heroDotProgressAnim 7s linear forwards;
}

.hero-spotlight.is-paused .hero-dot.active .hero-dot-progress {
  animation-play-state: paused;
}

@keyframes heroDotProgressAnim {
  from { width: 0%; }
  to { width: 100%; }
}

/* KATEGORİ SEÇİCİ (FILTER PILLS) */
/* İçerik satırı: Canlı TV'de solda dikey kategori listesi, sağda kanallar */
.content-row {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

#dynamic-content-area {
  flex: 1;
  min-width: 0;
}

.category-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  max-height: calc(100dvh - 60px);
  overflow-y: auto;
  padding: 10px;
  border-radius: 18px;
  background: rgba(24, 20, 34, 0.7);
  border: 1px solid var(--card-border);
  scrollbar-width: thin;
}

.category-bar[hidden] {
  display: none;
}

.category-bar-head {
  display: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(36, 32, 49, 0.6);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.category-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* SEKSİYON BAŞLIĞI */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* KANAL GRİDİ (CHANNEL CARDS GRID) */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.channel-card {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 160px;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.channel-logo-wrap {
  width: 54px;
  height: 40px;
  background: rgba(18, 15, 26, 0.8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.channel-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.channel-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #E2DFEC;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.channel-badge.badge-4k {
  background: rgba(254, 123, 49, 0.15);
  color: var(--accent);
  border-color: rgba(254, 123, 49, 0.3);
}

.card-middle {
  margin: 10px 0;
}

.channel-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.channel-epg {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
  border-radius: 2px;
}

.card-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==============================================================================
   VOD FİLMLER & DİZİLER GRİDİ
   ============================================================================== */
.vod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.vod-card {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  display: flex;
  flex-direction: column;
}

.vod-poster-wrap {
  width: 100%;
  height: 280px;
  position: relative;
  overflow: hidden;
  background: #110e1a;
}

.vod-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.vod-card:hover .vod-poster-img,
.vod-card.focused .vod-poster-img {
  transform: scale(1.05);
}

.vod-rating-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #FFB800;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 184, 0, 0.3);
}

.vod-info-wrap {
  padding: 14px 16px;
}

.vod-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.vod-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==============================================================================
   CANLI MAÇ MERKEZİ GRİDİ
   ============================================================================== */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.match-card {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(12px);
}

.match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}

.match-status-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.match-status-badge.live {
  background: rgba(255, 51, 75, 0.2);
  color: var(--accent-red);
  border: 1px solid rgba(255, 51, 75, 0.4);
}

.match-status-badge.upcoming {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.match-teams-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.match-team-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.match-team-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.match-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
}

.match-score {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
}

.match-minute {
  font-size: 12px;
  color: var(--accent-red);
  font-weight: 700;
}

.match-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 15, 26, 0.6);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* ==============================================================================
   AYARLAR & TEMA SEÇİCİ SAYFASI
   ============================================================================== */
.settings-section {
  max-width: 840px;
  margin-bottom: 36px;
}

.settings-group-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.theme-card {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.theme-card.active {
  border-color: var(--accent);
  background: rgba(254, 123, 49, 0.15);
}

.theme-color-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 0 14px currentColor;
}

.theme-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.theme-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* ÖZEL PORTAL & M3U GİRİŞ KARTI */
.portal-card {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portal-input-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.portal-field {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.portal-input {
  background: rgba(18, 15, 26, 0.8);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.portal-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.btn-primary-action {
  padding: 12px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, #D45B17 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: all var(--transition-fast);
}

/* ==============================================================================
   SİNEMATİK DETAY POSTERİ MODALI (DETAIL POSTER MODAL)
   ============================================================================== */
#detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100vw / var(--yz, 1));
  height: calc(100vh / var(--yz, 1));
  background: #10141a;
  z-index: 950;
  display: none;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
}

#detail-modal.active {
  display: block;
  opacity: 1;
}

/* Ambient Full-Screen Cinematic Backdrop */
.netflix-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100vw / var(--yz, 1));
  height: calc(100vh / var(--yz, 1));
  background-size: cover;
  background-position: center top;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}

.netflix-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #10141a 0%, rgba(16, 20, 26, 0.8) 15%, rgba(16, 20, 26, 0.2) 30%, transparent 50%),
              linear-gradient(180deg, transparent 0%, transparent 70%, #10141a 100%);
}

/* Geri Dön Butonu */
.btn-netflix-back {
  position: fixed;
  top: 24px;
  left: 36px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-netflix-back:hover,
.btn-netflix-back.focused {
  background: #FF3D44;
  border-color: #FF3D44;
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(255, 61, 68, 0.4);
}

.btn-netflix-back svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Detay Sayfası Konteyneri */
.netflix-detail-view {
  position: relative;
  z-index: 10;
  min-height: calc(100vh / var(--yz, 1));
  padding: 80px 48px 60px 48px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.netflix-hero-content {
  max-width: 720px;
  margin-bottom: 20px;
}

.netflix-title {
  font-size: clamp(34px, calc(5vw / var(--yz, 1)), 56px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 8px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9);
}

.netflix-orig-title {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: -4px;
  margin-bottom: 12px;
  font-weight: 600;
}

.netflix-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.netflix-meta-dot {
  color: rgba(255, 255, 255, 0.25);
}

.netflix-badges-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.netflix-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 184, 0, 0.18);
  border: 1px solid rgba(255, 184, 0, 0.35);
  color: #FFB800;
  font-size: 13px;
  font-weight: 800;
}

.netflix-season-count-pill {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.netflix-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 680px;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Butonlar Grubu */
.netflix-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-netflix-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 999px;
  background: #fff;
  color: #0d0a15;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: none;
}

.btn-netflix-play:hover,
.btn-netflix-play.focused {
  background: #FF3D44;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 61, 68, 0.45);
}

.btn-netflix-play svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-netflix-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-netflix-secondary:hover,
.btn-netflix-secondary.focused {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.05);
  border-color: #fff;
}

.btn-netflix-secondary svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.btn-netflix-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-netflix-icon-btn:hover,
.btn-netflix-icon-btn.focused {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
  border-color: #fff;
}

.btn-netflix-icon-btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

/* Bölüm Başlıkları ve İmzası Kırmızı Çizgi (Vavoo / Netflix) */
.netflix-section-wrap {
  margin-top: 20px;
  margin-bottom: 32px;
}

.netflix-section-head {
  display: inline-block;
  position: relative;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.netflix-section-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
  text-transform: uppercase;
}

.netflix-red-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: #FF3D44;
  box-shadow: 0 0 10px rgba(255, 61, 68, 0.6);
}

/* Sezon Hapları */
.netflix-seasons-row {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.netflix-seasons-row::-webkit-scrollbar {
  display: none;
}

.netflix-season-pill {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.netflix-season-pill:hover,
.netflix-season-pill.focused {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.netflix-season-pill.active {
  background: #fff;
  color: #0d0a15;
  border-color: #fff;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}

/* 16:9 Dizi Bölüm Kartları Izgarası (Screenshot 2 Birebir) */
.netflix-episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.netflix-ep-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.netflix-ep-card:hover,
.netflix-ep-card.focused {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.netflix-ep-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #000;
  overflow: hidden;
}

.netflix-ep-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.netflix-ep-card:hover .netflix-ep-thumb,
.netflix-ep-card.focused .netflix-ep-thumb {
  transform: scale(1.05);
}

.netflix-ep-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}

.netflix-ep-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.netflix-ep-card:hover .netflix-ep-play-overlay,
.netflix-ep-card.focused .netflix-ep-play-overlay {
  opacity: 1;
}

.netflix-ep-play-overlay svg {
  width: 38px;
  height: 38px;
  fill: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

.netflix-ep-info {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.netflix-ep-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.netflix-ep-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.netflix-ep-desc {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
}

/* Yuvarlak Oyuncular Satırı (Screenshot 3 Birebir) */
.netflix-cast-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 4px 16px;
}

.netflix-cast-row::-webkit-scrollbar {
  display: none;
}

.netflix-cast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 95px;
  flex-shrink: 0;
}

.netflix-cast-avatar-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 8px;
  position: relative;
}

.netflix-cast-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.netflix-cast-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.netflix-cast-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.netflix-cast-role {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Çözülen Akış Hatları */
.netflix-sources-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
}

.netflix-source-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.netflix-source-pill:hover,
.netflix-source-pill.focused {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FF3D44;
  transform: translateX(6px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Geriye dönük uyumluluk sınıfları */
.modal-box {
  width: 100%;
}
.modal-poster-wrap {
  position: sticky;
  top: 24px;
  aspect-ratio: 2 / 3;
}
.modal-poster-wrap img {
  object-position: top center;
}

/* ==============================================================================
   TAM EKRAN OYNATICI (PLAYER SCREEN & HUD)
   ============================================================================== */
#player-container {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100vw / var(--yz, 1));
  height: calc(100vh / var(--yz, 1));
  background: #000;
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

#player-container.active {
  display: block;
  opacity: 1;
}

#video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* OYNATICI CAM BİLGİ KATMANI (HUD) */
.player-hud {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 48px;
  background: linear-gradient(180deg, rgba(13, 10, 20, 0.88) 0%, transparent 25%, transparent 70%, rgba(13, 10, 20, 0.95) 100%);
  transition: opacity 0.35s ease;
}

.player-hud.hidden {
  opacity: 0;
}

.hud-interactive {
  pointer-events: auto;
}

/* Oynatıcı Üst Bar */
.hud-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hud-channel-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hud-channel-logo {
  height: 48px;
  background: rgba(30, 26, 40, 0.8);
  border-radius: 12px;
  padding: 6px 14px;
  border: 1px solid var(--card-border);
}

.hud-channel-text h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.hud-channel-text p {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.hud-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-badge-live {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 51, 75, 0.25);
  border: 1px solid rgba(255, 51, 75, 0.45);
  color: #FF5E72;
  font-size: 13px;
  font-weight: 700;
}

.hud-badge-quality {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* Oynatıcı Alt Bar */
.hud-bottom-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hud-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hud-controls-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  min-width: 0;
}

.btn-hud-action {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-hud-action svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.btn-hud-action:hover,
.btn-hud-pill:hover {
  background: rgba(254, 123, 49, 0.18);
  border-color: rgba(254, 123, 49, 0.55);
  transform: translateY(-2px);
}

.btn-hud-action:active,
.btn-hud-pill:active {
  transform: scale(0.95);
}

.btn-hud-primary {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  border-color: transparent;
  box-shadow: 0 6px 22px var(--accent-glow);
}

.btn-hud-primary svg {
  width: 28px;
  height: 28px;
}

.btn-hud-primary:hover {
  background: linear-gradient(135deg, #FFB07F, var(--accent-soft));
  border-color: transparent;
}

.hud-center-controls {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 44px;
  transition: opacity 0.25s ease;
}

.btn-hud-center-main {
  width: 84px;
  height: 84px;
}

.btn-hud-center-main svg {
  width: 42px;
  height: 42px;
}

.btn-hud-center-side {
  position: relative;
  width: 64px;
  height: 64px;
  background: rgba(13, 10, 20, 0.45);
}

.btn-hud-center-side svg {
  width: 28px;
  height: 28px;
}

.hud-seek-badge {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Yüklenirken ortada döner simge var; canlı yayında sarma yok */
#player-container.is-loading .hud-center-controls {
  opacity: 0;
  pointer-events: none;
}

#player-container.is-live .btn-hud-center-side {
  visibility: hidden;
}


.hud-divider {
  width: 1px;
  height: 28px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.14);
}

.btn-hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  height: 42px;
  padding: 0 16px 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E9E6F2;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}

.btn-hud-pill svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.9;
  flex-shrink: 0;
}

.btn-hud-pill.is-active,
#btn-hud-next-ep {
  color: var(--accent-soft);
  border-color: rgba(254, 123, 49, 0.5);
  background: rgba(254, 123, 49, 0.14);
}

/* SAĞDAN AÇILAN HIZLI KANAL ÇEKMECESİ (QUICK-ZAP DRAWER) */
#quick-zap-drawer {
  position: absolute;
  top: 0;
  right: -380px;
  width: 360px;
  height: 100%;
  background: rgba(18, 15, 26, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-left: 1px solid var(--card-border);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  padding: 32px 20px;
  transition: right var(--transition-normal);
  pointer-events: auto;
}

#quick-zap-drawer.open {
  right: 0;
  /* Acikken oynatici bildiriminin (#player-zap-badge, z 1100) USTUNDE: "Yeniden baglaniyor"
     rozeti Geri dugmesini ortuyordu (2026-09-27). */
  z-index: 1150;
}

.drawer-header {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#drawer-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#btn-drawer-geri {
  flex-shrink: 0;
}

.drawer-channels-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding-right: 4px;
}

.drawer-channel-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(36, 32, 49, 0.5);
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.drawer-channel-item.active {
  border-color: var(--accent);
  background: rgba(254, 123, 49, 0.18);
}

.drawer-channel-item.focused,
.drawer-channel-item:focus-visible {
  border-color: var(--card-border-focus) !important;
  background: rgba(254, 123, 49, 0.32) !important;
  box-shadow: 0 0 22px var(--accent-glow), inset 0 0 12px rgba(254, 123, 49, 0.25) !important;
  transform: scale(1.02) translateZ(0);
  z-index: 5;
}

.drawer-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  min-width: 28px;
}

.drawer-logo {
  width: 40px;
  height: 28px;
  object-fit: contain;
}

.drawer-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* YÜKLENİYOR & SPINNER */
.loading-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-weight: 600;
  display: none;
}

.loading-overlay.active {
  display: flex;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(254, 123, 49, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* MOBİL VE SAFARI UYUMU */
@media (max-width: 900px) {
  #sidebar {
    width: 64px;
    padding: 16px 0;
  }
  #sidebar:hover, #sidebar.expanded {
    width: 200px;
  }
  #main-content {
    padding: 20px 24px;
  }
  .hero-spotlight {
    height: 320px;
    padding: 0;
  }
  .spotlight-content {
    padding: 0 24px;
    max-width: 500px;
  }
  .spotlight-title {
    font-size: 26px;
  }
  .channel-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  .search-box {
    width: 220px;
  }
  .modal-body {
    flex-direction: column;
    align-items: center;
    margin-top: -60px;
  }
  .modal-poster-wrap {
    position: relative;
    top: 0;
  }
}

/* ==============================================================================
   EKRAN ÖLÇEĞİ / TV OVERSCAN AYARI
   ============================================================================== */
body.scale-90 #app-container {
  transform: scale(0.92);
  transform-origin: center center;
}
body.scale-110 #app-container {
  transform: scale(1.06);
  transform-origin: center center;
}

/* ==============================================================================
   OYNATICI İLERLEME ÇUBUĞU (SCRUBBER / SEEK BAR)
   ============================================================================== */
.hud-progress-container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.hud-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: height 0.15s ease;
}

.hud-progress-bar:hover,
.hud-progress-bar.focus-visible {
  height: 10px;
}

.hud-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, #FF9A5C 100%);
  border-radius: 999px;
  box-shadow: 0 0 10px var(--accent-glow);
}

.hud-progress-handle {
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.hud-progress-bar:hover .hud-progress-handle,
.hud-progress-bar.focus-visible .hud-progress-handle {
  opacity: 1;
}

.hud-time-display {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  min-width: 100px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ==============================================================================
   PARÇA SEÇİCİ MENÜSÜ (SES & ALTYAZI POPUP)
   ============================================================================== */
.tracks-popup-menu {
  position: absolute;
  bottom: 90px;
  left: 320px;
  background: rgba(24, 20, 34, 0.95);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1200;
  min-width: 260px;
  display: none;
  animation: fadeIn 0.2s ease;
}

.tracks-popup-menu.active {
  display: block;
}

.tracks-menu-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.track-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 4px;
}

.track-menu-item:hover,
.track-menu-item:focus,
.track-menu-item.focus-visible {
  background: var(--card-surface-hover);
  color: #fff;
  border: 1px solid var(--accent);
  outline: none;
}

.track-menu-item.active {
  color: var(--accent);
  background: rgba(254, 123, 49, 0.15);
}

/* ==============================================================================
   🎬 SİNEMATİK FRAGMAN MODALI (YOUTUBE EMBED)
   ============================================================================== */
.trailer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100vw / var(--yz, 1));
  height: calc(100vh / var(--yz, 1));
  background: rgba(8, 6, 14, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.trailer-modal.active {
  display: flex;
  opacity: 1;
}

.trailer-box {
  width: 100%;
  max-width: 920px;
  background: #151121;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.trailer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trailer-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trailer-badge {
  padding: 3px 8px;
  background: rgba(254, 123, 49, 0.2);
  color: var(--accent);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.trailer-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.btn-trailer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-trailer-close:hover,
.btn-trailer-close:focus {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-trailer-close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.trailer-iframe-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
}

.trailer-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==============================================================================
   👥 OYUNCU KADROSU & FİLMOGRAFİ
   ============================================================================== */
.modal-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-top: 22px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cast-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(254, 123, 49, 0.3) transparent;
}

.cast-row::-webkit-scrollbar {
  height: 6px;
}

.cast-row::-webkit-scrollbar-thumb {
  background: rgba(254, 123, 49, 0.4);
  border-radius: 4px;
}

.cast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 88px;
  flex-shrink: 0;
  text-align: center;
}

.cast-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 6px;
  background: #1b1728;
}

.cast-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.cast-role {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* ==============================================================================
   ▶ KALDIĞIN YERDEN DEVAM ET & SEZON / BÖLÜM SEÇİCİ
   ============================================================================== */
.btn-resume {
  background: linear-gradient(135deg, #00E5FF 0%, #0099b8 100%) !important;
  color: #0d0a14 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.4) !important;
}

.resume-badge-text {
  font-size: 12px;
  color: var(--accent-cyan);
  font-weight: 700;
}

.seasons-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.season-pill {
  padding: 8px 18px;
  border-radius: 12px;
  background: rgba(36, 32, 49, 0.7);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.season-pill.active,
.season-pill:hover,
.season-pill.focused {
  background: rgba(254, 123, 49, 0.2);
  border-color: var(--accent);
  color: #fff;
}

.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.episode-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(36, 32, 49, 0.5);
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.episode-item:hover,
.episode-item.focused {
  border-color: var(--accent);
  background: rgba(254, 123, 49, 0.15);
}

.episode-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.episode-badge-num {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}

.episode-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.episode-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.episode-meta-text {
  font-size: 12px;
  color: var(--text-muted);
}

/* VOD Kartlarında Devam Etme İlerleme Çubuğu */
.card-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.6);
  z-index: 4;
}

.card-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

/* ==============================================================================
   ⚙️ ZENGİN AYARLAR & KAYNAK YÖNETİMİ PANELİ
   ============================================================================== */
.settings-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 980px;
  margin-bottom: 60px;
}

.settings-tabs-nav {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.settings-tab-btn {
  padding: 10px 20px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-tab-btn.active,
.settings-tab-btn:hover,
.settings-tab-btn.focused {
  color: #fff;
  background: rgba(254, 123, 49, 0.16);
  border-color: rgba(254, 123, 49, 0.4);
}

.settings-panel-card {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  backdrop-filter: blur(16px);
}

.settings-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-field-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.settings-input-text {
  background: rgba(18, 15, 26, 0.85);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast);
}

.settings-input-text:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.settings-select-box {
  background: rgba(18, 15, 26, 0.85);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.source-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(18, 15, 26, 0.6);
  border: 1px solid var(--card-border);
}

.btn-danger-outline {
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 51, 75, 0.15);
  border: 1px solid rgba(255, 51, 75, 0.35);
  color: var(--accent-red);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-danger-outline:hover,
.btn-danger-outline:focus {
  background: var(--accent-red);
  color: #fff;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.diagnostic-item {
  background: rgba(18, 15, 26, 0.7);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.diagnostic-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.diagnostic-value {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.5px;
}

/* ==============================================================================
   TMDB KEŞFET & VOD AÇILIR MENÜ (DROPDOWN SELECT) FİLTRELERİ
   ============================================================================== */
.vod-filter-dropdown-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
  padding: 16px 20px;
  background: rgba(24, 21, 34, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.vod-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
  flex: 1;
}

.vod-filter-select-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.vod-filter-icon {
  width: 14px;
  height: 14px;
  fill: var(--accent);
}

.vod-select-wrapper {
  position: relative;
  width: 100%;
}

.vod-filter-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(36, 32, 49, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 42px 12px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.vod-filter-select option {
  background: #1a1726;
  color: #fff;
  padding: 10px;
  font-size: 14px;
}

.vod-filter-select:hover,
.vod-filter-select:focus,
.vod-filter-select.focused {
  border-color: var(--accent);
  background: rgba(45, 40, 62, 0.95);
  box-shadow: 0 0 0 3px rgba(254, 123, 49, 0.25), 0 6px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.vod-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
  pointer-events: none;
  transition: transform var(--transition-fast);
}

.vod-filter-select:focus + .vod-select-arrow {
  transform: translateY(-50%) rotate(180deg);
  fill: var(--accent);
}

.vod-filter-info-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(254, 123, 49, 0.1);
  border: 1px solid rgba(254, 123, 49, 0.25);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-left: auto;
  align-self: flex-end;
  height: 42px;
}

.vod-filter-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.vod-filter-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.vod-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}

.vod-filter-row::-webkit-scrollbar {
  display: none;
}

.vod-filter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  min-width: 75px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(36, 32, 49, 0.6);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  outline: none;
  flex-shrink: 0;
}

.filter-pill:hover,
.filter-pill.focused {
  background: rgba(254, 123, 49, 0.15);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.filter-pill.active {
  background: linear-gradient(135deg, var(--accent) 0%, #D45B17 100%);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* DAHA FAZLA YÜKLE BUTONU */
.vod-load-more-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0 50px 0;
}

.btn-load-more {
  padding: 12px 28px;
  border-radius: 24px;
  background: rgba(36, 32, 49, 0.85);
  border: 1px solid var(--card-border);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-fast);
  outline: none;
}

.btn-load-more:hover,
.btn-load-more.focused {
  background: linear-gradient(135deg, var(--accent) 0%, #D45B17 100%);
  border-color: var(--accent);
  box-shadow: 0 6px 20px var(--accent-glow);
  transform: translateY(-2px);
}

/* SEZON VE BÖLÜM ÇUBUKLARI */
.seasons-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
}

.seasons-bar::-webkit-scrollbar {
  display: none;
}

.season-pill {
  padding: 8px 18px;
  border-radius: 12px;
  background: rgba(36, 32, 49, 0.7);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  outline: none;
}

.season-pill:hover,
.season-pill.focused {
  background: rgba(254, 123, 49, 0.15);
  border-color: var(--accent);
  color: #fff;
}

.season-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  margin-top: 12px;
  padding-right: 6px;
}

.episode-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(36, 32, 49, 0.5);
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.episode-item:hover,
.episode-item.focused {
  background: rgba(254, 123, 49, 0.12);
  border-color: var(--accent);
  transform: translateX(4px);
}

.episode-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.episode-badge-num {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-cyan);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.episode-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.episode-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode-meta-text {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* WATCHDOGS ROZETLERİ */
.watchdog-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.watchdog-status-tag.loading {
  background: rgba(254, 123, 49, 0.15);
  color: var(--accent);
  border-color: rgba(254, 123, 49, 0.3);
}




/* Telefon: oynatıcı HUD'u ekrana sığsın (kapat butonu dışarı taşmasın) */
@media (max-width: 600px) {
  .player-hud {
    padding: 16px;
  }
  .hud-top-bar {
    align-items: flex-start;
    gap: 8px;
  }
  .hud-channel-info {
    min-width: 0;
  }
  .hud-badges {
    flex-shrink: 0;
    gap: 6px;
  }
  .hud-badge-quality,
  #hud-stream-stats {
    display: none;
  }
  .hud-controls-left {
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hud-controls-left::-webkit-scrollbar {
    display: none;
  }
  .btn-hud-action {
    width: 38px;
    height: 38px;
  }
  .btn-hud-action svg {
    width: 19px;
    height: 19px;
  }
  .btn-hud-primary {
    width: 46px;
    height: 46px;
  }
  .btn-hud-pill {
    height: 34px;
    padding: 0 11px 0 9px;
    gap: 6px;
    font-size: 12px;
  }
  .btn-hud-pill svg {
    width: 15px;
    height: 15px;
  }
  .hud-divider {
    display: none;
  }
  .hud-center-controls {
    gap: 28px;
  }
  .btn-hud-center-main {
    width: 68px;
    height: 68px;
  }
  .btn-hud-center-main svg {
    width: 34px;
    height: 34px;
  }
  .btn-hud-center-side {
    width: 52px;
    height: 52px;
  }
  .btn-hud-center-side svg {
    width: 24px;
    height: 24px;
  }
}

/* ==========================================================================
   OYNATICI AYAR PANELİ (Kalite · Ses · Altyazı · Hız · Ekran · Görüntü · Uyku · Bilgi)
   ========================================================================== */
#player-container:not(.is-live) .hud-badge-live {
  display: none;
}

.player-settings-panel {
  position: absolute;
  top: 24px;
  right: 24px;
  bottom: 120px;
  width: min(580px, calc(100% - 48px));
  display: flex;
  flex-direction: column;
  background: rgba(18, 15, 27, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 1200;
  overflow: hidden;
}

.player-settings-panel.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.ps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px 22px;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ps-header .btn-hud-action {
  width: 38px;
  height: 38px;
}

.ps-main {
  flex: 1;
  display: flex;
  min-height: 0;
}

.ps-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px;
  width: 136px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow-y: auto;
}

.ps-tab {
  text-align: left;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.ps-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.ps-tab.active {
  background: rgba(254, 123, 49, 0.16);
  color: var(--accent-soft);
}

.ps-body {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 16px 18px 20px;
}

.ps-group + .ps-group {
  margin-top: 18px;
}

.ps-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.ps-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ps-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #E9E6F2;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.ps-option small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.ps-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ps-option.active {
  border-color: rgba(254, 123, 49, 0.55);
  background: rgba(254, 123, 49, 0.12);
  color: #fff;
}

.ps-option svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  flex-shrink: 0;
}

.ps-option[disabled] {
  opacity: 0.45;
  cursor: default;
}

.ps-note {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.ps-warn {
  color: var(--accent-red);
}

.ps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.ps-row + .ps-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ps-row-label {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.ps-row-label small {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 2px;
}

.ps-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ps-step {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.ps-step:hover:not([disabled]) {
  border-color: rgba(254, 123, 49, 0.6);
  background: rgba(254, 123, 49, 0.16);
}

.ps-step[disabled],
.ps-reset[disabled] {
  opacity: 0.35;
  cursor: default;
}

.ps-step-value {
  min-width: 44px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.ps-reset {
  margin-top: 12px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #E9E6F2;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ps-stepper .ps-reset {
  margin-top: 0;
}

.ps-info {
  display: flex;
  flex-direction: column;
}

.ps-info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ps-info-row strong {
  color: #fff;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .player-settings-panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 72%;
    border-radius: 22px 22px 0 0;
    transform: translateY(24px);
  }
  .ps-main {
    flex-direction: column;
  }
  .ps-nav {
    flex-direction: row;
    width: auto;
    padding: 10px 12px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    overflow-y: hidden;
  }
  .ps-tab {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* HUD görünürken altyazı alt çubuğun üstüne kalksın (Chrome/Edge/Safari) */
#player-container:has(.player-hud:not(.hidden)) #video-element::-webkit-media-text-track-container {
  transform: translateY(-130px);
  transition: transform 0.25s ease;
}

#player-container:has(.player-settings-panel.open) .hud-center-controls {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   TELEFON DÜZENİ: sol menü alt sekme çubuğuna iner, ızgaralar sıklaşır
   ========================================================================== */
@media (hover: none) {
  .hint-kumanda {
    display: none;
  }
}

@media (max-width: 600px) {
  #app-container {
    height: 100dvh;
    width: 100%;
  }
  #sidebar,
  #sidebar:hover,
  #sidebar.expanded {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-right: none;
    border-top: 1px solid var(--card-border);
    z-index: 900;
  }
  .brand-container {
    display: none;
  }
  .nav-menu {
    flex-direction: row;
    justify-content: space-around;
    gap: 0;
  }
  .nav-item {
    flex: 1;
    width: auto;
    height: 48px;
    padding: 0;
    justify-content: center;
  }
  .nav-label,
  #sidebar:hover .nav-label,
  #sidebar.expanded .nav-label {
    display: none;
  }
  #main-content {
    height: 100%;
    padding: 14px 16px calc(84px + env(safe-area-inset-bottom));
  }
  .top-action-bar {
    margin-bottom: 14px;
  }
  .search-box {
    flex: 1;
    min-width: 0;
  }
  .hero-spotlight {
    height: auto;
    min-height: 280px;
    padding: 24px 0 32px 0;
    margin-bottom: 16px;
  }
  .btn-play-hero {
    padding: 10px 18px;
    font-size: 14px;
  }
  .btn-hero-secondary {
    padding: 10px 16px;
    font-size: 13px;
  }
  .spotlight-content {
    padding: 0 16px;
    max-width: 100%;
  }
  .spotlight-title {
    font-size: 20px;
  }
  .spotlight-subtitle.hero-overview {
    display: none;
  }
  .hero-nav-arrow {
    display: none;
  }
  .hero-indicators {
    bottom: 14px;
    right: 16px;
  }
  .section-title {
    font-size: 17px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .channel-grid,
  .vod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .matches-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .channel-card {
    height: auto;
    min-height: 128px;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
  }
  .hint-kumanda {
    display: none;
  }
  #quick-zap-drawer {
    width: min(360px, calc(88vw / var(--yz, 1)));
    right: -100%;
  }
  #detail-modal {
    height: 100dvh;
  }
}

.category-pill .category-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-pill .category-count {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.7;
}

.category-pill.active .category-count {
  opacity: 1;
}

.mobil-kategori-btn {
  display: none;
}

@media (max-width: 900px) {
  .category-bar {
    width: 200px;
  }
}

/* Telefon: kategori listesi "Kategori" butonuyla alttan açılır */
@media (max-width: 600px) {
  .content-row {
    display: block;
  }
  .category-bar {
    display: none;
  }
  .category-bar.acik:not([hidden]) {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-height: 72dvh;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    background: rgba(18, 15, 27, 0.97);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6);
    z-index: 960;
  }
  .category-bar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px 10px;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
  }
  .category-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
  }
  .mobil-kategori-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(254, 123, 49, 0.5);
    background: rgba(254, 123, 49, 0.12);
    color: var(--accent-soft);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }
}

/* ==========================================================================
   DOKUNMATİK CİHAZLAR (iOS/Android telefon ve tablet)
   iOS Safari, html/body kilitliyken iç kutuda kaydırmayı sık sık yutuyor; dokunmatikte
   sayfanın kendisi (native) kayar. Masaüstü ve TV (fare/kumanda) etkilenmez.
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: visible;
  }
  #app-container {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  #main-content {
    height: auto;
    overflow: visible;
  }
  .category-bar {
    top: 12px;
  }
  body.oynatici-acik {
    overflow: hidden;
  }
}

/* Yatay telefon/tablet: sol menü kayan sayfada ekranda sabit kalsın */
@media (hover: none) and (pointer: coarse) and (min-width: 601px) {
  #sidebar {
    position: sticky;
    top: 0;
    height: 100dvh;
    align-self: flex-start;
  }
}

/* Liste içi kaydırma iOS'ta akıcı olsun, bitince arkadaki sayfaya taşmasın */
#drawer-channels,
.ps-body,
.ps-nav,
.category-bar {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Kontroller gizliyken görünmeyen butonlar dokunuşu yakalamasın; ilk dokunuş kontrolleri açar */
.player-hud.hidden .hud-interactive {
  pointer-events: none;
}

/* ==========================================================================
   YATAY TELEFON (kısa ekran): oynatıcı kontrolleri tek satır, orta butonlar
   ilerleme çubuğuyla çakışmaz
   ========================================================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .player-hud {
    padding: 14px 24px calc(10px + env(safe-area-inset-bottom));
  }
  .hud-channel-logo {
    height: 36px;
    padding: 4px 10px;
  }
  .hud-channel-text h2 {
    font-size: 18px;
  }
  .hud-channel-text p {
    font-size: 12px;
  }
  .hud-center-controls {
    top: 42%;
    gap: 30px;
  }
  .btn-hud-center-main {
    width: 60px;
    height: 60px;
  }
  .btn-hud-center-main svg {
    width: 30px;
    height: 30px;
  }
  .btn-hud-center-side {
    width: 46px;
    height: 46px;
  }
  .btn-hud-center-side svg {
    width: 22px;
    height: 22px;
  }
  .hud-seek-badge {
    bottom: -17px;
    font-size: 11px;
  }
  .hud-bottom-bar {
    gap: 8px;
  }
  .hud-progress-container {
    margin-bottom: 2px;
  }
  .hud-controls-left {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .btn-hud-action {
    width: 40px;
    height: 40px;
  }
  .btn-hud-action svg {
    width: 19px;
    height: 19px;
  }
  /* Etiketler gizlenir, ikon + title kalır: tek satıra sığsın */
  .btn-hud-pill {
    height: 40px;
    padding: 0 12px;
  }
  .btn-hud-pill .hud-label {
    display: none;
  }
  #hud-stream-stats {
    display: none !important;
  }
  .player-settings-panel {
    top: 10px;
    right: 10px;
    bottom: 10px;
    width: min(520px, calc(100% - 20px));
  }
  .ps-nav {
    width: 116px;
  }
}

/* ==========================================================================
   KAYNAK SEÇİCİ (Start Panel yönetilen M3U'ları = worker manifesti)
   ========================================================================== */
.kaynak-sec-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(254, 123, 49, 0.5);
  background: rgba(254, 123, 49, 0.12);
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kaynak-menu {
  display: none;
  position: fixed;
  width: 320px;
  max-height: calc(60vh / var(--yz, 1));
  overflow-y: auto;
  padding: 8px;
  border-radius: 16px;
  background: rgba(18, 15, 27, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  z-index: 970;
}

.kaynak-menu.acik {
  display: block;
}

.kaynak-menu-head {
  padding: 6px 10px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent);
}

.kaynak-secenek {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #E9E6F2;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.kaynak-secenek:hover {
  background: rgba(255, 255, 255, 0.06);
}

.kaynak-secenek.active {
  background: rgba(254, 123, 49, 0.14);
  border-color: rgba(254, 123, 49, 0.5);
  color: #fff;
}

.kaynak-sayi {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .kaynak-sec-btn {
    max-width: 100%;
    margin-left: 0;
  }
  .kaynak-menu {
    left: 0 !important;
    right: 0;
    top: auto !important;
    bottom: 0;
    width: 100%;
    max-height: 70dvh;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }
}

/* ==========================================================================
   PREMIUM (satış): paketler, ödeme bilgileri, dekont
   ========================================================================== */
.premium-aciklama {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: -6px 0 16px;
  max-width: 760px;
}

.premium-para {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.premium-paketler {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.premium-paket {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  padding: 22px 20px 20px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  background: var(--card-surface);
  color: #fff;
  cursor: pointer;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.premium-paket.one {
  background: linear-gradient(160deg, rgba(254, 123, 49, 0.18), var(--card-surface) 60%);
}

.premium-paket.secili {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(254, 123, 49, 0.35);
}

.premium-rozet {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--accent-soft);
}

.premium-ad {
  font-size: 18px;
  font-weight: 800;
}

.premium-fiyat {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
}

.premium-aylik {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.premium-paket ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.premium-paket li {
  font-size: 13.5px;
  color: #E9E6F2;
}

.premium-paket li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 800;
}

.premium-hata {
  margin-top: 10px;
  font-size: 13px;
  color: var(--accent-red);
}

.premium-kart {
  max-width: 760px;
  margin-bottom: 14px;
}

.premium-blok-baslik {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin: 10px 0 6px;
}

.premium-satir {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.premium-satir > span {
  min-width: 110px;
  color: var(--text-secondary);
}

.premium-satir > strong {
  color: #fff;
  overflow-wrap: anywhere;
}

.premium-satir .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.3px;
}

.premium-uyari {
  margin-top: 10px;
  font-size: 13px;
  color: #FFD27A;
}

.premium-mail {
  display: inline-flex;
  text-decoration: none;
}

.premium-yonlendirme {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(254, 123, 49, 0.08);
  border: 1px solid rgba(254, 123, 49, 0.3);
  font-size: 13.5px;
  color: #fff;
}

/* ==========================================================================
   DUYURU (panelden) ve HAVA DURUMU
   ========================================================================== */
.duyuru-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 6, 14, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
}

.duyuru-kutu {
  width: min(520px, 100%);
  padding: 26px 26px 22px;
  border-radius: 22px;
  background: rgba(20, 17, 30, 0.98);
  border: 1px solid var(--duyuru-renk);
  box-shadow: 0 0 40px color-mix(in srgb, var(--duyuru-renk) 35%, transparent), 0 24px 60px rgba(0, 0, 0, 0.6);
}

.duyuru-etiket {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--duyuru-renk);
}

.duyuru-baslik {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.duyuru-mesaj {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #E9E6F2;
  max-height: calc(50vh / var(--yz, 1));
  overflow-y: auto;
}

.duyuru-kutu .btn-primary-action {
  margin-top: 20px;
}

.duyuru-serit {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 10px 12px 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--duyuru-renk);
  background: rgba(20, 17, 30, 0.85);
}

.duyuru-serit-metin {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #E9E6F2;
}

.duyuru-kapat {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.akan-duyuru-band {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  height: 34px;
  background: rgba(10, 8, 16, 0.82);
  border-bottom: 2px solid var(--duyuru-renk);
  z-index: 1150;
  pointer-events: none;
}

/* Ana ekran kayan bant (oynatıcı kapalıyken altta sabit haber bandı) */
.ana-ekran-akan-band {
  position: fixed;
  left: var(--nav-width, 80px);
  right: 0;
  bottom: 0;
  top: auto;
  border-bottom: none;
  border-top: 2px solid var(--duyuru-renk);
  background: rgba(13, 10, 20, 0.96);
  backdrop-filter: blur(16px);
  z-index: 45;
  pointer-events: auto;
}
@media (max-width: 600px) {
  .ana-ekran-akan-band {
    left: 0;
  }
}
body.oynatici-acik .ana-ekran-akan-band {
  display: none !important;
}

.akan-etiket {
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #0d0a14;
  background: var(--duyuru-renk);
}

.akan-pencere {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.akan-metin {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: #F1F5F9;
  white-space: nowrap;
  will-change: transform;
  animation: akan-kay linear infinite;
  animation-duration: 25s;
}

@keyframes akan-kay {
  from { transform: translateX(var(--akan-baslangic, 100vw)); }
  to { transform: translateX(var(--akan-bitis, -100%)); }
}

.akan-duyuru-band:hover .akan-metin {
  animation-play-state: paused;
}

.hava-widget {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}

.hava-widget[hidden] {
  display: none;
}

.hava-ikon {
  font-size: 18px;
}

.hava-sehir {
  color: var(--text-secondary);
  font-size: 13px;
}

@media (max-width: 600px) {
  .top-action-bar {
    gap: 10px;
  }
  .hava-sehir {
    display: none;
  }
  .hava-widget {
    padding: 8px 10px;
  }
  .duyuru-baslik {
    font-size: 19px;
  }
}

/* Kayan duyuru bandı varken oynatıcı başlığı bandın altına insin */
#player-container:has(#akan-duyuru-band) .player-hud {
  padding-top: 52px;
}

/* EPG: kartta şu anki programın gerçek ilerlemesi */
.epg-ilerleme {
  height: 3px;
  margin-top: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.epg-ilerleme span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.channel-epg {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ==============================================================================
   TEMA SİSTEMİ (THEMES)
   ============================================================================== */

html[data-theme="netflix"] {
  --bg-base: #0f1014;
  --bg-deep: #000000;
  --bg-glow: #212121;
  --card-surface: rgba(32, 32, 32, 0.72);
  --card-surface-hover: rgba(45, 45, 45, 0.85);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-border-focus: #E50914;
  --accent: #E50914;
  --accent-soft: #ff3c45;
  --accent-glow: rgba(229, 9, 20, 0.45);
}

html[data-theme="ocean"] {
  --bg-base: #0b1120;
  --bg-deep: #040914;
  --bg-glow: #1e293b;
  --card-surface: rgba(30, 41, 59, 0.72);
  --card-surface-hover: rgba(51, 65, 85, 0.85);
  --card-border-focus: #0071eb;
  --accent: #0071eb;
  --accent-soft: #3b82f6;
  --accent-glow: rgba(0, 113, 235, 0.45);
}

html[data-theme="forest"] {
  --bg-base: #0d1a16;
  --bg-deep: #060d0b;
  --bg-glow: #1a332a;
  --card-surface: rgba(26, 51, 42, 0.72);
  --card-surface-hover: rgba(36, 68, 57, 0.85);
  --card-border-focus: #10b981;
  --accent: #10b981;
  --accent-soft: #34d399;
  --accent-glow: rgba(16, 185, 129, 0.45);
}

html[data-theme="purple"] {
  --bg-base: #120f1c;
  --bg-deep: #09070e;
  --bg-glow: #2a1f47;
  --card-surface: rgba(42, 31, 71, 0.72);
  --card-surface-hover: rgba(56, 44, 92, 0.85);
  --card-border-focus: #8b5cf6;
  --accent: #8b5cf6;
  --accent-soft: #a78bfa;
  --accent-glow: rgba(139, 92, 246, 0.45);
}

/* ==========================================================================
   NETFLIX-STYLE HOVER PREVIEW
   ========================================================================== */
.hover-preview-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
}
.channel-card, .vod-card {
  position: relative;
  overflow: hidden;
}
.channel-card .card-top, .channel-card .card-middle, .channel-card .card-bottom,
.vod-card .vod-poster-wrap, .vod-card .vod-info-wrap {
  position: relative;
  z-index: 1;
  transition: opacity 0.4s ease, background 0.4s ease;
}
.channel-card.preview-playing .card-middle,
.channel-card.preview-playing .card-bottom,
.vod-card.preview-playing .vod-info-wrap {
  opacity: 0.15; /* Dim details so video is clear */
}
.channel-card.preview-playing .card-top {
  background: rgba(0, 0, 0, 0.65);
  border-radius: 12px;
  padding: 6px;
}
.vod-card.preview-playing .vod-poster-img {
  opacity: 0.2; /* Dim poster image */
}

/* Horizontal VOD List for Modal Similar & Trending */
.horizontal-vod-list {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 10px 36px 20px 36px !important;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(254, 123, 49, 0.3) transparent;
}
.horizontal-vod-list::-webkit-scrollbar {
  height: 6px;
}
.horizontal-vod-list::-webkit-scrollbar-thumb {
  background: rgba(254, 123, 49, 0.4);
  border-radius: 4px;
}
.horizontal-vod-list .vod-card {
  flex: 0 0 min(200px, calc(45vw / var(--yz, 1)));
  width: min(200px, calc(45vw / var(--yz, 1)));
  height: auto;
}
