
/* V11.1 — FULL REDESIGN PASS
   No new functionality. One visual system, less noise, calmer typography. */

:root{
  --ll-bg:#efeee9;
  --ll-surface:#fbfaf7;
  --ll-surface-soft:#f5f3ee;
  --ll-border:#ddd9d1;
  --ll-border-soft:#e9e5de;
  --ll-ink:#171819;
  --ll-muted:#777b77;
  --ll-accent:#5d1a77;
  --ll-accent-strong:#e90052;
  --ll-radius:16px;
  --ll-radius-small:12px;
  --ll-shadow:0 8px 22px rgba(25,18,30,.035);
  --ll-content:1200px;
  --ll-gap-1:12px;
  --ll-gap-2:16px;
  --ll-gap-3:24px;
  --ll-gap-4:32px;
}

/* ---------- GLOBAL GRID ---------- */
body{
  background:var(--ll-bg)!important;
  color:var(--ll-ink)!important;
}
.wrap,
.top-inner,
.competition-nav-inner{
  max-width:var(--ll-content)!important;
}
.wrap{
  padding-top:var(--ll-gap-4)!important;
  padding-bottom:64px!important;
}
.competition-panel{
  min-width:0;
}
.competition-panel > * + *{
  margin-top:var(--ll-gap-3);
}

/* ---------- ONE CARD SYSTEM ---------- */
.card,
.recap-card,
.record-card,
.ucl-recap-card,
.ucl-record,
.history-global-card,
.history-backup-card,
.comp-card,
.wc-group-card,
.wc-match-card{
  border:1px solid var(--ll-border)!important;
  border-radius:var(--ll-radius)!important;
  background:var(--ll-surface)!important;
  box-shadow:var(--ll-shadow)!important;
}

.comp-card,
.record-card,
.ucl-record{
  padding:var(--ll-gap-2)!important;
}

.card{
  overflow:hidden;
}

/* ---------- TYPOGRAPHY ---------- */
.brand-title,
.hero h1,
.competition-hero h1,
.ll-home-intro h1{
  letter-spacing:-.04em!important;
}

.hero h1{
  font-size:58px!important;
  line-height:.96!important;
}
.competition-hero h1{
  font-size:50px!important;
  line-height:.97!important;
}
.ll-home-intro h1{
  font-size:52px!important;
  line-height:.97!important;
}

.section-head h2,
.wc-group-title h2,
.wc-card-head h2{
  font-size:34px!important;
  line-height:1!important;
  letter-spacing:-.035em!important;
  margin-top:4px!important;
}

h3{
  letter-spacing:-.02em;
}

.competition-hero p,
.hero p{
  max-width:720px!important;
  font-size:15px!important;
  line-height:1.45!important;
  color:var(--ll-muted)!important;
  font-weight:400!important;
}

.kicker,
.stage-kicker,
.comp-kicker,
.ll-eyebrow,
.record-card span,
.ucl-record span{
  font-size:9px!important;
  font-weight:700!important;
  letter-spacing:.07em!important;
  color:var(--ll-accent)!important;
  text-transform:uppercase;
}

/* ---------- LESS PURPLE ---------- */
.ll-stat-leader-list>div,
.ll-live-event,
.recap-insights>div,
.ucl-recap-bottom>div{
  background:var(--ll-surface-soft)!important;
}
.competition-nav button.on{
  color:#fff!important;
}
.form-dot.w{background:#46826b!important}
.form-dot.d{background:#8f918d!important}
.form-dot.l{background:#b25c56!important}

/* ---------- HOME: ONLY THE IMPORTANT STUFF ---------- */
.ll-home{
  padding:0!important;
}
.ll-home-intro{
  display:block!important;
  margin-bottom:var(--ll-gap-3)!important;
}
.ll-home-layout-v52{
  display:flex!important;
  flex-direction:column!important;
  gap:var(--ll-gap-1)!important;
}
.ll-next{
  margin:0!important;
}
.ll-result-row{
  padding:10px 0!important;
}
.ll-duel-score{
  padding:8px 0 12px!important;
}
.ll-duel-score b{
  font-size:42px!important;
}
.ll-duel-meta-four{
  grid-template-columns:repeat(2,1fr)!important;
  gap:6px!important;
}
.ll-duel-meta-four span{
  padding:8px!important;
}
.ll-stat-leader-list{
  grid-template-columns:1fr!important;
  gap:6px!important;
}
.ll-stat-leader-list>div{
  padding:10px 11px!important;
}
.ll-week-teams{
  grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr)!important;
}
.ll-week-teams strong{
  background:#29232c!important;
}

/* ---------- CLEAN TABLES ---------- */
.table,
.ucl-table,
.wc-table,
.stats-table{
  border-collapse:separate!important;
  border-spacing:0!important;
}

.table th,
.ucl-table th,
.wc-table th,
.stats-table th{
  background:#f2f0eb!important;
  color:#767974!important;
  border-bottom:1px solid var(--ll-border)!important;
  font-size:9px!important;
  letter-spacing:.05em!important;
  padding-top:10px!important;
  padding-bottom:10px!important;
}

.table td,
.ucl-table td,
.wc-table td,
.stats-table td{
  border-bottom:1px solid var(--ll-border-soft)!important;
  background:transparent!important;
  padding-top:11px!important;
  padding-bottom:11px!important;
}

/* remove heavy zone fills: keep only narrow left stripe */
.table tr.champ td,
.table tr.ucl td,
.table tr.euro td,
.table tr.relegation td,
.ucl-table tr.direct td,
.ucl-table tr.playoff td,
.ucl-table tr.out td{
  background:transparent!important;
}
.table tr.champ td:first-child{box-shadow:inset 3px 0 #c89f3d!important}
.table tr.ucl td:first-child{box-shadow:inset 3px 0 #6f83b9!important}
.table tr.euro td:first-child{box-shadow:inset 3px 0 #6f9a86!important}
.table tr.relegation td:first-child{box-shadow:inset 3px 0 #ad6c61!important}
.ucl-table tr.direct td:first-child{box-shadow:inset 3px 0 #6f83b9!important}
.ucl-table tr.playoff td:first-child{box-shadow:inset 3px 0 #ba9b5b!important}
.ucl-table tr.out td:first-child{box-shadow:inset 3px 0 #ad6c61!important}

.table td.team .club-mark{
  width:42px!important;
  height:42px!important;
  flex-basis:42px!important;
}
.ucl-table td:nth-child(2) .ucl-real-crest{
  --ucl-badge-size:34px!important;
}

.form-dot{
  width:20px!important;
  height:20px!important;
  font-size:8px!important;
}
.form-strip{
  gap:3px!important;
}

/* ---------- WORLD CUP ---------- */
.wc-subnav{
  background:var(--ll-surface-soft)!important;
  border:1px solid var(--ll-border)!important;
  border-radius:var(--ll-radius-small)!important;
  padding:4px!important;
}
.wc-subnav button{
  border-radius:9px!important;
}
.wc-group-grid{
  gap:var(--ll-gap-1)!important;
}
.wc-ko-bracket-scroll{
  background:var(--ll-surface-soft)!important;
  border:1px solid var(--ll-border)!important;
  border-radius:var(--ll-radius)!important;
  padding:10px!important;
}

/* ---------- EPL ---------- */
#comp-pl .headline{
  grid-template-columns:minmax(0,1fr) 300px!important;
  gap:var(--ll-gap-3)!important;
  margin-bottom:var(--ll-gap-3)!important;
}
.recap-hero{
  background:#29232c!important;
}
.record-card{
  padding:12px!important;
}

/* ---------- UCL ---------- */
.ucl-recap-head{
  background:#29232c!important;
}
.ucl-record{
  padding:12px!important;
}

/* ---------- NHL ---------- */
#comp-nhl .comp-card{
  min-height:112px!important;
}

/* ---------- HISTORY ---------- */
.history-global-head{
  background:var(--ll-surface-soft)!important;
  padding:14px 16px!important;
}
.history-item{
  border-bottom:1px solid var(--ll-border-soft)!important;
}
.history-undo{
  background:#29232c!important;
  color:#fff!important;
  border:0!important;
}

/* ---------- 12-COLUMN FEEL / VERTICAL RHYTHM ---------- */
.headline,
.wc-group-grid{
  align-items:start;
}
.section-head{
  margin-bottom:var(--ll-gap-1)!important;
}
.panel > * + *,
.ucl-panel > * + *{
  margin-top:var(--ll-gap-2);
}

/* ---------- MOBILE IS A DIFFERENT COMPOSITION ---------- */
@media(max-width:700px){
  :root{
    --ll-radius:14px;
    --ll-gap-1:8px;
    --ll-gap-2:12px;
    --ll-gap-3:18px;
    --ll-gap-4:24px;
  }

  .wrap{
    padding-top:18px!important;
  }

  .hero h1,
  .competition-hero h1{
    font-size:34px!important;
  }
  .ll-home-intro h1{
    font-size:36px!important;
  }
  .section-head h2,
  .wc-group-title h2,
  .wc-card-head h2{
    font-size:26px!important;
  }

  .competition-hero p,
  .hero p{
    font-size:11px!important;
    line-height:1.35!important;
  }

  /* fewer decorative blocks on mobile */
  .table-note,
  .wc-ko-help{
    font-size:8px!important;
  }

  /* sticky subnavs */
  #plSubnav{
    position:sticky!important;
    top:48px!important;
    z-index:135!important;
  }

  /* Tables scroll only where genuinely needed */
  .table-scroll,
  .wc-ko-bracket-scroll{
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
  }

  #tableBox .table{min-width:620px!important}
  .ucl-table{min-width:610px!important}
  .wc-table{min-width:520px!important}

  .table td.team .club-mark{
    width:34px!important;
    height:34px!important;
    flex-basis:34px!important;
  }

  #comp-pl .headline{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }

  /* touch targets */
  button,
  select{
    min-height:42px;
  }

  .ll-stat-leader-list{
    grid-template-columns:1fr!important;
  }
}

/* Galaxy S23 */
@media(min-width:340px) and (max-width:390px){
  .wrap{
    padding-left:10px!important;
    padding-right:10px!important;
  }
}

/* iPhone 16 Pro Max */
@media(min-width:420px) and (max-width:480px){
  .wrap{
    padding-left:12px!important;
    padding-right:12px!important;
  }
}
