/* ==========================================================================
   OBSIDIAN PITCH DESIGN SYSTEM - LIVEFOOTBALL.GR
   Elite Sports Broadcast Luxury + Real-Time Telemetry
   ========================================================================== */

:root {
  /* Surface Tokens */
  --surface: #111318;
  --surface-dim: #111318;
  --surface-bright: #37393f;
  --surface-container-lowest: #0c0e13;
  --surface-container-low: #1a1b21;
  --surface-container: #1e1f25;
  --surface-container-high: #282a2f;
  --surface-container-highest: #33353a;
  
  /* Background / Canvas */
  --c-bg: #08090C;
  --c-surf: #111318;
  --c-card: #14171F;
  --c-card-elevated: #1D222E;
  
  /* Text / Contrast Tokens */
  --on-surface: #e2e2e9;
  --on-surface-variant: #b9cbb9;
  --c-text: #e2e2e9;
  --c-muted: #9aa2af;
  --c-dim: #64748b;
  
  /* Primary & Kinetic Accent Tokens */
  --primary: #f1ffef;
  --primary-container: #00ff87;
  --surface-tint: #00e478;
  --c-live: #00FF87;              /* Live kinetic pulse & primary accent */
  --c-live-rgb: 0, 255, 135;
  --c-emerald: #10B981;           /* Form win & checkmarks */
  --secondary: #4edea3;
  --tactical-cyan: #38BDF8;       /* Stats, xG, info */
  
  /* Status / Alert Tokens */
  --c-red: #EF4444;               /* Red card, cancel, alert */
  --c-warning: #F59E0B;           /* Yellow card, caution */
  --outline: #849585;
  --outline-variant: #3b4b3d;
  
  /* Translucent Glass & Borders */
  --c-border: rgba(255, 255, 255, 0.08);
  --c-border-subtle: rgba(255, 255, 255, 0.05);
  --c-border-hover: rgba(0, 255, 135, 0.35);
  --glass-bg: rgba(20, 23, 31, 0.72);
  --glass-blur: 16px;
  
  /* Typography Families */
  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, sans-serif;
  
  /* Radius */
  --r-sm: 0.25rem;
  --r-base: 0.5rem;
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-full: 9999px;

  /* Shadows */
  --shadow-card: 0 12px 32px -4px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 16px rgba(0, 255, 135, 0.35);
  --shadow-subtle: 0 4px 16px rgba(0, 0, 0, 0.4);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--c-bg);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 255, 135, 0.035) 0%, transparent 60%),
    radial-gradient(circle at 100% 50%, rgba(56, 189, 248, 0.02) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--c-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

img, svg {
  max-width: 100%;
  height: auto;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button, input {
  font: inherit;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.skip {
  position: absolute;
  top: -100px;
  background: var(--c-live);
  color: #08090C;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--r-base);
  z-index: 100;
  transition: top 0.2s ease;
}
.skip:focus {
  top: 12px;
  left: 12px;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 768px) {
  .wrap {
    padding: 0 1rem;
  }
}

.muted {
  color: var(--c-muted);
}
.small {
  font-size: 13px;
  line-height: 18px;
}

/* ==========================================================================
   Header & Navigation (Glass Broadcast Bar)
   ========================================================================== */

.hdr {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.hdr-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 68px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
}
.brand:hover {
  text-decoration: none;
}
.brand .dot {
  width: 9px;
  height: 9px;
  background: var(--c-live);
  border-radius: var(--r-full);
  display: inline-block;
  box-shadow: 0 0 12px var(--c-live);
  animation: pulse-glow 2s infinite ease-in-out;
}
.brand .gr {
  color: var(--c-live);
  font-weight: 700;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px var(--c-live);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.15);
    box-shadow: 0 0 18px var(--c-live);
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-container-low);
  padding: 4px;
  border-radius: var(--r-full);
  border: 1px solid var(--c-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  padding: 7px 16px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--on-surface-variant);
  white-space: nowrap;
  transition: all 0.18s ease;
}
.nav a:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}
.nav a[aria-current="page"] {
  background: var(--surface-container-highest);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}
.nav a.nav-live {
  color: var(--c-live);
  position: relative;
}
.nav a.nav-live::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--c-live);
  border-radius: var(--r-full);
  margin-left: 6px;
  box-shadow: 0 0 8px var(--c-live);
}

.search {
  position: relative;
  flex-grow: 1;
  max-width: 280px;
  min-width: 180px;
}
.search input {
  width: 100%;
  padding: 9px 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--c-border);
  background: var(--surface-container-low);
  color: var(--on-surface);
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}
.search input::placeholder {
  color: var(--c-dim);
}
.search input:focus {
  border-color: var(--c-live);
  box-shadow: 0 0 0 1px var(--c-live), 0 0 16px rgba(0, 255, 135, 0.15);
  background: var(--surface-container);
}
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface-container);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  z-index: 60;
  max-height: 320px;
  overflow-y: auto;
}
.search-results:empty {
  display: none;
}
.search-results li {
  border-bottom: 1px solid var(--c-border);
}
.search-results li:last-child {
  border-bottom: none;
}
.search-results a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
}
.search-results a:hover,
.search-results a[aria-selected="true"] {
  background: var(--surface-container-high);
  color: var(--c-live);
  text-decoration: none;
}

/* ==========================================================================
   Main Grid Layout
   ========================================================================== */

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
}
@media (min-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}
.main-col {
  min-width: 0;
}
.side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ==========================================================================
   Typography Hierarchy
   ========================================================================== */

.h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem 0;
  color: #FFFFFF;
}
@media (max-width: 768px) {
  .h1 {
    font-size: 26px;
    line-height: 32px;
  }
}

.h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.01em;
  margin: 2rem 0 1rem 0;
  color: #FFFFFF;
}

/* ==========================================================================
   Day Navigator & Filter Rails
   ========================================================================== */

.daynav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
}
.daynav-arrow {
  padding: 8px 12px;
  border-radius: var(--r-full);
  background: var(--surface-container-low);
  border: 1px solid var(--c-border);
  font-size: 16px;
  font-weight: 700;
  color: var(--on-surface-variant);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}
.daynav-arrow:hover {
  background: var(--surface-container-high);
  color: #FFFFFF;
  text-decoration: none;
}
.daynav-rail {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  padding: 2px 0;
}
.daynav-rail::-webkit-scrollbar {
  display: none;
}
.daynav-rail a {
  padding: 7px 14px;
  border-radius: var(--r-full);
  background: var(--surface-container-low);
  border: 1px solid var(--c-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface-variant);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s ease;
  text-decoration: none;
}
.daynav-rail a:hover {
  background: var(--surface-container-high);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.15);
}
.daynav-rail a.is-today {
  border-color: rgba(0, 255, 135, 0.4);
}
.daynav-rail a[aria-current="date"] {
  background: var(--surface-container-highest);
  color: #FFFFFF;
  border-color: var(--c-live);
  box-shadow: 0 0 12px rgba(0, 255, 135, 0.25);
}

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar {
  display: none;
}

.chip {
  background: var(--surface-container-low);
  color: var(--on-surface-variant);
  border: 1px solid var(--c-border);
  padding: 7px 15px;
  border-radius: var(--r-full);
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.18s ease;
}
.chip:hover {
  background: var(--surface-container-high);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}
.chip[aria-pressed="true"] {
  background: var(--c-card-elevated);
  color: #FFFFFF;
  border-color: var(--c-live);
  box-shadow: 0 0 12px rgba(0, 255, 135, 0.2);
}

.fresh {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 13px;
  color: var(--c-muted);
}

/* ==========================================================================
   Match Modules & Competition Panels
   ========================================================================== */

.comp {
  margin-bottom: 1.5rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  overflow: hidden;
  background: var(--surface-container-low);
  box-shadow: var(--shadow-subtle);
}

.comp-h {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  padding: 12px 16px;
  background: var(--surface-container);
  border-bottom: 1px solid var(--c-border);
  color: var(--on-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.comp-h a:hover {
  color: var(--c-live);
  text-decoration: none;
}

.rows {
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   Match Row Component (Precision Athletic Card)
   ========================================================================== */

.row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--c-border-subtle);
  background: var(--surface-container-lowest);
  transition: background 0.18s ease, border-color 0.18s ease;
  position: relative;
}
.row:last-child {
  border-bottom: none;
}
.row:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Live Active Indicator */
.row.is-live {
  background: rgba(0, 255, 135, 0.025);
  box-shadow: inset 3px 0 0 var(--c-live);
}
.row.is-live::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--c-live);
  box-shadow: 0 0 10px var(--c-live);
}

.row-link {
  flex: 1;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  min-width: 0;
  transition: background 0.15s ease;
}
.row-link:hover {
  text-decoration: none;
}
@media (min-width: 640px) {
  .row-link {
    grid-template-columns: 84px 1fr 60px auto;
    gap: 12px;
    padding: 12px 16px;
  }
}
@media (min-width: 960px) {
  .row-link {
    grid-template-columns: 96px 1fr 70px 140px;
  }
}

.tv-row-link {
  grid-template-columns: 54px 1fr auto !important;
}
@media (min-width: 640px) {
  .tv-row-link {
    grid-template-columns: 70px 1fr auto !important;
  }
}

.r-time {
  font-size: 12px;
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .r-time {
    font-size: 13px;
  }
}
.r-time time {
  font-weight: 500;
}

.r-teams {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.r-team {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface);
}

.ini {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  background: var(--surface-container-high);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--on-surface-variant);
  border: 1px solid var(--c-border);
  flex-shrink: 0;
}

.r-score {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--on-surface);
}
.is-live .r-score {
  color: var(--c-live);
  text-shadow: 0 0 10px rgba(0, 255, 135, 0.4);
}

.r-tv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--on-surface-variant);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(22, 27, 38, 0.8);
  border: 1px solid var(--c-border);
  padding: 3px 8px;
  border-radius: var(--r-full);
}
.tv-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  height: 18px;
  flex-shrink: 0;
}
.tv-logo-badge img {
  height: 14px;
  width: auto;
  max-width: 55px;
  object-fit: contain;
  display: block;
}
@media (max-width: 639px) {
  .r-tv {
    padding: 2px 6px;
    font-size: 10px;
  }
  .tv-logo-badge {
    height: 16px;
    padding: 1px 4px;
  }
  .tv-logo-badge img {
    height: 12px;
    max-width: 45px;
  }
}
@media (min-width: 640px) {
  .r-tv {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 170px;
    justify-self: end;
  }
}

/* ==========================================================================
   TV Guide Layout (Sport24 & ProgrammaTV style)
   ========================================================================== */

/* Top Live Now Section */
.tv-live-now-section {
  margin-bottom: 2rem;
  padding: 0;
}

.tv-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tv-live-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: #EF4444;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tv-live-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) {
  .tv-live-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 990px) {
  .tv-live-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tv-live-card {
  background: var(--surface-container);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--r-base);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.tv-live-card:hover {
  background: var(--surface-container-high);
  border-color: #EF4444;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.15);
}

.tv-live-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.tv-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #EF4444;
  background: rgba(239, 68, 68, 0.12);
  padding: 2px 7px;
  border-radius: var(--r-full);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.tv-live-card-teams {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.tv-live-team {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
}
.tv-live-team--home {
  color: #FFFFFF;
}

.tv-live-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--c-border-subtle);
  padding-top: 8px;
  margin-top: 2px;
}

.tv-program-container {
  background: var(--surface-container-low);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.tv-program-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tv-row {
  border-bottom: 1px solid var(--c-border-subtle);
  background: var(--surface-container-lowest);
  transition: all 0.18s ease;
  position: relative;
}
.tv-row:last-child {
  border-bottom: none;
}
.tv-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Live Broadcast Highlight (Glowing accent + badge like programmatv.gr) */
.tv-row--live {
  background: rgba(239, 68, 68, 0.04) !important;
  box-shadow: inset 4px 0 0 #EF4444;
}
.tv-row--live:hover {
  background: rgba(239, 68, 68, 0.07) !important;
}

.tv-match-link {
  display: flex !important;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 16px !important;
  width: 100%;
  text-decoration: none !important;
}

.tv-col-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 76px;
  flex-shrink: 0;
  padding-top: 2px;
}
.tv-time-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--on-surface);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.tv-row--live .tv-time-text {
  color: #EF4444;
}

/* Live pulsing badge */
.tv-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #EF4444;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(239, 68, 68, 0.12);
  padding: 2px 6px;
  border-radius: var(--r-full);
}
.tv-live-dot {
  width: 6px;
  height: 6px;
  background: #EF4444;
  border-radius: 50%;
  display: inline-block;
  animation: live-pulse 1.4s infinite ease-in-out;
}

@keyframes live-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 4px #EF4444;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.6;
    box-shadow: 0 0 10px #EF4444;
  }
}

.tv-col-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Teams row: horizontal with wrap so long names fall on the next line */
.tv-teams-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1.35;
}
.tv-team {
  display: inline-block;
  word-break: break-word;
}
.tv-team--home {
  color: #FFFFFF;
}
.tv-team--away {
  color: var(--on-surface);
}
.tv-sep {
  color: var(--c-muted);
  font-weight: 400;
}

/* Metadata row below teams: Channel pill + competition tag */
.tv-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.tv-channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-container-high);
  border: 1px solid var(--c-border);
  padding: 3px 8px;
  border-radius: var(--r-full);
  max-width: 100%;
  min-width: 0;
  transition: all 0.18s ease;
}
.tv-channel-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--on-surface-variant);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-comp-tag {
  font-size: 11px;
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 639px) {
  .tv-match-link {
    padding: 10px 12px !important;
    gap: 10px;
  }
  .tv-col-time {
    width: 48px;
  }
  .tv-time-text {
    font-size: 14px;
  }
  .tv-teams-wrapper {
    font-size: 13.5px;
    gap: 2px 6px;
  }
  .tv-channel-pill {
    padding: 2px 6px;
    gap: 4px;
  }
  .tv-channel-name {
    font-size: 10.5px;
  }
  .tv-comp-tag {
    font-size: 10.5px;
  }
}

.fav {
  background: none;
  border: none;
  color: var(--c-dim);
  font-size: 1.15rem;
  padding: 8px 10px;
  cursor: pointer;
  transition: color 0.18s ease;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .fav {
    padding: 12px 14px;
  }
}
.fav:hover {
  color: #FFFFFF;
}
.fav[aria-pressed="true"] {
  color: #F59E0B;
}

/* ==========================================================================
   Badges & Micro-Pills
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.badge.live {
  background: rgba(0, 255, 135, 0.12);
  color: var(--c-live);
  border: 1px solid rgba(0, 255, 135, 0.4);
  box-shadow: 0 0 10px rgba(0, 255, 135, 0.2);
}
.badge.live span {
  animation: pulse-glow 1.5s infinite;
}

.badge.delayed {
  background: rgba(255, 255, 255, 0.05);
  color: var(--on-surface-variant);
  border: 1px solid var(--c-border);
}

.badge.st-half-time,
.badge.st-extra-time {
  background: rgba(0, 255, 135, 0.12);
  color: var(--c-live);
  border: 1px solid rgba(0, 255, 135, 0.3);
}

.badge.st-finished {
  background: rgba(255, 255, 255, 0.04);
  color: var(--c-muted);
  border: 1px solid var(--c-border-subtle);
}

.badge.st-postponed,
.badge.st-cancelled,
.badge.st-abandoned,
.badge.st-suspended {
  background: rgba(239, 68, 68, 0.15);
  color: var(--c-red);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   Match Center Hero (Scoreboard Lg)
   ========================================================================== */

.match-hdr {
  text-align: center;
  padding: 2.25rem 1.5rem;
  background: var(--surface-container-low);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}
.match-hdr::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 135, 0.4), transparent);
}

.crumbs {
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 1.25rem;
}
.crumbs a:hover {
  color: var(--c-live);
}

.m-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}
.m-team {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.m-team .ini-lg {
  width: 52px;
  height: 52px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: var(--r-md);
  background: var(--surface-container-high);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: var(--shadow-subtle);
  flex-shrink: 0;
}
.m-tname {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}
.m-tname a {
  color: #FFFFFF;
  display: block;
}

.m-score {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 100px;
  padding: 0 4px;
}
.m-st {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.is-live .m-st {
  color: var(--c-live);
}

.m-num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 42px;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  white-space: nowrap;
}
.is-live .m-num {
  color: var(--c-live);
  text-shadow: 0 0 20px rgba(0, 255, 135, 0.45);
}
.m-time {
  font-size: 12px;
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 639px) {
  .match-hdr {
    padding: 1.25rem 0.75rem;
  }
  .m-teams {
    gap: 8px;
  }
  .m-team .ini-lg {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
  .m-tname {
    font-size: 0.92rem;
    line-height: 1.2;
  }
  .m-score {
    min-width: 76px;
    gap: 2px;
  }
  .m-num {
    font-size: 28px;
    line-height: 32px;
  }
  .m-time {
    font-size: 11px;
  }
}

/* ==========================================================================
   Tabs Component
   ========================================================================== */

.tabs {
  display: flex;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  gap: 8px;
}
.tabs button {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--on-surface-variant);
  padding: 12px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.tabs button:hover:not([aria-selected="true"]) {
  color: #FFFFFF;
}
.tabs button[aria-selected="true"] {
  color: #FFFFFF;
  border-bottom-color: var(--c-live);
}

/* ==========================================================================
   Timeline & Tactical Events
   ========================================================================== */

.timeline {
  list-style: none;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--c-border);
  transform: translateX(-50%);
}
.timeline li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  position: relative;
}
.tl-h {
  flex-direction: row;
}
.tl-a {
  flex-direction: row-reverse;
  text-align: right;
}
.tl-min {
  width: 44%;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
}
.tl-a .tl-min {
  text-align: left;
}
.tl-icon {
  width: 26px;
  height: 26px;
  background: var(--surface-container-high);
  border: 2px solid var(--c-border);
  border-radius: var(--r-full);
  z-index: 2;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.tl-goal {
  border-color: var(--c-live);
  background: var(--c-live);
  box-shadow: 0 0 10px rgba(0, 255, 135, 0.5);
}
.tl-yellow_card {
  background: var(--c-warning);
  border-color: var(--c-warning);
}
.tl-red_card {
  background: var(--c-red);
  border-color: var(--c-red);
}
.tl-det {
  width: 44%;
  font-size: 14px;
}

.stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stats li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-container-low);
  padding: 10px 18px;
  border-radius: var(--r-base);
  border: 1px solid var(--c-border-subtle);
}
.st-key {
  font-size: 12px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.st-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  width: 44px;
  text-align: center;
  color: #FFFFFF;
}

/* ==========================================================================
   Lineups Component
   ========================================================================== */

.lineups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) {
  .lineups {
    grid-template-columns: 1fr 1fr;
  }
}
.lu-list {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}
.lu-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--c-border-subtle);
  font-size: 14px;
}
.lu-no {
  display: inline-block;
  width: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--c-muted);
}

/* ==========================================================================
   Card Surfaces & Sidebar Elements
   ========================================================================== */

.card {
  background: var(--surface-container-low);
  padding: 1.25rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-subtle);
}

.card-h {
  font-family: var(--font-display);
  font-size: 13px;
  margin: 0 0 1rem 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 10px;
}

.news-list {
  list-style: none;
  padding: 0;
}
.news-list li {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-border-subtle);
}
.news-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.news-list a {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: block;
  margin-bottom: 5px;
  color: var(--on-surface);
}
.news-list a:hover {
  color: var(--c-live);
  text-decoration: none;
}

.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--c-muted);
  background: var(--surface-container-low);
  border-radius: var(--r-lg);
  border: 1px dashed var(--c-border);
}

/* ==========================================================================
   League Standings Table
   ========================================================================== */

.table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  background: var(--surface-container-low);
}
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
.table th,
.table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-border-subtle);
}
.table th {
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--surface-container);
}
.table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.hover-card {
  background: var(--surface-container-low);
  padding: 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  transition: all 0.2s ease;
}
.hover-card:hover {
  border-color: var(--c-border-hover);
  background: var(--surface-container);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}
.hover-card h2 {
  font-family: var(--font-display);
  margin: 0 0 6px 0;
  font-size: 1.15rem;
  color: #FFFFFF;
}
.hover-card p {
  margin: 0;
  font-size: 13px;
  color: var(--c-muted);
}

.form-Ν { color: var(--c-live); font-weight: 700; }
.form-Η { color: var(--c-red); font-weight: 700; }
.form-Ι { color: var(--c-muted); font-weight: 700; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  background: var(--c-live);
  border: none;
  color: #08090C;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:hover {
  background: #60ff98;
  box-shadow: 0 0 16px rgba(0, 255, 135, 0.4);
  text-decoration: none;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--c-border);
  color: #FFFFFF;
}
.btn-secondary:hover {
  background: var(--surface-container-highest);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

/* ==========================================================================
   Ads Placeholder
   ========================================================================== */

.ad-slot {
  background: var(--surface-container-low);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-dim);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--c-border);
  border-radius: var(--r-base);
}
.ad-slot::after {
  content: "ΔΙΑΦΗΜΙΣΗ";
}
.ad-728 {
  width: 100%;
  height: 90px;
  margin: 24px auto;
  max-width: 728px;
}
.ad-300 {
  width: 300px;
  height: 250px;
  margin: 0 auto;
}

/* ==========================================================================
   Editorial Article Body
   ========================================================================== */

.article-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--on-surface);
}
.article-body p {
  margin-bottom: 1.5em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.ftr {
  background: var(--surface-container-lowest);
  border-top: 1px solid var(--c-border);
  padding: 48px 0;
  margin-top: 48px;
  text-align: center;
  color: var(--c-muted);
  font-size: 13px;
}
.ftr p {
  margin-bottom: 8px;
}
.ftr strong {
  color: #FFFFFF;
}
.ftr a {
  color: var(--on-surface-variant);
  text-decoration: underline;
  margin: 0 8px;
}
.ftr a:hover {
  color: var(--c-live);
}

/* ==========================================================================
   Fullpage Layout & Obsidian Pitch Login Card
   ========================================================================== */

.fullpage-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--surface-dim);
  display: flex;
  flex-direction: column;
}

.fullpage-body #main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.login-wrapper {
  flex: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: radial-gradient(circle at 50% 20%, rgba(0, 255, 135, 0.05) 0%, transparent 60%), var(--surface-dim);
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface-container-low);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-live), transparent);
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--r-full);
  background: rgba(0, 255, 135, 0.08);
  color: var(--c-live);
  border: 1px solid rgba(0, 255, 135, 0.25);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.login-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.login-sub {
  font-size: 13px;
  color: var(--on-surface-variant);
  margin-bottom: 24px;
  line-height: 1.4;
}

.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 75, 75, 0.12);
  border: 1px solid rgba(255, 75, 75, 0.35);
  color: #FF6B6B;
  padding: 10px 14px;
  border-radius: var(--r-base);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  text-align: left;
}

.login-form {
  text-align: left;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 6px;
}

.label-with-hint {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.label-with-hint .form-label {
  margin-bottom: 0;
}

.form-hint {
  font-size: 12px;
  color: var(--c-dim);
}

.input-wrap {
  position: relative;
  width: 100%;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  border-radius: var(--r-base);
  border: 1px solid var(--c-border);
  background: var(--surface-container);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 14px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--c-live);
  background: var(--surface-container-high);
  box-shadow: 0 0 0 3px rgba(0, 255, 135, 0.15);
}

.form-input::placeholder {
  color: var(--c-dim);
}

.login-btn {
  width: 100%;
  height: 46px;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--c-live);
  color: #08090C;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: var(--r-base);
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.login-btn:hover {
  background: #33FF9E;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 255, 135, 0.3);
}

.login-btn:active {
  transform: translateY(0);
}

.login-footer {
  margin-top: 24px;
  text-align: center;
}

.login-back {
  font-size: 12px;
  color: var(--on-surface-variant);
  transition: color 0.15s ease;
}

.login-back:hover {
  color: var(--c-live);
}

