/* ==========================================================================
   BetPlayer Pro - Patronspor Gold Theme & Clappr Engine
   ========================================================================== */

:root {
  --bg-main: #0c0b09;
  --bg-surface: rgba(18, 15, 12, 0.75);
  --bg-glass: rgba(28, 22, 14, 0.65);
  --primary-accent: #efca45;
  --primary-accent-dark: #c9a227;
  --primary-accent-light: #f8e07a;
  --primary-glow: rgba(239, 202, 69, 0.4);
  --gradient-primary: linear-gradient(135deg, #f8e07a 0%, #efca45 50%, #c9a227 100%);
  --gradient-card: linear-gradient(135deg, rgba(239, 202, 69, 0.1) 0%, rgba(201, 162, 39, 0.08) 100%);
  --gradient-shine: linear-gradient(135deg, #f8e07a 0%, #efca45 50%, #c9a227 100%);
  --text-light: #ffffff;
  --text-muted: #b0b0b0;
  --on-accent: #0c0b09;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(239, 202, 69, 0.4);
  --font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --border-radius: 16px;
  --glass-blur: blur(20px);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding-bottom: 60px;
  overflow-x: hidden;
  width: 100%;
}

.background-link {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.background-link a {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.mobile-top-banner {
  display: none;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 10;
}
.mobile-top-banner img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .mobile-top-banner {
    display: block;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.content-container {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* --- ÜST BAR (MODERN GLASS) --- */
.topmost-bar {
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: #fff;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.8rem;
  min-height: 38px;
  border-bottom: 1px solid rgba(239, 202, 69, 0.2);
}
.topmost-bar-text {
  font-family: var(--font-display);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
}

/* --- SITE HEADER --- */
.site-header {
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 0.6rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  max-width: 1100px;
  margin: 0 auto;
  gap: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.site-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-header .logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
}
.site-header .logo-text span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header-right-action {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-grow: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 10px;
  transition: var(--transition-smooth);
  text-align: center;
  border: 1px solid transparent;
}
.nav-item:hover, .nav-item.active {
  border-color: var(--border-glow);
  color: #fff;
  background: rgba(239, 202, 69, 0.12);
  box-shadow: 0 4px 15px rgba(239, 202, 69, 0.2);
}
.nav-item i {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.header-custom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 10px;
  transition: var(--transition-smooth);
  text-align: center;
  border: 1px solid rgba(239, 202, 69, 0.35);
  background: rgba(239, 202, 69, 0.1);
}
.header-custom-btn:hover {
  border-color: var(--border-glow);
  color: #0c0b09;
  background: var(--gradient-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--primary-glow);
}
.header-custom-btn i {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

/* MOBİL HEADER DÜZENİ */
@media (max-width: 768px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand action"
      "nav   nav";
    padding: 0.6rem 0.8rem;
    gap: 8px 10px;
  }
  .header-branding {
    grid-area: brand;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  .header-branding .logo-text {
    font-size: 1.15rem;
  }
  .header-branding .logo img {
    height: 32px;
  }
  .header-right-action {
    grid-area: action;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  .header-custom-btn {
    flex-direction: row;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.72rem;
    border-radius: 8px;
    min-width: auto;
  }
  .header-custom-btn i {
    font-size: 0.85rem;
    margin-bottom: 0;
  }
  .header-nav {
    grid-area: nav;
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding: 4px 2px;
    margin: 0;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .header-nav::-webkit-scrollbar {
    display: none;
  }
  .nav-item {
    flex: 0 0 auto;
    padding: 6px 12px;
    font-size: 0.7rem;
    border-radius: 8px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.04);
  }
  .nav-item i {
    font-size: 0.95rem;
    margin-bottom: 2px;
  }
}


/* --- HELLOBAR BANNER --- */
.hellobar {
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: #fff;
  text-align: center;
  padding: 0.8rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 1100px;
  width: 100%;
  margin: 1rem 0;
  border-radius: var(--border-radius);
  border: 1px solid rgba(239, 202, 69, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
}
.hellobar a {
  display: block;
  color: var(--primary-accent-light);
  letter-spacing: 0.3px;
}
.hellobar a:hover {
  color: #fff;
}

/* --- MAIN CONTENT & LAYOUT --- */
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  gap: 1.5rem;
}
@media(min-width: 1024px) {
  .content-wrapper {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
  }
}

main {
  width: 100%;
  max-width: 728px;
  position: relative;
}

/* CLAPPR PLAYER CONTAINER */
.player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(239, 202, 69, 0.2);
  border: 1px solid rgba(239, 202, 69, 0.3);
  transition: var(--transition-smooth);
}
#bp-clappr-container {
  width: 100%;
  height: 100%;
  background: #000;
}

/* Clappr tema özelleştirmeleri (Gold seekbar & controls) */
.media-control-layer[data-controls] {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9)) !important;
}
.media-control-seekbar[data-seekbar] .bar-fill-2[data-seekbar] {
  background-color: var(--primary-accent) !important;
}

/* REKLAM KATMANLARI */
.ad-preroll-layer {
  position: absolute;
  inset: 0;
  background: #09080c;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ad-preroll-layer.hidden {
  display: none !important;
}
.ad-media-box {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.ad-top-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.85);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--primary-accent-light);
  border: 1px solid var(--border-glow);
  z-index: 5;
}
.ad-countdown-bar {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
}
.ad-timer-pill {
  background: rgba(0, 0, 0, 0.85);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}
.ad-timer-pill strong {
  color: var(--primary-accent);
}
.btn-skip-ad {
  background: var(--gradient-primary);
  color: #0c0b09;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.ad-pause-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 35;
  background: rgba(18, 15, 12, 0.95);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.85);
  max-width: 90%;
  display: none;
}
.ad-pause-layer.visible {
  display: block;
}
.ad-pause-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}
.ad-pause-img {
  max-width: 480px;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 6px;
  cursor: pointer;
}

/* PLAYER INFO BAR */
.player-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem auto 0.8rem;
  width: 100%;
  flex-wrap: wrap;
}
.player-info {
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  border: 1px solid rgba(239, 202, 69, 0.3);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-size-controls {
  display: inline-flex;
  align-items: center;
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(239, 202, 69, 0.35);
  border-radius: 8px;
  padding: 3px 6px;
  gap: 6px;
}
.size-btn {
  background: rgba(239, 202, 69, 0.15);
  border: 1px solid rgba(239, 202, 69, 0.4);
  color: var(--primary-accent);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 11px;
}
.size-btn:hover {
  background: var(--gradient-primary);
  color: #0c0b09;
  transform: scale(1.08);
}
.size-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  min-width: 58px;
  text-align: center;
  letter-spacing: 0.2px;
}

.cinema-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 1rem;
  background: rgba(239, 202, 69, 0.15);
  border: 1px solid rgba(239, 202, 69, 0.4);
  border-radius: 8px;
  color: var(--primary-accent);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}
.cinema-mode-toggle:hover, .cinema-mode-toggle.active {
  background: var(--gradient-primary);
  color: #0c0b09;
}
.cinema-mode-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* OYNATICI BOYUT KADEMELERİ */
/* 1. Kompakt */
body.player-size-compact .content-container,
body.player-size-compact .site-header,
body.player-size-compact .topmost-bar,
body.player-size-compact .content-wrapper,
body.player-size-compact .hellobar {
  max-width: 980px !important;
}
body.player-size-compact main {
  max-width: 610px !important;
}

/* 2. Standart (Varsayılan): 1100px container / 728px main */
body.player-size-normal main {
  max-width: 728px;
}

/* 3. Geniş (+1) */
body.player-size-wide .content-container,
body.player-size-wide .site-header,
body.player-size-wide .topmost-bar,
body.player-size-wide .content-wrapper,
body.player-size-wide .hellobar {
  max-width: 1250px !important;
}
body.player-size-wide main {
  max-width: 870px !important;
}

/* 4. Dev Ekran (+2) */
body.player-size-xl .content-container,
body.player-size-xl .site-header,
body.player-size-xl .topmost-bar,
body.player-size-xl .content-wrapper,
body.player-size-xl .hellobar {
  max-width: 1400px !important;
}
body.player-size-xl main {
  max-width: 1010px !important;
}

/* SİNEMA MODU (Tam Genişlik 100%) */
body.cinema-mode .content-container,
body.cinema-mode .content-wrapper,
body.cinema-mode main {
  max-width: 100% !important;
  width: 100% !important;
}
body.cinema-mode .content-wrapper {
  flex-direction: column !important;
  align-items: center !important;
}
body.cinema-mode .player-wrapper {
  aspect-ratio: 16 / 9;
  max-height: 82vh;
}
body.cinema-mode aside.channel-list {
  max-width: 100% !important;
  width: 100% !important;
  margin-top: 1.2rem;
  height: 520px;
}

/* --------------------------------------------------------------------------
   ASIDE: SAĞ KANAL LİSTESİ & SEKMELER (PATRONSPOR BİREBİR)
   -------------------------------------------------------------------------- */
aside.channel-list {
  width: 100%;
  max-width: 330px;
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--border-radius);
  border: 1px solid rgba(239, 202, 69, 0.3);
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  height: 600px;
}

.tabs-container {
  display: flex;
  width: 100%;
  background: rgba(18, 15, 12, 0.95);
  border-bottom: 1px solid var(--border-color);
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

.tab-btn {
  flex: 1;
  padding: 0.85rem 0.4rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-transform: uppercase;
}
.tab-btn .tab-icon {
  font-size: 0.95rem;
  opacity: 0.9;
}
.tab-btn:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.04);
}
.tab-btn.active {
  color: #fff;
  background: linear-gradient(180deg, rgba(239, 202, 69, 0.15) 0%, transparent 100%);
}
.tab-btn.active::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px 3px 0 0;
}

.tab-stack {
  font-size: 0.68rem;
  line-height: 1;
}
.tab-stack .ms-line {
  display: block;
}

/* ARAMA BARI */
.search-bar {
  padding: 0.6rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(18, 15, 12, 0.9);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 5;
}
#searchInput {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-main);
  color: #ffffff;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s ease;
}
#searchInput:focus {
  border-color: var(--primary-accent);
}

/* LİSTE ALANI */
#matchList {
  overflow-y: auto;
  flex-grow: 1;
  -webkit-overflow-scrolling: touch;
}
#matchList::-webkit-scrollbar {
  width: 5px;
}
#matchList::-webkit-scrollbar-thumb {
  background: rgba(239, 202, 69, 0.3);
  border-radius: 4px;
}

/* MAÇ ELEMANI (RESİM 1) */
.channel-item {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition-smooth);
  cursor: pointer;
  display: block;
  text-decoration: none;
}
.channel-item:hover {
  background: rgba(239, 202, 69, 0.1);
}
.channel-item.active {
  background: rgba(239, 202, 69, 0.18);
  border-left: 3px solid var(--primary-accent);
}

.match-card-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  position: relative;
  padding-bottom: 34px; /* sol alttaki kanal logosu için yer */
}
.team-box {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}
.team-box.home {
  justify-content: flex-start;
}
.team-box.away {
  justify-content: flex-end;
  flex-direction: row;
}
.match-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}
.team-name {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.15;
  word-break: break-word;
}
.team-box.away .team-name {
  text-align: right;
}

.match-center-info {
  flex-shrink: 0;
  min-width: 65px;
  max-width: 85px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.match-time {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.match-time.live {
  color: #ef4444;
  -webkit-text-fill-color: #ef4444;
  animation: blinker 1.5s linear infinite;
}
.match-separator {
  font-size: 0.75rem;
  color: #777;
}
.league-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  max-width: 100%;
}
.league-icon {
  font-size: 8px;
}
.league-text {
  font-size: 0.52rem;
  font-weight: 600;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 75px;
}

/* KANAL ELEMANI (RESİM 2) */
.channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 42px;
}
.channel-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  overflow: hidden;
  min-width: 0;
}
.tv-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 14px;
  border: 1.2px solid #aaa;
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
}
.tv-icon-box::after {
  content: '';
  width: 0;
  height: 0;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-left: 4px solid #aaa;
}
.channel-name-text {
  font-size: 0.72rem;
  font-weight: 800;
  color: #eee;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.channel-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  min-width: 130px;
}
.channel-live-badge {
  background: var(--primary-accent);
  color: #0c0b09;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.channel-logo-right {
  height: 38px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.9));
}

@keyframes blinker {
  50% { opacity: 0.2; }
}

/* FOOTER */
footer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
footer a {
  color: var(--primary-accent);
  font-weight: 700;
}

/* SEO İÇERİK & MAKALE ALANI */
.seo-content-section {
  width: 100%;
  max-width: 1100px;
  margin: 1.5rem auto 0.5rem;
}
.seo-content-card {
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(239, 202, 69, 0.25);
  border-radius: var(--border-radius);
  padding: 1.5rem 1.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.seo-h1 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-accent-light);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.seo-h2 {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}
.seo-article-body {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}
.seo-article-body p {
  margin-bottom: 0.8rem;
}
.seo-article-body strong {
  color: var(--primary-accent);
}
.seo-faq-container {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(239, 202, 69, 0.2);
}
.seo-faq-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.8rem;
}
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.faq-item {
  background: rgba(18, 15, 12, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.faq-item[open] {
  border-color: rgba(239, 202, 69, 0.4);
}
.faq-question {
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--primary-accent);
  transition: transform 0.2s;
}
.faq-item[open] .faq-question::after {
  content: '−';
}
.faq-answer {
  padding: 0 1rem 0.8rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* Live EPG data freshness and source errors. */
.sports-feed-notice{padding:10px 12px;color:#d6c993;font-size:11px;line-height:1.5;border-bottom:1px solid #574824}
.sports-feed-notice.is-error{color:#fca5a5}
.match-score-note{display:block;font-size:9px;line-height:1.4;color:#b9ad94;max-width:150px}

/* ===== Maç Detay Yan Panelleri (SofaScore) ===== */
.match-side{
  position:fixed; top:84px; bottom:16px; width:320px; z-index:40;
  background:var(--bg-glass);
  backdrop-filter:var(--glass-blur); -webkit-backdrop-filter:var(--glass-blur);
  border:1px solid rgba(239,202,69,.3); border-radius:var(--border-radius);
  box-shadow:0 25px 50px -12px rgba(0,0,0,.5); color:#e8ecf2; overflow:hidden;
  display:none;
}
.match-side-left{ left:14px; }
.match-side-right{ right:14px; }
.match-side[hidden]{ display:none !important; }
@media(min-width:1600px){ .match-side:not([hidden]){ display:block; } }
.msd-wrap{ height:100%; overflow-y:auto; padding:14px 14px 18px; scrollbar-width:thin; }
.msd-wrap::-webkit-scrollbar{ width:6px; } .msd-wrap::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.12); border-radius:3px; }
.msd-close{ position:absolute; top:8px; right:10px; z-index:2; background:rgba(255,255,255,.06); border:0; color:#cbd3dd; width:26px; height:26px; border-radius:7px; font-size:18px; line-height:1; cursor:pointer; }
.msd-close:hover{ background:rgba(239,202,69,.2); color:#fff; }
.msd-loading{ display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; height:100%; color:#9aa6b4; font-weight:600; gap:4px; }

.msd-scoreline{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px; padding:4px 2px 12px; border-bottom:1px solid rgba(255,255,255,.08); margin-bottom:12px; }
.msd-sl-team{ font-size:12px; font-weight:700; text-align:center; line-height:1.2; }
.msd-score{ font-size:24px; font-weight:800; text-align:center; }
.msd-ko{ font-size:15px; font-weight:700; color:#efca45; text-align:center; white-space:nowrap; }
.msd-st{ font-size:10px; color:#9aa6b4; text-transform:uppercase; letter-spacing:.5px; text-align:center; margin-top:2px; display:flex; align-items:center; justify-content:center; gap:5px; }
.msd-st.live{ color:#ff5a5a; }
.msd-dot{ width:7px; height:7px; border-radius:50%; background:#ff3b3b; box-shadow:0 0 0 3px rgba(255,59,59,.22); animation:msdPulse 1.5s infinite; }
@keyframes msdPulse{ 50%{opacity:.4} }

.msd-sec-t{ font-size:11px; font-weight:700; color:#efca45; text-transform:uppercase; letter-spacing:.6px; margin:14px 0 8px; }
.msd-team-head{ display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.msd-team-head img{ width:30px; height:30px; object-fit:contain; }
.msd-team-name{ font-size:14px; font-weight:700; }
.msd-form{ font-size:11px; color:#efca45; font-weight:600; letter-spacing:1px; }
.msd-coach{ font-size:11px; color:#8a95a3; margin-bottom:8px; }
.msd-xi{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; }
.msd-xi li{ display:flex; align-items:center; gap:9px; font-size:12.5px; padding:3px 0; border-bottom:1px solid rgba(255,255,255,.04); }
.msd-num{ width:22px; text-align:center; color:#8a95a3; font-variant-numeric:tabular-nums; flex-shrink:0; }
.msd-pname{ flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.msd-rating{ font-size:11px; font-weight:800; padding:2px 6px; border-radius:5px; font-variant-numeric:tabular-nums; flex-shrink:0; }
.msd-rating.hi{ background:rgba(47,191,143,.18); color:#43d6a3; }
.msd-rating.mid{ background:rgba(239,202,69,.18); color:#efca45; }
.msd-rating.lo{ background:rgba(239,90,111,.18); color:#f0869a; }

.msd-info ul,.msd-goals ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.msd-info li{ font-size:12px; color:#aab4c0; display:flex; align-items:center; gap:8px; }
.msd-info i{ color:#efca45; width:14px; text-align:center; }
.msd-goals li{ font-size:12px; display:flex; gap:7px; align-items:center; }
.msd-goals li.a{ color:#9aa6b4; }
.msd-gmin{ color:#efca45; font-weight:700; font-variant-numeric:tabular-nums; min-width:28px; }

/* kadro henüz yoksa (maç öncesi) boş ul gizlensin gibi küçük dokunuş */
.msd-xi:empty::after{ content:"Kadro henüz açıklanmadı"; font-size:11.5px; color:#8a95a3; }

/* ===== Diziliş Sahası (player üstü katman) ===== */
.pitch-toggle{
  position:absolute; top:10px; right:10px; z-index:14;
  display:inline-flex; align-items:center; gap:6px;
  background:var(--bg-glass); backdrop-filter:var(--glass-blur);
  border:1px solid rgba(239,202,69,.4); color:#f8e07a;
  font-size:12px; font-weight:800; padding:7px 12px; border-radius:8px; cursor:pointer;
  text-transform:uppercase; letter-spacing:.4px;
}
.pitch-toggle[hidden]{ display:none; }
.pitch-toggle:hover{ background:rgba(239,202,69,.18); color:#fff; }

.pitch-overlay{
  position:absolute; inset:0; z-index:15; overflow:hidden;
  background:linear-gradient(180deg,#0a2415 0%,#0e3019 50%,#0a2415 100%);
  border-radius:inherit;
  display:flex; flex-direction:column;
}
.pitch-overlay[hidden]{ display:none; }
.pf-close{
  position:absolute; top:8px; right:10px; z-index:3;
  background:rgba(0,0,0,.45); border:1px solid rgba(255,255,255,.15); color:#fff;
  width:30px; height:30px; border-radius:8px; font-size:20px; line-height:1; cursor:pointer;
}
.pf-close:hover{ background:rgba(239,202,69,.3); }
.pf-head{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:9px 48px 9px 14px; background:rgba(10,20,14,.7);
  border-bottom:1px solid rgba(239,202,69,.25); flex-shrink:0;
}
.pf-head .pf-t{ font-size:13px; font-weight:800; color:#fff; flex:1; }
.pf-head .pf-t:last-child{ text-align:right; }
.pf-head .pf-sc{ font-size:14px; font-weight:800; color:#f8e07a; padding:0 10px; white-space:nowrap; }

.pf-pitch{
  flex:1; position:relative; display:flex; flex-direction:row;
  background-image:repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 6%, transparent 6% 12%);
  padding:6px 4px;
}
.pf-line{ width:0; align-self:stretch; border-left:1px dashed rgba(255,255,255,.3); margin:7% 0; }
.pf-half{ flex:1; display:flex; min-width:0; }
.pf-half.home{ flex-direction:row; }
.pf-half.away{ flex-direction:row-reverse; }
.pf-row{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:space-around; min-width:0; }
.pf-p{ display:flex; flex-direction:column; align-items:center; gap:2px; width:100%; }
.pf-dot{
  position:relative; width:40px; height:40px; border-radius:50%;
  background:radial-gradient(circle at 35% 30%, #2a2f3a, #10131a);
  border:2px solid rgba(239,202,69,.5);
}
.pf-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:50%; background:#1a1f28; }
.pf-badge{
  position:absolute; top:-4px; left:-4px; min-width:16px; height:16px; padding:0 3px;
  background:#0d1118; border:1px solid rgba(239,202,69,.5); border-radius:8px;
  font-size:9.5px; font-weight:800; color:#f8e07a; display:flex; align-items:center; justify-content:center; z-index:3;
}
.pf-rt{
  margin-top:-8px; z-index:2; font-size:10px; font-weight:800; padding:1px 5px; border-radius:5px;
  font-variant-numeric:tabular-nums;
}
.pf-rt.hi{ background:#2fbf8f; color:#06231a; }
.pf-rt.mid{ background:#e8bd3f; color:#241a02; }
.pf-rt.lo{ background:#ef5a6f; color:#2a0810; }
.pf-nm{ font-size:10px; color:#eef2f6; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:88px; text-shadow:0 1px 2px rgba(0,0,0,.9); }
@media(max-width:640px){
  .pf-dot{ width:30px; height:30px; } .pf-badge{ font-size:8px; min-width:14px; height:14px; }
  .pf-nm{ font-size:8.5px; max-width:60px; } .pf-rt{ font-size:9px; }
}

/* ===== Maç Detay Bildirim Şeridi (MAÇLAR üstü) ===== */
.match-list-note{
  margin:0; padding:9px 12px; font-size:12px; font-weight:600; line-height:1.35;
  color:#f8e07a; background:rgba(239,202,69,.1);
  border-bottom:1px solid rgba(239,202,69,.25);
  display:flex; align-items:center; gap:8px; flex-shrink:0;
}
.match-list-note[hidden]{ display:none; }
.match-list-note::before{ content:"ⓘ"; font-size:13px; opacity:.9; }
.match-list-note.is-error{
  color:#ffb3bd; background:rgba(239,90,111,.14); border-bottom-color:rgba(239,90,111,.32);
}
.match-list-note.is-error::before{ content:"⚠"; }

/* Maç satırında yayıncı kanal çipi */
.match-ch{
  display:inline-flex; align-items:center; gap:4px; margin-top:4px;
  font-size:10.5px; font-weight:700; color:#f8e07a;
  background:rgba(239,202,69,.12); border:1px solid rgba(239,202,69,.25);
  padding:2px 7px; border-radius:6px; max-width:100%;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.match-ch i{ font-size:9px; opacity:.85; }
.match-ch-logo{ width:16px; height:16px; object-fit:contain; border-radius:3px; flex-shrink:0; }
/* Sadece logo (kanal adı gizli) — ev sahibi takım logosunun altına hizalı (sol alt) */
.match-ch.logo-only{ position:absolute; left:0; bottom:0; margin:0; background:none; border:0; padding:0; }
.match-ch.logo-only .match-ch-logo{ width:26px; height:26px; border-radius:0; }

/* ===== Seçili maç satırı içindeki künye (Hafta·Stadyum·Hakem + Goller) ===== */
.match-row-info{
  margin:9px 2px 0; padding:9px 2px 0;
  background:none; border:0; border-top:1px solid rgba(239,202,69,.22); border-radius:0;
  display:flex; flex-direction:column; gap:7px; animation:mriIn .2s ease;
}
@keyframes mriIn{ from{opacity:0; transform:translateY(-4px);} to{opacity:1; transform:none;} }
.mri-meta{ display:flex; flex-direction:column; gap:4px; }
.mri-meta span{ font-size:11px; color:#cbd3dd; display:flex; align-items:center; gap:7px; }
.mri-meta i{ color:#f8e07a; width:13px; text-align:center; font-size:10px; flex-shrink:0; }
.mri-goals{ display:flex; flex-direction:column; gap:3px; border-top:1px solid rgba(255,255,255,.08); padding-top:6px; }
.mri-goals span{ font-size:11px; color:#e8ecf2; }
.mri-goals span.a{ color:#9aa6b4; }

/* ===== Seçili (aktif) maç kartı — cilalı, büyük logolu ===== */
.channel-item.active{ padding:12px 12px 11px; }
.channel-item.active .match-card-container{ padding-bottom:0; }           /* alt kanal logosu artık ortada */
.channel-item.active .match-logo{ width:40px; height:40px; }             /* takım logoları büyür */
.channel-item.active .team-name{ font-size:0.8rem; }
.channel-item.active .match-time{ font-size:1.05rem; }
.channel-item.active .match-separator{ font-size:1.05rem; font-weight:800; }
.channel-item.active .league-row{ margin-top:5px; }
/* kanal logosu: aktif kartta akışa döner, ortalanır ve büyür */
.channel-item.active .match-ch.logo-only{ position:static; left:auto; bottom:auto; margin:8px auto 0; display:flex; justify-content:center; }
.channel-item.active .match-ch.logo-only .match-ch-logo{ width:32px; height:32px; }
/* künye meta: satır içi, altın ikonlu, hafif */
.channel-item.active .mri-meta span{ font-size:11.5px; color:#dbe2ea; }

/* Aktif kartta lig ikonu/yazısı ve kanal logosu büyür (takım logolarıyla orantılı) */
.channel-item.active .league-icon{ font-size:16px; }
.channel-item.active .league-text{ font-size:0.72rem; color:#aeb6c0; max-width:160px; }
.channel-item.active .league-row{ gap:7px; margin-top:7px; }
.channel-item.active .match-ch.logo-only{ margin:9px auto 0; }
.channel-item.active .match-ch.logo-only .match-ch-logo{ width:40px; height:40px; }

/* Künye yüklenince lig bilgisi ortadan kalkar (künyede "Lig · Hafta" olarak görünür);
   ortada yalnızca takım logolarıyla aynı boyutta kanal logosu kalır */
.channel-item.active:has(.match-row-info) .league-row{ display:none; }
.channel-item.active .match-ch.logo-only{ margin:10px auto 0; }
.channel-item.active .mri-meta .mri-league{ color:#efca45; font-weight:600; }

/* Kanal logoları yatay (≈2:1). Kare kutuya sığınca küçük kalıyordu:
   yüksekliği takım logosuna eşitle, genişlik oranına göre uzasın. */
.match-ch.logo-only{ width:auto; height:auto; }
.match-ch.logo-only .match-ch-logo{ height:26px; width:auto; max-width:64px; object-fit:contain; }
.channel-item.active .match-ch.logo-only{ width:auto; height:auto; }
.channel-item.active .match-ch.logo-only .match-ch-logo{ height:40px; width:auto; max-width:96px; }

/* Seçili kart: logo üstte, ad altta (skorbord düzeni). Ad tam genişliği kullanır,
   kelime ortasından KIRILMAZ ("Konyaspo/r" olmaz), yalnızca boşluklardan alt satıra geçer. */
.channel-item.active .team-box{ flex-direction:column; justify-content:center; align-items:center; gap:5px; text-align:center; }
.channel-item.active .team-box.away{ flex-direction:column-reverse; }
.channel-item.active .team-name,
.channel-item.active .team-box.away .team-name{ text-align:center; word-break:normal; overflow-wrap:normal; max-width:100%; }
