:root {
  --bg: #0A0C0B;
  --surface: #151917;
  --line: #222826;
  --text: #F2F4F3;
  --text-2: #B7BFBA;
  --muted: #9AA39E;
  --accent: #34D27B;
  --masters-bg: #0F4D2E;
  --masters-fg: #F6D54A;
  --pga-bg: #0B2545;
  --pga-fg: #F2F4F3;
  --usopen-bg: #7A1F2B;
  --usopen-fg: #F2F4F3;
  --open-bg: #F4C20D;
  --open-fg: #0E1A33;
  --radius-tile: 6px;
  --radius-hero: 10px;
  --gutter: 56px;
  --row-gap: 12px;
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: Inter, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--font-body);
  min-height: 100vh;
  padding-bottom: 48px;
}
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--text); }
a:hover { color: var(--accent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--text);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 50;
}
.skip:focus { top: 12px; }

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  padding: 20px var(--gutter);
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}
.mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.desktop-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 500;
}
.desktop-nav a { text-decoration: none; color: var(--text-2); }
.desktop-nav a[aria-current="page"] { color: var(--text); font-weight: 700; }
.tools { display: flex; align-items: center; gap: 8px; }
.tools button, .avatar {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #2A6B4A;
  font-weight: 700;
  font-size: 14px;
}

.chips { display: none; }

#app { min-height: 50vh; }
#app:focus { outline: none; }

.hero {
  margin: 8px var(--gutter) 0;
  border-radius: var(--radius-hero);
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  min-height: 520px;
  background: var(--copy, #0E1A33);
}
.hero-copy {
  flex: 1 1 520px;
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
}
.kicker {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--kicker, var(--open-bg));
}
.kicker span {
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 3px;
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 96px;
  line-height: .88;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.hero-summary {
  margin: 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.55;
  color: #D3D9E6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: 6px;
  border: 0;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.btn.solid { background: var(--text); color: var(--bg); }
.btn.solid:hover { color: var(--bg); }
.btn.ghost { background: #2B3550; color: var(--text); font-weight: 600; }
.btn.line {
  background: transparent;
  color: var(--text);
  border: 1px solid #5A6684;
  font-weight: 600;
  font-size: 15px;
  height: 48px;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.hero-still {
  flex: 1 1 420px;
  min-height: 320px;
  position: relative;
  background: var(--still, var(--open-bg));
  color: var(--ink, var(--open-fg));
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.hero-still img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}
.hero-still .still-copy { position: relative; z-index: 1; }
.still-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
}
.hero-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 160px;
  line-height: .8;
}
.hero-place {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 10px;
  background: var(--still, var(--open-bg));
  color: var(--ink, var(--open-fg));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
}
.short-label { display: none; }

.band { margin-top: 44px; }
.band-head, .band > h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 var(--gutter) 14px;
  font-size: 20px;
  font-weight: 700;
}
.band > h2 { display: block; }
.band-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.more { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.scroller { position: relative; }
.row {
  display: flex;
  gap: var(--row-gap);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 8px var(--gutter) 16px;
}
.row::-webkit-scrollbar { display: none; }
.arrow {
  position: absolute;
  top: 40%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 12, 11, .82);
  color: var(--text);
  opacity: 0;
}
.arrow.prev { left: 16px; }
.arrow.next { right: 16px; }
.scroller:hover .arrow, .scroller:focus-within .arrow { opacity: 1; }

.event-tile {
  flex: 0 0 316px;
  text-decoration: none;
  color: var(--text);
}
.event-face {
  height: 178px;
  border-radius: var(--radius-tile);
  padding: 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--tile);
  color: var(--ink);
}
.event-face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
}
.event-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 15%, var(--tile) 82%);
  pointer-events: none;
}
.event-face > div, .event-face > span { position: relative; z-index: 1; }
.event-kicker {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}
.event-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  line-height: .9;
  text-transform: uppercase;
}
.event-course { font-size: 12px; font-weight: 600; margin-top: 6px; }
.event-champion { margin-top: 10px; font-size: 15px; font-weight: 600; }
.event-line { margin-top: 2px; font-size: 13px; color: var(--muted); }
.winner-in { display: none; font-size: 11px; font-weight: 600; }

.creator-link {
  flex: 0 0 128px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.avatar-lg {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--tile, #1F5C46);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);
  overflow: hidden;
}
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.creator-link strong { font-size: 14px; font-weight: 600; text-align: center; }
.creator-link em { font-style: normal; font-size: 12px; color: var(--muted); margin-top: -6px; }

.video-card, .cont-card {
  flex: 0 0 300px;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  color: var(--text);
}
.thumb {
  position: relative;
  height: 169px;
  border-radius: var(--radius-tile);
  overflow: hidden;
  background: #1F5C46;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .fallback-title, .poster .fallback-title {
  position: absolute;
  left: 16px;
  right: 48px;
  bottom: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: .95;
  text-transform: uppercase;
}
.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
}
.progress {
  height: 4px;
  background: #333A36;
  border-radius: 0 0 3px 3px;
}
.progress span { display: block; height: 4px; background: var(--accent); }
.meta { margin-top: 10px; font-size: 13px; color: var(--muted); }
.video-who { display: flex; gap: 10px; margin-top: 10px; align-items: flex-start; }
.pip {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: #1F5C46;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
}
.pip img { width: 100%; height: 100%; object-fit: cover; }
.video-who strong { display: block; font-size: 14px; }
.card-title { margin-top: 8px; font-size: 14px; font-weight: 600; }

.rank-item {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--text);
  text-align: left;
}
.rank-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 150px;
  line-height: .8;
  color: var(--bg);
  -webkit-text-stroke: 3px #5C6661;
  letter-spacing: -.04em;
  margin-right: -18px;
}
.poster {
  position: relative;
  flex: 0 0 150px;
  width: 150px;
  height: 210px;
  border-radius: var(--radius-tile);
  overflow: hidden;
  background: #1c2420;
  z-index: 1;
}
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster .who {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.poster .fallback-title { font-size: 26px; left: 14px; right: 14px; }

.page { margin: 0 var(--gutter); }
.detail-hero { border-radius: var(--radius-hero); overflow: hidden; background: var(--copy, #0E1A33); }
.detail-banner {
  min-height: 340px;
  padding: 40px 48px;
  background: var(--still, var(--open-bg));
  color: var(--ink, var(--open-fg));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.detail-banner img.bleed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
}
.detail-banner .copy { position: relative; }
.detail-banner h1 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 120px;
  line-height: .82;
  text-transform: uppercase;
}
.play-round {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 0;
  background: var(--copy, #0E1A33);
  color: var(--still, var(--open-bg));
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-body {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding: 36px 48px 44px;
}
.detail-copy { flex: 2 1 520px; display: flex; flex-direction: column; gap: 16px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: #C9D0DE; align-items: center; }
.detail-meta .new { color: var(--accent); font-weight: 700; }
.count-pill { border: 1px solid #5A6684; padding: 1px 6px; border-radius: 3px; font-size: 12px; }
.detail-copy p { margin: 0; font-size: 18px; line-height: 1.55; max-width: 640px; }
.facts {
  flex: 1 1 260px;
  margin: 0;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 16px;
  font-size: 14px;
  align-content: start;
}
.facts dt { color: #9AA6BF; }
.facts dd { margin: 0; font-weight: 600; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  height: 44px;
}
.section-block { margin: 44px var(--gutter) 0; }
.section-block h2 { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.lede { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.episode {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 20px 16px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
  color: var(--text);
}
.ep-n {
  flex: 0 0 32px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--muted);
  text-align: center;
}
.ep-thumb {
  flex: 0 0 200px;
  height: 112px;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  background: #1c2420;
}
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-copy { flex: 1 1 360px; min-width: 0; }
.ep-title { display: flex; justify-content: space-between; gap: 16px; font-size: 16px; font-weight: 600; }
.ep-title span:last-child { color: var(--muted); font-weight: 500; }
.ep-blurb { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.more-grid, .video-grid, .series-grid, .creator-grid {
  display: grid;
  gap: 12px;
}
.more-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.more-grid .event-tile { flex: none; }
.video-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px 12px; }
.series-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.creator-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 28px 12px; padding-top: 12px; }
.series-card {
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.series-card .tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.series-card strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  text-transform: uppercase;
}
.series-card span { font-size: 13px; color: var(--muted); }

.channel { margin: 0 var(--gutter); }
.banner {
  height: 220px;
  border-radius: var(--radius-hero);
  background: #1F5C46 center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 28px 36px;
  color: #CFE8DB;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
}
.channel-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 28px;
  margin-top: -56px;
  padding: 0 36px;
}
.channel-id { flex: 1 1 320px; padding-bottom: 6px; }
.channel-id h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  text-transform: uppercase;
}
.channel-id p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.channel-actions { display: flex; gap: 12px; padding-bottom: 10px; }
.icon-btn {
  height: 48px;
  width: 48px;
  border-radius: 6px;
  border: 1px solid #3A423E;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tabs-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px var(--gutter) 0;
  border-bottom: 1px solid var(--line);
}
.tabs-line a {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  text-decoration: none;
  color: var(--text-2);
  font-weight: 500;
  font-size: 15px;
}
.tabs-line a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--accent);
}
.pager { display: flex; gap: 16px; margin-top: 24px; }
.pager a { color: var(--accent); font-weight: 600; }

.empty { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
.page-title {
  margin: 8px var(--gutter) 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  line-height: .9;
  text-transform: uppercase;
}
.year-label {
  margin: 28px var(--gutter) 12px;
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--muted);
}

.colophon {
  margin: 48px var(--gutter) 24px;
  color: var(--muted);
  font-size: 13px;
  max-width: 640px;
}
.tabs { display: none; }

.player[hidden] { display: none; }
.player {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(10, 12, 11, .94);
  display: flex;
  flex-direction: column;
  padding: 16px 16px 24px;
}
.player-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  margin-bottom: 12px;
}
#player-close {
  height: 44px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-weight: 600;
}
#player-caption { margin: 0; color: var(--text-2); font-size: 14px; }
.player-stage { flex: 1; display: flex; align-items: center; justify-content: center; }
.player-frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; }
.player-frame iframe { width: 100%; height: 100%; border: 0; }
body.player-open { overflow: hidden; }

dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  width: min(560px, calc(100% - 32px));
}
dialog::backdrop { background: rgba(0, 0, 0, .6); }
dialog label { display: block; font-weight: 700; margin-bottom: 8px; }
dialog input {
  width: 100%;
  height: 48px;
  border-radius: 6px;
  border: 1px solid #3A423E;
  background: var(--bg);
  padding: 0 12px;
}
#search-results { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
#search-results a, #search-results button {
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 8px 0;
  text-decoration: none;
}
.text-btn {
  margin-top: 12px;
  background: transparent;
  border: 0;
  color: var(--accent);
  font-weight: 600;
  height: 44px;
}
.result-kind { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

@media (hover: none) {
  .arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .row { scroll-behavior: auto; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  body { padding-bottom: 96px; }
  .desktop-nav, .avatar, #open-notice { display: none; }
  .top { padding: 16px 16px 8px; gap: 0; justify-content: space-between; }
  .word { font-size: 26px; }
  .chips {
    display: flex;
    gap: 8px;
    padding: 0 16px 14px;
  }
  .chips a {
    height: 34px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 17px;
    border: 1px solid #3A423E;
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
  }
  .hero {
    margin: 0 16px;
    min-height: 0;
    flex-direction: column;
  }
  .hero-still { order: -1; min-height: 260px; padding: 20px; flex: none; }
  .hero-copy { padding: 12px; gap: 12px; flex: none; }
  .hero h1 { font-size: 60px; }
  .hero-summary, .hero-mark, .hero-place, .still-label { display: none; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; height: 44px; padding: 0 12px; font-size: 15px; white-space: nowrap; }
  .hero-actions .full-label { display: none; }
  .hero-actions .short-label { display: inline; }
  .hero-actions .btn.ghost svg { display: none; }
  .event-tile { flex: 0 0 130px; }
  .event-face { height: 186px; padding: 12px; }
  .event-name { font-size: 24px; }
  .event-course, .event-champion, .event-line, .desk-only { display: none; }
  .winner-in { display: block; }
  .event-kicker { display: flex; }
  .creator-link { flex: 0 0 76px; gap: 6px; }
  .avatar-lg {
    width: 72px;
    height: 72px;
    font-size: 26px;
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  }
  .creator-link strong { font-size: 11px; line-height: 1.25; }
  .creator-link em { display: none; }
  .rank-num { font-size: 96px; }
  .poster { width: 120px; flex-basis: 120px; height: 170px; }
  .detail-banner { min-height: 220px; padding: 20px; }
  .detail-banner h1 { font-size: 64px; }
  .detail-body { padding: 20px; }
  .play-round { width: 64px; height: 64px; }
  .ep-thumb { flex-basis: 120px; height: 72px; }
  .channel-row { padding: 0 8px; }
  .channel-id h1 { font-size: 40px; }
  .page-title { font-size: 42px; }
  .tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 76px;
    background: #111413;
    border-top: 1px solid var(--line);
    padding-bottom: 14px;
    z-index: 20;
  }
  .tabs a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
  }
  .tabs a[aria-current="page"] { color: var(--text); }
  .colophon { margin-bottom: 12px; }
}
