/* =========================================================================
   IPL Cricket 20 — site stylesheet.
   Dark, high-energy sports-broadcast theme (Stitch "IPL Cricket 20 Portal").
   Glassmorphic surfaces over a deep-navy immersive background, IPL blue/orange
   accents, gold for stats/CTAs, magenta for live. Bricolage Grotesque display +
   Work Sans body. Per-card franchise colour still arrives via --team/--home/--away.
   ========================================================================= */
:root {
  /* base navy ladder */
  --bg:        #050c28;
  --bg-2:      #0b1437;
  --surface:   #10193c;
  --surface-2: #1a2350;
  --surface-3: #232d5e;
  --line:      #283461;
  --line-soft: rgba(255,255,255,.10);

  /* text */
  --text:      #dfe4ff;
  --text-2:    #ffffff;
  --muted:     #a3aed0;

  /* brand + accents */
  --primary:    #6f8cff;   /* readable light-blue for links/icons */
  --primary-600:#1e5bff;   /* bright blue for solid fills        */
  --accent:     #6f8cff;   /* legacy alias used across templates */
  --accent-2:   #ff4fa3;   /* magenta                            */
  --magenta:    #d7007f;
  --gold:       #fabd00;   /* tertiary — stats & primary CTA     */
  --ipl-blue:   #19398a;
  --ipl-orange: #ef4123;
  --hit:        #2ee6a6;
  --miss:       #ff6b6b;
  --team:       #6f8cff;

  /* glass */
  --glass:      rgba(20,28,68,.55);
  --glass-2:    rgba(20,28,68,.78);
  --glass-line: rgba(255,255,255,.10);

  --radius:    16px;
  --radius-lg: 24px;
  --grad:      linear-gradient(100deg, var(--primary-600), var(--magenta));
  --grad-gold: linear-gradient(120deg, var(--ipl-orange), #7a1212);
  --maxw:      1200px;
  --font:      "Work Sans", system-ui, -apple-system, Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  --font-head: "Bricolage Grotesque", "Work Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.55; font-size: 16px; min-height: 100vh; overflow-x: hidden;
  background-image:
    radial-gradient(1100px 600px at 85% -10%, rgba(30,91,255,.22), transparent 60%),
    radial-gradient(900px 600px at -5% 5%,  rgba(215,0,127,.16), transparent 55%),
    linear-gradient(rgba(5,12,40,.88), rgba(5,12,40,.94)),
    url('/assets/img/page-bg.jpg');
  background-size: auto, auto, auto, cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .4em; color: var(--text-2); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--primary-600); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary-600); border-radius: 10px; }
.no-bar { scrollbar-width: none; }
.no-bar::-webkit-scrollbar { display: none; }

/* ---- header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--glass-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-line); box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--text-2); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center; width: 42px; height: 34px; border-radius: 10px;
  background: var(--grad); color: #fff; font-family: var(--font-head);
  font-weight: 800; font-size: 14px; letter-spacing: .5px;
}
.brand-name { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a {
  color: var(--muted); padding: 8px 12px; border-radius: 9px; font-family: var(--font-head);
  font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--text-2); text-decoration: none; }
.site-nav a.active { color: var(--text-2); border-bottom-color: var(--primary-600); border-radius: 0; }
.nav-toggle { display: none; margin-left: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; width: 44px; height: 40px; cursor: pointer; flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---- language switcher ---- */
.lang-switch { position: relative; margin-left: 10px; }
.lang-current { background: rgba(255,255,255,.05); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-weight: 600; }
.lang-menu { position: absolute; right: 0; top: 120%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 6px; min-width: 120px; display: none; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.lang-switch.open .lang-menu { display: block; }
.lang-menu a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--muted); }
.lang-menu a:hover, .lang-menu a.active { background: rgba(255,255,255,.06); color: var(--text-2); text-decoration: none; }

/* ---- glass / pills / badges ---- */
.glass { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--glass-line); }
.pill { display: inline-block; padding: 5px 14px; border-radius: 999px; font-family: var(--font-head); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.badge-live { background: var(--magenta); color: #fff; animation: pulse-live 2s infinite; }
@keyframes pulse-live {
  0%   { box-shadow: 0 0 0 0 rgba(215,0,127,.7); }
  70%  { box-shadow: 0 0 0 10px rgba(215,0,127,0); }
  100% { box-shadow: 0 0 0 0 rgba(215,0,127,0); }
}
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; fill: currentColor; }

/* ---- team crest badge (real logo if present, else coloured monogram) ---- */
.crest { display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  background: color-mix(in srgb, var(--team, #6f8cff) 20%, #0b1437);
  border: 1px solid color-mix(in srgb, var(--team, #6f8cff) 45%, transparent); }
.crest img { width: 74%; height: 74%; object-fit: contain; }
.crest-mono { font-family: var(--font-head); font-weight: 800; color: #fff; letter-spacing: .01em; }
.crest-sm { width: 30px; height: 30px; font-size: .66rem; }
.crest-md { width: 52px; height: 52px; font-size: .92rem; }
.crest-lg { width: 64px; height: 64px; font-size: 1.1rem; }

/* ---- layout ---- */
main { display: block; padding: 28px 20px 72px; }
.section { margin: 44px 0; }
.section:first-child { margin-top: 28px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2, .section > h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); text-transform: uppercase; font-style: italic; letter-spacing: -.02em; }
.section-head p { color: var(--muted); margin: 6px 0 0; font-style: normal; }
.section-head a { font-family: var(--font-head); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; display: inline-flex; align-items: center; gap: 6px; }
.page-head { margin: 8px 0 26px; }
.page-head h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); text-transform: uppercase; font-style: italic; letter-spacing: -.02em; }
.page-sub, .record-line { color: var(--muted); }
.empty { color: var(--muted); padding: 40px; text-align: center; background: var(--glass); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---- hero (full-bleed, image-backed) ---- */
.hero {
  position: relative; overflow: hidden;
  width: 100vw; margin-left: calc(50% - 50vw); margin-top: -28px; margin-bottom: 40px;
  min-height: clamp(440px, 64vh, 760px); display: flex; align-items: center;
  background: linear-gradient(120deg, var(--surface), var(--bg-2));
  background-size: cover; background-position: center top;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: bottom center; z-index: 0; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(5,12,40,.72) 42%, rgba(5,12,40,.15) 100%),
    linear-gradient(0deg, var(--bg) 2%, transparent 55%); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) 20px; display: flex; flex-wrap: wrap; gap: 28px;
  align-items: center; justify-content: space-between; }
.hero-text { position: relative; z-index: 2; max-width: 640px; }
.hero .hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.hero-eyebrow .meta { font-family: var(--font-head); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); text-transform: uppercase; letter-spacing: -.02em; line-height: .92; margin: 0 0 18px; }
.hero h1 .b { color: var(--primary); } .hero h1 .m { color: var(--accent-2); }
.hero-tag { color: var(--text); opacity: .85; margin: 0 0 24px; font-size: clamp(1rem, 2vw, 1.2rem); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-record { position: relative; z-index: 2; text-align: center; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); padding: 22px 30px; backdrop-filter: blur(10px); }
.hr-pct { display: block; font-family: var(--font-head); font-size: 2.8rem; font-weight: 800; color: var(--gold); line-height: 1; }
.hr-label { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; border: 1px solid transparent; transition: transform .12s, filter .12s, background .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--gold); color: #2a1d00; box-shadow: 0 10px 30px rgba(250,189,0,.22); }
.btn-primary:hover { text-decoration: none; filter: brightness(1.06); }
.btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: var(--text-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); text-decoration: none; }

/* ---- competition strip ---- */
.comp-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 16px; }
.comp-strip a { white-space: nowrap; background: var(--glass); border: 1px solid var(--glass-line); padding: 8px 16px; border-radius: 999px; color: var(--muted); font-family: var(--font-head); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.comp-strip a:hover { color: var(--text-2); border-color: var(--primary-600); text-decoration: none; }

/* ---- live / recent score strip ---- */
.score-strip { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 16px; }
.score-card { flex: 0 0 auto; min-width: 264px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-radius: var(--radius); }
.score-card:hover { border-color: var(--primary-600); text-decoration: none; }
.score-card .sc-rows { display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.score-card .sc-row { display: flex; align-items: center; gap: 10px; }
.score-card .sc-tla { font-family: var(--font-head); font-weight: 700; min-width: 42px; }
.score-card .sc-num { color: var(--text-2); font-variant-numeric: tabular-nums; }
.score-card .sc-row.dim { opacity: .6; }
.score-card .sc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.score-card .sc-venue { font-size: .64rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }

/* ---- match cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.match-card {
  display: block; background: var(--glass); border: 1px solid var(--glass-line);
  border-left: 4px solid var(--team); border-radius: var(--radius); padding: 18px;
  color: var(--text); backdrop-filter: blur(10px); transition: transform .14s, border-color .14s;
}
.match-card:hover { transform: translateY(-3px); border-color: var(--primary-600); text-decoration: none; }
.mc-top { display: flex; justify-content: space-between; font-family: var(--font-head); font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.mc-teams { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.mc-team { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mc-away { text-align: right; align-items: flex-end; }
.mc-tla { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; }
.mc-home .mc-tla { color: var(--home, var(--team)); }
.mc-away .mc-tla { color: var(--away, var(--accent-2)); }
.mc-name { font-size: .76rem; color: var(--muted); }
.mc-score { font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.mc-vs { font-family: var(--font-head); font-style: italic; color: var(--muted); opacity: .5; font-size: .9rem; }
.mc-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line-soft); padding-top: 12px; font-size: .82rem; }
.mc-time, .mc-result { color: var(--muted); }
.mc-tip strong { color: var(--text-2); }
.mc-tipbadge { font-family: var(--font-head); font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; }
.mc-tipbadge.is-hit { background: rgba(46,230,166,.16); color: var(--hit); }
.mc-tipbadge.is-miss { background: rgba(255,107,107,.16); color: var(--miss); }

/* ---- bento: points table + leaders ---- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.bento-pts { grid-column: span 7; }
.bento-leaders { grid-column: span 5; display: flex; flex-direction: column; gap: 18px; }
.pts-wrap { border-radius: var(--radius-lg); overflow: hidden; }
.pts-foot { padding: 16px; text-align: center; background: rgba(255,255,255,.05); border-top: 1px solid var(--line-soft); }
.pts-foot a { font-family: var(--font-head); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pts-foot a:hover { color: var(--text-2); text-decoration: none; }

.leader-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 28px; color: #fff; }
.leader-orange { background: var(--grad-gold); }
.leader-purple { background: linear-gradient(120deg, var(--magenta), #2a1466); }
.leader-card .lc-glow { position: absolute; right: -20px; top: -20px; width: 120px; height: 120px; background: rgba(255,255,255,.12); border-radius: 50%; filter: blur(34px); }
.leader-card .lc-photo { position: absolute; right: 0; bottom: 0; top: 0; width: 52%; z-index: 1;
  background-size: cover; background-position: center top; opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.leader-card.has-photo { padding-right: 46%; }
.leader-card .lc-tags { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; position: relative; z-index: 2; }
.leader-card .lc-cap { background: rgba(255,255,255,.2); backdrop-filter: blur(8px); padding: 4px 12px; border-radius: 6px; font-family: var(--font-head); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.leader-card .lc-sub { font-family: var(--font-head); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.8); }
.leader-card .lc-val { font-family: var(--font-head); font-size: 3.2rem; font-weight: 800; line-height: 1; position: relative; z-index: 2; }
.leader-card .lc-name { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; text-transform: uppercase; margin: 8px 0 2px; position: relative; z-index: 2; color: #fff; }
.leader-card .lc-name:hover { text-decoration: none; }
.leader-card .lc-meta { font-size: .8rem; color: rgba(255,255,255,.72); position: relative; z-index: 2; }

/* ---- posts / news bento ---- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.post-grid-lg { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.news-bento { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.post-feature { position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 320px; display: flex; align-items: flex-end; padding: 32px; color: #fff;
  background: radial-gradient(600px 400px at 70% 20%, rgba(30,91,255,.5), transparent 60%), linear-gradient(180deg, #0a1336, #1a2350);
  background-size: cover; background-position: center; border: 1px solid var(--glass-line); }
.post-feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,12,40,.85), transparent 70%); }
.post-feature > * { position: relative; z-index: 2; }
.post-feature .pf-cat { font-family: var(--font-head); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.post-feature h3 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); text-transform: uppercase; margin: 10px 0; max-width: 30ch; }
.post-feature .pf-meta { color: rgba(255,255,255,.7); font-size: .82rem; }
.post-feature.has-img::before { background: linear-gradient(0deg, rgba(5,12,40,.92), rgba(5,12,40,.25) 55%, rgba(5,12,40,.1)); }
.post-feature .pf-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: 72px; height: 72px; border-radius: 50%; background: rgba(30,91,255,.9); display: grid; place-items: center; transition: transform .2s; }
.post-feature .pf-play .icon { width: 30px; height: 30px; color: #fff; }
.post-feature:hover .pf-play { transform: translate(-50%,-50%) scale(1.08); }
.post-feature:hover { text-decoration: none; }
.news-col { display: flex; flex-direction: column; gap: 18px; }
.post-card { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(10px); transition: transform .14s, border-color .14s; }
.post-card:hover { transform: translateY(-3px); border-color: var(--primary-600); }
.post-card a { display: block; padding: 20px; color: var(--text); }
.post-card a:hover { text-decoration: none; }
.post-card h2, .post-card h3, .post-card h4 { font-size: 1.1rem; }
.post-card a:hover h2, .post-card a:hover h3, .post-card a:hover h4 { color: var(--primary); }
.post-card p { color: var(--muted); font-size: .9rem; margin: 8px 0; }
.post-cat { display: inline-block; font-family: var(--font-head); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); font-weight: 700; }
.post-meta { font-size: .8rem; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }

/* ---- players / teams ---- */
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.player-card { background: var(--glass); border: 1px solid var(--glass-line); border-top: 3px solid var(--team); border-radius: var(--radius); padding: 16px; color: var(--text); backdrop-filter: blur(10px); }
.player-card:hover { border-color: var(--primary-600); text-decoration: none; transform: translateY(-3px); transition: .14s; }
.pl-role { font-family: var(--font-head); font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.player-card h3 { font-size: 1.1rem; margin: 4px 0; }
.pl-team { color: var(--muted); font-size: .85rem; }
.pl-stats { display: flex; gap: 16px; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.pl-stats strong { color: var(--text-2); font-size: 1.05rem; font-family: var(--font-head); }
.player-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.player-chip { flex: 0 0 auto; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 14px; padding: 12px 16px; color: var(--text); }
.player-chip:hover { border-color: var(--primary-600); text-decoration: none; }
.pc-name { display: block; font-family: var(--font-head); font-weight: 700; }
.pc-meta { font-size: .76rem; color: var(--muted); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.team-card { background: var(--glass); border: 1px solid var(--glass-line); border-left: 4px solid var(--team); border-radius: var(--radius); padding: 18px; color: var(--text); backdrop-filter: blur(10px); }
.team-card:hover { transform: translateY(-3px); border-color: var(--primary-600); text-decoration: none; transition: .14s; }
.tc-tla { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--team); }
.team-card h3 { font-size: 1.05rem; margin: 4px 0; }
.tc-venue { color: var(--muted); font-size: .8rem; }

/* ---- writers / competitions ---- */
.writer-grid, .comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.writer-card, .comp-card { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); padding: 20px; color: var(--text); text-align: center; backdrop-filter: blur(10px); }
.writer-card:hover, .comp-card:hover { border-color: var(--primary-600); text-decoration: none; }
.wr-avatar { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; margin-bottom: 10px; }
.wr-avatar.lg { width: 76px; height: 76px; font-size: 1.9rem; }
.wr-role { color: var(--muted); font-size: .85rem; }
.comp-card { text-align: left; border-left: 4px solid var(--team); }
.cc-type { font-family: var(--font-head); font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cc-season { color: var(--primary); font-size: .85rem; }

/* ---- match detail ---- */
.match-detail, .profile, .team-detail, .post, .writer-detail { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius-lg); padding: 28px; backdrop-filter: blur(10px); }
.md-head { text-align: center; border-bottom: 1px solid var(--line-soft); padding-bottom: 18px; margin-bottom: 18px; }
.md-comp { color: var(--primary); font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.md-stage { display: block; color: var(--muted); font-size: .85rem; margin: 4px 0 14px; }
.md-score { display: flex; align-items: center; justify-content: center; gap: 22px; }
.md-team { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; }
.md-team[data-side=home] a { color: var(--home, var(--team)); }
.md-team[data-side=away] a { color: var(--away, var(--accent-2)); }
.md-runs { font-size: 1.1rem; color: var(--text-2); }
.md-vs { color: var(--muted); font-style: italic; }
.md-result { font-family: var(--font-head); font-weight: 700; margin-top: 14px; }
.md-time { color: var(--muted); margin-top: 14px; }
.md-toss { color: var(--muted); font-size: .85rem; }
.md-tip, .md-fantasy, .md-scorecard { margin-top: 24px; }
.md-tipline { font-size: 1.1rem; }
.md-why h3 { font-size: 1rem; margin-top: 14px; color: var(--primary); }
.fc-tag { display: inline-grid; place-items: center; min-width: 28px; height: 24px; border-radius: 6px; background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .75rem; padding: 0 6px; }
.md-fan-grid { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 700; }
.fantasy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.fantasy-card { background: rgba(255,255,255,.04); border: 1px solid var(--glass-line); border-radius: var(--radius); padding: 16px; }
.fc-head { display: flex; justify-content: space-between; color: var(--text-2); font-family: var(--font-head); }
.fc-head span { color: var(--muted); font-size: .82rem; }
.fc-picks p { margin: 6px 0; }
.fc-list { color: var(--muted); font-size: .88rem; }
.form-list { list-style: none; padding: 0; margin: 0; }
.form-list li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.fl-meta { color: var(--muted); font-size: .82rem; }
.fl-fp { margin-left: auto; font-family: var(--font-head); font-weight: 800; color: var(--hit); }

/* ---- tabs ---- */
.tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.tab { background: none; border: none; color: var(--muted); padding: 12px 16px; cursor: pointer; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; border-bottom: 2px solid transparent; }
.tab.active { color: var(--text-2); border-bottom-color: var(--primary-600); }
.tab-n { font-size: .72rem; color: var(--muted); background: rgba(255,255,255,.06); padding: 1px 8px; border-radius: 999px; }

/* ---- tables ---- */
.table-scroll { overflow-x: auto; }
.pts-table, .sc-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pts-table th, .sc-table th { text-align: left; color: var(--muted); font-family: var(--font-head); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; padding: 14px 12px; background: rgba(255,255,255,.05); border-bottom: 1px solid var(--line-soft); }
.pts-table td, .sc-table td { padding: 14px 12px; border-bottom: 1px solid var(--line-soft); }
.pts-table tbody tr:hover { background: rgba(30,91,255,.06); }
.pts-table .pt-team { border-left: 3px solid var(--team); font-family: var(--font-head); font-weight: 700; }
.pt-teamcell { display: flex; align-items: center; gap: 10px; }
.pts-table .pt-team a { color: var(--text-2); }
.pt-pts strong { color: var(--gold); font-family: var(--font-head); font-size: 1.2rem; }
.sc-table th:not(:first-child), .sc-table td:not(:first-child), .pts-table th:nth-child(n+3), .pts-table td:nth-child(n+3) { text-align: center; }
.pts-table td:last-child, .pts-table th:last-child { text-align: right; }

/* ---- profile / stats ---- */
.profile-head, .team-head, .writer-head { text-align: center; border-bottom: 1px solid var(--line-soft); padding-bottom: 18px; margin-bottom: 18px; border-top: 3px solid var(--team); padding-top: 16px; }
.pr-role, .th-tla { color: var(--team); font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.pr-meta, .th-venue { color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; margin: 18px 0; }
.stat { background: rgba(255,255,255,.04); border: 1px solid var(--glass-line); border-radius: 14px; padding: 14px; text-align: center; }
.stat-v { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--text-2); }
.stat-l { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }

/* ---- prose ---- */
.prose { line-height: 1.75; }
.prose p { margin: 0 0 1em; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.post-head { border-bottom: 1px solid var(--line-soft); padding-bottom: 16px; margin-bottom: 18px; }
.post-byline { color: var(--muted); }
.post-tags { margin-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { background: rgba(255,255,255,.04); border: 1px solid var(--glass-line); border-radius: 999px; padding: 4px 14px; font-size: .8rem; color: var(--muted); }

/* ---- 404 ---- */
.notfound { text-align: center; padding: 80px 20px; }
.notfound h1 { font-size: 5rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--glass-line); background: var(--glass-2); backdrop-filter: blur(14px); margin-top: 64px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; align-items: flex-start; padding: 44px 0; border-bottom: 1px solid var(--line-soft); }
.footer-brand .brand-name, .footer-brand strong { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; text-transform: uppercase; color: var(--primary); display: block; }
.footer-brand p { color: var(--muted); font-size: .9rem; margin: 10px 0 18px; max-width: 38ch; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.05); color: var(--text); transition: background .2s, color .2s; }
.footer-social a:hover { background: var(--primary-600); color: #fff; }
.footer-news { width: min(360px, 100%); }
.footer-news label { font-family: var(--font-head); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); display: block; margin-bottom: 10px; }
.footer-news form { display: flex; gap: 8px; }
.footer-news input { flex: 1; background: rgba(255,255,255,.05); border: 1px solid var(--glass-line); border-radius: 10px; padding: 12px 14px; color: var(--text-2); }
.footer-news input:focus { outline: none; border-color: var(--primary-600); }
.footer-news button { background: var(--primary-600); color: #fff; border: none; border-radius: 10px; padding: 0 20px; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: .8rem; cursor: pointer; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px; padding: 40px 0; }
.footer-col h5 { font-family: var(--font-head); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); border-left: 2px solid var(--primary-600); padding-left: 12px; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0 0 0 14px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--muted); font-size: .9rem; }
.footer-col a:hover { color: var(--text-2); }
.footer-bottom { border-top: 1px solid var(--line-soft); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer-legal, .footer-bottom small { color: var(--muted); font-size: .8rem; }
.to-top { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; color: var(--primary); font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; cursor: pointer; }
.to-top:hover { color: var(--text-2); }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .bento-pts, .bento-leaders { grid-column: 1 / -1; }
  .news-bento { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; background: var(--glass-2); backdrop-filter: blur(14px); border-bottom: 1px solid var(--glass-line); padding: 12px 20px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px; border-bottom: none; }
  .site-nav a.active { border-radius: 9px; background: rgba(255,255,255,.06); }
  .lang-switch { margin: 8px 0 0; }
  .hero { padding: 28px; }
  .footer-top { flex-direction: column; }
}

/* AI-generated brand logo (Cloudflare Workers AI) */
.brand-logo{width:56px;height:56px;border-radius:50%;display:block;flex:0 0 auto;box-shadow:0 2px 10px rgba(0,0,0,.45)}
.footer-logo{width:64px;height:64px;border-radius:50%;display:block;margin-bottom:14px;box-shadow:0 2px 12px rgba(0,0,0,.45)}
@media (max-width:760px){.brand-logo{width:46px;height:46px}}

/* ---- hero "Up Next" feature match card ---- */
.hero-feature { position: relative; z-index: 2; width: min(380px, 100%); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.hf-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hf-meta { font-family: var(--font-head); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); text-align: right; }
.hf-teams { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hf-team { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.hf-tla { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--text-2); }
.hf-score { font-size: .82rem; color: var(--muted); }
.hf-vs { font-family: var(--font-head); font-weight: 800; color: var(--muted); font-size: .85rem; padding-top: 20px; }
.hf-when { text-align: center; }
.hf-countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hf-countdown > div { background: rgba(255,255,255,.06); border: 1px solid var(--glass-line); border-radius: 10px; padding: 8px 4px; }
.hf-countdown b { display: block; font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; color: var(--text-2); line-height: 1; }
.hf-countdown span { font-size: .58rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.hf-kickoff { font-family: var(--font-head); font-weight: 700; color: var(--gold); font-size: .95rem; }
.hf-venue { display: block; font-family: var(--font); font-weight: 400; color: var(--muted); font-size: .78rem; margin-top: 4px; }
.hf-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--glass-line); padding-top: 14px; font-size: .85rem; color: var(--muted); }
.hf-tip strong { color: var(--text-2); }
.hf-link { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; white-space: nowrap; color: var(--primary); }
.hf-record { display: flex; align-items: baseline; gap: 10px; border-top: 1px solid var(--glass-line); padding-top: 14px; }
.hf-record .hr-pct { font-size: 1.7rem; }
