/* ===========================================================
   EPLsite — Liquid Glass theme (light / frosted white)
   Translucent white panels, backdrop blur, soft specular edges.
   Accents: teal-blue #0aa6c0 · blue #0a84ff · pink #e90052
   =========================================================== */
:root {
  /* accents (legible on light) */
  --pl-green: #0aa6c0;
  --pl-cyan: #0a84ff;   /* blue, replaces neon cyan on light bg */
  --pl-pink: #e90052;
  --pl-purple: #06371f; /* dark ink used as text on green buttons */

  /* glass surfaces */
  --panel: rgba(255, 255, 255, 0.72);
  --panel-2: rgba(255, 255, 255, 0.88);
  --glass-strong: rgba(255, 255, 255, 0.96);
  --border: rgba(17, 24, 39, 0.08);
  --border-2: rgba(17, 24, 39, 0.16);
  --glass-edge: rgba(255, 255, 255, 0.65);
  --blur: blur(18px) saturate(165%);

  /* text */
  --text: #161b22;
  --muted: #5d6675;

  --radius: 18px;
  --shadow: 0 16px 40px -18px rgba(20, 32, 70, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 0 0 1px rgba(17, 24, 39, 0.04);
  --shadow-sm: 0 8px 22px -12px rgba(20, 32, 70, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --wrap: 1200px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Archivo', var(--font);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

html { overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--text);
  max-width: 100%;
  background:
    radial-gradient(1000px 700px at 85% -6%, rgba(10, 166, 192, 0.16), transparent 60%),
    radial-gradient(900px 620px at 4% 3%, rgba(10, 132, 255, 0.14), transparent 55%),
    radial-gradient(760px 520px at 52% 112%, rgba(233, 0, 82, 0.08), transparent 60%),
    linear-gradient(160deg, #eef2f9 0%, #e5ebf4 50%, #eef1f8 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
em { font-style: normal; color: var(--pl-green); }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.6);
   border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px -14px rgba(20, 32, 70, 0.4);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 66px; }
.brand { display: flex; align-items: center; }
.brand-logo { display: block; height: 36px; width: auto; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(10,166,192,.25)); }
.footer-logo { height: 44px; }

.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a {
  padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 14px;
  color: var(--muted); transition: .18s; white-space: nowrap;
}
.main-nav a:hover { color: var(--text); background: rgba(255,255,255,.7); }

.header-cta {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-weight: 800; font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, #16c2d6, #0a93ab);
  box-shadow: 0 10px 24px -10px rgba(10, 166, 192, 0.8), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .15s;
}
.header-cta:hover { transform: translateY(-1px); }

.install-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  margin-left: 10px; padding: 9px 14px; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 13px; color: var(--text);
  background: rgba(255,255,255,.6); border: 1px solid var(--border-2);
   transition: .15s; white-space: nowrap;
}
.install-btn:hover { background: #fff; transform: translateY(-1px); }
.install-btn[hidden] { display: none; }
@media (max-width: 520px) { .install-btn .ib-text { display: none; } .install-btn { padding: 9px 11px; } }
.header-cta .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }

@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .35; transform: scale(.7);} }

/* ===================== HERO ===================== */
.hero { position: relative; padding: 46px 0 56px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(17,24,39,.05) 1px, transparent 0);
  background-size: 26px 26px; opacity: .5;
}
.hero-inner { position: relative; }
.hero-heading { max-width: 760px; margin-bottom: 30px; }
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: #0a8aa3; padding: 7px 14px; border-radius: 999px;
  background: rgba(10, 166, 192, 0.12); border: 1px solid rgba(10, 166, 192, 0.32);
}
.live-pip { width: 8px; height: 8px; border-radius: 50%; background: var(--pl-green); box-shadow: 0 0 0 0 rgba(10,166,192,.6); animation: ring 1.5s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(10,166,192,.5);} 70% { box-shadow: 0 0 0 9px rgba(10,166,192,0);} 100% { box-shadow: 0 0 0 0 rgba(10,166,192,0);} }

.hero h1 {
  font-family: var(--display); font-weight: 900; line-height: 1.04;
  font-size: clamp(34px, 5.4vw, 60px); letter-spacing: -1.5px; margin: 16px 0 14px;
}
.hero-heading p { color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); max-width: 560px; }

.hero-grid {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; align-items: stretch;
}

/* glass blur only on the few large panels — applying it to every card
   (dozens of layers) overwhelms the compositor and can blank the page */
.player-card, .stream-list, .table-wrap, .modal-card {
 }

/* featured player */
.player-card {
  background: var(--panel); border: 1px solid var(--glass-edge); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.player-screen {
  position: relative; aspect-ratio: 16 / 9; background:
    linear-gradient(135deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.15) 100%);
  display: grid; place-items: center; overflow: hidden;
}
.player-screen::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.25) 0 1px, transparent 1px 90px);
}
.player-placeholder { text-align: center; color: var(--muted); z-index: 1; }
.play-ring {
  width: 78px; height: 78px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #16c2d6, #0a93ab); box-shadow: 0 0 0 10px rgba(10,166,192,.12), 0 14px 36px -12px rgba(10,166,192,.7);
}
.player-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.player-featured {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column;
  justify-content: space-between; padding: 18px; cursor: pointer;
}
.player-featured .pf-top { display: flex; justify-content: space-between; align-items: flex-start; }
.player-featured .pf-status {
  font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: var(--pl-pink); color: #fff;
  display: inline-flex; align-items: center; gap: 7px; box-shadow: 0 6px 16px -6px rgba(233,0,82,.6);
}
.player-featured .pf-status .live-pip { background:#fff; }
.player-featured .pf-score {
  display: flex; align-items: center; justify-content: center; gap: 18px; margin: auto 0;
}
.pf-team { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 130px; text-align: center; }
.pf-team img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(20,32,70,.2)); }
.pf-team span { font-weight: 700; font-size: 14px; }
.pf-num { font-family: var(--display); font-weight: 900; font-size: 46px; line-height: 1; color: var(--text); white-space: nowrap; flex: none; }
.pf-cta {
  align-self: center; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: 999px; font-weight: 800; font-size: 15px;
  background: linear-gradient(135deg, #16c2d6, #0a93ab); color: #fff;
  box-shadow: 0 12px 28px -10px rgba(10,166,192,.75), inset 0 1px 0 rgba(255,255,255,.4);
}
.player-meta { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; border-top: 1px solid var(--border); }
.player-meta strong { font-weight: 700; }

/* stream list */
.stream-list {
  background: var(--panel); border: 1px solid var(--glass-edge); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow);
}
.stream-list-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.stream-list-head h2 { font-family: var(--display); font-size: 17px; font-weight: 800; }
.badge-live {
  font-size: 11px; font-weight: 800; letter-spacing: .5px; padding: 4px 10px; border-radius: 999px;
  background: rgba(233,0,82,.1); color: #d4004b; border: 1px solid rgba(233,0,82,.3);
}
.stream-scroll { overflow-y: auto; max-height: 430px; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.stream-scroll::-webkit-scrollbar { width: 8px; }
.stream-scroll::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; }
/* Community chat (Bantertalks) shown in the streams list when no matches are on */
.banter-intro { text-align: center; color: var(--muted); font-size: 12.5px; padding: 6px 8px 2px; line-height: 1.4; }
#bantertalks-chat { display: block; width: 100%; flex: 1 1 auto; min-height: 380px; border: 0; border-radius: 12px; background: rgba(255,255,255,.55); box-shadow: var(--shadow-sm); }

.stream-row {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  padding: 12px; border-radius: 12px; background: rgba(255,255,255,.5); border: 1px solid var(--border);
  transition: .15s; cursor: pointer;
}
.stream-row:hover { border-color: var(--border-2); background: var(--panel-2); box-shadow: var(--shadow-sm); }
.sr-teams { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sr-team { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.sr-team img { width: 20px; height: 20px; object-fit: contain; }
.sr-team .sc { margin-left: auto; font-weight: 800; font-family: var(--display); }
.sr-meta { font-size: 11px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 8px; }
.sr-status { font-size: 11px; font-weight: 700; }
.sr-status.live { color: #0a8aa3; }
.sr-watch {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px;
  font-weight: 800; font-size: 13px; cursor: pointer; border: 0;
  background: linear-gradient(135deg, #16c2d6, #0a93ab); color: #fff; transition: .15s; white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(10,166,192,.7);
}
.sr-watch:hover { filter: brightness(1.05); transform: translateY(-1px); }
.sr-watch.soon { background: rgba(17,24,39,.06); color: var(--muted); cursor: default; box-shadow: none; }
.sr-watch.soon:hover { transform: none; filter: none; }

/* ===================== SECTIONS ===================== */
.section { padding: 54px 0; }
.section.alt { background: rgba(255,255,255,.4); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-top: 1px solid var(--glass-edge); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.section-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3vw, 30px); display: flex; align-items: center; gap: 12px; }
.accent-bar { width: 6px; height: 26px; border-radius: 4px; background: var(--pl-green); box-shadow: 0 2px 10px rgba(10,166,192,.5); }
.accent-bar.cyan { background: var(--pl-cyan); box-shadow: 0 2px 10px rgba(10,132,255,.5); }
.accent-bar.pink { background: var(--pl-pink); box-shadow: 0 2px 10px rgba(233,0,82,.5); }
.updated { font-size: 12px; color: var(--muted); }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; align-items: start; }

/* live score cards */
.score-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.match-card {
  background: var(--panel); border: 1px solid var(--glass-edge); border-radius: 14px; padding: 16px;
  transition: .15s; box-shadow: var(--shadow-sm);
}
.match-card:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.mc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mc-status { font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(17,24,39,.05); color: var(--muted); }
.mc-status.live { background: rgba(10,166,192,.12); color: #0a8aa3; border: 1px solid rgba(10,166,192,.35); }
.mc-status.live::before { content:""; display:inline-block; width:7px; height:7px; border-radius:50%; background: var(--pl-green); margin-right:6px; vertical-align: middle; animation: pulse 1.3s infinite; }
.mc-venue { font-size: 11px; color: var(--muted); max-width: 55%; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.mc-row img { width: 26px; height: 26px; object-fit: contain; }
.mc-row .name { font-weight: 600; font-size: 15px; }
.mc-row.win .name { color: var(--text); font-weight: 800; }
.mc-row .score { margin-left: auto; font-family: var(--display); font-weight: 900; font-size: 22px; }
.mc-row.win .score { color: #0a8aa3; }

/* standings */
.table-wrap { background: var(--panel); border: 1px solid var(--glass-edge); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.standings { width: 100%; border-collapse: collapse; font-size: 14px; }
.standings thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--border); }
.standings th.c, .standings td.c { text-align: center; }
.standings tbody td { padding: 10px 8px; border-bottom: 1px solid var(--border); }
.standings tbody tr:last-child td { border-bottom: 0; }
.standings tbody tr:hover { background: rgba(255,255,255,.6); }
.st-club { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.st-club img { width: 22px; height: 22px; object-fit: contain; }
.st-pos { position: relative; font-weight: 700; padding-left: 12px; }
.st-pos::before { content:""; position:absolute; left:0; top:50%; transform: translateY(-50%); width:4px; height:22px; border-radius:3px; background: transparent; }
tr.ucl .st-pos::before { background: var(--pl-cyan); }
tr.uel .st-pos::before { background: var(--pl-green); }
tr.rel .st-pos::before { background: var(--pl-pink); }
.standings .pts { font-family: var(--display); font-weight: 900; font-size: 16px; }
.gd-pos { color: #0a8aa3; }
.gd-neg { color: #d4004b; }

.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.legend .key { display:inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.key.ucl { background: var(--pl-cyan); } .key.uel { background: var(--pl-green); } .key.rel { background: var(--pl-pink); }

/* scorers */
.scorer-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.scorer {
  display: grid; grid-template-columns: 30px auto 1fr auto; gap: 14px; align-items: center;
  background: var(--panel); border: 1px solid var(--glass-edge); border-radius: 12px; padding: 12px 16px; transition: .15s; box-shadow: var(--shadow-sm);
}
.scorer:hover { border-color: var(--border-2); transform: translateX(2px); }
.scorer .rank { font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--muted); text-align: center; }
.scorer:nth-child(1) .rank { color: #0a8aa3; }
.scorer:nth-child(2) .rank, .scorer:nth-child(3) .rank { color: var(--pl-cyan); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 15px; color: #fff; position: relative; flex: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 10px -4px rgba(20,32,70,.4); }
.avatar img.head { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar.is-club { background: linear-gradient(180deg, #ffffff, #eef1f6); }
.avatar .club-logo { width: 74%; height: 74%; object-fit: contain; }
.avatar .club { position: absolute; bottom: -3px; right: -4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; padding: 2px; box-shadow: 0 2px 6px -2px rgba(20,32,70,.4); }
.scorer .who { min-width: 0; }
.scorer .who .pname { display: block; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scorer .who .pteam { display: block; font-size: 12px; color: var(--muted); }
.scorer .tally { text-align: right; }
.scorer .tally .g { font-family: var(--display); font-weight: 900; font-size: 22px; color: #0a8aa3; }
.scorer .tally .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); display: block; }
.scorer .tally .a { font-size: 11px; color: var(--muted); }

/* results */
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.result-card { background: var(--panel); border: 1px solid var(--glass-edge); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.result-card .rc-date { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rc-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.rc-row img { width: 22px; height: 22px; object-fit: contain; }
.rc-row .name { font-size: 14px; font-weight: 600; }
.rc-row.win .name { color: var(--text); font-weight: 800; }
.rc-row.lose .name { color: var(--muted); }
.rc-row .sc { margin-left: auto; font-family: var(--display); font-weight: 900; font-size: 18px; }
.rc-row.win .sc { color: #0a8aa3; }

/* competition / stage tag (Champions League) */
.comp-tag { font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.comp-tag.ucl { color: #1e40af; background: rgba(10, 132, 255, 0.12); border: 1px solid rgba(10, 132, 255, 0.4); }
.comp-tag.uecl { color: #1f7a4d; background: rgba(22, 163, 96, 0.12); border: 1px solid rgba(22, 163, 96, 0.4); }
.comp-tag.int { color: #b00020; background: rgba(206, 17, 38, 0.12); border: 1px solid rgba(206, 17, 38, 0.4); }
.comp-tag.pl { color: #0a8aa3; background: rgba(10, 166, 192, 0.12); border: 1px solid rgba(10, 166, 192, 0.4); }

/* latest headlines / news */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.news-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--glass-edge); border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.news-card { cursor: pointer; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-2); }
.news-card:focus-visible { outline: 2px solid var(--pl-cyan); outline-offset: 2px; }

/* full-article modal */
.modal-card.news-article { width: min(680px, 100%); max-height: 88vh; overflow-y: auto; padding: 0; }
.nm-hero { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, rgba(10,166,192,.14), rgba(10,132,255,.1)); }
.nm-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nm-hero.crest { display: grid; place-items: center; }
.nm-hero.crest img { width: auto; height: auto; max-width: 38%; max-height: 56%; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(20,32,70,.22)); }
.nm-content { padding: 18px 24px 26px; }
.nm-content .news-tags { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.nm-headline { font-family: var(--display); font-weight: 900; font-size: clamp(21px, 3.4vw, 30px); line-height: 1.18; letter-spacing: -0.6px; margin-bottom: 16px; color: var(--text); }
.nm-article p { font-size: 15px; line-height: 1.75; color: #2c333f; margin-bottom: 13px; }
.nm-article p:last-child { margin-bottom: 0; }
.nm-foot { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nm-byline { font-weight: 800; font-size: 13px; color: var(--muted); }
.nm-link { font-weight: 800; font-size: 13px; color: #0a8aa3; }
.nm-link:hover { text-decoration: underline; }
.news-img { aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, rgba(10,132,255,.12), rgba(10,166,192,.12)); }
.news-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-img.crest { display: grid; place-items: center; background: linear-gradient(135deg, rgba(10,166,192,.14), rgba(10,132,255,.1)); }
.news-img.crest img { width: auto; height: auto; max-width: 42%; max-height: 62%; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(20,32,70,.22)); }
.news-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-tags { display: flex; align-items: center; gap: 10px; }
.news-time { font-size: 11px; color: var(--muted); margin-left: auto; }
.news-head { font-family: var(--display); font-weight: 800; font-size: 16px; line-height: 1.25; color: var(--text); }
.news-desc { font-size: 13px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { margin-top: auto; font-size: 12px; font-weight: 700; color: #0a8aa3; }
.news-more .sb-ext { opacity: .7; }
.mc-statwrap { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
#modal-comp[hidden] { display: none; }

/* match events: goals under teams + cards/subs details */
.mc-goals { list-style: none; margin: 2px 0 8px 36px; display: flex; flex-direction: column; gap: 3px; }
.result-card .mc-goals { margin-left: 32px; }
.mc-goals li { font-size: 12.5px; color: var(--muted); display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.mc-goals .gi { font-size: 10px; opacity: .9; }
.mc-goals .gm { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; min-width: 28px; }
.mc-goals .gn { color: #2c333f; font-weight: 600; }
.mc-goals .gn i { font-style: normal; color: var(--pl-cyan); font-size: 11px; font-weight: 700; }
.mc-goals .assist { font-size: 11px; color: var(--muted); }
.mc-goals .assist::before { content: "⤷ "; opacity: .7; }

.card-pip { display: inline-block; width: 9px; height: 13px; border-radius: 2px; vertical-align: -1px; flex: none; box-shadow: 0 1px 2px rgba(20,32,70,.25); }
.card-pip.y { background: #f4be00; }
.card-pip.r { background: #f5334f; }
.sub-ic { color: var(--pl-cyan); font-weight: 800; }

.mc-events { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; }
.mc-events summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; list-style: none; }
.mc-events summary::-webkit-details-marker { display: none; }
.mc-events summary::after { content: "▾"; color: var(--muted); transition: transform .2s; }
.mc-events[open] summary::after { transform: rotate(180deg); }
.ev-sum { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: var(--text); }
.ev-sum .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.ev-label { color: var(--muted); margin-left: auto; }
.ev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
/* Below 760px the side-by-side Cards / Subs columns get cramped — stack them. */
@media (max-width: 760px) { .ev-grid { grid-template-columns: 1fr; } }
.ev-col h4 { font-size: 10px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 7px; }
.ev-item { font-size: 12px; display: flex; align-items: center; gap: 7px; padding: 3px 0; color: #2c333f; }
.ev-item .em { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; min-width: 42px; flex: none; }
.ev-item .en { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Subs may wrap to 2 lines — align minute/team to the top so they line up with
   the first line of the player names (▲ on / ▼ off), not the centre. */
.ev-item.sub { align-items: flex-start; }
.ev-item.sub .em, .ev-item.sub .ev-team { padding-top: 1px; }
.ev-item.sub .swap { display: flex; flex-direction: column; gap: 1px; line-height: 1.3; min-width: 0; flex: 1 1 auto; overflow-wrap: break-word; }
.ev-item.sub .on { color: #0a8aa3; }
.ev-item.sub .off { color: #d4004b; }
.ev-team { font-size: 10px; font-weight: 800; letter-spacing: .4px; color: var(--muted); min-width: 34px; flex: none; }

/* line-ups: pitch graphic + bench */
.mc-lineups .lu-ic { color: var(--pl-cyan); }
.pitch-head { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 12px; font-weight: 800; color: var(--text); }
.ph-side { display: inline-flex; align-items: center; gap: 7px; }
.pp-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pp-dot.home { background: #13c2d6; } .pp-dot.away { background: #ff5d8a; }
.lu-form { font-size: 10px; font-weight: 700; color: var(--muted); background: rgba(17,24,39,.06); padding: 2px 8px; border-radius: 999px; letter-spacing: .5px; }

.pitch {
  position: relative; width: 100%; aspect-ratio: 2 / 3; margin: 10px 0 4px; border-radius: 14px; overflow: hidden;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.06) 0 9.09%, rgba(0,0,0,.03) 9.09% 18.18%),
    linear-gradient(180deg, #1ea355 0%, #16823f 100%);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18), var(--shadow-sm);
}
.pitch::before { content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: rgba(255,255,255,.45); }
.pitch::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26%; aspect-ratio: 1; transform: translate(-50%,-50%); border: 2px solid rgba(255,255,255,.45); border-radius: 50%; }
.pm-box { position: absolute; left: 50%; transform: translateX(-50%); width: 50%; height: 13%; border: 2px solid rgba(255,255,255,.35); }
.pm-box.top { top: -2px; } .pm-box.bottom { bottom: -2px; }

.pp { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; width: 50px; z-index: 2; }
.pp-no { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 11px; background: #fff; color: #12181f; box-shadow: 0 2px 6px rgba(0,0,0,.35); border: 2px solid #13c2d6; }
.pp.away .pp-no { border-color: #ff5d8a; }
.pp.off .pp-no { opacity: .55; }
.pp-name { font-size: 9px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); max-width: 56px; line-height: 1.05; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lu-benches { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 14px; }
.lu-team h4 { font-family: var(--display); font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--text); }
.lu-list { list-style: none; display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 0; min-width: 0; }
.lu-list li { font-size: 12.5px; display: flex; align-items: center; gap: 8px; color: var(--muted); min-width: 0; }
.lu-no { font-family: var(--display); font-weight: 800; font-size: 11px; color: var(--muted); min-width: 22px; text-align: center; background: rgba(17,24,39,.05); border-radius: 5px; padding: 1px 0; flex: none; }
.lu-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 auto; }
.lu-on { color: #0a8aa3; font-weight: 800; }
.lu-off { color: #d4004b; font-weight: 800; }

/* skeletons */
.skeleton-row, .skeleton-card { background: linear-gradient(100deg, rgba(150,162,185,.12) 30%, rgba(150,162,185,.26) 50%, rgba(150,162,185,.12) 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 12px; }
.skeleton-row { height: 56px; }
.skeleton-card { height: 130px; }
.skeleton-card.sm { height: 110px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.loading { text-align: center; color: var(--muted); padding: 30px; }

/* ===================== FOOTER ===================== */
.site-footer { border-top: 1px solid var(--border); background: rgba(255,255,255,.45); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); margin-top: 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; padding: 40px 22px 26px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); font-size: 13px; max-width: 320px; margin-top: 8px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: start; }
.footer-nav a { color: var(--muted); font-size: 14px; font-weight: 600; }
.footer-nav a:hover { color: var(--pl-green); }
.footer-bottom { padding: 18px 22px 36px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 12px; color: var(--muted); max-width: 760px; }
.footer-bottom .copy { white-space: nowrap; }

/* ===================== CONTENT PAGES (privacy / contact) ===================== */
.page-main { padding: 44px 0 60px; min-height: 60vh; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: #0a8aa3; font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.back-link:hover { text-decoration: underline; }
.page-card {
  background: var(--panel); border: 1px solid var(--glass-edge); border-radius: 20px;
  box-shadow: var(--shadow);  padding: 34px clamp(20px, 4vw, 46px) 42px; max-width: 880px;
}
.page-card h1 { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 4vw, 42px); letter-spacing: -1px; }
.page-updated { color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.page-card h2 { font-family: var(--display); font-weight: 800; font-size: 19px; margin: 28px 0 10px; }
.page-card p, .page-card li { color: #2c333f; font-size: 15px; line-height: 1.7; }
.page-card p { margin-bottom: 12px; }
.page-card ul { margin: 0 0 14px 20px; }
.page-card li { margin-bottom: 6px; }
.page-card a { color: #0a8aa3; font-weight: 600; }
.page-card a:hover { text-decoration: underline; }
.contact-card { display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,.55); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; margin: 8px 0 22px; }
.contact-card .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #16c2d6, #0a93ab); color: #fff; font-size: 22px; flex: none; box-shadow: 0 8px 18px -8px rgba(10,166,192,.7); }
.contact-card .cc-label { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.contact-email { font-family: var(--display); font-weight: 800; font-size: clamp(18px, 3vw, 22px); color: var(--text); word-break: break-all; }

/* ===================== MODAL ===================== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(30, 41, 66, 0.45); }
.modal-card { position: relative; width: min(900px, 100%); background: var(--glass-strong); border: 1px solid var(--glass-edge); border-radius: 20px; box-shadow: 0 30px 70px -24px rgba(20, 32, 70, 0.5), inset 0 1px 0 rgba(255,255,255,.9); overflow: hidden; }
.modal-close { position: absolute; top: 12px; right: 14px; z-index: 6; background: #fff; color: var(--text); border: 1px solid var(--border-2); width: 38px; height: 38px; border-radius: 50%; font-size: 24px; line-height: 1; display: grid; place-items: center; cursor: pointer; transition: .15s; box-shadow: 0 6px 16px -6px rgba(20,32,70,.45); }
.modal-close:hover { background: var(--pl-pink); color: #fff; border-color: transparent; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 16px 56px 16px 18px; }
.modal-head h3 { font-family: var(--display); font-weight: 800; font-size: 18px; }
.badge-live.live { background: rgba(10,166,192,.12); color: #0a8aa3; border: 1px solid rgba(10,166,192,.35); }
.badge-live.ft { background: rgba(17,24,39,.06); color: var(--muted); border-color: var(--border-2); }
.badge-live.soon { background: rgba(10,132,255,.12); color: #1e40af; border-color: rgba(10,132,255,.4); }
.modal-body { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 16px; }
/* stream modal: cap height & scroll the body so all streams are always reachable */
#stream-modal .modal-card { max-height: 92vh; display: flex; flex-direction: column; }
#stream-modal .modal-head { flex: none; }
#stream-modal .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* match info */
.modal-matchinfo { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 16px; background: linear-gradient(135deg, rgba(255,255,255,.65), rgba(255,255,255,.25)); border-radius: 14px; border: 1px solid var(--glass-edge); }
.mi-team { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 120px; text-align: center; }
.mi-team img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(20,32,70,.2)); }
.mi-team span { font-weight: 700; font-size: 14px; }
.mi-score { font-family: var(--display); font-weight: 900; font-size: 30px; white-space: nowrap; flex: none; }

/* countdown */
.modal-countdown { text-align: center; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.5); border: 1px solid var(--border); }
.modal-countdown.live { background: rgba(10,166,192,.1); border-color: rgba(10,166,192,.3); }
.modal-countdown.ft { background: rgba(17,24,39,.04); color: var(--muted); }
.cd-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 6px; }
.cd-clock { font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: 1px; }
.cd-clock b { color: var(--text); }
.cd-clock i { color: var(--pl-green); font-style: normal; margin: 0 2px; }
.cd-live { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; color: #0a8aa3; font-size: 16px; }

/* external stream links */
.modal-streams { display: flex; flex-direction: column; gap: 12px; }
.stream-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sg-label { font-family: var(--display); font-weight: 900; font-size: 13px; letter-spacing: .5px; width: 40px; flex: none; padding: 5px 0; text-align: center; border-radius: 8px; }
.sg-label.hd { color: #fff; background: linear-gradient(135deg, #16c2d6, #0a93ab); }
.sg-label.sd { color: var(--text); background: rgba(17,24,39,.08); }
.sg-links { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.stream-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 10px; border: 1px solid var(--border-2); background: rgba(255,255,255,.6); color: var(--text); font-weight: 700; font-size: 13px; transition: .15s; }
.stream-btn:hover { background: linear-gradient(135deg, #16c2d6, #0a93ab); color: #fff; border-color: transparent; transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(10,166,192,.7); }
.stream-btn .sb-play { font-size: 11px; }
.stream-btn .sb-ext { margin-left: 2px; opacity: .55; font-size: 12px; }
.modal-note { font-size: 12px; color: var(--muted); margin: 0; }

/* AdSense slots */
.ad-slot { margin: 0; }
.ad-label { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); text-align: center; margin-bottom: 5px; opacity: .65; }
.ad-placeholder { border: 1px dashed var(--border-2); border-radius: 10px; min-height: 90px; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 12px; padding: 14px; background: rgba(255,255,255,.35); }
.ad-placeholder code { color: var(--pl-cyan); }
.ad-inline { padding: 6px 4px; }
/* in-feed ad cell inside the news grid: looks like a news card */
.ad-feed { display: flex; flex-direction: column; justify-content: center; min-height: 130px;
  padding: 12px; background: var(--panel); border: 1px solid var(--glass-edge); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.ad-feed .house-ad { border: 0; background: transparent; padding: 0; }
/* house promo (fallback shown only when AdSense returns no ad) */
.house-ad { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 12px; color: var(--text);
  background: linear-gradient(135deg, rgba(22,194,214,.16), rgba(10,132,255,.10)); border: 1px solid var(--border-2); transition: .15s; }
.house-ad:hover { border-color: var(--pl-cyan); transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(10,166,192,.6); }
.house-ad .ha-play { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg,#16c2d6,#0a93ab); color: #fff; font-size: 13px; box-shadow: 0 4px 10px -4px rgba(10,166,192,.8); }
.house-ad .ha-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.house-ad .ha-text strong { font-size: 13.5px; font-weight: 800; line-height: 1.25; }
.house-ad .ha-text span { font-size: 11.5px; color: var(--muted); }
.house-ad .ha-cta { margin-left: auto; flex: none; font-weight: 800; font-size: 12.5px; color: var(--pl-cyan); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .stream-scroll { max-height: 360px; }
}
@media (max-width: 880px) {
  .main-nav { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .header-inner { gap: 12px; height: 60px; }
  .header-cta { padding: 8px 14px; font-size: 13px; gap: 6px; }
  .install-btn { margin-left: 6px; }
  .brand-logo { height: 32px; }
}
@media (max-width: 640px) {
  .standings .hide-s { display: none; }
  .ev-grid { grid-template-columns: 1fr; }
  .hero h1 { letter-spacing: -1px; }
  .pf-num { font-size: 36px; }
  .pf-team { width: 100px; }
  .footer-bottom { flex-direction: column; }
  /* stream modal: trim the redundant title header to reclaim height */
  #stream-modal .modal-head { padding: 10px 50px 2px 16px; }
  #stream-modal .modal-head h3 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  /* keep the score on one line and let the row fit */
  .modal-matchinfo { gap: 10px; padding: 14px 10px; }
  .mi-team { width: 90px; }
  /* two stream links per row */
  .sg-links .stream-btn { flex: 1 1 calc(50% - 4px); justify-content: center; min-width: 0; padding: 11px 8px; }
}
