:root {
  --bg: #06110e;
  --surface: #0c1d18;
  --surface-soft: #132a23;
  --line: #284238;
  --text: #f3f8f5;
  --muted: #91a79d;
  --lime: #b8ef2f;
  --mint: #51dbad;
  --orange: #ff8a42;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: "DM Sans", system-ui, sans-serif;
  overflow-x: hidden;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }

.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(100px); opacity: .18; pointer-events: none; }
.ambient-one { width: 500px; height: 500px; background: var(--mint); top: -250px; right: -180px; }
.ambient-two { width: 420px; height: 420px; background: var(--lime); bottom: -250px; left: -220px; }

.site-header, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: Manrope, sans-serif; font-weight: 800; letter-spacing: -.04em; }
.brand strong { color: var(--lime); }
.header-label { color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .16em; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 5px); gap: 3px; align-items: end; width: 21px; height: 24px; transform: skew(-10deg); }
.brand-mark i { display: block; border-radius: 2px; background: var(--lime); }
.brand-mark i:nth-child(1) { height: 13px; }
.brand-mark i:nth-child(2) { height: 23px; }
.brand-mark i:nth-child(3) { height: 18px; background: var(--mint); }
.share-button, .secondary-action, .filter { border: 1px solid var(--line); background: var(--surface-soft); color: var(--text); border-radius: 999px; cursor: pointer; transition: .2s ease; }
.share-button { padding: 11px 17px; }
.share-button:hover:not(:disabled), .secondary-action:hover, .filter:hover { border-color: rgba(184,239,47,.5); background: rgba(184,239,47,.08); }
.share-button:disabled { opacity: .35; cursor: wait; }

main { padding: 74px 0 50px; }
.session-intro { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.eyebrow { color: var(--mint); font-size: .72rem; font-weight: 700; letter-spacing: .18em; margin: 0 0 12px; }
h1, h2 { font-family: Manrope, sans-serif; margin: 0; letter-spacing: -.045em; }
h1 { max-width: 780px; font-size: clamp(2.4rem, 5.5vw, 4.8rem); line-height: .98; }
h1 span { color: var(--lime); }
.session-meta { color: var(--muted); margin: 18px 0 0; }
.session-count { min-width: 150px; padding: 19px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.session-count strong { display: block; color: var(--lime); font: 800 2rem Manrope, sans-serif; }
.session-count span { color: var(--muted); font-size: .84rem; }

.featured { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(270px, .75fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.featured-player { min-height: 480px; position: relative; background: #020706; }
.featured-player video { width: 100%; height: 100%; max-height: 650px; object-fit: contain; display: block; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--muted); background: radial-gradient(circle at 50% 35%, #193a30 0, #020706 65%); }
.play-symbol { display: grid; place-items: center; width: 68px; height: 68px; margin: auto; padding-left: 4px; color: #102018; border-radius: 50%; background: var(--lime); box-shadow: 0 0 40px rgba(184,239,47,.25); }
.featured-info { padding: 38px 32px; display: flex; flex-direction: column; justify-content: center; }
.featured-info h2 { font-size: 2rem; }
.featured-info > p:not(.eyebrow):not(.expiry) { color: var(--muted); line-height: 1.65; }
.featured-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
.primary-action, .secondary-action { text-align: center; padding: 13px 18px; font-weight: 700; }
.primary-action { color: #10200f; background: var(--lime); border-radius: 999px; }
.buy-action { width:100%; border:0; cursor:pointer; font:inherit; }
.purchase-state { border-color:rgba(200,255,57,.28); }
.purchase-actions { display:grid; gap:10px; margin-top:22px; }
.purchase-actions .secondary-action { display:block; width:100%; border:1px solid var(--line); border-radius:999px; color:var(--text); background:transparent; cursor:pointer; font:inherit; }
.secondary-action { width: 100%; }
.expiry { color: #6f877f; font-size: .78rem; margin: 22px 0 0; }

.library { margin-top: 72px; }
.library-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.library-heading h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.court-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.court-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; width: 100%; padding: 24px;
  text-align: left; color: var(--text); border: 1px solid var(--line); border-radius: 18px; cursor: pointer;
  background: linear-gradient(135deg, rgba(18,39,34,.95), rgba(8,22,18,.95)); transition: .22s ease; }
.court-card:hover { transform: translateY(-3px); border-color: rgba(200,255,57,.4); background: linear-gradient(135deg, rgba(25,52,44,.98), rgba(9,25,20,.98)); }
.court-number { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #10200f; background: var(--lime); font: 800 .82rem Manrope, sans-serif; }
.court-card-copy { min-width: 0; }
.court-card-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; font: 700 1.18rem Manrope, sans-serif; }
.court-card-copy small { display: block; margin-top: 6px; color: var(--muted); }
.court-arrow { color: var(--lime); font-size: 1.4rem; }
.clip-browser { margin-top: 56px; }
.browser-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.browser-heading > div { text-align: right; }
.browser-heading h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.back-button { padding: 10px 0; color: var(--mint); border: 0; cursor: pointer; background: transparent; font-weight: 700; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.load-more { width: auto; min-width: 220px; padding: 12px 24px; }
.inline-loader,.inline-empty,.inline-error { grid-column: 1 / -1; padding: 48px 24px; text-align: center; color: var(--muted); border: 1px solid var(--line); border-radius: 18px; }
.inline-loader .loader { margin-bottom: 14px; }
.inline-error { color: #ffb6b0; }
.filters { display: flex; gap: 7px; }
.filter { padding: 9px 14px; font-size: .82rem; }
.filter.active { color: #10200f; border-color: var(--lime); background: var(--lime); }
.clip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.court-sections { display: grid; gap: 48px; }
.court-section { padding-top: 24px; border-top: 1px solid var(--line); }
.court-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.court-heading h3 { margin: 0; font: 700 1.45rem Manrope, sans-serif; letter-spacing: -.035em; }
.court-heading span { color: var(--muted); font-size: .8rem; }
.clip-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(13,29,25,.82); transition: transform .22s ease, border-color .22s ease; }
.clip-card:hover { transform: translateY(-4px); border-color: rgba(184,239,47,.36); }
.clip-preview { aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; overflow: hidden; cursor: pointer; border: 0; width: 100%; color: white; background: radial-gradient(circle at 24% 12%, #2c5f50, #091612 70%); }
.clip-preview::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 34px 34px; transform: perspective(250px) rotateX(55deg) scale(1.5); transform-origin: bottom; }
.preview-art { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 2px; padding: 16px; text-align: left; background: linear-gradient(0deg, rgba(3,10,8,.92), transparent 72%); }
.preview-art b { font: 700 1rem Manrope, sans-serif; }
.preview-art small { color: var(--muted); font-size: .72rem; }
.clip-preview .play-symbol { width: 48px; height: 48px; position: relative; z-index: 2; font-size: .8rem; }
.duration { position: absolute; right: 10px; bottom: 10px; padding: 4px 7px; border-radius: 6px; background: rgba(0,0,0,.72); font-size: .72rem; }
.clip-body { padding: 17px; }
.clip-body h3 { margin: 0 0 7px; font: 700 1rem Manrope, sans-serif; }
.clip-body p { color: var(--muted); font-size: .82rem; margin: 0; }
.clip-links { display: flex; gap: 16px; margin-top: 16px; }
.clip-links button, .clip-links a { padding: 0; border: 0; background: none; color: var(--lime); font-size: .8rem; font-weight: 700; cursor: pointer; }

.state-card { max-width: 560px; margin: 60px auto 0; padding: 50px 35px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.state-card h2 { margin-top: 17px; }
.state-card p { color: var(--muted); }
.state-icon { display: grid; place-items: center; margin: auto; width: 50px; height: 50px; border-radius: 50%; color: #142016; font: 800 1.3rem Manrope; background: var(--lime); }
.error .state-icon { color: white; background: #e95b50; }
.loader { width: 42px; height: 42px; margin: auto; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--lime); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

footer { display: flex; justify-content: space-between; align-items: center; padding: 34px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.compact { color: var(--text); font-size: .82rem; }
.compact .brand-mark { transform: scale(.78) skew(-10deg); }
.toast { position: fixed; z-index: 5; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border: 1px solid rgba(200,255,57,.3); border-radius: 999px; color: var(--text); background: #172a24; box-shadow: var(--shadow); transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; }
  .featured-player { min-height: auto; aspect-ratio: 16 / 9; }
  .featured-info { padding: 28px; }
  .clip-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  .site-header { height: 72px; }
  .header-label { display: none; }
  .share-button { font-size: 0; width: 42px; height: 42px; padding: 0; }
  .share-button span { font-size: 1rem; }
  main { padding-top: 45px; }
  .session-intro { display: block; }
  .session-count { display: inline-flex; align-items: center; gap: 8px; margin-top: 25px; padding: 11px 15px; }
  .session-count strong { font-size: 1.35rem; }
  .library { margin-top: 52px; }
  .library-heading { display: block; }
  .court-picker { grid-template-columns: 1fr; }
  .court-card { padding: 18px; }
  .browser-heading { align-items: flex-start; flex-direction: column; }
  .browser-heading > div { text-align: left; }
  .filters { margin-top: 20px; overflow-x: auto; }
  .clip-grid { grid-template-columns: 1fr; }
  footer { display: block; text-align: center; }
  footer p { margin-top: 15px; }
}
