:root {
  --bg-primary: #f1f4f9;
  --bg-surface: #ffffff;
  --bg-card-meta: #f8fafc;
  --bg-hover: #f1f5f9;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --brand-red: #991b1b;
  --brand-red-dark: #7f1d1d;
  --brand-red-light: #fef2f2;
  --brand-accent: #dc2626;

  --live-color: #ef4444;
  --live-bg: #fee2e2;
  --upcoming-color: #2563eb;
  --upcoming-bg: #eff6ff;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 8px rgba(15, 23, 42, 0.06);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

[data-theme="dark"] {
  --bg-primary: #0b0f19;
  --bg-surface: #151d2e;
  --bg-card-meta: #0e1524;
  --bg-hover: #1e293b;
  --border-color: #243046;
  --border-hover: #3b4d6b;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;

  --brand-red: #dc2626;
  --brand-red-dark: #b91c1c;
  --brand-red-light: rgba(220, 38, 38, 0.15);

  --live-color: #f87171;
  --live-bg: rgba(239, 68, 68, 0.2);
  --upcoming-color: #60a5fa;
  --upcoming-bg: rgba(37, 99, 235, 0.2);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 16px;
}

/* Logo Badge */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-badge {
  background: linear-gradient(135deg, var(--brand-red-dark), #580c0c);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 3px 8px rgba(127, 29, 29, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand-logo:hover .logo-badge {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(127, 29, 29, 0.4);
}

.logo-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-transform: uppercase;
}

.logo-title span {
  color: #f87171;
}

.logo-sub {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 1px;
  font-weight: 600;
}

.refresh-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.refresh-pill-btn:hover {
  background-color: var(--brand-red);
  color: #ffffff;
  border-color: var(--brand-red);
}

.refresh-pill-btn.rotating svg {
  animation: spin 0.8s linear infinite;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-red);
  background-color: var(--brand-red-light);
}

/* Header Actions & Socials */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-btn, .theme-btn, .refresh-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background-color: var(--bg-hover);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  font-size: 15px;
}

.social-btn:hover, .theme-btn:hover, .refresh-btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.social-btn.tg:hover { background-color: #229ED9; border-color: #229ED9; }
.social-btn.yt:hover { background-color: #FF0000; border-color: #FF0000; }
.social-btn.fb:hover { background-color: #1877F2; border-color: #1877F2; }
.social-btn.x:hover { background-color: #000000; border-color: #000000; }
.theme-btn:hover { background-color: #475569; border-color: #475569; }
.refresh-btn:hover { background-color: var(--brand-red); border-color: var(--brand-red); }

.rotating {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Notice Banner (Optional announcement / disclaimer)
   ========================================================================== */
.alert-strip {
  background: linear-gradient(90deg, #1e293b, #0f172a);
  color: #e2e8f0;
  padding: 6px 0;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.alert-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.alert-badge {
  background-color: var(--brand-accent);
  color: #fff;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.clock-display {
  display: flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
  color: #cbd5e1;
  font-size: 12px;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-wrapper {
  padding: 14px 0 40px 0;
}

/* Controls Bar / Tabs Bar */
.schedule-header-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.schedule-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--brand-red-dark), #580c0c);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(127, 29, 29, 0.25);
}

/* Date Tabs */
.date-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-hover);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.tab-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  background-color: var(--brand-red-dark);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(127, 29, 29, 0.3);
}

.tab-btn.tab-blue.active {
  background-color: #1e3a8a;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.3);
}

.tab-btn .badge-count {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.2);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.tab-btn.active .badge-count {
  background: rgba(255, 255, 255, 0.25);
}

/* Search & Filters Row */
.filter-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.search-box-wrapper {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  pointer-events: none;
}

.search-icon svg {
  display: block;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 42px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.search-input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-red-light);
}

.league-filter-select {
  padding: 10px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
}

.league-filter-select:focus {
  border-color: var(--brand-red);
}

/* ==========================================================================
   Match Cards List (Tight Spacing, 8px Radius, Modern Look)
   ========================================================================== */
.matches-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.match-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md); /* 8px */
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.match-card:hover {
  transform: translateY(-1px);
  border-color: var(--border-hover);
}

.match-card:focus-within {
  outline: 2px solid var(--brand-red);
}

/* Live Card Subtle Border Accent */
.match-card.is-live {
  border-left: 4px solid var(--brand-accent);
}

/* Main Row: Teams & Center Score/Time */
.match-main-row {
  display: grid;
  grid-template-columns: 1fr 110px 1fr;
  align-items: center;
  padding: 10px 18px;
  gap: 12px;
}

/* Team Box (Left: Home Team, Right: Away Team) */
.team-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.team-item.home-team {
  justify-content: space-between;
  text-align: right;
}

.team-item.home-team .team-name {
  text-align: right;
  padding-left: 10px;
}

.team-item.away-team {
  justify-content: space-between;
  text-align: left;
  flex-direction: row-reverse;
}

.team-item.away-team .team-name {
  text-align: left;
  padding-right: 10px;
}

.team-logo-wrapper {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 6px;
  background-color: var(--bg-hover);
  border: 1px solid var(--border-color);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.team-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.match-card:hover .team-logo {
  transform: scale(1.06);
}

.team-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.2px;
  word-break: break-word;
}

/* Match Center Info (Clean Match Time) */
.match-center-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}

.match-time-text {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}

/* Match Meta Bar */
.match-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  background-color: var(--bg-card-meta);
  border-top: 1px solid var(--border-color);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  gap: 12px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.meta-league {
  color: var(--text-primary);
  font-weight: 700;
}

.league-icon-img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.meta-channel {
  color: var(--text-secondary);
}

.watch-pill-btn {
  background-color: var(--brand-red);
  color: #ffffff;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background-color var(--transition-fast);
}

.watch-pill-btn:hover {
  background-color: var(--brand-accent);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.status-badge.live {
  background-color: #b91c1c;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.4);
}

.status-badge.live .pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 6px #fff;
  animation: livePulse 1.2s infinite ease-in-out;
}

@keyframes livePulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 1; }
}

.status-badge.upcoming {
  background-color: var(--upcoming-bg);
  color: var(--upcoming-color);
}

.status-badge.ended {
  background-color: var(--bg-hover);
  color: var(--text-muted);
}

/* Watch button hover effect */
.watch-hover-hint {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-accent);
  opacity: 0;
  transform: translateY(2px);
  transition: all var(--transition-fast);
}

.match-card:hover .watch-hover-hint {
  opacity: 1;
  transform: translateY(0);
}

/* Match Meta Bar (Bottom row matching the reference screenshot) */
.match-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background-color: var(--bg-card-meta);
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  gap: 12px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.meta-league {
  color: var(--text-primary);
  font-weight: 700;
}

.league-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.meta-channel {
  color: var(--text-secondary);
}

.watch-pill-btn {
  background-color: var(--brand-red);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background-color var(--transition-fast);
}

.watch-pill-btn:hover {
  background-color: var(--brand-accent);
}

/* ==========================================================================
   Article Content Box (SEO Content below matches)
   ========================================================================== */
.article-content-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-top: 20px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

.article-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.3;
}

.article-heading {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 22px;
  margin-bottom: 10px;
}

.article-paragraph {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.article-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: var(--bg-hover);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.feature-icon {
  font-size: 22px;
  line-height: 1;
}

.feature-item strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.feature-item p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.article-list {
  padding-left: 20px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.faq-item {
  background-color: var(--bg-hover);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.faq-question {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.faq-answer {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Static Page Card */
.static-page-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  margin: 20px auto;
  max-width: 900px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

.static-page-card h1 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.static-page-card h2 {
  font-size: 17px;
  font-weight: 800;
  margin: 20px 0 8px 0;
  color: var(--text-primary);
}

.static-page-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
  max-width: 500px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.form-input, .form-textarea {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  background-color: var(--brand-red);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color var(--transition-fast);
}

.btn-submit:hover {
  background-color: var(--brand-accent);
}

/* ==========================================================================
   State Displays (Loading, Empty, Error)
   ========================================================================== */
.state-box {
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 50px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-secondary);
}

.state-icon {
  font-size: 38px;
  color: var(--text-muted);
}

.state-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.state-desc {
  font-size: 14px;
  max-width: 400px;
}

.btn-retry {
  background-color: var(--brand-red);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13px;
  transition: background-color var(--transition-fast);
}

.btn-retry:hover {
  background-color: var(--brand-accent);
}

/* Skeleton Loading Cards */
.skeleton-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  height: 110px;
  position: relative;
  overflow: hidden;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0.3) 60%,
    rgba(255, 255, 255, 0)
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* ==========================================================================
   Stream Video Modal Player (Cinema HD Experience)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 10, 20, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background-color: #0b1120;
  border: 1px solid #1e293b;
  border-radius: 10px;
  width: 100%;
  max-width: 920px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  transform: scale(0.96);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-dialog {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background-color: #111a2e;
  border-bottom: 1px solid #1e293b;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #dc2626;
  color: #fff;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.modal-title {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  background-color: #1a253c;
  border: 1px solid #283756;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-btn:hover {
  color: #fff;
  background-color: #283756;
}

.modal-btn.close:hover {
  background-color: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

/* Video Player Frame Container */
.player-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background-color: #000000;
}

.player-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-footer {
  padding: 10px 18px;
  background-color: #111a2e;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-servers-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.server-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.server-btn {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  background-color: #1a253c;
  color: #cbd5e1;
  border: 1px solid #283756;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.server-btn:hover {
  color: #fff;
  border-color: #3b4d6b;
}

.server-btn.active {
  background-color: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
}

.open-external-link {
  color: #f87171;
  font-weight: 700;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.open-external-link:hover {
  text-decoration: underline;
  color: #fca5a5;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  margin-top: 40px;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--brand-red);
}

.footer-disclaimer {
  max-width: 680px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
  .header-inner {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-links {
    display: none; /* Hide top textual links on mobile */
  }

  .schedule-top-row {
    flex-direction: column;
    align-items: stretch;
  }

  .schedule-title-badge {
    text-align: center;
    justify-content: center;
  }

  .date-tabs {
    justify-content: center;
  }

  .match-main-row {
    grid-template-columns: 1fr 100px 1fr;
    padding: 14px 12px;
    gap: 8px;
  }

  .team-logo-wrapper {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .team-name {
    font-size: 13px;
  }

  .match-time-text {
    font-size: 15px;
  }

  .meta-center-comm {
    display: none; /* Hide commentator in tight mobile view */
  }
}

@media (max-width: 480px) {
  .team-name {
    font-size: 12px;
  }

  .tab-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .match-meta-bar {
    padding: 6px 12px;
    font-size: 11px;
  }
}
