/* WFL — retro sports broadcast visual theme
   Original Wednesday Floorball League branding; no external image assets required. */

:root {
  --ink: #17191d;
  --ink-soft: #252930;
  --red: #c91f2b;
  --red-dark: #9f1420;
  --ice: #e9edf2;
  --ice-deep: #d7dde5;
  --line: #c4cbd4;
  --muted: #737b86;
  --white: #fff;
  --heading: "Barlow Condensed", Impact, sans-serif;
  --body: "Roboto", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  background:
    repeating-linear-gradient(118deg, transparent 0 42px, rgba(255,255,255,.25) 43px 45px, transparent 46px 86px),
    radial-gradient(ellipse at 18% 10%, #fff 0, transparent 38%),
    linear-gradient(135deg, #cbd2dc, #edf0f4 48%, #cbd2dc);
}
a { color: inherit; text-decoration: none; }
.site-shell { width: min(1440px, 100%); margin: 0 auto; overflow: hidden; }

.masthead {
  min-height: 154px;
  padding: 22px clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(13,16,21,.96), rgba(32,37,44,.84)),
    repeating-linear-gradient(125deg, #343a43 0 2px, #20252c 2px 7px);
  border-bottom: 5px solid var(--red);
  position: relative;
}
.masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background: repeating-linear-gradient(135deg, transparent 0 22px, #fff 23px, transparent 24px 48px);
}
.brand, .masthead-right { position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 18px; }
.brand-mark {
  width: 108px; height: 108px; display: grid; place-items: center;
  border: 5px solid #dfe4ea; outline: 2px solid #7d8792; outline-offset: -10px;
  border-radius: 50%; background: linear-gradient(145deg, #fff, #bfc7d1);
  color: var(--red); font: 900 39px var(--heading); letter-spacing: -3px;
  text-shadow: 1px 2px 0 #fff;
  box-shadow: 0 4px 12px #0008;
}
.brand-copy { display: flex; flex-direction: column; line-height: .94; }
.brand-copy strong { font: 900 clamp(32px, 5vw, 58px) var(--heading); letter-spacing: 1px; }
.brand-copy span { margin-top: 7px; color: #c9d0d9; font: 700 14px var(--heading); letter-spacing: 4px; }
.masthead-right { text-align: right; display: grid; gap: 8px; }
.season-kicker { color: #fff; font: 800 24px var(--heading); letter-spacing: 1px; }
.masthead-tag { color: #e34b54; font: 800 13px var(--heading); letter-spacing: 2px; }

.main-nav {
  min-height: 65px; background: linear-gradient(#343941, #15181d);
  border-bottom: 1px solid #07090c; box-shadow: 0 4px 10px #0003;
}
.nav-links { display: flex; align-items: stretch; min-height: 65px; }
.nav-links a {
  flex: 1; display: flex; justify-content: center; align-items: center; gap: 11px;
  padding: 14px 12px; color: #f2f4f7; border-right: 1px solid #ffffff12;
  font: 700 21px var(--heading); text-transform: uppercase; letter-spacing: .5px;
  transition: background .18s ease;
}
.nav-links a:hover, .nav-links a.active { background: linear-gradient(#df2935, #a91622); }
.nav-icon { font: 28px Arial, sans-serif; color: #fff; }
.nav-toggle, .nav-toggle-label { display: none; }

.page-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px; padding: 26px clamp(16px, 2vw, 30px) 34px;
}
.main-column { min-width: 0; display: grid; gap: 20px; }
.panel {
  background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(229,233,239,.96));
  border: 1px solid #c1c9d3; border-radius: 7px;
  box-shadow: 0 2px 8px #252d3817, inset 0 1px #fff;
}
.hero { min-height: 360px; padding: clamp(22px, 3vw, 40px); position: relative; overflow: hidden; }
.hero-copy { position: relative; z-index: 1; max-width: 760px; }
.eyebrow { margin: 0 0 5px; color: var(--red); font: 800 13px var(--heading); letter-spacing: 3px; }
h1 { margin: 0; font: 900 clamp(42px, 5vw, 68px)/.98 var(--heading); letter-spacing: -1px; }
h1 span { color: var(--red); }
.red-rule { height: 4px; width: min(100%, 620px); margin: 17px 0 20px; background: var(--red); }
.intro { max-width: 650px; margin: 0; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.55; }
.hero-emblem {
  position: absolute; right: 5%; top: 42px; width: 210px; height: 210px;
  display: grid; place-items: center; transform: rotate(-9deg);
  border: 9px solid #252a31; outline: 5px solid var(--red); outline-offset: -19px;
  border-radius: 50%; background: linear-gradient(145deg, #fff, #c8d0d9);
  box-shadow: 7px 9px 0 #17191d, 0 12px 25px #0003;
}
.emblem-ring { position: absolute; inset: 13px; border: 2px solid #929ba6; border-radius: 50%; }
.emblem-text { color: var(--red); font: 900 76px/.8 var(--heading); letter-spacing: -6px; text-shadow: 3px 3px 0 #16191e; }
.emblem-sub { margin-top: -35px; color: #252a31; font: 800 10px var(--heading); letter-spacing: 2px; }
.ball { position: absolute; right: -9px; bottom: 0; width: 45px; height: 45px; border: 5px solid #17191d; border-radius: 50%; background: #f9fafb; }
.ball i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #17191d; }
.ball i:nth-child(1) { top: 7px; left: 15px; } .ball i:nth-child(2) { top: 18px; left: 6px; }
.ball i:nth-child(3) { top: 18px; right: 6px; } .ball i:nth-child(4) { bottom: 5px; left: 13px; }
.ball i:nth-child(5) { bottom: 7px; right: 10px; }

.hero-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.action-card {
  min-height: 76px; padding: 12px 15px; display: flex; align-items: center; gap: 12px;
  border: 1px solid #b9c1cb; border-radius: 5px;
  background: linear-gradient(#f7f8fa, #dce1e8);
  box-shadow: inset 0 1px #fff; font: 800 19px var(--heading);
  transition: transform .16s ease, border-color .16s ease;
}
.action-card:hover { transform: translateY(-2px); border-color: var(--red); }
.action-symbol { font: 34px Arial, sans-serif; }
.action-arrow { margin-left: auto; font: 36px var(--heading); color: var(--red); }

.content-panel { padding: 19px 22px 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--red); }
.section-heading h2, .side-panel h2 { margin: 0; font: 800 23px var(--heading); letter-spacing: .6px; }
.section-heading h2 span { color: var(--red); margin-right: 9px; }
.section-heading > a { color: var(--red); font: 800 13px var(--heading); white-space: nowrap; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 11px 9px; color: #69727e; font: 800 13px var(--heading); letter-spacing: 1px; }
td { padding: 12px 9px; border-top: 1px solid #d6dbe2; font-weight: 700; }
td:first-child { color: var(--muted); }
.points { color: var(--red); font-size: 19px; }
.team-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
.team-dot.red { background: var(--red); } .team-dot.black { background: #17191d; }
.demo-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.result-row { display: grid; grid-template-columns: 1.2fr .7fr .8fr .7fr .5fr; align-items: center; gap: 10px; padding: 14px 3px; border-bottom: 1px solid #d6dbe2; font: 800 18px var(--heading); }
.result-row:last-child { border-bottom: 0; }
.result-date, .result-status { color: var(--muted); font: 700 11px var(--body); }
.result-status { text-align: right; }
.score { text-align: center; font: 900 25px var(--heading); }
.score small { color: var(--red); }
.red-text { color: var(--red); }
.player-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 15px; }
.player-card {
  min-height: 112px; padding: 13px; display: flex; flex-direction: column; justify-content: end;
  color: #fff; background: linear-gradient(145deg, #424a55, #171a20);
  border-bottom: 4px solid var(--red); position: relative; overflow: hidden;
}
.player-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -15px; top: -25px; border: 12px solid #ffffff0b; border-radius: 50%; }
.player-card strong, .player-card small, .player-number { position: relative; z-index: 1; }
.player-card strong { font: 800 18px var(--heading); }
.player-card small { color: #c3cbd5; font-size: 10px; letter-spacing: 1px; }
.player-number { position: absolute; top: 9px; left: 13px; color: #e44a54; font: 900 30px var(--heading); }
.placeholder-copy { margin: 16px 0 2px; line-height: 1.6; }

.sidebar { display: grid; align-content: start; gap: 18px; }
.side-panel { overflow: hidden; }
.side-panel h2 {
  padding: 13px 17px; color: #fff; text-transform: uppercase;
  background: linear-gradient(#383d45, #171a1f); border-bottom: 3px solid var(--red);
}
.side-content { padding: 17px; }
.side-label { margin: 0 0 16px; font: 800 23px var(--heading); }
.season-dates { margin: 0; display: grid; gap: 9px; }
.season-dates div { display: flex; justify-content: space-between; gap: 12px; }
.season-dates dt { color: var(--muted); font: 800 12px var(--heading); }
.season-dates dd { margin: 0; font-weight: 700; }
.side-red-rule { height: 3px; margin: 17px 0; background: var(--red); }
.small-muted { margin: 0 0 7px; color: var(--muted); font: 800 11px var(--heading); letter-spacing: 1px; }
.status { margin: 0; font: 800 13px var(--heading); }
.status-light { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #31a66b; box-shadow: 0 0 0 3px #31a66b22; }
.next-date { margin: 0 0 14px; color: var(--muted); font: 800 13px var(--heading); letter-spacing: 1px; }
.next-date strong { display: inline-block; margin-top: 3px; color: var(--ink); font-size: 29px; letter-spacing: 0; }
.versus { display: flex; align-items: center; gap: 9px; font: 900 25px var(--heading); }
.versus span:first-child { color: var(--red); }
.versus b { color: var(--muted); font-size: 14px; }
.game-time { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font: 900 26px var(--heading); }
.game-time small { color: var(--muted); font: 700 10px var(--body); }
.snapshot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.snapshot div { display: grid; gap: 3px; }
.snapshot strong { color: var(--red); font: 900 30px var(--heading); }
.snapshot span { color: var(--muted); font: 800 10px var(--heading); }

.footer {
  min-height: 64px; padding: 14px clamp(18px, 3vw, 36px);
  display: flex; align-items: center; justify-content: space-between; gap: 15px;
  color: #e9edf2; background: linear-gradient(#30353d, #14171c);
  border-top: 5px solid var(--red);
}
.footer-brand { font: 700 12px var(--heading); letter-spacing: 1px; }
.footer-brand span { margin-right: 7px; color: #fff; font: 900 25px var(--heading); }
.footer p { margin: 0; font: 800 16px var(--heading); letter-spacing: 1px; }
.copyright { color: #aab2bd; font-size: 11px; }

@media (max-width: 900px) {
  .page-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 15px; }
  .hero-emblem { width: 155px; height: 155px; right: 4%; top: 30px; }
  .emblem-text { font-size: 58px; }
  .emblem-sub { margin-top: -27px; font-size: 8px; }
  .hero-copy { max-width: 75%; }
  .action-card { gap: 7px; padding: 10px; font-size: 16px; }
  .action-symbol { font-size: 27px; }
  .nav-links a { font-size: 18px; gap: 7px; }
}
@media (max-width: 680px) {
  .masthead { min-height: 112px; padding: 15px 17px; }
  .brand { gap: 11px; }
  .brand-mark { width: 72px; height: 72px; font-size: 29px; border-width: 4px; }
  .brand-copy strong { font-size: 34px; }
  .brand-copy span { font-size: 9px; letter-spacing: 2.5px; }
  .masthead-right { display: none; }

  .main-nav { min-height: 0; }
  .nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
  .nav-toggle-label {
    min-height: 54px; padding: 0 18px; display: flex; align-items: center;
    justify-content: flex-end; gap: 5px; color: #fff; cursor: pointer;
    font: 800 14px var(--heading); letter-spacing: 1px;
  }
  .nav-toggle-label span { display: none; }
  .nav-toggle-label::before { content: "☰"; margin-right: 8px; font: 24px Arial; }
  .nav-links { display: none; flex-direction: column; min-height: 0; }
  .nav-links a { min-height: 48px; justify-content: flex-start; padding: 10px 20px; border-top: 1px solid #ffffff12; font-size: 19px; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-toggle:focus-visible + .nav-toggle-label { outline: 2px solid #fff; outline-offset: -4px; }

  .page-layout { display: flex; flex-direction: column; padding: 15px 12px 24px; gap: 15px; }
  .main-column { display: contents; }
  .hero { order: 0; padding: 22px 18px; min-height: auto; }
  .hero-copy { max-width: none; }
  .eyebrow { font-size: 11px; }
  h1 { font-size: clamp(39px, 11vw, 55px); }
  .red-rule { margin: 13px 0 14px; }
  .intro { font-size: 16px; line-height: 1.5; }
  .hero-emblem { display: none; }
  .hero-actions { grid-template-columns: 1fr; gap: 8px; margin-top: 20px; }
  .action-card { min-height: 57px; font-size: 18px; padding: 8px 13px; }
  .action-symbol { width: 32px; text-align: center; font-size: 26px; }
  .sidebar { order: 1; grid-template-columns: 1fr 1fr; gap: 10px; }
  .sidebar .side-panel:last-child { grid-column: 1 / -1; }
  .side-panel h2 { padding: 10px 12px; font-size: 19px; }
  .side-content { padding: 12px; }
  .side-label { font-size: 19px; }
  .season-dates div { display: block; }
  .season-dates dd { font-size: 13px; }
  .next-date strong { font-size: 23px; }
  .versus { font-size: 21px; }
  .game-time { font-size: 22px; }
  .content-panel { padding: 15px 13px; }
  #standings { order: 2; }
  #schedule { order: 3; }
  #players { order: 4; }
  #statistics { order: 5; }
  #about { order: 6; }
  .section-heading h2 { font-size: 20px; }
  .section-heading > a { font-size: 11px; }
  .result-row { grid-template-columns: 1fr auto auto auto; gap: 7px; font-size: 16px; }
  .result-date { grid-column: 1 / -1; }
  .result-status { display: none; }
  .score { font-size: 22px; }
  .player-grid { gap: 7px; }
  .player-card { min-height: 100px; padding: 9px; }
  .player-card strong { font-size: 15px; }
  .player-number { left: 9px; font-size: 25px; }
  .footer { flex-wrap: wrap; justify-content: center; text-align: center; padding: 14px; }
  .footer-brand { width: 100%; }
  .footer p { font-size: 14px; }
}
@media (max-width: 390px) {
  .sidebar { grid-template-columns: 1fr; }
  .sidebar .side-panel:last-child { grid-column: auto; }
  .season-dates div { display: flex; }
  .player-grid { grid-template-columns: 1fr; }
  .player-card { min-height: 85px; }
  .section-heading { align-items: flex-start; }
}

.button-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #2e7d32;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.button-add:hover {
    background-color: #256428;
    color: white;
}

.button-add-icon {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}