/* Hero */
.hero { padding: 44px 0 8px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.hero h1 { margin: 12px 0 8px; font-size: clamp(30px, 5vw, 46px); line-height: 1.15; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { margin: 0; color: var(--muted); max-width: 620px; font-size: 16px; }
.round-pick { display: flex; flex-direction: column; gap: 6px; }
.round-pick label { font-size: 12px; font-weight: 600; color: var(--muted); }
.round-pick select {
  appearance: none; padding: 12px 40px 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2362626f' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
  font-weight: 600; min-width: 220px; cursor: pointer; box-shadow: var(--shadow);
}

/* Group switch + stats */
.board-head { margin: 36px 0 16px; }
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.seg button { border: 0; background: none; padding: 9px 16px; border-radius: 10px; font-weight: 600; color: var(--muted); cursor: pointer; font-family: "Hind Siliguri", "Inter", sans-serif; font-size: 15px; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg .n { margin-left: 6px; font-family: "Inter"; font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }

/* Rules */
details.rules { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin: 20px 0 18px; }
details.rules summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; font-family: "Hind Siliguri", "Inter", sans-serif; }
details.rules summary::-webkit-details-marker { display: none; }
details.rules summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--muted); line-height: 1; }
details.rules[open] summary::after { content: "–"; }
.rules-body { padding: 0 16px 14px; }
.rule { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px dashed var(--border); }
.rule b { color: var(--brand-ink); min-width: 20px; }
.fine { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* Podium */
.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 14px; align-items: end; margin-bottom: 16px; }
.pc { position: relative; display: block; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 22px 14px 18px; text-align: center; text-decoration: none; box-shadow: var(--shadow); border-top: 4px solid var(--medal); transition: transform .15s; }
.pc.first { padding-top: 30px; }
.pc:hover { transform: translateY(-2px); }
.pc .av { width: 86px; height: 86px; margin: 0 auto 10px; font-size: 28px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--medal); }
.pc.first .av { width: 104px; height: 104px; font-size: 34px; }
.pc .medal { position: absolute; top: 12px; left: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--medal); color: #fff; display: grid; place-items: center; font-weight: 800; }
.pc .nm { font-weight: 700; font-size: 17px; line-height: 1.3; }
.pc .col { color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.pc .sc { margin-top: 10px; font-size: 24px; font-weight: 800; }
.pc .sc small { font-size: 13px; color: var(--muted); font-weight: 500; }
.pc .pct { font-size: 13px; color: var(--good); font-weight: 600; }

/* List */
.filter { position: relative; margin-bottom: 10px; }
.filter input { width: 100%; padding: 11px 14px 11px 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.filter input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.filter svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.showing { color: var(--muted); font-size: 13px; margin: 0 2px 10px; }
.list { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 44px 46px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; }
.row:hover { border-color: var(--brand); }
.rk { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.rk.m1 { background: var(--gold); color: #fff; } .rk.m2 { background: var(--silver); color: #fff; } .rk.m3 { background: var(--bronze); color: #fff; }
.row .av { width: 44px; height: 44px; font-size: 16px; }
.row .meta { min-width: 0; }
.row .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .score { text-align: right; }
.row .score b { font-size: 17px; }
.row .score small { color: var(--muted); }
.row .score .pct { display: block; font-size: 12px; color: var(--good); font-weight: 600; }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .round-pick select { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .podium { grid-template-columns: 1fr; }
  .podium .pc { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-align: left; padding: 14px 14px 14px 50px; border-top-width: 1px; border-left: 4px solid var(--medal); }
  .podium .pc .av, .podium .pc.first .av { width: 56px; height: 56px; font-size: 20px; margin: 0; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--medal); }
  .pc .medal { top: 50%; transform: translateY(-50%); width: 28px; height: 28px; font-size: 14px; }
  .pc .sc { margin: 0; font-size: 18px; text-align: right; }
  .pc .sc small { display: none; }
  .podium .first { order: -1; }
  .row { grid-template-columns: 36px 40px 1fr auto; gap: 10px; padding: 10px; }
  .row .av { width: 40px; height: 40px; }
  .rk { width: 32px; height: 32px; }
  .nav nav a { padding: 8px; }
  .logo span small { display: none; }
}
.insights-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; padding: 11px 14px; border-radius: 12px;
  background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; box-shadow: var(--shadow); }
.insights-btn:hover { background: var(--brand); }
:root[data-theme="dark"] .insights-btn { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .insights-btn { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); } }
.listbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.listbar .showing { margin: 0; }
.printbtn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; }
.printbtn:hover { border-color: var(--brand); }
