:root{
  --bg:#ffffff;
  --text:#333333;
  --border:#d1d5db;
  --border-strong:#b8bec7;
  --muted:#667085;
  --soft:#f9fafb;
  --soft-2:#f3f4f6;
  --green-bg:#eef8f1;
  --green-text:#23623a;
  --green-border:#c7e8d1;
  --red-bg:#fff1f1;
  --red-text:#9f1f1f;
  --red-border:#f3c4c4;
}

*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  min-height:100%;
  background:var(--bg);
  color:var(--text);
  font-family:"ff-good-headline-web-pro",Arial,sans-serif;
  overflow-x:hidden;
}

button,
select,
input,
a,
p,
span,
div,
label,
h1,
h2,
h3,
.leaflet-container,
.leaflet-popup-content,
.leaflet-control{
  font-family:"ff-good-headline-web-pro",Arial,sans-serif;
}

.material-symbols-outlined{
  font-family:"Material Symbols Outlined";
  font-weight:normal;
  font-style:normal;
  font-size:20px;
  line-height:1;
  letter-spacing:normal;
  text-transform:none;
  display:inline-block;
  white-space:nowrap;
  direction:ltr;
  font-feature-settings:"liga";
  -webkit-font-feature-settings:"liga";
  -webkit-font-smoothing:antialiased;
}

button,
select{
  font:inherit;
}

.page{
  width:min(1480px,100%);
  margin:0 auto;
  padding:20px 24px 24px;
  background:var(--bg);
  color:var(--text);
}

.hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}

.hero h1{
  margin:0;
  color:var(--text);
  font-size:clamp(24px,2.5vw,36px);
  line-height:.9;
  letter-spacing:-.03em;
  font-weight:600;
  text-transform:uppercase;
}

.topbinsLogo{
  display:flex;
  width:110px;
  flex:0 0 auto;
}

.topbinsLogo img{
  display:block;
  width:100%;
  height:auto;
  max-height:42px;
  object-fit:contain;
  filter:brightness(0) saturate(100%) invert(20%);
}

/* Shared controls */

.toolToggles{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin:0 0 12px;
}

.journeyToggle,
.fixturesToggle,
.routeDirectionsLink,
.popupBtn,
.fixtureFilterBtn,
.fixtureArrow,
.infoPanelClose,
.leaflet-popup-close-button,
.leagueTableTab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#ffffff;
  color:var(--text);
  border:1px solid var(--border);
  border-radius:8px;
  box-shadow:none;
  font-size:16px;
  font-weight:600;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:0;
  cursor:pointer;
}

.journeyToggle,
.fixturesToggle,
.routeDirectionsLink,
.popupBtn{
  gap:7px;
  padding:10px 13px;
  text-decoration:none;
}

.journeyToggle .material-symbols-outlined,
.fixturesToggle .material-symbols-outlined,
.fixtureArrow .material-symbols-outlined{
  font-size:20px;
  line-height:1;
}

.journeyToggle,
.fixturesToggle,
.routeDirectionsLink,
.popupBtn:not(.secondary),
.fixtureFilterBtn.isActive,
.leagueTableTab.isActive{
  background:var(--text);
  color:#ffffff;
  border-color:var(--text);
}

.journeyToggle:hover,
.fixturesToggle:hover,
.routeDirectionsLink:hover,
.popupBtn:not(.secondary):hover,
.fixtureFilterBtn.isActive:hover,
.leagueTableTab.isActive:hover{
  background:#444444;
  color:#ffffff;
  border-color:#444444;
  transform:none;
}

.popupBtn.secondary,
.fixtureFilterBtn:not(.isActive),
.fixtureArrow,
.infoPanelClose,
.leaflet-popup-close-button,
.leagueTableTab:not(.isActive){
  background:#ffffff;
  color:var(--text);
  border-color:var(--text);
}

.popupBtn.secondary:hover,
.fixtureFilterBtn:not(.isActive):hover,
.fixtureArrow:hover,
.infoPanelClose:hover,
.leaflet-popup-close-button:hover,
.leagueTableTab:not(.isActive):hover{
  background:var(--soft);
  color:var(--text);
  border-color:var(--text);
}

.routeDirectionsLink.isDisabled,
.fixtureArrow:disabled{
  background:#ffffff;
  color:var(--text);
  border:1px solid var(--text);
  opacity:.45;
  pointer-events:none;
}

/* Journey planner */

.routePlanner{
  display:none;
  margin:0 0 14px;
  padding:14px;
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:10px;
  box-shadow:none;
}

.routePlanner.isOpen{
  display:block;
}

.routeControls{
  display:grid;
  grid-template-columns:minmax(220px,320px) minmax(220px,320px) max-content;
  gap:12px;
  align-items:end;
}

.routeField{
  position:relative;
}

.routeField label{
  display:block;
  margin-bottom:7px;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
  line-height:1.15;
}

.routeField:after{
  content:"expand_more";
  font-family:"Material Symbols Outlined";
  position:absolute;
  right:12px;
  bottom:10px;
  color:var(--text);
  font-size:22px;
  pointer-events:none;
}

.routeField select,
.fixtureClubFilter{
  width:100%;
  appearance:none;
  -webkit-appearance:none;
  background:#ffffff;
  color:var(--text);
  border:1px solid var(--border);
  border-radius:8px;
  box-shadow:none;
  font-size:17px;
  font-weight:600;
  line-height:1;
  outline:none;
  cursor:pointer;
}

.routeField select{
  padding:12px 42px 12px 14px;
}

.routeField select:hover,
.fixtureClubFilter:hover{
  background:var(--soft);
  border-color:var(--border-strong);
}

.routeField select:focus,
.fixtureClubFilter:focus{
  background:#ffffff;
  border-color:#98a2b3;
  box-shadow:0 0 0 3px rgba(51,51,51,.08);
}

.routeStatus{
  display:flex;
  align-items:center;
  min-height:42px;
  margin:10px 0 0;
  padding:11px 14px;
  background:var(--soft);
  color:var(--text);
  border:1px solid var(--border);
  border-left:4px solid var(--text);
  border-radius:8px;
  box-shadow:none;
  font-size:16px;
  font-weight:600;
  line-height:1.2;
}

/* Fixtures */

.fixturesPanel{
  display:none;
  margin:0 0 14px;
  padding:14px;
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:10px;
  box-shadow:none;
}

.fixturesPanel.isOpen{
  display:block;
}

.fixturesHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.fixturesHeader h2{
  margin:0;
  color:var(--text);
  font-size:20px;
  font-weight:600;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:0;
}

.fixtureControls{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.fixtureFilterBtn{
  padding:7px 11px;
  font-size:16px;
}

.fixtureClubWrap{
  position:relative;
  display:inline-flex;
  align-items:center;
}

.fixtureClubWrap:after{
  content:"expand_more";
  font-family:"Material Symbols Outlined";
  position:absolute;
  right:11px;
  top:50%;
  transform:translateY(-50%);
  color:var(--text);
  font-size:20px;
  pointer-events:none;
}

.fixtureClubFilter{
  min-width:150px;
  padding:8px 34px 8px 12px;
  font-size:16px;
}

.fixtureCarouselBar{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
}

.fixtureCarouselBar .fixtureArrow{
  order:2;
}

.fixtureCarouselBar #fixtureWeekCurrent{
  order:1;
}

.fixtureCarouselBar #fixturePrev{
  margin-left:auto;
}

.fixtureArrow{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:50%;
}

.fixtureWeekCurrent{
  margin-right:auto;
  color:var(--text);
  font-size:17px;
  font-weight:600;
  text-align:left;
  text-transform:uppercase;
  letter-spacing:0;
}

.fixtureEmpty{
  padding:12px;
  background:#ffffff;
  color:var(--muted);
  border:1px solid var(--border);
  border-radius:8px;
  font-size:15px;
}

/* League table */

.leagueTablePanel{
  display:none;
  margin:0 0 14px;
  padding:14px;
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:10px;
  box-shadow:none;
}

.leagueTablePanel.isOpen{
  display:block;
}

.leagueTableHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.leagueTableHeader h2{
  margin:0;
  color:var(--text);
  font-size:20px;
  font-weight:600;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:0;
}

.leagueTableHeader p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:15px;
  font-weight:400;
  line-height:1.35;
}

.leagueTableControls{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.leagueTableTab{
  padding:7px 11px;
  font-size:16px;
}

.leagueTableWrap{
  overflow-x:auto;
  border:1px solid var(--border);
  border-radius:8px;
  background:#ffffff;
}

.leagueTable{
  width:100%;
  min-width:760px;
  border-collapse:collapse;
  background:#ffffff;
}

.leagueTable th,
.leagueTable td{
  padding:10px;
  border-bottom:1px solid var(--border);
  color:var(--text);
  font-size:16px;
  text-align:center;
  vertical-align:middle;
}

.leagueTable th{
  background:var(--soft);
  font-weight:600;
  text-transform:uppercase;
}

.leagueTable th:nth-child(2),
.leagueTable td:nth-child(2){
  text-align:left;
}

.leagueTable tr:last-child td{
  border-bottom:0;
}

.leagueFormStrip{
  display:flex;
  justify-content:center;
  gap:4px;
}

.leagueFormPill{
  width:24px;
  height:24px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#ffffff;
  font-size:13px;
  font-weight:600;
}

.leagueFormW{
  background:#4f7f52;
}

.leagueFormD{
  background:#8a8a8a;
}

.leagueFormL{
  background:#a85b5b;
}

.leagueFormEmpty{
  background:#dddddd;
  color:#666666;
}

.leagueTableKey{
  display:none;
}

/* Map */

.mapShell{
  position:relative;
  min-height:760px;
  overflow:hidden;
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:10px;
  box-shadow:none;
}

.mapShell.isHidden{
  display:none;
}

#map{
  z-index:1;
  display:block;
  width:100%;
  height:760px;
  min-height:760px;
  background:#f4f2ec;
}

.mapLoading{
  display:grid;
  place-items:center;
  min-height:760px;
  padding:24px;
  background:#f4f2ec;
  color:var(--muted);
  text-align:center;
  font-size:18px;
}

.mapLoading strong{
  display:block;
  margin-bottom:7px;
  color:var(--text);
  font-size:30px;
  font-weight:600;
  line-height:.9;
  text-transform:uppercase;
}

.leaflet-container{
  background:#f4f2ec;
}

.liveMarker{
  background:transparent;
  border:0;
}

.markerWrap{
  position:relative;
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  overflow:hidden;
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:50%;
  box-shadow:none;
}

.markerWrap img{
  position:absolute;
  top:50%;
  left:50%;
  z-index:2;
  width:76%;
  height:76%;
  transform:translate(-50%,-50%);
  background:transparent;
  object-fit:contain;
  padding:0;
}

.markerFallback{
  position:absolute;
  inset:0;
  z-index:1;
  display:grid;
  place-items:center;
  background:#ffffff;
  color:#ffffff;
  font-size:13px;
  font-weight:600;
  line-height:1;
}

.groundLabel{
  padding:6px 10px;
  background:#333333;
  color:#ffffff;
  border:1px solid #ffffff;
  border-radius:999px;
  box-shadow:none;
  font-size:13px;
  font-weight:600;
  line-height:1;
  white-space:nowrap;
  text-transform:uppercase;
  letter-spacing:0;
  pointer-events:none;
}

/* Leaflet popup */

.leaflet-popup-content-wrapper{
  padding:5px 9px 9px 5px;
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:10px;
  box-shadow:none;
}

.leaflet-popup-content{
  width:250px;
  margin:16px 14px 12px;
}

.leaflet-container a.leaflet-popup-close-button{
  top:8px;
  right:8px;
  width:28px;
  height:28px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#ffffff;
  color:var(--text);
  border:1px solid var(--text);
  border-radius:8px;
  font-family:Arial,sans-serif;
  font-size:20px;
  font-weight:700;
  line-height:1;
  text-align:center;
  text-indent:0;
  text-transform:none;
  text-decoration:none;
  box-shadow:none;
}

.leaflet-container a.leaflet-popup-close-button:hover{
  background:var(--soft);
  color:var(--text);
  border-color:var(--text);
}

.popupTitle{
  margin:0 0 7px;
  color:var(--text);
  font-size:24px;
  font-weight:600;
  line-height:.9;
}

.popupMeta{
  margin:0 0 9px;
  color:var(--muted);
  font-size:16px;
  line-height:1.35;
}

.popupActions{
  display:grid;
  gap:7px;
  margin-top:10px;
}

.popupBtn{
  width:100%;
}

/* Club info slideout */

.mapOverlay{
  position:absolute;
  inset:0;
  z-index:850;
  background:rgba(21,21,21,.28);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .28s ease,visibility .28s ease;
}

.mapOverlay.isOpen{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.infoPanel{
  position:fixed;
  top:0;
  right:0;
  bottom:0;
  z-index:900;
  display:block;
  width:min(430px,92vw);
  height:100vh;
  padding:22px;
  overflow:auto;
  background:#ffffff;
  border-left:1px solid var(--border);
  box-shadow:none;
  opacity:0;
  visibility:hidden;
  transform:translateX(104%);
  transition:transform .34s cubic-bezier(.2,.8,.2,1),opacity .24s ease,visibility .34s ease;
}

.infoPanel.isOpen{
  opacity:1;
  visibility:visible;
  transform:translateX(0);
}

.infoPanelHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:46px;
  margin-bottom:12px;
  padding-bottom:12px;
  border-bottom:1px solid var(--border);
}

.infoPanelTitle{
  margin:0;
  color:var(--text);
  font-size:22px;
  font-weight:600;
  line-height:1;
  text-align:left;
}

.infoPanelClose{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:34px;
  height:34px;
  padding:0;
  background:#ffffff;
  color:var(--text);
  border:1px solid var(--text);
  border-radius:8px;
  box-shadow:none;
  font-family:Arial,sans-serif;
  font-size:22px;
  font-weight:700;
  line-height:1;
  text-align:center;
  text-transform:none;
  letter-spacing:0;
  cursor:pointer;
}

.infoPanelClose:hover{
  background:var(--soft);
  color:var(--text);
  border-color:var(--text);
}

.infoPanelMeta{
  margin:0 0 12px;
  color:var(--muted);
  font-size:16px;
  font-weight:400;
  line-height:1.35;
}

.infoPanelDetails{
  display:grid;
  gap:0;
  margin-top:16px;
  border-top:1px solid var(--border);
}

.infoPanelRow{
  display:grid;
  grid-template-columns:118px 1fr;
  gap:14px;
  align-items:start;
  padding:10px 0;
  border-bottom:1px solid var(--border);
}

.infoPanelRow strong{
  display:block;
  padding-top:2px;
  color:var(--muted);
  font-size:16px;
  font-weight:600;
  line-height:1.25;
}

.infoPanelRow p{
  margin:0;
  color:var(--text);
  font-size:16px;
  font-weight:600;
  line-height:1.25;
}

.infoPanelRow a{
  color:var(--text);
  font-size:16px;
  font-weight:600;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}

.infoPanelRow a:hover{
  background:var(--soft);
  color:var(--text);
}

/* Tags */

.tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
  text-transform:uppercase;
  letter-spacing:0;
}

.tag.current{
  background:var(--green-bg);
  color:var(--green-text);
  border:1px solid var(--green-border);
}

.tag.promoted{
  background:var(--red-bg);
  color:var(--red-text);
  border:1px solid var(--red-border);
}

/* Error */

.appError{
  max-width:960px;
  margin:24px auto;
  padding:18px;
  background:#ffffff;
  border:1px solid #b40000;
  border-radius:10px;
  color:var(--text);
  font-size:18px;
}

.appError strong{
  color:#b40000;
}

.clubShareBtn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:18px;
  padding:12px 16px;
  border:0;
  border-radius:999px;
  background:#141414;
  color:#fff;
  font-family:inherit;
  font-size:18px;
  line-height:1;
  cursor:pointer;
}

.clubShareBtn:hover{
  background:#333;
}

.clubShareBtn .material-symbols-outlined{
  font-size:20px;
}

.attendancePanel[hidden]{
  display:none!important;
}

.attendancePanel.isOpen{
  display:block;
}

.attendanceStats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin:0 0 24px;
}

.attendanceStat{
  padding:16px;
  border-radius:18px;
  background:transparent;
  border:1px solid #ddd8cd;
}

.attendanceStat strong{
  display:block;
  margin-bottom:8px;
  color:#666;
  font-size:14px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.attendanceStat span{
  display:block;
  color:#141414;
  font-size:34px;
  line-height:1;
  font-weight:800;
}

.attendanceTableWrap{
  margin-top:0;
}

.attendanceTable th:first-child,
.attendanceTable td:first-child{
  text-align:left;
}

.attendanceTable td:nth-child(4),
.attendanceTable td:nth-child(5){
  font-weight:800;
}

@media(max-width:900px){
  .attendanceStats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:560px){
  .attendanceStats{
    grid-template-columns:1fr;
  }

  .attendanceStat span{
    font-size:30px;
  }
}

.attendancePanel[hidden],
.goalsPanel[hidden]{display:none!important}
.attendancePanel.isOpen,
.goalsPanel.isOpen{display:block}

.attendanceStats,
.goalsStats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin:0 0 24px;
}

.attendanceStat,
.goalsStat{
  padding:16px;
  border-radius:18px;
  background:transparent;
  border:1px solid #ddd8cd;
}

.attendanceStat strong,
.goalsStat strong{
  display:block;
  margin-bottom:8px;
  color:#666;
  font-size:14px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.attendanceStat span,
.goalsStat span{
  display:block;
  color:#141414;
  font-size:34px;
  line-height:1;
  font-weight:800;
}

.attendanceTable th:first-child,
.attendanceTable td:first-child{text-align:left}
.attendanceTable td:nth-child(4),
.attendanceTable td:nth-child(5){font-weight:800}

.goalsSeasonControls{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:14px;
}

.goalsSeasonToggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 13px;
  border:1px solid #ddd8cd;
  background:transparent;
  color:#141414;
  font-family:inherit;
  font-size:15px;
  line-height:1;
  cursor:pointer;
}

.goalsSeasonToggle.isActive{
  background:#141414;
  border-color:#141414;
  color:#fff;
}

.goalsCharts{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  margin:0 0 24px;
}

.goalsChart{
  padding:18px 0;
  border:0;
  border-radius:0;
  background:transparent;
}

.goalsChartHeader{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}

.goalsChartControls{
  display:flex;
  align-items:center;
  gap:6px;
  flex-shrink:0;
}

.goalsChartToggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:8px 11px;
  border:0;
  border-radius:0;
  background:transparent;
  color:#141414;
  font-family:inherit;
  font-size:14px;
  line-height:1;
  cursor:pointer;
}

.goalsChartToggle.isActive{
  background:#141414;
  color:#fff;
}

.goalsChartToggle .material-symbols-outlined{font-size:17px}

.goalsChartHeader h3{
  margin:0;
  color:#141414;
  font-size:24px;
  line-height:1;
}

.goalsChartHeader p{
  margin:5px 0 0;
  color:#666;
  font-size:16px;
  line-height:1.3;
}

.chartJsWrap{
  position:relative;
  width:100%;
  height:420px;
}

.chartJsWrap canvas{
  width:100%!important;
  height:100%!important;
}

.teamGoalControls{
  display:block;
  margin-bottom:16px;
}

.teamGoalControlsLabel{
  display:block;
  margin-bottom:10px;
  color:#666;
  font-size:14px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.teamGoalsBadges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.teamGoalBadge{
  width:52px;
  height:52px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid #ddd8cd;
  border-radius:999px;
  background:#fff;
  cursor:pointer;
}

.teamGoalBadge img{
  width:31px;
  height:31px;
  display:block;
  object-fit:contain;
}

.teamGoalBadge span{
  color:#141414;
  font-size:12px;
  font-weight:800;
  line-height:1;
}

.teamGoalBadge.isActive{
  border-color:#141414;
  background:#141414;
}

.teamGoalBadge.isActive span{color:#fff}
.teamGoalBadge.isActive img{filter:brightness(0) invert(1)}

.teamTimingSummary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:16px;
}

.teamTimingStat{
  padding:12px;
  border:1px solid #ddd8cd;
  border-radius:14px;
}

.teamTimingStat strong{
  display:block;
  margin-bottom:6px;
  color:#666;
  font-size:12px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.teamTimingStat span{
  display:block;
  color:#141414;
  font-size:24px;
  line-height:1;
  font-weight:800;
}

.goalTrends{
  margin-top:28px;
  padding-top:20px;
  border-top:1px solid #ddd8cd;
}

.goalTrendsHeader{margin-bottom:14px}

.goalTrendsHeader h3{
  margin:0 0 6px;
  font-size:22px;
  line-height:1.1;
  color:#141414;
}

.goalTrendsHeader p{
  margin:0;
  color:#666;
  font-size:16px;
}

.goalTrendsGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 18px;
}

.goalTrendCard{
  padding:16px;
  border-top:1px solid #ddd8cd;
}

.goalTrendCard h4{
  margin:0 0 12px;
  font-size:18px;
  line-height:1.1;
  color:#141414;
}

.goalTrendStats{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:10px;
}

.goalTrendStat{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 9px;
  background:#f4f2ec;
  color:#141414;
  font-size:15px;
  line-height:1;
  font-weight:800;
}

.goalTrendStat span{
  color:#666;
  font-weight:700;
}

.goalTrendStat.isScored strong{color:#315e19}
.goalTrendStat.isConceded strong{color:#9a3434}

.goalTrendCard p{
  margin:0;
  font-size:16px;
  line-height:1.45;
  color:#666;
}

@media(max-width:900px){
  .attendanceStats,
  .goalsStats,
  .teamTimingSummary{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:700px){
  .goalTrendsGrid{grid-template-columns:1fr}
}

@media(max-width:560px){
  .goalsChartHeader{display:block}
  .goalsChartControls{margin-top:12px}
  .attendanceStats,
  .goalsStats,
  .teamTimingSummary{grid-template-columns:1fr}
  .attendanceStat span,
  .goalsStat span{font-size:30px}
  .teamGoalBadge{width:46px;height:46px}
  .teamGoalBadge img{width:27px;height:27px}
}

.hero{margin-bottom:42px}
.heroTitleGroupWithSeason{display:flex;align-items:flex-start;gap:16px;flex-wrap:wrap}
.heroTitleGroupSeasonBelow{flex-direction:column}
.seasonTogglesSecondary{display:flex;align-items:center;gap:10px}
.seasonToggleSecondary.fixtureFilterBtn{margin:0}
.toolToggles{margin-top:0}
.attendanceNote{margin:0 0 22px}
.fixtureMonthGroup{margin:0 0 32px}
.fixtureMonthGroup:last-child{margin-bottom:0}
.fixtureMonthHeading{margin:0 0 14px;padding:0 0 10px;font-size:24px;line-height:1.1;border-bottom:1px solid #ddd8cd}
.fixtureMonthList{display:flex;flex-direction:column}
.fixtureCard{display:grid;grid-template-columns:120px minmax(0,1fr) 140px;align-items:center;gap:18px;padding:16px 0;border-bottom:1px solid #ddd8cd}
.fixtureDate{font-size:15px;color:#666;white-space:nowrap}
.fixtureTeams{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:14px;min-width:0}
.fixtureClub{display:flex;align-items:center;gap:10px;min-width:0}
.fixtureClub.isAway{justify-content:flex-end;flex-direction:row-reverse;text-align:right}
.fixtureClubName{display:block;font-size:18px;line-height:1.2;min-width:0}
.fixtureBadge{width:30px;height:30px;object-fit:contain;flex:0 0 30px}
.fixtureBadgeFallback{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid #ddd8cd;font-size:11px;line-height:1;color:#666}
.fixtureScore{display:inline-flex;align-items:center;justify-content:center;min-width:68px;padding:8px 12px;border:1px solid #ddd8cd;font-size:18px;line-height:1;white-space:nowrap}
.fixtureMeta{text-align:right;font-size:15px;color:#666;white-space:nowrap}
.fixtureEmpty{padding:22px 0;border-top:1px solid #ddd8cd;border-bottom:1px solid #ddd8cd;font-size:16px;color:#666}
@media(max-width:900px){.fixtureCard{grid-template-columns:1fr;gap:10px}.fixtureMeta,.fixtureDate{text-align:left}}
@media(max-width:640px){.fixtureMonthHeading{font-size:20px}.fixtureTeams{grid-template-columns:1fr;gap:10px}.fixtureClub,.fixtureClub.isAway{justify-content:flex-start;flex-direction:row;text-align:left}.fixtureScore{justify-self:start}.fixtureClubName{font-size:16px}.fixtureDate,.fixtureMeta{font-size:14px}}
@media(max-width:700px){.heroTitleGroupWithSeason{align-items:flex-start;gap:16px}.seasonTogglesSecondary{width:100%}}

.leagueTableWrap,
.attendanceTableWrap,
.chartJsWrap,
.fixtureList,
.teamGoalControls,
.toolToggles,
.leagueTableControls,
.fixtureControls,
.goalsChartControls,
.seasonTogglesSecondary{
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
}

.leagueTableWrap table,
.attendanceTableWrap table{
  min-width:840px;
}

.chartJsWrap{
  position:relative;
}

.chartJsWrap canvas{
  min-width:760px;
}

.fixtureList{
  overflow-x:hidden;
}

.fixtureCard{
  min-width:0;
}

.fixtureTeams{
  min-width:0;
}

.fixtureClubName{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.toolToggles,
.leagueTableControls,
.fixtureControls,
.goalsChartControls,
.seasonTogglesSecondary{
  padding-bottom:4px;
}

@media(max-width:700px){
  .chartJsWrap{
    overflow-x:auto;
  }

  .chartJsWrap canvas{
    min-width:780px;
  }

  .leagueTableWrap,
  .attendanceTableWrap{
    width:100%;
  }

  .fixtureCard{
    min-width:0;
  }
}

/* Final Chart.js mobile scroll fix */
.chartJsWrap{
  width:100%;
  max-width:100%;
  height:420px;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
}

.chartScrollInner{
  width:100%;
  min-width:760px;
  height:100%;
}

.chartScrollInner canvas{
  display:block;
  width:100%!important;
  height:100%!important;
}

@media(max-width:700px){
  .chartJsWrap{
    height:360px;
  }

  .chartScrollInner{
    min-width:780px;
  }
}

/* Responsive */

@media(max-width:1050px){
  .mapShell{
    min-height:720px;
  }

  #map{
    height:720px;
    min-height:720px;
  }
}

@media(max-width:620px){
  .page{
    padding:14px;
  }

  .hero{
    gap:12px;
    margin-bottom:12px;
  }

  .hero h1{
    font-size:24px;
  }

  .topbinsLogo{
    width:82px;
  }

  .routeControls{
    grid-template-columns:1fr;
    gap:9px;
  }

  .routeDirectionsLink{
    width:100%;
  }

  .fixturesHeader,
  .leagueTableHeader{
    align-items:flex-start;
    flex-direction:column;
  }

  .mapShell,
  #map,
  .mapLoading{
    min-height:560px;
    height:560px;
  }

  .infoPanel{
    width:92vw;
    padding:18px;
  }

  .infoPanelTitle{
    font-size:20px;
  }

  .infoPanelRow{
    grid-template-columns:100px 1fr;
    gap:10px;
    padding:9px 0;
  }

  .infoPanelRow p,
  .infoPanelRow a,
  .infoPanelRow strong{
    font-size:14px;
  }

  .leagueTable{
    min-width:520px;
  }

  .leagueTable th:nth-child(4),
  .leagueTable td:nth-child(4),
  .leagueTable th:nth-child(5),
  .leagueTable td:nth-child(5),
  .leagueTable th:nth-child(6),
  .leagueTable td:nth-child(6),
  .leagueTable th:nth-child(7),
  .leagueTable td:nth-child(7),
  .leagueTable th:nth-child(8),
  .leagueTable td:nth-child(8){
    display:none;
  }
}



/* Final chart horizontal scroll fix */
.goalsPanel,
.goalsCharts,
.goalsChart{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow-x:visible;
}

.chartJsWrap{
  display:block;
  width:100%;
  max-width:100%;
  min-width:0!important;
  height:420px;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-inline:contain;
}

.chartScrollInner{
  position:relative;
  width:900px;
  min-width:900px;
  max-width:none;
  height:100%;
}

.chartScrollInner canvas{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  height:100%!important;
}

@media(max-width:700px){
  .chartJsWrap{
    height:360px;
  }

  .chartScrollInner{
    width:900px;
    min-width:900px;
  }
}

.hero{align-items:flex-start}
.heroTitleGroup{flex:1 1 auto;min-width:0}

.guideTitleRow{
  display:flex;
  align-items:center;
  gap:24px;
  width:100%;
  flex-wrap:wrap;
}

.guideTitleRow h1{
  margin:0;
  line-height:1;
  flex:0 0 auto;
}

.guideNav{
  margin:0;
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}

.guideNavLink{
  display:inline-flex;
  align-items:center;
  color:#333;
  text-decoration:none;
  font-size:18px;
  line-height:1;
  font-weight:700;
  border-bottom:2px solid transparent;
  padding:2px 0 5px;
}

.guideNavLink:hover,
.guideNavLink.isActive{
  border-bottom-color:#333;
}

#premierSeasonToggles{
  margin-top:14px;
}

.topbinsLogo{
  align-self:flex-start;
}

@media(max-width:900px){
  .guideTitleRow{
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
  }

  .guideNav{
    gap:14px;
  }
}

@media(min-width:901px){
  .goalsPanel .chartJsWrap{
    height:460px;
  }

  .goalsPanel .chartScrollInner{
    width:100%;
    min-width:1200px;
  }
}

@media(min-width:1400px){
  .goalsPanel .chartJsWrap{
    height:480px;
  }

  .goalsPanel .chartScrollInner{
    width:100%;
    min-width:1320px;
  }
}