/* Humble League — public site. Plain CSS, no build step.
   Layout follows the original Nuxt/Vuetify site; styling is a dark "Liquid Glass" take. */

:root {
  --bg: #000;
  --text: #f5f5f7;
  --text-2: rgba(245, 245, 247, 0.74);
  --text-3: rgba(245, 245, 247, 0.5);
  --gold: #c9bc9c;
  --gold-ink: #f3e9cf;
  --grey: #a9a9a9;
  --orange: #ff9f0a;
  --win: #30d158;
  --tie: #0a84ff;
  --loss: #ff453a;
  --glass: rgba(255, 255, 255, 0.065);
  --glass-2: rgba(255, 255, 255, 0.1);
  --glass-3: rgba(255, 255, 255, 0.16);
  --gold-glass: rgba(201, 188, 156, 0.26);
  --stroke: rgba(255, 255, 255, 0.12);
  --hairline: rgba(255, 255, 255, 0.08);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --blur: saturate(180%) blur(24px);
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --r-xl: 26px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "PingFang HK", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; letter-spacing: -0.005em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }

/* Ambient light behind the glass, so blur has something to pick up */
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 8% -5%, rgba(201, 188, 156, 0.22), transparent 60%),
    radial-gradient(800px 600px at 100% 30%, rgba(255, 159, 10, 0.12), transparent 60%),
    radial-gradient(900px 700px at 30% 110%, rgba(10, 132, 255, 0.10), transparent 60%),
    #000;
}

.glass {
  background: var(--glass); border-radius: var(--r-l);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--highlight), var(--shadow);
}

/* ---------- Header (logo + navbar), sticky like the original ---------- */
.site-header { position: sticky; top: 0; z-index: 100; }
.logo-wrap {
  display: flex; justify-content: center; align-items: center; height: 150px;
  background: #000;
}
.logo { height: 100%; width: auto; }

.navbar {
  position: relative; display: flex; align-items: center; height: 56px; padding: 0 120px;
  background: linear-gradient(180deg, rgba(201, 188, 156, 0.42), rgba(201, 188, 156, 0.26));
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 8px 30px rgba(0, 0, 0, 0.35);
}
.nav-tabs {
  display: flex; gap: 4px; align-items: center; justify-content: center; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none; padding: 6px 4px;
}
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tab {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 16px;
  border-radius: 999px; border: none; background: transparent; cursor: pointer; white-space: nowrap;
  color: #fff; font-size: 15px; font-weight: 500; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: background 0.15s;
}
.nav-tab:hover { background: rgba(255, 255, 255, 0.14); }
.nav-tab.active {
  background: rgba(255, 255, 255, 0.24); font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 10px rgba(0, 0, 0, 0.2);
}
.chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.nav-teams[aria-expanded="true"] .chev { transform: rotate(180deg); }
.social { position: absolute; right: 12px; top: 0; bottom: 0; display: flex; align-items: center; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); transition: background 0.15s;
}
.social-btn:hover { background: rgba(0, 0, 0, 0.45); }
.social-btn img { width: 18px; height: 18px; object-fit: contain; }

/* Teams popover (division -> teams), shared by the navbar and the scores filter */
.popover {
  position: fixed; z-index: 200; display: grid; grid-template-columns: minmax(200px, 260px) minmax(220px, 300px);
  max-height: min(70vh, 520px); border-radius: var(--r-l); overflow: hidden;
  background: rgba(30, 30, 32, 0.72); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
  box-shadow: var(--highlight), 0 20px 60px rgba(0, 0, 0, 0.6);
}
.popover[hidden] { display: none; }
.pop-col { overflow-y: auto; padding: 8px; }
.pop-col + .pop-col { border-left: 1px solid var(--hairline); }
.pop-head { font-size: 12px; color: var(--text-3); padding: 6px 10px 4px; font-weight: 600; letter-spacing: 0.02em; }
.pop-item {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; text-align: left;
  padding: 9px 10px; border-radius: var(--r-s); border: none; background: none; cursor: pointer; font-size: 14.5px; color: var(--text);
}
.pop-item:hover, .pop-item.on { background: rgba(255, 255, 255, 0.1); }
.pop-item.on { color: var(--gold-ink); }
.pop-item .chev { transform: rotate(-90deg); opacity: 0.6; }

/* ---------- Content width, same rule as the original ---------- */
.screen-width { max-width: 65%; margin: 0 auto; }
@media (max-width: 1388px) { .screen-width { max-width: 100%; } }
main.screen-width { padding: 20px 16px 8px; min-height: 60vh; }

/* ---------- Building blocks ---------- */
.section { margin-bottom: 22px; }
.page-title { font-size: 26px; padding: 6px 4px 14px; }
.card { padding: 0; overflow: hidden; }
.card-pad { padding: 18px 20px; }
.card-title { font-size: 20px; font-weight: 600; padding: 16px 20px 10px; }
.muted { color: var(--text-3); }
.empty { padding: 28px 20px; text-align: center; color: var(--text-3); }
.link { color: #64b5ff; }
.link:hover { text-decoration: underline; }

/* Gold bar: used for "Standing", video tabs, Box Score, Roster/Statistic, Schedule */
.bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 56px; padding: 8px 14px;
  background: linear-gradient(180deg, rgba(201, 188, 156, 0.38), rgba(201, 188, 156, 0.22));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.bar-title { font-size: 19px; font-weight: 600; padding: 0 6px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.bar.grey { background: linear-gradient(180deg, rgba(169, 169, 169, 0.34), rgba(169, 169, 169, 0.2)); }

.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.22); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25); flex-wrap: wrap; }
.seg button {
  border: none; background: none; cursor: pointer; height: 36px; padding: 0 18px; border-radius: 999px;
  color: rgba(255, 255, 255, 0.85); font-size: 15px; font-weight: 500;
}
.seg button.active { background: rgba(255, 255, 255, 0.26); color: #fff; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 8px rgba(0, 0, 0, 0.25); }

.select-wrap { position: relative; display: inline-flex; }
.select-wrap::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px; pointer-events: none;
  border-right: 2px solid rgba(255, 255, 255, 0.8); border-bottom: 2px solid rgba(255, 255, 255, 0.8); transform: rotate(45deg);
}
select, .pill-btn {
  appearance: none; -webkit-appearance: none; height: 40px; padding: 0 38px 0 16px; border-radius: 999px; cursor: pointer;
  border: none; background: rgba(0, 0, 0, 0.26); color: #fff; font: 500 15px var(--font);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18); max-width: 100%; text-overflow: ellipsis;
}
select option { background: #1c1c1e; color: #fff; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px 0 16px; white-space: nowrap; }
.pill-btn:hover, select:hover { background: rgba(0, 0, 0, 0.38); }
.clear-btn { border: none; background: none; color: var(--text-2); cursor: pointer; font-size: 14px; padding: 0 6px; text-decoration: underline; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 12px 14px; text-align: left; white-space: nowrap; font-size: 16px; }
thead th { font-size: 14px; font-weight: 600; color: #fff; background: rgba(169, 169, 169, 0.22); letter-spacing: 0.01em; }
tbody tr { border-top: 1px solid var(--hairline); transition: background 0.12s; }
tbody tr[data-href] { cursor: pointer; }
tbody tr[data-href]:hover { background: rgba(255, 255, 255, 0.06); }
td.num, th.num { text-align: right; }
td.c, th.c { text-align: center; }
.table-sm th, .table-sm td { padding: 8px 12px; font-size: 15px; }
.vs { color: var(--text-3); font-size: 13px; font-weight: 600; }

/* Stat tiles (orange label + value, as in the original) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); gap: 10px; }
.tile { border-radius: var(--r-m); overflow: hidden; background: var(--glass-2); box-shadow: var(--highlight); text-align: center; }
.tile-label {
  padding: 8px 6px; font-weight: 700; font-size: 15px; letter-spacing: 0.04em; color: #fff;
  background: linear-gradient(180deg, rgba(255, 159, 10, 0.85), rgba(255, 128, 0, 0.7));
}
.tile-val { padding: 10px 6px 12px; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Media / pictures */
.photo { width: 100%; max-width: 400px; aspect-ratio: 4 / 5; object-fit: contain; border-radius: var(--r-l); background: rgba(255, 255, 255, 0.04); box-shadow: var(--highlight); display: block; }
.photo.placeholder { object-fit: cover; aspect-ratio: 1; max-width: 260px; justify-self: center; }
.two-col { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 760px) { .two-col { grid-template-columns: minmax(0, 1fr); } .photo { margin: 0 auto; } }

/* ---------- Home: match strip ---------- */
.strip { position: relative; margin-bottom: 18px; }
.strip-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: none; }
.strip-track::-webkit-scrollbar { display: none; }
.mcard {
  flex: 0 0 auto; width: 190px; scroll-snap-align: start; padding: 12px 14px; cursor: pointer;
  border-radius: var(--r-m); background: var(--glass-2); box-shadow: var(--highlight);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: background 0.15s, transform 0.15s;
}
.mcard:hover { background: var(--glass-3); transform: translateY(-1px); }
.mcard-date { font-size: 12.5px; color: var(--text-2); display: flex; justify-content: space-between; margin-bottom: 6px; }
.mcard-row { display: flex; justify-content: space-between; gap: 8px; font-size: 14.5px; padding: 2px 0; }
.mcard-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard-row b { font-variant-numeric: tabular-nums; }
.mcard-row.win { font-weight: 600; }
.strip-btn {
  position: absolute; top: 50%; transform: translateY(-60%); z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(40, 40, 42, 0.7); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--highlight), 0 6px 20px rgba(0, 0, 0, 0.5);
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s;
}
.strip:hover .strip-btn { opacity: 1; }
.strip-btn.prev { left: -6px; } .strip-btn.next { right: -6px; }
.strip-btn svg, .car-btn svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: none) { .strip-btn { display: none; } }

/* ---------- Home: banner carousel ---------- */
.carousel { position: relative; height: min(600px, 62vw); border-radius: var(--r-xl); overflow: hidden; margin-bottom: 22px; }
.car-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; display: flex; align-items: center; justify-content: center; }
.car-slide.on { opacity: 1; }
.car-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(40, 40, 42, 0.55); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--highlight);
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s;
}
.carousel:hover .car-btn { opacity: 1; }
.car-btn.prev { left: 14px; } .car-btn.next { right: 14px; }
.car-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.car-dot { width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; cursor: pointer; background: rgba(255, 255, 255, 0.4); }
.car-dot.on { background: #fff; width: 22px; border-radius: 999px; transition: width 0.25s; }
@media (hover: none) { .car-btn { opacity: 1; } }

/* ---------- Home: player of the week + leaderboards ---------- */
.potw { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 24px; align-items: center; padding: 6px 20px 22px; }
.potw-name { font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.potw-team { text-align: center; color: var(--text-2); margin-bottom: 18px; }
@media (max-width: 760px) { .potw { grid-template-columns: minmax(0, 1fr); } }

.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; padding: 16px; }
.board { border-radius: var(--r-m); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(169, 169, 169, 0.35); overflow: hidden; }
.board-title { font-size: 17px; font-weight: 600; padding: 12px 14px 8px; }
.board-photo { display: block; width: 100%; max-width: 300px; aspect-ratio: 1; object-fit: contain; margin: 0 auto 8px; border-radius: var(--r-m); }
.board td:first-child { width: 100%; }
.board td, .board th { white-space: nowrap; }
.board td:nth-child(2) { max-width: 140px; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }

/* ---------- Standing ---------- */
.circles { display: flex; gap: 6px; }
.circle { width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 700; line-height: 22px; text-align: center; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.circle.W { background: var(--win); } .circle.T { background: var(--tie); } .circle.L { background: var(--loss); }

/* ---------- Scores page ---------- */
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 12px 16px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); border-top: 1px solid var(--hairline); }
.pager .select-wrap select { height: 34px; font-size: 14px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Match page ---------- */
.scoreboard { display: grid; grid-template-columns: 3fr 2fr 2fr 2fr 3fr; align-items: center; padding: 26px 16px; gap: 8px; }
.sb-team { font-size: clamp(18px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; }
.sb-team.home { text-align: right; } .sb-team.away { text-align: left; }
.sb-team a:hover { text-decoration: underline; }
.sb-score { font-size: clamp(28px, 4.4vw, 54px); font-weight: 700; font-variant-numeric: tabular-nums; }
.sb-score.home { text-align: right; } .sb-score.away { text-align: left; }
.sb-score.lead { color: var(--gold-ink); }
.sb-vs { text-align: center; color: var(--text-3); font-weight: 600; font-size: clamp(14px, 1.6vw, 20px); }
.meta-line { padding: 14px 20px; color: var(--text-2); display: flex; gap: 18px; flex-wrap: wrap; }
.meta-line b { color: var(--text); font-weight: 600; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.team-head { font-size: 20px; font-weight: 600; padding: 16px 20px 10px; }
.team-head a:hover { text-decoration: underline; }

/* ---------- Team page ---------- */
.team-name { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; padding: 6px 4px 18px; letter-spacing: -0.025em; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; padding: 18px 20px; font-size: 16px; }
.kv dt { color: var(--text-2); } .kv dd { margin: 0; font-weight: 500; }

/* ---------- CMS content (About / Promotion) ---------- */
.rich { padding: 10px 14px; line-height: 1.75; font-size: 16px; color: var(--text); overflow-wrap: anywhere; }
.rich p { margin: 0 0 0.6em; }
.rich a { color: #64b5ff; text-decoration: underline; }
.rich img { height: auto; border-radius: var(--r-m); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 8px 20px 24px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-label { font-size: 17.6px; margin: 8px 0; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; margin: 8px 0 24px;
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.95), rgba(0, 102, 220, 0.95)); color: #fff; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 24px rgba(10, 132, 255, 0.3);
}
.btn-primary svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.phones { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin-bottom: 14px; }

/* ---------- Loading / errors ---------- */
.skeleton { border-radius: var(--r-l); background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.error-page { text-align: center; padding: 80px 20px; }
.error-page h1 { font-size: 22px; margin-bottom: 14px; }

/* ---------- Footer, same structure as the original ---------- */
.site-footer { padding: 0 16px 48px; }
.site-footer::before { content: ""; display: block; height: 1px; background: #a9a9a9; opacity: 0.6; margin: 18px 0 22px; }
.footer-row { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 10px; color: var(--text-2); font-size: 15px; }
.footer-row a { color: #fff; }
.footer-row a:hover { text-decoration: underline; }
.sep { margin: 0 8px; color: var(--text-3); }

/* ---------- Narrow screens (the original moved the social icons up into the logo area) ---------- */
@media (max-width: 1000px) {
  .navbar { padding: 0 6px; }
  .nav-tabs { justify-content: flex-start; }
  .social { top: -112px; bottom: auto; right: 12px; flex-direction: column; gap: 8px; }
  .logo-wrap { height: 120px; }
}
@media (max-width: 640px) {
  .popover { left: 8px !important; right: 8px; grid-template-columns: 1fr 1fr; }
  .scoreboard { grid-template-columns: 1fr auto auto auto 1fr; padding: 20px 10px; }
  th, td { padding: 10px 10px; font-size: 15px; }
  .page-title { font-size: 22px; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .navbar, .popover, .mcard { -webkit-backdrop-filter: none; backdrop-filter: none; background: #1c1c1e; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.social-btn img.invert { filter: invert(1); }
