/* ============================================
   SBOGAS789 — Design System
   Theme: Deep Black × Electric Blue
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-deep: #05070d;
  --bg-base: #0a0f1a;
  --bg-elevated: #101827;
  --bg-surface: #152033;
  --bg-hover: #1a2a42;

  --blue-50: #e8f4ff;
  --blue-100: #c5e3ff;
  --blue-300: #5eb0ff;
  --blue-400: #2e95ff;
  --blue-500: #0a7cff;
  --blue-600: #0066e0;
  --blue-700: #004fb3;

  --text-primary: #f0f5ff;
  --text-secondary: #9aafc7;
  --text-muted: #5e738c;

  --live: #ff2d55;
  --success: #00d68f;
  --warning: #ffb020;

  --border: rgba(46, 149, 255, 0.12);
  --border-strong: rgba(46, 149, 255, 0.28);

  --font-display: 'Kanit', sans-serif;
  --font-body: 'Kanit', sans-serif;

  --header-h: 72px;
  --radius: 4px;
  --radius-lg: 10px;
  --max-w: 1240px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-blue: 0 0 40px rgba(10, 124, 255, 0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(10, 124, 255, 0.18), transparent),
    radial-gradient(ellipse 40% 30% at 90% 60%, rgba(0, 79, 179, 0.08), transparent),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-base) 100%);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(5, 7, 13, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  z-index: 2;
}

.brand-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-700));
  border-radius: 8px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.brand-mark svg { width: 20px; height: 20px; fill: white; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand-name span { color: var(--blue-400); }

.nav-main {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(46, 149, 255, 0.08);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--blue-400);
  border-radius: 2px 2px 0 0;
}

.nav-link .chevron {
  width: 12px;
  height: 12px;
  opacity: 0.6;
  transition: transform 0.25s var(--ease);
}

.nav-item { position: relative; }

.nav-item:hover .chevron,
.nav-item.open .chevron { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.22s var(--ease);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), var(--shadow-blue);
}

.nav-item:hover .dropdown,
.nav-item.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: all 0.15s;
}

.dropdown a:hover {
  background: rgba(46, 149, 255, 0.12);
  color: var(--text-primary);
}

.dropdown a .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
  flex-shrink: 0;
}

.dropdown a.live-item .dot {
  background: var(--live);
  animation: pulse-dot 1.5s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(255, 45, 85, 0); }
}

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

.lang-switch {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang-btn {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--blue-600);
  color: white;
}

.lang-btn:hover:not(.active) { color: var(--text-primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.btn-ghost {
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: white;
  box-shadow: 0 2px 12px rgba(10, 124, 255, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(10, 124, 255, 0.45);
}

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--blue-300);
}

.btn-outline:hover {
  background: rgba(46, 149, 255, 0.1);
  border-color: var(--blue-400);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* ---------- FOOTER ---------- */
.site-footer {
  margin-top: auto;
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .brand { margin-bottom: 16px; }

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 5px 0;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--blue-300); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.socials a:hover {
  border-color: var(--blue-400);
  color: var(--blue-300);
  background: rgba(46, 149, 255, 0.1);
}

.socials svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(5, 7, 13, 0.95) 0%, rgba(5, 7, 13, 0.7) 45%, rgba(5, 7, 13, 0.4) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230a7cff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(160deg, #0a1628 0%, #05070d 50%, #0a1f3d 100%);
}

.hero-pitch-lines {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background:
    linear-gradient(90deg, transparent 49.5%, var(--blue-400) 49.5%, var(--blue-400) 50.5%, transparent 50.5%),
    radial-gradient(circle at 50% 50%, transparent 18%, var(--blue-400) 18.5%, var(--blue-400) 19%, transparent 19.5%);
  animation: pitch-drift 20s linear infinite;
}

@keyframes pitch-drift {
  from { transform: scale(1.05) translateX(0); }
  to { transform: scale(1.05) translateX(-2%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0 100px;
  max-width: 640px;
}

.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--live);
  margin-bottom: 20px;
  animation: fade-up 0.7s var(--ease) both;
}

.hero-live-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--live);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease infinite;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  animation: fade-up 0.7s 0.1s var(--ease) both;
}

.hero-brand span {
  display: block;
  background: linear-gradient(90deg, var(--blue-300), var(--blue-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 420px;
  margin-bottom: 36px;
  animation: fade-up 0.7s 0.2s var(--ease) both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fade-up 0.7s 0.3s var(--ease) both;
}

.hero-ctas .btn { padding: 14px 28px; font-size: 0.95rem; }

.hero-side-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(42%, 480px);
  aspect-ratio: 1;
  pointer-events: none;
  animation: float-ball 6s ease-in-out infinite;
}

@keyframes float-ball {
  0%, 100% { transform: translateY(-50%) rotate(-8deg); }
  50% { transform: translateY(calc(-50% - 16px)) rotate(-4deg); }
}

.hero-side-visual .ball-ring {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(46, 149, 255, 0.2);
  border-radius: 50%;
  animation: spin-slow 30s linear infinite;
}

.hero-side-visual .ball-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--blue-400);
  border-radius: 50%;
}

.hero-side-visual .ball-core {
  position: absolute;
  inset: 22%;
  background:
    radial-gradient(circle at 35% 35%, rgba(46, 149, 255, 0.4), transparent 50%),
    linear-gradient(145deg, #152033, #0a0f1a);
  border-radius: 50%;
  border: 2px solid rgba(46, 149, 255, 0.3);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-blue), inset 0 0 40px rgba(10, 124, 255, 0.15);
}

.hero-side-visual .ball-core svg {
  width: 40%;
  height: 40%;
  fill: var(--blue-400);
  opacity: 0.9;
}

@keyframes spin-slow { to { transform: rotate(360deg); } }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 72px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.section-title span { color: var(--blue-400); }

.section-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.section-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-300);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.section-link:hover { gap: 10px; }

/* Page header (inner pages) */
.page-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(10, 124, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.page-hero .breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.page-hero .breadcrumb a:hover { color: var(--blue-300); }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.page-hero h1 span { color: var(--blue-400); }

.page-hero p {
  color: var(--text-secondary);
  margin-top: 8px;
  max-width: 520px;
}

/* ---------- LIVE MATCH CARDS ---------- */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.match-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.match-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-blue);
}

.match-card.is-live::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--live), var(--blue-500));
}

.match-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.league-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-300);
  background: rgba(46, 149, 255, 0.12);
  padding: 4px 10px;
  border-radius: 3px;
}

.status-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--live);
  letter-spacing: 0.06em;
}

.status-live .pulse {
  width: 6px;
  height: 6px;
  background: var(--live);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease infinite;
}

.status-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.team-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 5px;
  box-shadow: 0 0 0 1px rgba(10, 124, 255, 0.1);
  flex-shrink: 0;
}

.team-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.team-name {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

.team-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-primary);
}

.team-cell .team-dot {
  width: 24px;
  height: 24px;
  padding: 2px;
}

.score-box {
  text-align: center;
}

.score {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.score-sep { color: var(--text-muted); margin: 0 2px; }

.minute {
  font-size: 0.7rem;
  color: var(--live);
  font-weight: 700;
  margin-top: 2px;
}

.match-actions {
  display: flex;
  gap: 8px;
}

.match-actions .btn {
  flex: 1;
  padding: 8px;
  font-size: 0.8rem;
}

/* ---------- SCHEDULE TABLE ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  text-align: left;
  padding: 14px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-300);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr:hover td {
  background: rgba(46, 149, 255, 0.04);
  color: var(--text-primary);
}

.data-table .match-cell {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.data-table .match-cell .team-cell {
  min-width: 0;
}

.data-table .vs {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  flex-shrink: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.badge-live {
  background: rgba(255, 45, 85, 0.15);
  color: var(--live);
}

.badge-upcoming {
  background: rgba(46, 149, 255, 0.12);
  color: var(--blue-300);
}

.badge-ended {
  background: rgba(94, 115, 140, 0.2);
  color: var(--text-muted);
}

/* ---------- STANDINGS ---------- */
.standings-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.filter-chip:hover,
.filter-chip.active {
  background: rgba(46, 149, 255, 0.12);
  border-color: var(--blue-400);
  color: var(--blue-300);
}

.pos {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  width: 28px;
  display: inline-block;
}

.pos-top { color: var(--blue-400); }
.pos-mid { color: var(--text-secondary); }
.pos-releg { color: var(--live); }

/* ---------- HIGHLIGHTS / ARTICLES ---------- */
.content-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1100px) {
  .content-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

.content-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.content-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.content-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-base));
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.content-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 7, 13, 0.8));
}

.content-thumb .play-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(10, 124, 255, 0.85);
  display: grid;
  place-items: center;
  z-index: 1;
  transition: transform 0.25s;
}

.content-card:hover .play-icon { transform: scale(1.1); }

.content-thumb .play-icon svg {
  width: 18px;
  height: 18px;
  fill: white;
  margin-left: 2px;
}

.content-thumb .duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 8px;
  border-radius: 3px;
}

.content-body {
  padding: 18px;
}

.content-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 8px;
}

.content-body h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.content-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* YouTube highlights (no Data API) */
.yt-highlight-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.yt-source,
.yt-status {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.yt-source a {
  color: var(--blue-300);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.yt-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.yt-player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-player-skeleton {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.content-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button.content-card.yt-card {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
}

button.content-card.yt-card.is-active {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 1px rgba(10, 124, 255, 0.35);
}

.yt-thumb-fallback {
  background: linear-gradient(135deg, #0a1a33, #05070b);
}

.yt-empty {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Article list */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s;
}

.article-row:hover { border-color: var(--border-strong); }

.article-row .thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--bg-surface) 0%, #0a1f3d 100%);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.article-row .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease);
}

.article-row:hover .thumb img {
  transform: scale(1.04);
}

.article-row h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.35;
}

.article-row p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-row {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.article-row h3 {
  color: var(--text-primary);
}

.article-detail {
  max-width: 820px;
  margin: 0 auto;
}

.article-detail-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 28px;
  aspect-ratio: 16 / 9;
  background: var(--bg-elevated);
}

.article-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.article-detail-body {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.85;
}

.article-detail-body h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 28px 0 12px;
  letter-spacing: 0.02em;
}

.article-detail-body p {
  margin-bottom: 14px;
}

.article-detail-body ul {
  margin: 0 0 16px;
  padding-left: 1.2rem;
}

.article-detail-body li {
  margin-bottom: 8px;
}

.article-back {
  display: inline-flex;
  margin-top: 32px;
}

/* ---------- SCORE TICKER ---------- */
.ticker {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 12px 0;
}

.ticker-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.ticker-item .t-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue-300);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- FEATURES STRIP ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  padding: 28px 24px;
  border-left: 2px solid var(--blue-500);
  background: linear-gradient(90deg, rgba(10, 124, 255, 0.06), transparent);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.feature p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- AUTH MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 13, 0.8);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
  padding: 24px;
}

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

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 400px;
  transform: translateY(12px);
  transition: transform 0.25s var(--ease);
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.modal .sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

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

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus { border-color: var(--blue-400); }

.modal .btn-primary {
  width: 100%;
  padding: 13px;
  margin-top: 8px;
}

.modal-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.modal-switch button {
  color: var(--blue-300);
  font-weight: 600;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  border-radius: var(--radius);
}

.modal-close:hover { color: var(--text-primary); background: var(--bg-surface); }

.modal { position: relative; }

/* ---------- VIDEO PLAYER PLACEHOLDER ---------- */
.player-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

.player-main {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  position: relative;
  background:
    radial-gradient(ellipse at center, rgba(10, 124, 255, 0.15), transparent 60%),
    #05070d;
}

.player-main .big-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  display: grid;
  place-items: center;
  box-shadow: 0 8px 32px rgba(10, 124, 255, 0.4);
  transition: transform 0.2s;
  cursor: pointer;
}

.player-main .big-play:hover { transform: scale(1.08); }

.player-main .big-play svg {
  width: 28px;
  height: 28px;
  fill: white;
  margin-left: 4px;
}

.player-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.player-info h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.player-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 560px;
  overflow-y: auto;
}

.sidebar-match {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s;
}

.sidebar-match:hover,
.sidebar-match.active {
  border-color: var(--blue-400);
}

.sidebar-match .sm-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue-300);
  min-width: 48px;
  text-align: center;
}

.sidebar-match .sm-info { flex: 1; min-width: 0; }

.sidebar-match .sm-info strong {
  display: block;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-match .sm-info span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ---------- EMPTY / CTA BANNER ---------- */
.cta-banner {
  margin: 48px 0;
  padding: 48px;
  background:
    linear-gradient(135deg, rgba(10, 124, 255, 0.15), rgba(0, 79, 179, 0.05)),
    var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
}

.error-page {
  max-width: 640px;
  margin: 48px auto;
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--blue-400);
  letter-spacing: 0.04em;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 12px 0 10px;
}

.error-page > p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--blue-300);
}

.error-links a:hover { color: var(--blue-100); }

.legal-content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.legal-content article {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-content article:last-child {
  border-bottom: none;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.95rem;
}

.legal-content ul {
  margin-top: 10px;
  padding-left: 1.2rem;
  list-style: disc;
}

.legal-content li { margin: 6px 0; }

.legal-content a {
  color: var(--blue-300);
}

.legal-content a:hover { color: var(--blue-100); }

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.cta-banner p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .nav-main { display: none; }

  .nav-main.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(5, 7, 13, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
    align-items: stretch;
  }

  .nav-main.open .nav-item { width: 100%; }

  .nav-main.open .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: none;
    background: var(--bg-surface);
    margin-top: 4px;
  }

  .nav-main.open .nav-item.open .dropdown { display: block; }

  .menu-toggle { display: grid; }

  .hero-side-visual { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .player-layout { grid-template-columns: 1fr; }

  .features { grid-template-columns: 1fr; }

  .article-row { grid-template-columns: 1fr; }
  .article-row .thumb { max-width: 100%; }
}

@media (max-width: 640px) {
  .header-actions .btn-ghost { display: none; }
  .lang-switch { order: -1; }

  .footer-grid { grid-template-columns: 1fr; }

  .hero-content { padding: 48px 0 64px; }

  .section { padding: 48px 0; }

  .cta-banner { padding: 32px 20px; }
}

/* ---------- HOME DASHBOARD ---------- */
.home-dash {
  padding: 28px 0 56px;
}

.home-dash-inner {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.home-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
  padding-right: 2px;
}

/* League rail */
.league-rail {
  position: static;
  top: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 10px;
  max-height: none;
  overflow: visible;
}

.league-rail-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 10px 12px;
}

.league-rail-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.league-rail-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}

.league-rail-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.league-rail-item.is-active {
  background: rgba(10, 124, 255, 0.14);
  color: var(--text-primary);
  box-shadow: inset 2px 0 0 var(--blue-400);
}

.league-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(10, 124, 255, 0.12);
}

.league-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 3px;
}

.league-icon.lg {
  width: 48px;
  height: 48px;
}

.league-icon.lg img {
  padding: 4px;
}

.league-name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.league-count {
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--live);
  color: #fff;
}

/* Home main */
.home-intro {
  margin-bottom: 18px;
}

.home-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.home-intro h1 span {
  color: var(--blue-400);
}

.home-intro p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 560px;
}

.live-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.live-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 7, 13, 0.35);
}

.live-tabs {
  display: flex;
  gap: 4px;
}

.live-tab {
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, background 0.2s;
}

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

.live-tab.is-active {
  color: var(--text-primary);
  background: rgba(10, 124, 255, 0.12);
  border-bottom-color: var(--blue-400);
}

.live-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.live-filter {
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.live-filter:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.live-filter.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  border-color: transparent;
}

/* Featured live player */
.live-player {
  border-bottom: 1px solid var(--border);
}

.live-player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(10, 124, 255, 0.12) 0%, transparent 42%),
    linear-gradient(180deg, #0a101c 0%, #05070d 100%);
}

.live-player-play {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(10, 124, 255, 0.55);
  border: 1px solid rgba(94, 176, 255, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.live-player-play:hover {
  transform: scale(1.05);
  background: rgba(10, 124, 255, 0.72);
}

.live-player-play svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  margin-left: 3px;
  opacity: 0.92;
}

.live-player-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: var(--bg-base);
}

.live-player-meta .league-tag {
  display: inline-block;
}

.live-player-meta p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.live-player-actions {
  display: flex;
  gap: 8px;
}

/* Match list rows */
.live-match-list {
  padding: 4px 0 8px;
}

.live-match-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 8px;
}

.live-match-list-head h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.live-match-count {
  font-size: 0.78rem;
  color: var(--blue-300);
  font-weight: 600;
}

.live-row {
  display: grid;
  grid-template-columns: 88px 1fr 48px 40px;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  transition: background 0.2s;
}

.live-row:hover {
  background: rgba(10, 124, 255, 0.06);
}

.live-row.is-playing {
  background: linear-gradient(90deg, rgba(10, 124, 255, 0.12), transparent 70%);
  box-shadow: inset 3px 0 0 var(--blue-400);
}

.live-row-time {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.live-row-min {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.live-row-teams {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.live-row-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--border);
  flex-shrink: 0;
  overflow: hidden;
  padding: 2px;
}

.team-dot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.live-row-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--blue-300);
}

.live-row-score.muted { color: var(--text-muted); }

.live-row-league {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-align: right;
}

.home-seo-block {
  margin-top: 22px;
  padding: 18px 4px 8px;
}

.home-seo-block h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.home-seo-block h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 18px;
  color: var(--text-primary);
}

.home-seo-block p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
}

.home-seo-block ul {
  margin: 10px 0 0;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
}

.home-seo-block li {
  margin-bottom: 6px;
}

.home-seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.home-seo-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.home-seo-card h3 {
  margin-top: 0;
  font-size: 0.95rem;
}

.home-seo-card p {
  margin-top: 6px;
  font-size: 0.86rem;
}

/* Keyword markers (legacy — ไม่ใช้ยัดคีย์เวิร์ดแล้ว) */
.kw {
  color: inherit;
  font-weight: inherit;
}

.content-notice {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-left: 3px solid var(--accent, #0A7CFF);
  background: rgba(10, 124, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.55;
  border-radius: 0 10px 10px 0;
}

.content-notice a {
  color: #7ec2ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-hero .content-notice {
  margin-top: 14px;
}

.footer-disclosure {
  margin-top: 10px !important;
  font-size: 0.78rem !important;
  line-height: 1.5 !important;
  opacity: 0.72;
}

.home-articles-preview .aside-links {
  margin-top: 12px;
}

@media (max-width: 720px) {
  .home-seo-grid {
    grid-template-columns: 1fr;
  }
}

/* Right aside: ads + info */
.home-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.ad-slot {
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.ad-slot.is-hidden {
  display: none;
}

.ad-label {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(5, 7, 13, 0.85);
  padding: 3px 8px;
  border-radius: 3px;
}

.ad-placeholder {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background:
    linear-gradient(135deg, rgba(10, 124, 255, 0.06), rgba(0, 79, 179, 0.03)),
    var(--bg-surface);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.ad-placeholder small {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

/* Standard ad sizes */
.ad-size-728x90 .ad-placeholder { min-height: 90px; }
.ad-size-970x250 .ad-placeholder { min-height: 250px; }
.ad-size-300x250 .ad-placeholder { min-height: 250px; }
.ad-size-300x600 .ad-placeholder { min-height: 600px; }
.ad-size-160x600 .ad-placeholder { min-height: 320px; }

.ad-size-300x250,
.ad-size-300x600 {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.page-ads-row .ad-size-300x250 {
  max-width: none;
}

.player-sidebar .ad-slot {
  margin-top: 16px;
  max-width: none;
}

.page-ad {
  margin: 0 0 24px;
}

.page-ad--after-hero {
  margin: 0 0 28px;
}

.page-ad--mid {
  margin: 28px 0;
}

.page-ad--bottom {
  margin: 32px 0 8px;
}

.page-ads-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
}

@media (max-width: 768px) {
  .page-ads-row {
    grid-template-columns: 1fr;
  }

  .ad-size-300x250,
  .ad-size-300x600 {
    max-width: none;
  }

  .ad-size-970x250 .ad-placeholder,
  .ad-size-300x600 .ad-placeholder {
    min-height: 180px;
  }

  .ad-size-160x600 .ad-placeholder {
    min-height: 200px;
  }
}

.aside-info {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.aside-info h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  margin-bottom: 10px;
}

.aside-info p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.aside-links {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-300);
}

.aside-links a:hover { color: var(--blue-100); }

.league-detail-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.league-detail-card h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.league-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.league-detail-head strong {
  display: block;
  font-size: 0.95rem;
}

.league-detail-head p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.league-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.league-detail-stats div {
  text-align: center;
  padding: 10px 6px;
  background: var(--bg-surface);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.league-detail-stats dt {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.league-detail-stats dd {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue-300);
}

@media (max-width: 1100px) {
  .home-dash-inner {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .home-left {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .home-aside {
    grid-column: 1 / -1;
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .league-rail {
    padding: 10px 6px;
  }

  .league-rail-title,
  .league-name,
  .league-count {
    display: none;
  }

  .league-rail-item {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 8px 4px;
  }

  .league-rail-item.is-active {
    box-shadow: none;
  }

}

@media (max-width: 768px) {
  .home-dash-inner {
    grid-template-columns: 1fr;
  }

  .home-left {
    position: static;
    max-height: none;
  }

  .league-rail {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .league-rail-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .league-rail-title {
    display: block;
    padding-bottom: 8px;
  }

  .league-name,
  .league-count {
    display: none;
  }

  .league-rail-item {
    min-width: 52px;
  }


  .home-left .ad-size-160x600 {
    display: none;
  }


  .home-aside {
    grid-template-columns: 1fr;
  }

  .live-row {
    grid-template-columns: 72px 1fr 40px;
  }

  .live-row-league { display: none; }

  .live-player-play {
    width: 60px;
    height: 60px;
  }

  .live-player-play svg {
    width: 24px;
    height: 24px;
  }
}

/* Page enter animation */
main {
  flex: 1;
  animation: page-in 0.45s var(--ease) both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- LINE FLOATING CTA ---------- */
.lucky-draw-float {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 1200;
  width: 118px;
  animation: float-bob 3.2s ease-in-out infinite;
}

.lucky-draw-float.is-hidden {
  display: none;
}

.lucky-draw-float-close {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 3;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 14px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease);
}

.lucky-draw-float-close:hover {
  transform: scale(1.08);
}

.general-lucky-draw-floating-link {
  display: block;
  position: relative;
  width: 118px;
  height: 132px;
  text-decoration: none;
  filter: drop-shadow(0 10px 24px rgba(10, 124, 255, 0.35));
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}

.general-lucky-draw-floating-link:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 12px 28px rgba(10, 124, 255, 0.5));
}

.lucky-draw-medal {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(46, 149, 255, 0.25) 0%, transparent 55%),
    repeating-conic-gradient(from 0deg, rgba(94, 176, 255, 0.35) 0deg 6deg, transparent 6deg 18deg),
    radial-gradient(circle at 50% 40%, #0d2a52 0%, #061018 70%);
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 3px #1a6fd4,
    0 0 0 6px #5eb0ff,
    0 0 0 8px #0a4fa8,
    inset 0 0 20px rgba(10, 124, 255, 0.35);
}

.lucky-draw-medal::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 8%, #5eb0ff 0 5px, transparent 6px),
    radial-gradient(circle at 8% 50%, #2e95ff 0 4px, transparent 5px),
    radial-gradient(circle at 92% 50%, #2e95ff 0 4px, transparent 5px),
    radial-gradient(circle at 50% 0%, transparent 42%, rgba(94, 176, 255, 0.55) 43%, rgba(10, 124, 255, 0.9) 48%, transparent 52%);
  pointer-events: none;
  animation: medal-spin 18s linear infinite;
}

.lucky-draw-medal::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 14px;
  background: linear-gradient(180deg, #5eb0ff, #0a7cff);
  clip-path: polygon(15% 100%, 0 40%, 25% 55%, 50% 0, 75% 55%, 100% 40%, 85% 100%);
  filter: drop-shadow(0 0 6px rgba(46, 149, 255, 0.7));
}

.lucky-draw-core {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background:
    linear-gradient(145deg, #152033, #0a0f1a);
  border: 2px solid rgba(94, 176, 255, 0.65);
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 0 16px rgba(10, 124, 255, 0.25),
    0 0 12px rgba(10, 124, 255, 0.35);
  z-index: 1;
}

.lucky-draw-core svg {
  width: 34px;
  height: 34px;
  fill: #06c755;
  filter: drop-shadow(0 0 8px rgba(6, 199, 85, 0.45));
}

.lucky-draw-label {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  z-index: 2;
  min-width: 112px;
  padding: 7px 10px;
  border-radius: 999px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(180deg, #0a7cff 0%, #004fb3 100%);
  border: 2px solid #5eb0ff;
  box-shadow:
    0 4px 14px rgba(10, 124, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes medal-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .lucky-draw-float {
    right: 12px;
    bottom: 16px;
    width: 100px;
  }

  .general-lucky-draw-floating-link {
    width: 100px;
    height: 114px;
  }

  .lucky-draw-medal {
    width: 86px;
    height: 86px;
  }

  .lucky-draw-core {
    inset: 18px;
  }

  .lucky-draw-core svg {
    width: 28px;
    height: 28px;
  }

  .lucky-draw-label {
    min-width: 92px;
    font-size: 0.7rem;
    padding: 6px 10px;
  }
}