@font-face {
  font-family: "D-DIN";
  src: url("../fonts/D-DIN.woff2") format("woff2"),
       url("../fonts/D-DIN.woff") format("woff"),
       url("../fonts/D-DIN.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "D-DIN Condensed";
  src: url("../fonts/D-DINCondensed.woff2") format("woff2"),
       url("../fonts/D-DINCondensed.woff") format("woff"),
       url("../fonts/D-DINCondensed.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "D-DIN Condensed";
  src: url("../fonts/D-DINCondensed-Bold.woff2") format("woff2"),
       url("../fonts/D-DINCondensed-Bold.woff") format("woff"),
       url("../fonts/D-DINCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #131313;
  --bg-raised: #1c1c1c;
  --bg-card: #202020;
  --border: #333333;
  --text: #ededed;
  --text-muted: #9a9a9a;
  --gold: #c9a227;
  --gold-bright: #e0bd3d;
  --nav-height: 68px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "D-DIN", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .headline {
  font-family: "D-DIN Condensed", Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.5em;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 16px 0;
}
main > .section:last-of-type { padding-bottom: 31px; }

.section-title {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.section-title small {
  font-family: "D-DIN", Arial, sans-serif;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.page-title { font-size: 2.1rem; }
.section-blurb {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 640px;
  margin: -14px 0 22px;
}
.section-blurb:empty { display: none; }

.btn {
  display: inline-block;
  font-family: "D-DIN Condensed", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  background: var(--gold);
  color: #141414;
  border: none;
  padding: 8px 20px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.2;
  vertical-align: middle;
}
.btn:hover { background: var(--gold-bright); text-decoration: none; color: #141414; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); background: transparent; }

/* ---------- NAV ---------- */

.site-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-height);
  display: flex;
  align-items: center;
}
.site-nav.solid {
  position: fixed;
  border-bottom: 1px solid var(--border);
}
/* backdrop-filter lives on a pseudo-element, not .site-nav itself, because a
   backdrop-filter on .site-nav would make it a new containing block for any
   position:fixed descendant — including the mobile .nav-links menu — which
   collapses that menu into the nav bar's own 68px height instead of the
   viewport. See the .nav-links comment below for the visible symptom. */
.site-nav.solid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(19, 19, 19, 0.92);
  backdrop-filter: blur(6px);
}
.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 74px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links > li { position: relative; }
.nav-links a {
  color: var(--text);
  font-family: "D-DIN Condensed", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 1.25rem;
  opacity: 0.85;
}
.nav-links a:hover { opacity: 1; color: var(--gold-bright); text-decoration: none; }
.nav-links .active > a { opacity: 1; color: var(--gold); }

.subnav {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 240px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 0;
  margin-top: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}
/* Invisible bridge over the margin-top gap so mousing from the nav link down
   to the dropdown doesn't pass through a dead zone and lose :hover mid-transit. */
.subnav::before {
  content: "";
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 10px;
}
.nav-links > li:hover .subnav { display: block; }
.subnav a {
  display: block;
  padding: 8px 16px;
  font-family: "D-DIN", Arial, sans-serif;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  opacity: 0.85;
  font-size: 0.95rem;
}
.subnav a:hover { background: rgba(255,255,255,0.04); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--text);
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height); left: 0; right: 0; bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 20px 30px;
    transform: translateY(-110%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > li { width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links > li > a { display: block; padding: 14px 0; }
  .subnav {
    display: none !important;
    position: static;
    border: none;
    background: none;
    margin: 0 0 10px;
    padding: 0 0 0 14px;
  }
  .nav-links > li.subnav-open .subnav { display: block !important; }
  .hamburger { display: flex; }
  .site-nav { position: fixed; background: rgba(19,19,19,0.95); border-bottom: 1px solid var(--border); }
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  height: 86vh;
  min-height: 460px;
  overflow: hidden;
  background: #000;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
  transform: scale(1.15) translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}
.hero-slide.active {
  opacity: 1;
  animation: kenburns 38s linear infinite alternate;
}
@keyframes kenburns {
  0%   { transform: scale(1.15) translateX(-3.5%) translateZ(0); }
  100% { transform: scale(1.15) translateX(3.5%) translateZ(0); }
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100px;
  z-index: 4;
  background: linear-gradient(180deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0) 100%);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.25) 20%, rgba(13,13,13,0.95) 80%, rgba(13,13,13,0.95) 100%);
}
.hero-content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 64px;
}
.hero-content .wrap { width: 100%; }
.hero-logo img { height: 66px; margin-bottom: 18px; }
.hero-intro {
  max-width: 620px;
  font-size: 1.15rem;
  color: #f2f2f2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

 
/* ---------- ON NOW ---------- */

.onnow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 760px) {
  #onNow {padding-top:0px;}
  .onnow-grid { grid-template-columns: 1fr;  }
}
.onnow-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 20px;
  display: block;
}
.onnow-card:hover { border-color: var(--gold); text-decoration: none; }
.onnow-card .chan {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.onnow-card .chan img { height: 34px; display: block; }
.dot-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e0413d;
  box-shadow: 0 0 0 rgba(224,65,61,0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(224,65,61,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(224,65,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,65,61,0); }
}
.onnow-card .title { color: var(--text); font-size: 1.05rem; margin-bottom: 4px; }
.onnow-card .meta { color: var(--text-muted); font-size: 0.88rem; }

/* ---------- VOD ---------- */

.vod-list { display: flex; flex-direction: column; gap: 10px; }
.vod-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.vod-row:hover { border-color: var(--gold); text-decoration: none; }
.vod-row .name { color: var(--text); }
.vod-row .sub { color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 760px) {
  .onnow-card {padding: 11px;}
  .vod-row {padding:11px;}
  .vod-row .sub {white-space: nowrap;}
} 

/* ---------- MUSEUM STRIP ---------- */

.museum-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 760px) {
  .museum-grid { grid-template-columns: repeat(3, 1fr); }
  .museum-grid .museum-tile:nth-child(n+4) { display: none; }
}
.museum-tile {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.museum-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.museum-tile:hover img { transform: scale(1.08); }
.museum-more { text-align: center; margin-top: 22px; }

/* ---------- FEATURED TEAM ---------- */

.feature-team {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

.feature-team .helmet img { width: 100%; }
.feature-team h3 { font-size: 1.6rem; margin-bottom: 6px; }
.feature-team .league { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.feature-team p.desc {
  color: #cfcfcf;
  max-width: 640px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 700px) {
  .feature-team { grid-template-columns: 1fr; text-align: center; padding: 10px;}
  #featuredTeam .helmet { 
      display: block;
      margin: auto;
      flex: none;
      overflow: hidden;
      border-radius: 6px;
      width: 250px;
      height: 250px;
      margin-bottom:0px;
  }
  #featuredTeam .helmet img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transform: scale(1.10);
  }
  #featuredTeam {gap: 5px;}
  #featuredTeam h3 {margin-bottom:2px;}
  #featuredTeam .league {margin-bottom: 8px;}
  #cardViewBtn {margin-bottom:15px;}
}

.feature-search {
  margin-top: 18px;
  position: relative;
  max-width: 340px;
}
@media (max-width: 700px) { 
  .feature-search { margin-left: auto; margin-right: auto; } 
  #cardName {line-height:30px;}
}
.feature-search input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 4px;
  font-family: "D-DIN", Arial, sans-serif;
  font-size: 1rem;
}
.feature-search input:focus { outline: none; border-color: var(--gold); }
.search-results {
  position: absolute;
  top: 100%; left: 0; right: 0;
  margin-top: 6px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 10;
  display: none;
  text-align: left;
}
.search-results.open { display: block; }
.search-results a {
  display: block;
  padding: 9px 14px;
  color: var(--text);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
}
.search-results a:last-child { border-bottom: none; }
.search-results a:hover { background: rgba(201,162,39,0.12); text-decoration: none; }
.search-results .empty { padding: 10px 14px; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- FOOTER ---------- */

.site-footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  padding: 24px 0 35px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}
.footer-grid h5 {
  font-family: "D-DIN Condensed", Arial, sans-serif;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-grid p { color: #b8b8b8; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #cfcfcf; }
.copyright { opacity: 0.45; font-size: 0.85rem; margin-top: 10px; }

@media (max-width: 700px) {
  .site-footer {padding-top:0px;}
  .footer-grid {gap: 0px;}
  .footer-grid h5 {font-size:22px;}
  .copyright {font-size: 0.95rem;}
} 

/* ---------- MODAL ---------- */

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 440px;
  width: 100%;
  padding: 30px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-box h2 { margin-bottom: 8px; }
.modal-box p.note { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 18px; }
.form-group { margin-bottom: 14px; }
.form-group input, .form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 4px;
  font-family: "D-DIN", Arial, sans-serif;
  font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-status { font-size: 0.88rem; margin-top: 10px; color: var(--text-muted); }
.form-status.error { color: #e0413d; }
.form-status.success { color: #6fbf73; }

.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-text {
  font-family: "D-DIN Condensed", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.25em;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 9px 14px;
  color: var(--gold-bright);
  text-decoration: line-through;
  user-select: none;
  white-space: nowrap;
}
.captcha-refresh {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 4px;
  width: 38px; height: 38px;
  flex: none;
  cursor: pointer;
  font-size: 1.1rem;
}
.captcha-refresh:hover { color: var(--gold-bright); border-color: var(--gold); }
.captcha-row input { flex: 1; min-width: 0; }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* ---------- ARCHIVE / DATA TABLES ---------- */

.archive-page {
  padding-top: calc(var(--nav-height) + 24px);
  padding-bottom: 60px;
}

.table-scroll { overflow-x: auto; }
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.data-table th, table.data-table td {
  padding: 3px 5px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
table.data-table th {
  color: var(--text-muted);
  font-family: "D-DIN Condensed", Arial, sans-serif;
  letter-spacing: 0.03em;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  user-select: none;
  position: sticky;
  top: 0;
  background: var(--bg);
}
table.data-table th.sortable { cursor: pointer; }
table.data-table th.sortable:hover { color: var(--gold-bright); }
table.data-table th.sorted { color: var(--gold); }
table.data-table tbody tr:nth-child(odd) { background: rgba(255,255,255,0.02); }
table.data-table tr.row-link { cursor: pointer; }
table.data-table tr.row-link:hover { background: rgba(201,162,39,0.1); }
table.data-table td:first-child, table.data-table th:first-child { text-align: left; }
.table-empty { color: var(--text-muted); padding: 20px 0; }

.archive-browse-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.archive-browse-filters select,
.archive-browse-filters input[type="text"] {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 4px;
  font-family: "D-DIN", Arial, sans-serif;
  font-size: 0.95rem;
}
.archive-browse-filters input[type="text"] { flex: 1; min-width: 220px; }
.player-search-wrap { position: relative; flex: 1; min-width: 220px; }
.player-search-wrap input[type="text"] {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 4px;
  font-family: "D-DIN", Arial, sans-serif;
  font-size: 0.95rem;
}
.player-search-wrap input[type="text"]:focus { outline: none; border-color: var(--gold); }
@media (max-width: 700px) {
  .archive-browse-filters select { width: 100%; }
}

.team-browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.team-browse-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.team-browse-card:hover { border-color: var(--gold); text-decoration: none; }
.team-browse-card .name { color: var(--text); font-size: 0.95rem; line-height: 1.25; }
.team-browse-card .sub { color: var(--text-muted); font-size: 0.8rem; }

/* Helmet PNGs all share the same square canvas with generous padding around
   the actual helmet artwork, so a plain object-fit:contain leaves them
   looking small. Crop uniformly by overflowing a scaled-up image inside a
   fixed, clipped box instead. */
.helmet-crop {
  display: block;
  flex: none;
  overflow: hidden;
  border-radius: 6px;
  width: 76px;
  height: 76px;
}
.helmet-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.25);
}
.helmet-crop-lg { width: 126px; height: 126px; border-radius: 8px; }

.team-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 24px;
}
.team-banner h1 { font-size: 2.3rem; margin-bottom: 2px; }
.team-banner .sub { color: var(--text-muted); font-size: 0.95rem; }
.team-banner .record { color: var(--gold-bright); font-family: "D-DIN Condensed", Arial, sans-serif; font-weight: 700; margin-top: 4px; }

.team-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}
.team-layout > * { min-width: 0; }
@media (max-width: 900px) {
  .team-layout { grid-template-columns: 1fr; }
}

.team-main .section-block { margin-bottom: 34px; }
#seasonBody .section-block, #playerStats .section-block { margin-bottom: 20px; }
.team-main h2.block-title { font-size: 1.3rem; margin-bottom: 14px; }

.team-sidebar-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}
.team-sidebar-panel .desc { color: #cfcfcf; font-size: 0.92rem; margin-bottom: 14px; }
.team-sidebar-panel .links a { display: block; font-size: 0.9rem; margin-bottom: 6px; }
.team-sidebar-panel h4 {
  font-family: "D-DIN Condensed", Arial, sans-serif;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 18px 0 10px;
  letter-spacing: 0.04em;
}
.sidebar-museum-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sidebar-museum-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; }
.teamkit-thumb-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  cursor: zoom-in;
  overflow: hidden;
}
.teamkit-thumb-btn img { width: 100%; display: block; }
.teamkit-thumb-btn:hover { border-color: var(--gold); }
.sidebar-seealso a { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; margin-bottom: 6px; }
.sidebar-seealso img { width: 22px; height: 22px; object-fit: contain; }

.season-headline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 2.3rem;
}
.season-headline img { width: 40px; height: 40px; object-fit: contain; flex: none; }

.season-tabs {
  display: flex;
  gap: 8px;
  margin: 8px 0 22px;
  flex-wrap: wrap;
}
.season-tabs a {
  font-family: "D-DIN Condensed", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
}
.season-tabs a:hover { color: var(--text); border-color: var(--gold); text-decoration: none; }
.season-tabs a.active { background: var(--gold); border-color: var(--gold); color: #141414; }

.player-meta-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 26px;
}
.player-meta-banner h1 { font-size: 2rem; margin-bottom: 6px; }
.player-meta-banner .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.player-meta-banner .grid b { color: var(--text); display: block; font-size: 1rem; }

.breadcrumb-link { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 14px; display: inline-block; }
.breadcrumb-link:hover { color: var(--gold-bright); }

/* ---------- MUSEUM PAGE ---------- */

.museum-page {
  padding-top: calc(var(--nav-height) + 24px);
  padding-bottom: 60px;
}

.museum-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.museum-filters select,
.museum-filters input[type="text"] {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 4px;
  font-family: "D-DIN", Arial, sans-serif;
  font-size: 0.95rem;
}
.museum-filters select { min-width: 150px; }
.museum-filters input[type="text"] { flex: 1; min-width: 200px; }
.museum-filters select:focus,
.museum-filters input[type="text"]:focus { outline: none; border-color: var(--gold); }
.museum-filters .btn-ghost { padding: 10px 16px; }
@media (max-width: 700px) {
  .museum-filters select,
  .museum-filters input[type="text"],
  .museum-filters .btn-ghost {
    width: 100%;
  }
}

.museum-status {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.museum-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.museum-page-grid .museum-tile {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0;
  display: block;
  width: 100%;
}
.museum-page-grid .museum-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.museum-page-grid .museum-tile:hover img { transform: scale(1.06); }

.museum-load-more { text-align: center; margin-top: 30px; }
.museum-empty { color: var(--text-muted); padding: 40px 0; text-align: center; }

/* ---------- LIGHTBOX ---------- */

.lightbox {
  position: fixed; inset: 0;
  background: rgba(8,8,8,0.94);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-imgwrap {
  max-height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-imgwrap img {
  max-height: 74vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-caption {
  margin-top: 16px;
  text-align: center;
  max-width: 720px;
}
.lightbox-caption .desc { color: var(--text); font-size: 1.02rem; }
.lightbox-caption .meta { color: var(--text-muted); font-size: 0.85rem; margin-top: 6px; }
.lightbox-caption .meta a { color: var(--text-muted); text-decoration: underline; }
.lightbox-count { color: var(--text-muted); font-size: 0.8rem; margin-top: 10px; }

/* ---------- CARD LIGHTBOX (flip + click-zoom/pan) ---------- */

.card-flip-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.card-flip-tab {
  font-family: "D-DIN Condensed", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}
.card-flip-tab:hover { color: var(--text); border-color: var(--gold); }
.card-flip-tab.active { background: var(--gold); border-color: var(--gold); color: #141414; }

.card-zoom-wrap {
  width: min(560px, 84vw);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #000;
  position: relative;
  cursor: zoom-in;
  touch-action: none;
}
.card-zoom-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 0 0;
  transition: transform 0.25s ease;
  user-select: none;
  pointer-events: none;
}
.card-zoom-wrap.zoomed { cursor: grab; }
.card-zoom-wrap.zoomed.dragging { cursor: grabbing; }
.card-zoom-wrap.zoomed img { transition: none; }
.card-zoom-hint { color: var(--text-muted); font-size: 0.82rem; margin-top: 12px; text-align: center; }

.lightbox-close {
  position: absolute;
  top: 18px; right: 22px;
  background: none; border: none;
  color: #fff; font-size: 2rem;
  cursor: pointer; line-height: 1;
  opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 700px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.2rem; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* ---------- NETWORK PAGE ---------- */

.network-page {
  padding-top: calc(var(--nav-height) + 24px);
  padding-bottom: 60px;
}
.network-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
.network-layout > * { min-width: 0; }
@media (max-width: 900px) {
  .network-layout { grid-template-columns: 1fr; }
}

.player-wrap {
  position: relative;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.player-ratio { aspect-ratio: 16 / 9; width: 100%; }
.player-ratio video { width: 100%; height: 100%; background: #000; }

.now-playing-label {
  margin-top: 14px;
  font-size: 1.25rem;
  color: var(--text);
}

.net-tabs {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.net-tab {
  font-family: "D-DIN Condensed", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 9px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
}
.net-tab:hover { color: var(--text); border-color: var(--gold); }
.net-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #141414;
}

.schedule-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
}
.schedule-panel h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.schedule-hint {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 14px;
}
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 440px;
  overflow-y: auto;
}
.sched-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 5px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  background: none;
  border-left: none; border-right: none; border-top: none;
  width: 100%;
  cursor: default;
  font-family: "D-DIN", Arial, sans-serif;
  color: var(--text);
}
button.sched-row { cursor: pointer; }
button.sched-row:hover { background: rgba(255,255,255,0.03); }
.sched-row.live .sched-title { color: var(--gold-bright); }
.sched-time {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sched-title { font-size: 0.95rem; }
.sched-meta { color: var(--text-muted); font-size: 0.78rem; margin-top: 2px; }

.page-placeholder {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
}
.page-placeholder h1 { font-size: 2.2rem; }
.page-placeholder p { color: var(--text-muted); }
