/* ================================================================
   Live On Sport — Main Stylesheet
   ================================================================ */

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

:root {
  --bg:      #07090e;
  --surface: #0d1117;
  --s2:      #121820;
  --s3:      #181f2a;
  --border:  rgba(255,255,255,.07);
  --border2: rgba(255,255,255,.13);
  --text:    #e4eaf5;
  --muted:   #58697e;
  --muted2:  #8898aa;
  --red:     #ff4d6a;
  --red2:    #ff2248;
  --gold:    #f0b90b;
  --blue:    #3b82f6;
  --green:   #22c55e;
  --radius:  10px;
  --font:    'Inter', sans-serif;
  --font2:   'Barlow Condensed', sans-serif;
  --font3:   'Bebas Neue', sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* ── Utility ─────────────────────────────────────────────── */
.blink-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.3s infinite; flex-shrink: 0; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.15} }

/* ── Topbar ──────────────────────────────────────────────── */
.topbar { background: #0a0f1a; border-bottom: 1px solid rgba(255,77,106,.18); padding: 6px 24px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted2); font-family: var(--font2); letter-spacing: .06em; }
.topbar-live { display: flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; }

/* ── Navbar ──────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 500; background: rgba(7,9,14,.95); border-bottom: 1px solid var(--border); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.nav-inner { max-width: 1360px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 8px; height: 60px; }

.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font2); font-size: 22px; font-weight: 900; color: var(--red); letter-spacing: .02em; flex-shrink: 0; }
.nav-logo img { height: 32px; width: auto; }
.nav-logo strong { color: #fff; }
.nav-logo-tld { font-size: 13px; color: var(--muted); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; margin-left: 8px; overflow: hidden; }
.nav-links a { padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--muted2); transition: all .15s; white-space: nowrap; }
.nav-links a:hover { background: rgba(255,255,255,.07); color: var(--text); }
.nav-links a.active { color: var(--red); background: rgba(255,77,106,.1); }

.nav-more-wrap { position: relative; }
.nav-more-btn { padding: 6px 12px; border-radius: 6px; font-size: 13px; color: var(--muted2); cursor: pointer; }
.nav-more-btn:hover { background: rgba(255,255,255,.07); color: var(--text); }
.nav-dropdown { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: var(--s2); border: 1px solid var(--border2); border-radius: 8px; min-width: 180px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.6); z-index: 100; }
.nav-dropdown.open { display: block; }
.nav-dropdown a { display: block; padding: 10px 14px; font-size: 13px; color: var(--muted2); transition: all .12s; }
.nav-dropdown a:hover { background: rgba(255,255,255,.06); color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.nav-live-badge { display: flex; align-items: center; gap: 6px; background: rgba(255,77,106,.12); border: 1px solid rgba(255,77,106,.3); border-radius: 5px; padding: 5px 12px; font-family: var(--font2); font-weight: 700; font-size: 12px; letter-spacing: .1em; color: var(--red); }

.nav-hamburger { display: none; flex-direction: column; gap: 4px; padding: 6px; border-radius: 6px; background: rgba(255,255,255,.06); }
.nav-hamburger span { display: block; width: 20px; height: 2px; background: var(--muted2); border-radius: 1px; transition: all .2s; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: var(--bg); }
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-orb--1 { width: 700px; height: 700px; top: -200px; right: -150px; background: radial-gradient(circle, rgba(255,77,106,.1) 0%, transparent 70%); }
.hero-orb--2 { width: 500px; height: 500px; bottom: -100px; left: -100px; background: radial-gradient(circle, rgba(59,130,246,.07) 0%, transparent 70%); }
.hero-grid-pattern { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,77,106,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,77,106,.04) 1px,transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 65% 40%,#000 20%,transparent 100%); }

.hero-inner { position: relative; max-width: 1360px; margin: 0 auto; padding: 60px 24px 60px; display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: center; width: 100%; }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,77,106,.1); border: 1px solid rgba(255,77,106,.22); border-radius: 20px; padding: 5px 14px; font-family: var(--font2); font-weight: 700; font-size: 12px; letter-spacing: .15em; color: var(--red); text-transform: uppercase; margin-bottom: 22px; }
.hero-title { font-family: var(--font3); font-size: clamp(54px,7.5vw,96px); line-height: .93; color: #fff; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 20px; }
.hero-title em { color: var(--red); font-style: normal; }
.hero-sub { font-size: 16px; color: var(--muted2); line-height: 1.7; max-width: 500px; margin-bottom: 32px; }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.btn-primary { display: inline-flex; align-items: center; gap: 9px; background: var(--red); color: #fff; padding: 13px 28px; border-radius: 8px; font-family: var(--font2); font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; transition: all .2s; box-shadow: 0 4px 24px rgba(255,77,106,.4); position: relative; overflow: hidden; }
.btn-primary::before { content:''; position:absolute; top:0; left:-100%; width:55%; height:100%; background:linear-gradient(90deg,transparent,rgba(255,255,255,.18),transparent); animation:sheen 3.5s ease-in-out infinite; }
@keyframes sheen { 0%{left:-100%} 50%{left:120%} 100%{left:120%} }
.btn-primary:hover { background: var(--red2); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,77,106,.55); }

.btn-ghost { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--border2); padding: 13px 24px; border-radius: 8px; font-family: var(--font2); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; transition: all .2s; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }

.hero-stats { display: flex; align-items: center; gap: 0; padding-top: 32px; border-top: 1px solid var(--border); }
.hero-stat { flex: 1; }
.hero-stat-val { font-family: var(--font3); font-size: 40px; color: #fff; line-height: 1; display: block; }
.hero-stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; display: block; margin-top: 2px; }
.hero-stat-divider { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; margin: 0 20px; }

/* Hero panel */
.hero-panel { background: rgba(13,17,23,.9); border: 1px solid var(--border2); border-radius: 14px; overflow: hidden; backdrop-filter: blur(16px); }
.hero-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.hero-panel-title { font-family: var(--font2); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; display: flex; align-items: center; gap: 8px; }
.hero-panel-date { font-size: 11px; color: var(--muted); }
.hero-panel-body { max-height: 380px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.08) transparent; }
.hero-panel-empty { padding: 28px; text-align: center; color: var(--muted); font-size: 13px; }

.panel-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 18px; border-bottom: 1px solid rgba(255,255,255,.04); transition: background .12s; gap: 12px; }
.panel-row:last-child { border-bottom: none; }
.panel-row:hover { background: rgba(255,255,255,.04); }
.panel-row--live { background: rgba(255,77,106,.05); }
.panel-row-sport { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.panel-row-teams { font-family: var(--font2); font-weight: 700; font-size: 14px; color: #fff; }
.panel-row-teams em { color: var(--red); font-style: italic; margin: 0 3px; }
.panel-row-right { flex-shrink: 0; text-align: right; }
.panel-live-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,77,106,.15); color: var(--red); border: 1px solid rgba(255,77,106,.3); border-radius: 3px; padding: 2px 8px; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.panel-time { font-size: 11px; color: var(--muted); }

/* ── Ad banners ──────────────────────────────────────────── */
.ad-banner { text-align: center; padding: 12px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ad-block { text-align: center; padding: 16px 0; }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section--dark { background: var(--bg); }
.section--light { background: var(--surface); }
.container { max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.section-header { margin-bottom: 36px; }
.section-header.centered { text-align: center; }
.eyebrow { font-family: var(--font2); font-weight: 700; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.section-title { font-family: var(--font3); font-size: clamp(30px,4vw,52px); color: #fff; letter-spacing: .03em; text-transform: uppercase; line-height: 1; margin-bottom: 6px; }
.section-title .text-red, em.text-red { color: var(--red); font-style: normal; }
.section-sub { font-size: 14px; color: var(--muted2); margin-top: 8px; }

/* ── Sports grid ─────────────────────────────────────────── */
.sports-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(155px,1fr)); gap: 10px; margin-top: 32px; }
.sport-card { background: var(--s2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: block; transition: all .2s; }
.sport-card:hover { transform: translateY(-4px); border-color: var(--sc, var(--red)); box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.sport-card--active { border-color: var(--sc, var(--red)); }
.sport-card-img { position: relative; aspect-ratio: 16/9; background: var(--s3); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.sport-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.sport-card:hover .sport-card-img img { transform: scale(1.06); }
.sport-card-emoji { font-size: 36px; }
.sport-card-live-dot { position: absolute; top: 8px; right: 8px; }
.sport-card-foot { padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; }
.sport-card-name { font-family: var(--font2); font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.sport-card-count { font-size: 11px; color: var(--muted2); background: rgba(255,255,255,.07); padding: 2px 7px; border-radius: 10px; }

/* ── Today section ───────────────────────────────────────── */
.today-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.live-ticker { display: flex; align-items: center; gap: 8px; background: rgba(255,77,106,.12); border: 1px solid rgba(255,77,106,.3); border-radius: 6px; padding: 8px 16px; font-family: var(--font2); font-weight: 700; font-size: 14px; letter-spacing: .1em; color: var(--red); }

.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-tab { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid transparent; cursor: pointer; transition: all .15s; background: transparent; }
.filter-tab:hover { background: rgba(255,255,255,.06); color: var(--text); }
.filter-tab.active { background: var(--red); color: #fff; }

.match-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }

/* ── Match card ──────────────────────────────────────────── */
.mc { background: var(--s2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: block; transition: transform .15s, border-color .15s, box-shadow .15s; }
.mc:hover { transform: translateY(-3px); border-color: var(--border2); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.mc--live { border-color: rgba(255,77,106,.35); background: linear-gradient(135deg,rgba(255,77,106,.06) 0%,var(--s2) 60%); }
.mc__sport { padding: 8px 12px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); color: var(--sc, var(--red)); }
.live-pip { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,77,106,.15); color: var(--red); border: 1px solid rgba(255,77,106,.3); border-radius: 3px; padding: 2px 6px; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.live-pip i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); animation: blink 1.2s infinite; flex-shrink: 0; font-style: normal; display: inline-block; }
.mc__body { padding: 12px; }
.mc__teams { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 8px; }
.mc__side { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.mc__logo { width: 32px; height: 32px; object-fit: contain; }
.mc__tname { font-family: var(--font2); font-weight: 700; font-size: 14px; line-height: 1.2; color: var(--text); }
.mc__vs { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .05em; flex-shrink: 0; }
.mc__tourn { font-size: 10px; color: var(--muted); text-align: center; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--border); gap: 6px; }
.mc__date { font-size: 10px; color: var(--muted); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc__btn { color: #fff; padding: 5px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; font-family: var(--font2); letter-spacing: .06em; white-space: nowrap; flex-shrink: 0; }

/* ── Empty state ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 56px 24px; color: var(--muted); background: var(--s2); border: 1px solid var(--border); border-radius: 12px; }
.empty-icon { font-size: 48px; margin-bottom: 14px; }
.empty-state h3 { font-family: var(--font2); font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 6px; }

/* ── Features ────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-top: 36px; }
.feat-card { background: var(--s2); padding: 28px 24px; transition: background .2s; }
.feat-card:hover { background: var(--s3); }
.feat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.feat-title { font-family: var(--font2); font-weight: 800; font-size: 16px; letter-spacing: .04em; color: #fff; margin-bottom: 6px; }
.feat-desc { font-size: 13px; color: var(--muted2); line-height: 1.65; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--s2); border-top: 1px solid var(--border); }
.footer-top { max-width: 1360px; margin: 0 auto; padding: 48px 24px 32px; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: start; }
.footer-logo { font-family: var(--font2); font-size: 26px; font-weight: 900; color: var(--red); display: block; margin-bottom: 8px; }
.footer-logo strong { color: #fff; }
.footer-logo span { font-size: 14px; color: var(--muted); font-weight: 400; }
.footer-tagline { font-size: 13px; color: var(--muted2); max-width: 280px; line-height: 1.6; }
.footer-links-grid { display: flex; gap: 48px; }
.footer-links-grid h4 { font-family: var(--font2); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.footer-links-grid a { display: block; font-size: 13px; color: var(--muted2); padding: 3px 0; transition: color .12s; }
.footer-links-grid a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 24px; text-align: center; max-width: 1360px; margin: 0 auto; }
.footer-bottom p { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.footer-disclaimer { font-size: 11px; color: rgba(255,255,255,.2); }

/* ── Modals ──────────────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.75); backdrop-filter: blur(8px); align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; animation: fadein .2s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal-box { background: var(--s2); border: 1px solid var(--border2); border-radius: 14px; width: 100%; max-width: 600px; max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 24px 80px rgba(0,0,0,.8); animation: slideup .22s ease; }
@keyframes slideup { from{transform:translateY(14px);opacity:0} to{transform:translateY(0);opacity:1} }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.modal-title { font-family: var(--font2); font-weight: 800; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.modal-close { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--border); background: rgba(255,255,255,.04); color: var(--muted); cursor: pointer; font-size: 15px; transition: all .15s; }
.modal-close:hover { background: rgba(255,77,106,.15); color: #fff; border-color: rgba(255,77,106,.4); }
.modal-body { overflow-y: auto; padding: 20px 22px 24px; font-size: 13px; color: var(--muted2); line-height: 1.8; scrollbar-width: thin; }
.modal-body h3 { font-family: var(--font2); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #d0d8e4; margin: 14px 0 5px; }
.modal-body h3:first-child { margin-top: 0; }
.modal-body a { color: var(--red); }
.cf-field { margin-bottom: 12px; }
.cf-field label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.cf-field input, .cf-field textarea { width: 100%; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 6px; padding: 9px 12px; color: var(--text); font-size: 13px; font-family: var(--font); outline: none; resize: vertical; transition: border-color .2s; }
.cf-field input:focus, .cf-field textarea:focus { border-color: rgba(255,77,106,.45); }
.cf-field textarea { min-height: 90px; }

/* ── Stream page ─────────────────────────────────────────── */
.stream-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg); padding: 24px; text-align: center; }
.stream-logo { font-family: var(--font2); font-size: 28px; font-weight: 900; color: var(--red); margin-bottom: 32px; }
.stream-logo strong { color: #fff; }
.stream-spinner { width: 56px; height: 56px; border: 3px solid rgba(255,77,106,.2); border-top-color: var(--red); border-radius: 50%; animation: spin .9s linear infinite; margin: 0 auto 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
.stream-match { font-family: var(--font2); font-size: 22px; font-weight: 800; letter-spacing: .04em; color: #fff; margin-bottom: 8px; }
.stream-info { font-size: 13px; color: var(--muted2); }

/* ── Admin nav overrides ─────────────────────────────────── */
.page-title { font-family: var(--font2); font-size: 26px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .match-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .match-grid { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .sports-grid { grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.mobile-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(7,9,14,.98); border-bottom: 1px solid var(--border); padding: 12px; gap: 2px; z-index: 200; }
  .match-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 46px; }
  .footer-links-grid { flex-direction: column; gap: 24px; }
}
