:root {
  color-scheme: dark;
  --ink: #03070c;
  --navy-950: #050d18;
  --navy-900: #071425;
  --navy-800: #0b1d33;
  --navy-700: #12304e;
  --silver: #d7dde5;
  --silver-bright: #f4f7fa;
  --muted: #8f9baa;
  --gold: #e8bd55;
  --gold-soft: #7e642c;
  --line: rgba(196, 207, 221, 0.15);
  --panel: rgba(8, 21, 37, 0.88);
  --qb: #f06a6a;
  --rb: #58c892;
  --wr: #58a8ef;
  --te: #e8a45c;
  font-family: var(--designer-font-family, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.admin-link{color:rgba(255,255,255,.48);font-size:.72rem;letter-spacing:.12em;text-decoration:none;text-transform:uppercase}.admin-link:hover{color:#f2c85b}

[data-format="cornerstone"] { display: none !important; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--designer-text-color, var(--silver-bright));
  background-color: var(--designer-page-background, var(--navy-950));
  background-image: radial-gradient(circle at 74% 0%, rgba(31, 66, 105, 0.28), transparent 30rem);
}

body::before { content: ""; position: fixed; z-index: 0; inset: 0; pointer-events: none; background-image: var(--designer-background-image, none); background-position: center; background-size: cover; opacity: .16; }

button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.page-shell { position: relative; z-index: 1; width: min(var(--designer-content-width,1380px), 100%); margin: 0 auto; padding: 0 28px; }

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.brand img { width: 66px; height: 66px; object-fit: contain; filter: drop-shadow(0 7px 14px rgba(0,0,0,.4)); }
.brand-copy { display: flex; align-items: center; }
.brand-kicker, .eyebrow { color: var(--gold); font-size: .74rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.brand-name { font-size: 1.6rem; font-weight: 850; letter-spacing: -.025em; line-height: 1; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a, .coming-soon { color: #9eabba; text-decoration: none; font-size: .92rem; font-weight: 720; padding: 12px 14px; border-radius: 10px; }
.main-nav a:hover, .main-nav a.active { color: white; background: rgba(255,255,255,.055); }
.coming-soon { opacity: .65; }
.coming-soon small { color: var(--gold); margin-left: 4px; font-size: .63rem; text-transform: uppercase; }

main { padding: 46px 0 70px; }
.rankings-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
h1, h2, p { margin-top: 0; }
h1 { margin: 8px 0 8px; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.055em; line-height: 1.02; }
.rankings-heading p { margin-bottom: 0; color: var(--muted); font-size: 1rem; }
.board-status { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; color: #b7c1cd; font-size: .84rem; font-weight: 720; padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(8,20,35,.72); }
.status-light { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px rgba(232,189,85,.65); }

.ranking-panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--designer-corner-radius,18px); background: var(--designer-panel-background,var(--panel)); box-shadow: 0 28px 80px rgba(0,0,0,.3); }
.format-tabs { display: flex; gap: 2px; padding: 7px; background: rgba(1,7,13,.68); border-bottom: 1px solid var(--line); overflow-x: auto; }
.format-tab { appearance: none; border: 0; color: #9aa7b5; background: transparent; padding: 12px 18px; border-radius: 9px; font-size: .9rem; font-weight: 780; cursor: pointer; white-space: nowrap; }
.format-tab:hover { color: white; }
.format-tab.active { color: #111820; background: linear-gradient(180deg, #f2f5f8, #bfc7d0); box-shadow: inset 0 1px white; }

.position-row, .controls-row { display: flex; align-items: center; gap: 18px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.filter-label { color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.position-tabs { display: flex; align-items: center; gap: 7px; overflow-x: auto; }
.position-tab { appearance: none; border: 1px solid transparent; border-radius: 999px; color: #b0bac5; background: rgba(255,255,255,.045); padding: 7px 13px; font-size: .82rem; font-weight: 800; cursor: pointer; }
.position-tab:hover { color: white; border-color: var(--line); }
.position-tab.active { color: white; background: var(--navy-700); border-color: rgba(169,190,213,.32); }
.position-tab.qb.active { background: rgba(240,106,106,.18); border-color: rgba(240,106,106,.5); color: #ffaaaa; }
.position-tab.rb.active { background: rgba(88,200,146,.17); border-color: rgba(88,200,146,.5); color: #8de4ba; }
.position-tab.wr.active { background: rgba(88,168,239,.17); border-color: rgba(88,168,239,.5); color: #9bcefa; }
.position-tab.te.active { background: rgba(232,164,92,.17); border-color: rgba(232,164,92,.5); color: #f5be84; }

.controls-row { justify-content: space-between; background: rgba(11,28,48,.52); }
.search-control { width: min(440px, 100%); position: relative; }
.search-control input { width: 100%; min-height: 43px; padding: 10px 14px 10px 42px; color: white; background: #050d18; border: 1px solid var(--line); border-radius: 10px; }
.search-control input::placeholder { color: #718091; }
.search-icon { position: absolute; left: 15px; top: 13px; width: 15px; height: 15px; border: 2px solid #718091; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 2px; background: #718091; right: -5px; bottom: -2px; transform: rotate(45deg); }
.sort-control { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .8rem; font-weight: 760; }
.sort-control select { min-height: 40px; padding: 7px 34px 7px 11px; color: #dfe5eb; background: #07111e; border: 1px solid var(--line); border-radius: 9px; }

.table-wrap { min-height: 440px; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th { height: 42px; padding: 0 14px; color: #7f8c9a; background: rgba(1,7,13,.52); border-bottom: 1px solid var(--line); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; text-align: left; }
th:first-child { width: 76px; text-align: center; }
th:nth-child(2) { width: 32%; }
th:nth-child(3) { width: 74px; text-align: center; }
th:nth-child(4) { width: 80px; }
th:nth-child(5) { width: 68px; }
th:nth-child(6) { width: 190px; }
th:last-child { width: 58px; }
td { height: 72px; padding: var(--designer-row-spacing,8px) 14px; border-bottom: 1px solid rgba(196,207,221,.09); color: #cdd5de; font-size: .91rem; }
tr.player-row { --team-primary: #183a5f; --team-secondary: #96a5b6; position: relative; cursor: pointer; background: linear-gradient(90deg, color-mix(in srgb, var(--team-primary) var(--designer-row-color,18%), #030913) 0%, color-mix(in srgb, var(--team-primary) 10%, #050e19 90%) 42%, color-mix(in srgb, var(--team-secondary) 7%, #030913 93%) 100%); transition: background .15s ease, transform .15s ease; }
tr.player-row:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--team-primary) 25%, #050e19 75%) 0%, color-mix(in srgb, var(--team-primary) 15%, #071321 85%) 42%, color-mix(in srgb, var(--team-secondary) 10%, #050e19 90%) 100%); }
tr.player-row:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.rank-cell { color: white; font-size: 1rem; font-weight: 850; text-align: center; }
.rank-value { position: relative; z-index: 2; }
.player-cell { position: relative; }
.player-profile { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; min-width: 0; }
.row-logo-layer { position: absolute; z-index: 1; top: 0; bottom: 0; left: -76px; width: min(1180px, calc(100vw - 28px)); overflow: hidden; pointer-events: none; display: flex; align-items: center; justify-content: flex-start; }
.row-logo-layer img { width: var(--designer-logo-width,72%); height: var(--designer-logo-height,190%); object-fit: contain; object-position: center; opacity: var(--designer-logo-opacity,.11); filter: brightness(var(--designer-logo-brightness,1.4)) saturate(1.2) contrast(1.08) drop-shadow(0 0 12px color-mix(in srgb, var(--team-secondary) 16%, transparent)); transform: translateX(var(--designer-logo-position,8%)) scaleX(1.2); }
.row-logo-layer img[hidden] { display: none; }
.player-profile > div:last-child { min-width: 0; }
.player-cell strong { display: block; color: #f7f9fb; font-size: .98rem; }
.player-cell small { display: none; color: var(--muted); margin-top: 2px; }
.player-headshot { position: relative; flex: 0 0 var(--designer-headshot-size,48px); width: var(--designer-headshot-size,48px); height: var(--designer-headshot-size,48px); overflow: hidden; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--team-secondary) 42%, rgba(255,255,255,.16)); border-radius: 50%; color: #f4f7fa; background: radial-gradient(circle at 38% 28%, color-mix(in srgb, var(--team-primary) 82%, white 18%), color-mix(in srgb, var(--team-primary) 58%, #06111f 42%) 70%); box-shadow: inset 0 0 12px rgba(255,255,255,.1), 0 2px 8px rgba(0,0,0,.35); font-size: .72rem; font-weight: 900; }
.player-headshot img { position: absolute; }
.player-headshot .player-photo { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.player-headshot img[hidden] { display: none; }
.position-cell { position: relative; z-index: 3; text-align: center; }
.position-pill { position: relative; z-index: 4; display: inline-flex; min-width: 40px; justify-content: center; padding: 6px 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; background-image: none !important; opacity: 1 !important; mix-blend-mode: normal; filter: saturate(var(--designer-badge-intensity,1)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 5px rgba(0,0,0,.5); font-size: .72rem; font-weight: 900; }
.position-pill.qb { color: #ffe1e4; background: #8e2032 !important; border-color: #c6495b; }
.position-pill.rb { color: #dcffed; background: #16764c !important; border-color: #3da878; }
.position-pill.wr { color: #e1f3ff; background: #176ba5 !important; border-color: #4798cc; }
.position-pill.te { color: #ffead0; background: #a45a18 !important; border-color: #d58a43; }
.rating-cell { display: flex; align-items: center; gap: 10px; }
.rating-cell strong { min-width: 29px; color: white; font-size: .91rem; }
.stars { color: var(--gold); font-size: .82rem; letter-spacing: .08em; white-space: nowrap; }
.unrated { color: #617080; }
.tier-cell { color: #aeb8c3; font-size: .84rem; }
.details-arrow { color: #667587; font-size: 1.15rem; }

.empty-state { min-height: 440px; padding: 80px 24px; text-align: center; }
.empty-state[hidden] { display: none; }
.empty-stars { color: var(--gold-soft); letter-spacing: .2em; margin-bottom: 20px; }
.empty-state h2 { margin-bottom: 8px; font-size: 1.35rem; }
.empty-state p { max-width: 480px; margin: 0 auto; color: var(--muted); }

.scroll-status { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); }
.scroll-status[hidden] { display: none; }
.scroll-status p { margin: 0; color: var(--muted); font-size: .8rem; }
.scroll-sentinel { display: flex; align-items: center; gap: 9px; color: #909eac; font-size: .78rem; font-weight: 760; }
.scroll-sentinel[hidden] { display: none; }
.loading-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(232,189,85,.55); }

.rating-scale { margin-top: 64px; padding: 34px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 46px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(135deg, rgba(14,34,56,.72), rgba(5,13,23,.83)); }
.rating-scale h2 { margin: 8px 0 10px; font-size: 1.8rem; letter-spacing: -.04em; }
.rating-scale p { color: var(--muted); line-height: 1.65; margin-bottom: 0; }
.scale-list { display: grid; gap: 8px; }
.scale-list article { display: grid; grid-template-columns: 95px 1fr auto; align-items: center; gap: 14px; min-height: 54px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.scale-list article:last-child { border-bottom: 0; }
.scale-list span { color: var(--gold); font-size: .78rem; letter-spacing: .05em; }
.scale-list strong { font-size: .9rem; }
.scale-list small { color: var(--muted); text-align: right; }

footer { min-height: 110px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #647282; border-top: 1px solid var(--line); font-size: .82rem; }
footer img { width: 38px; height: 38px; object-fit: contain; opacity: .6; }
footer p { margin: 0; }

dialog { width: min(520px, calc(100% - 32px)); color: var(--silver-bright); background: linear-gradient(160deg, #0d2138, #050d17); border: 1px solid rgba(215,221,229,.25); border-radius: 18px; padding: 32px; box-shadow: 0 40px 100px rgba(0,0,0,.65); }
dialog::backdrop { background: rgba(0,4,8,.78); backdrop-filter: blur(7px); }
.dialog-close { position: absolute; top: 13px; right: 14px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: white; background: rgba(255,255,255,.045); font-size: 1.35rem; cursor: pointer; }
.dialog-player-header { display: flex; align-items: center; gap: 18px; padding-right: 32px; }
.dialog-headshot { position: relative; flex: 0 0 92px; width: 92px; height: 92px; overflow: hidden; display: grid; place-items: center; border: 1px solid rgba(232,189,85,.28); border-radius: 50%; color: var(--gold); background: radial-gradient(circle at 50% 30%, #1a3d62, #07121f 72%); font-size: 1.1rem; font-weight: 900; }
.dialog-headshot img { position: absolute; }
.dialog-headshot .dialog-player-photo { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.dialog-headshot img[hidden] { display: none; }
.dialog-position { display: inline-flex; padding: 5px 9px; border-radius: 6px; font-size: .73rem; font-weight: 900; }
dialog h2 { margin: 8px 0 4px; font-size: 2rem; letter-spacing: -.04em; }
.dialog-team { color: var(--muted); }
.dialog-rating { display: grid; grid-template-columns: 1fr auto; align-items: center; margin: 26px 0 18px; padding: 18px; border: 1px solid rgba(232,189,85,.25); border-radius: 12px; background: rgba(79,60,20,.2); }
.dialog-rating span { grid-row: span 2; color: var(--gold); font-size: 1.25rem; letter-spacing: .12em; }
.dialog-rating strong { color: var(--gold); font-size: 1.5rem; text-align: right; }
.dialog-rating small { color: var(--muted); text-align: right; }
dialog dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0; }
dialog dl div { padding: 12px; border-radius: 10px; background: rgba(255,255,255,.035); }
dialog dt { color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
dialog dd { margin: 5px 0 0; font-weight: 800; }
.chef-take { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.chef-take span { color: var(--gold); font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .13em; }
.chef-take p { margin: 8px 0 0; color: #c2cbd4; line-height: 1.6; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .site-header { align-items: flex-start; padding: 15px 0; }
  .main-nav { display: none; }
  .rating-scale { grid-template-columns: 1fr; gap: 26px; }
  th:nth-child(4), td:nth-child(4), th:nth-child(5), td:nth-child(5), th:nth-child(7), td:nth-child(7) { display: none; }
  th:nth-child(2) { width: 42%; }
}

@media (max-width: 640px) {
  .page-shell { padding: 0 14px; }
  .site-header { min-height: 78px; }
  .brand img { width: 52px; height: 52px; }
  .brand-name { font-size: 1.25rem; }
  main { padding-top: 32px; }
  .rankings-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .rankings-heading p { font-size: .93rem; line-height: 1.5; }
  .position-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .controls-row { align-items: stretch; flex-direction: column; }
  .sort-control { justify-content: flex-end; }
  th:first-child { width: 52px; }
  th:nth-child(2) { width: auto; }
  th:nth-child(3) { width: 54px; }
  th:nth-child(6) { width: 122px; }
  th:last-child { width: 38px; }
  th, td { padding-left: 8px; padding-right: 8px; }
  .player-cell small { display: block; }
  .player-profile { gap: 8px; }
  .row-logo-layer { left: -52px; width: calc(100vw - 28px); }
  .row-logo-layer img { width: var(--designer-logo-width,88%); height: var(--designer-logo-height,175%); opacity: var(--designer-logo-opacity,.14); transform: translateX(var(--designer-logo-position,2%)) scaleX(1.25); }
  .player-headshot { flex-basis: var(--designer-headshot-size,40px); width: var(--designer-headshot-size,40px); height: var(--designer-headshot-size,40px); }
  .rating-cell { display: grid; gap: 2px; }
  .stars { font-size: .65rem; }
  .scroll-status { align-items: flex-start; flex-direction: column; }
  .rating-scale { margin-top: 38px; padding: 24px 18px; }
  .scale-list article { grid-template-columns: 82px 1fr; gap: 9px; }
  .scale-list small { grid-column: 2; text-align: left; }
  dialog { padding: 26px 20px; }
  .dialog-player-header { align-items: flex-start; gap: 14px; }
  .dialog-headshot { flex-basis: 74px; width: 74px; height: 74px; }
}
