/* SD+ — Brand System */
:root {
  --sd-yellow: #ffc000;
  --sd-yellow-soft: rgba(255, 192, 0, 0.14);
  --sd-black: #0d0d0d;
  --sd-surface: #1c1c1e;
  --sd-surface-2: #252528;
  --sd-muted: #a6a6a6;
  --sd-white: #ffffff;
  --sd-danger: #ff4d4d;
  --sd-radius: 14px;
  --sd-radius-sm: 10px;
  --sd-max: 1200px;
  --sd-header-h: 72px;
  --sd-bottom-nav-h: calc(3.6rem + env(safe-area-inset-bottom, 0px));
  --font-display: "Orbitron", "Russo One", system-ui, sans-serif;
  --font-body: "Poppins", "Montserrat", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--sd-white);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 192, 0, 0.12), transparent 55%),
    linear-gradient(180deg, #121214 0%, var(--sd-black) 40%, #090909 100%);
  line-height: 1.5;
}

main {
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: clamp(1rem, 2.5vw, 2.5rem);
}

.container-fluid {
  width: 100%;
  margin-inline: 0;
  padding-inline: clamp(1rem, 2.5vw, 2.5rem);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  backdrop-filter: blur(16px);
  background: rgba(13, 13, 13, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.28s ease, border-color 0.28s ease, backdrop-filter 0.28s ease, box-shadow 0.28s ease;
}

.site-header--overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}

.site-header--overlay.is-scrolled {
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.site-header--overlay.is-at-top .nav-desktop > a,
.site-header--overlay.is-at-top .nav-live-link,
.site-header--overlay.is-at-top .nav-dd-trigger {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.site-header--overlay.is-at-top .nav-desktop > a.is-active,
.site-header--overlay.is-at-top .nav-live-link.is-active,
.site-header--overlay.is-at-top .nav-dd-trigger.is-active,
.site-header--overlay.is-at-top .nav-desktop > a:hover,
.site-header--overlay.is-at-top .nav-live-link:hover,
.site-header--overlay.is-at-top .nav-dd-trigger:hover {
  color: var(--sd-yellow);
}

.site-header--overlay.is-at-top .brand-tag {
  color: rgba(255, 255, 255, 0.72);
}

.site-header--overlay.is-at-top .icon-btn {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  color: var(--sd-yellow);
}

.brand-tag {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--sd-muted);
  text-transform: uppercase;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.4rem;
}

.nav-desktop > a {
  color: var(--sd-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-desktop > a:hover,
.nav-desktop > a.is-active,
.nav-live-link:hover,
.nav-live-link.is-active {
  color: var(--sd-yellow);
}

.nav-live-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--sd-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sd-danger);
  box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.25);
  animation: pulse 1.4s ease infinite;
  flex-shrink: 0;
}

.nav-dd {
  position: relative;
}

.nav-dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sd-muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-dd-trigger:hover,
.nav-dd-trigger.is-active,
.nav-dd.is-open .nav-dd-trigger {
  color: var(--sd-yellow);
}

.nav-dd-caret {
  transition: transform 0.2s ease;
}

.nav-dd.is-open .nav-dd-caret {
  transform: rotate(180deg);
}

.nav-dd-panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem;
  min-width: 220px;
  max-width: min(320px, 70vw);
  max-height: min(70vh, 420px);
  overflow-y: auto;
  padding: 0.45rem;
  border-radius: var(--sd-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(22, 22, 24, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
  scrollbar-width: thin;
}

.nav-dd-panel[hidden] {
  display: none;
}

.nav-dd-panel--cols-2 {
  grid-template-columns: 1fr 1fr;
  min-width: 380px;
  max-width: min(480px, 86vw);
}

.nav-dd-panel--cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
  min-width: 520px;
  max-width: min(680px, 92vw);
  max-height: min(70vh, 480px);
}

.nav-dd-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: var(--sd-white);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dd-item:hover {
  background: var(--sd-yellow-soft);
  color: var(--sd-yellow);
}

.nav-dd-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--sd-yellow);
}

.nav-dd-icon svg {
  width: 15px;
  height: 15px;
}

.nav-dd-empty {
  margin: 0;
  padding: 0.75rem;
  color: var(--sd-muted);
  font-size: 0.82rem;
  text-align: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

@media (max-width: 899px) {
  :root {
    --sd-header-h: 58px;
    --sd-bottom-nav-h: calc(5rem + env(safe-area-inset-bottom, 0px));
  }

  .header-inner {
    min-height: 58px;
    gap: 0.45rem;
  }

  .brand {
    gap: 0.5rem;
    min-width: 0;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-tag {
    display: none;
  }

  .header-actions {
    gap: 0.3rem;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  background: var(--sd-surface);
}

.lang-switch a {
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sd-muted);
}

.lang-switch a.is-active {
  background: var(--sd-yellow);
  color: #111;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--sd-surface);
  color: var(--sd-white);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--sd-yellow);
  background: var(--sd-surface-2);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn.is-active {
  color: var(--sd-yellow);
  border-color: rgba(255, 192, 0, 0.4);
}

@media (max-width: 720px) {
  .lang-switch a {
    padding: 0.16rem 0.38rem;
    font-size: 0.58rem;
    letter-spacing: 0.04em;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

  .icon-btn svg {
    width: 16px;
    height: 16px;
  }
}

.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;
}

.public-search-form {
  margin: 0 0 1.25rem;
}

.public-search-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.35rem 0.35rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--sd-surface);
}

.public-search-icon {
  flex-shrink: 0;
  color: var(--sd-muted);
}

.public-search-bar input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--sd-white);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 0.25rem;
  outline: none;
}

.public-search-bar input[type="search"]::placeholder {
  color: var(--sd-muted);
}

.public-search-bar .btn {
  flex-shrink: 0;
  padding: 0.55rem 1rem;
}

@media (max-width: 560px) {
  .public-search-bar {
    flex-wrap: wrap;
    padding: 0.65rem;
  }

  .public-search-bar input[type="search"] {
    flex: 1 1 calc(100% - 2rem);
  }

  .public-search-bar .btn {
    width: 100%;
  }
}

.icon-btn--notif.is-due {
  border-color: rgba(255, 192, 0, 0.35);
}

.icon-btn--notif.is-clear {
  border-color: rgba(34, 197, 94, 0.4);
}

.icon-btn-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
  box-shadow: 0 0 0 2px var(--sd-bg, #0d0d0d);
  pointer-events: none;
}

.icon-btn-badge.is-due {
  background: #e11d48;
}

.icon-btn-badge.is-clear {
  background: #16a34a;
  font-size: 0.7rem;
}

.notif-dd {
  position: relative;
}

.notif-dd-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  z-index: 80;
  width: min(360px, calc(100vw - 1.5rem));
  max-height: min(70vh, 460px);
  overflow: auto;
  padding: 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 18, 20, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
}

.notif-dd-head {
  padding: 0.45rem 0.55rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sd-muted);
}

.notif-dd-empty {
  margin: 0;
  padding: 0.85rem 0.55rem 1rem;
  color: #86efac;
  font-size: 0.88rem;
}

.notif-dd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.notif-dd-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.6rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--sd-white);
  transition: background 0.15s ease;
}

.notif-dd-item:hover {
  background: rgba(255, 192, 0, 0.1);
}

.notif-dd-item-main {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.notif-dd-item-main strong {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notif-dd-meta {
  font-size: 0.75rem;
  color: var(--sd-muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.notif-dd-item-side {
  display: grid;
  gap: 0.2rem;
  justify-items: end;
  flex-shrink: 0;
}

.notif-dd-status {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fbbf24;
}

.notif-dd-action {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sd-yellow);
}

.notif-dd-more {
  margin: 0.35rem 0 0;
  padding: 0.35rem 0.55rem;
  font-size: 0.75rem;
  color: var(--sd-muted);
}

.notif-dd-footer {
  display: block;
  margin-top: 0.45rem;
  padding: 0.7rem 0.55rem 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sd-yellow);
  text-decoration: none;
}

.notif-dd-footer:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .notif-dd-panel {
    position: fixed;
    top: calc(var(--sd-header-h) + 0.4rem);
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-width: none;
    max-height: min(70dvh, 28rem);
    padding: 0.7rem 0.7rem 0.55rem;
    border-radius: 16px;
  }

  .notif-dd-head {
    padding: 0.25rem 0.35rem 0.65rem;
    font-size: 0.68rem;
  }

  .notif-dd-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.75rem 0.7rem;
  }

  .notif-dd-item-side {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    justify-items: start;
    gap: 0.5rem;
  }

  .notif-dd-status,
  .notif-dd-action {
    font-size: 0.7rem;
  }

  .notif-dd-footer {
    margin-top: 0.35rem;
    padding: 0.7rem 0.45rem 0.35rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--sd-yellow);
  color: #111;
  box-shadow: 0 8px 24px rgba(255, 192, 0, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(255, 192, 0, 0.38);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--sd-white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 720px) {
  .btn {
    min-height: 2.5rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    box-sizing: border-box;
  }

  .btn:hover {
    transform: none;
  }
}

/* Hero */
.home-hero-bleed {
  width: 100%;
  margin: 0;
}

.hero-fullbleed {
  margin: 0;
  border-radius: 0;
  width: 100%;
}

.hero.hero-fullbleed {
  margin: 0;
  border-radius: 0;
  aspect-ratio: auto;
  min-height: 240px;
  height: calc(100svh - var(--sd-header-h) - var(--sd-bottom-nav-h));
  height: calc(100dvh - var(--sd-header-h) - var(--sd-bottom-nav-h));
}

body.is-home .hero.hero-fullbleed {
  height: calc(100svh - var(--sd-bottom-nav-h));
  height: calc(100dvh - var(--sd-bottom-nav-h));
}

.hero-fullbleed .hero-content {
  padding-inline: clamp(1rem, 2.5vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 3.5vw, 2.75rem);
}

.hero-fullbleed .hero-slide::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.18) 48%, rgba(0, 0, 0, 0.04) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.38) 0%, transparent 52%);
}

.home-sport-section {
  margin-top: 0;
}

body.is-home .home-live-section,
body.is-home .home-popular-section {
  padding-top: clamp(1.25rem, 3vw, 2rem);
}

.home-empty-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.home-empty-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.home-empty-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 52%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, transparent 55%);
  pointer-events: none;
}

.home-empty-hero-content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.home-empty-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  letter-spacing: 0.06em;
  color: var(--sd-yellow);
  margin: 0 0 0.65rem;
}

.home-empty-hero-content p {
  margin: 0 0 1.1rem;
  color: #ddd;
  max-width: 34ch;
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
}

.home-live-section + .home-sport-section {
  margin-top: 0.5rem;
}

.home-sport-section .section-head {
  margin-bottom: 0.65rem;
}

.home-sport-chips {
  margin-bottom: 0;
}

.home-live-section .section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.home-live-section .section-head h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sd-danger);
  animation: pulse 1.4s ease infinite;
  flex-shrink: 0;
}

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1rem 0 1.5rem;
  border-radius: calc(var(--sd-radius) + 4px);
  overflow: hidden;
  isolation: isolate;
  animation: fadeUp 0.55s ease both;
  background: #1a1a1c;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.hero:not(.hero-carousel) .hero-media {
  animation: slowZoom 12s ease-in-out infinite alternate;
}

.hero:not(.hero-carousel)::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 45%);
  z-index: 1;
  pointer-events: none;
}

.hero-carousel::after {
  display: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  gap: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-live {
  background: var(--sd-danger);
  color: #fff;
}

.badge-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s ease infinite;
}

.badge-soft {
  background: var(--sd-yellow-soft);
  color: var(--sd-yellow);
  border: 1px solid rgba(255, 192, 0, 0.35);
}

.badge-ok {
  background: rgba(22, 163, 74, 0.18);
  color: #4ade80;
  border: 1px solid rgba(22, 163, 74, 0.45);
}

.badge-warn {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-ended {
  background: rgba(255, 255, 255, 0.06);
  color: #9a9a9a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-sm {
  padding: 0.12rem 0.45rem;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  gap: 0.28rem;
}

.badge-sm.badge-live::before {
  width: 5px;
  height: 5px;
}

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.hero p {
  margin: 0;
  color: #ddd;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.25rem;
  align-items: center;
}

.event-access-expiry {
  color: var(--sd-muted);
  font-size: 0.85rem;
}

.event-countdown {
  margin: 0.35rem 0 0;
  color: var(--sd-yellow, #f5c542);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.event-countdown--player {
  margin: 0.55rem 0 0.35rem;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
}

.live-player-wrap.is-waiting .live-player-overlay {
  background: rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}

.live-player-wrap.is-waiting .live-player-overlay p {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.detail-hero.detail-hero-fullbleed .event-countdown {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* Featured carousel */
.hero-carousel .hero-track {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s ease-in-out, visibility 0.85s ease-in-out;
  pointer-events: none;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 52%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.45) 0%, transparent 55%);
  z-index: 1;
  pointer-events: none;
}

.hero-slide .hero-media {
  z-index: 0;
  transform: scale(1);
  animation: none;
}

.hero-slide.is-active .hero-media {
  animation: heroKenBurns 5.5s ease-out forwards;
}

.hero-fullbleed .hero-slide.is-active .hero-media {
  animation: heroKenBurnsWide 5.5s ease-out forwards;
}

.hero-slide .hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-carousel.has-multiple .hero-content {
  padding-bottom: 2.75rem;
  padding-left: 3.4rem;
  padding-right: 3.4rem;
}

.hero-nav {
  position: absolute;
  top: 50%;
  left: 0.25rem;
  right: 0.25rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-nav-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(13, 13, 13, 0.4);
  color: var(--sd-white);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}

.hero-nav-btn:hover {
  background: var(--sd-yellow);
  color: #111;
  opacity: 1;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.85rem;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  pointer-events: none;
}

.hero-dot {
  pointer-events: auto;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 22px;
  background: var(--sd-yellow);
}

@media (max-width: 720px) {
  .hero-nav {
    display: none;
  }

  .badge {
    padding: 0.14rem 0.48rem;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    gap: 0.28rem;
  }

  .badge-live::before {
    width: 5px;
    height: 5px;
  }

  .hero-content .badge,
  .detail-hero .badge,
  .live-preview-head .badge,
  .account-hero .badge,
  .section-head .badge {
    padding: 0.14rem 0.48rem;
    font-size: 0.58rem;
  }

  .hero-actions {
    width: 100%;
    gap: 0.5rem;
  }

  .hero-actions .btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    min-height: 2.5rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    gap: 0.3rem;
    box-shadow: none;
  }

  .hero-actions .btn-primary:hover {
    box-shadow: 0 6px 16px rgba(255, 192, 0, 0.28);
  }

  .hero-actions .ppv-buy-form,
  .hero-actions .ppv-buy-form .btn {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  .detail-hero.detail-hero-fullbleed::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.28) 45%, rgba(0, 0, 0, 0.92) 100%);
  }

  .detail-hero.detail-hero-fullbleed {
    height: auto;
    min-height: 72dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
  }

  .detail-hero.detail-hero-fullbleed .detail-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 5.5rem;
    padding-bottom: 1.25rem;
    gap: 0.55rem;
  }

  .detail-hero .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .detail-hero .hero-actions .event-social {
    display: flex;
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    margin-top: 0.1rem;
  }

  .promo-strip {
    margin: 1.25rem 0 0.75rem;
    padding: 0.7rem 0.85rem;
    gap: 0.65rem;
    flex-wrap: nowrap;
    align-items: center;
  }

  .promo-strip-copy p {
    display: none;
  }

  .promo-strip-copy h2 {
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    line-height: 1.3;
  }

  .promo-strip .btn {
    flex: 0 0 auto;
    min-height: 2.5rem;
    width: auto;
    max-width: none;
    padding: 0.5rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    gap: 0.25rem;
    box-shadow: none;
    white-space: nowrap;
  }

  .promo-strip .btn-primary:hover {
    box-shadow: none;
  }

  /* Home Live / Popular — mobile card size (peek next card) */
  .section--scroll-row .card-row--lg {
    grid-auto-columns: min(236px, calc(100vw - 3.75rem));
    gap: 0.75rem;
  }

  .section--scroll-row .card-row--popular {
    grid-auto-columns: min(210px, calc(100vw - 4.25rem));
    gap: 0.65rem;
  }

  .card-row--popular .event-card-body {
    padding: 0.65rem 0.7rem 0.75rem;
  }

  .card-row--popular .event-card-body h3 {
    font-size: 0.86rem;
  }

  .card-row--popular .event-card-body p {
    font-size: 0.72rem;
  }

  .card-row--lg .event-card-body,
  .grid-cards--lg .event-card-body {
    padding: 0.7rem 0.75rem 0.85rem;
  }

  .card-row--lg .event-card-body h3,
  .grid-cards--lg .event-card-body h3 {
    font-size: 0.92rem;
    line-height: 1.3;
  }

  .card-row--lg .event-card-body p,
  .grid-cards--lg .event-card-body p {
    font-size: 0.75rem;
  }

  .card-row--lg .event-card .badge,
  .grid-cards--lg .event-card .badge,
  .card-row--compact .event-card .badge {
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.1rem 0.42rem;
    font-size: 0.55rem;
    letter-spacing: 0.05em;
    gap: 0.22rem;
  }

  .card-row--lg .event-card .badge.badge-live::before,
  .grid-cards--lg .event-card .badge.badge-live::before {
    width: 4px;
    height: 4px;
  }

  /* Organizer / category event cards */
  .grid-cards,
  .grid-cards--lg {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .grid-cards .event-card-body,
  .grid-cards--lg .event-card-body {
    padding: 0.65rem 0.7rem 0.8rem;
    min-height: 4.6rem;
  }

  .grid-cards .event-card-body h3,
  .grid-cards--lg .event-card-body h3 {
    font-size: 0.88rem;
    line-height: 1.3;
  }

  .grid-cards .event-card-body p,
  .grid-cards--lg .event-card-body p {
    font-size: 0.72rem;
  }

  .grid-cards .event-card .badge,
  .grid-cards--lg .event-card .badge {
    top: 0.45rem;
    left: 0.45rem;
    padding: 0.1rem 0.4rem;
    font-size: 0.55rem;
    letter-spacing: 0.05em;
    gap: 0.22rem;
  }

  .grid-cards .event-card .badge.badge-live::before,
  .grid-cards--lg .event-card .badge.badge-live::before {
    width: 4px;
    height: 4px;
  }
}

/* Sections */
.section {
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
}

.section:nth-child(2) { animation-delay: 0.05s; }
.section:nth-child(3) { animation-delay: 0.1s; }
.section:nth-child(4) { animation-delay: 0.15s; }

/* Sticky header clearance when jumping to /event/...#watch */
#watch {
  scroll-margin-top: calc(var(--sd-header-h) + 0.5rem);
}

.event-watch-section {
  margin-top: 1.25rem;
  /* Avoid fadeUp “scroll” feel on the player block */
  animation: none;
}

.event-watch-meta {
  margin-top: 0.35rem;
  margin-bottom: 0;
  padding-top: 0;
}

.event-watch-meta .hero-actions {
  margin-top: 0;
  gap: 0.55rem;
}

.event-watch-meta .event-social {
  margin: 0;
}

.event-watch-meta .event-social-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.event-watch-meta .event-social-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.event-watch-meta .event-social-btn.is-active {
  background: var(--sd-yellow);
  border-color: transparent;
  color: #111;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.section-head-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.section-subhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.copy-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.copy-row input {
  flex: 1;
  min-width: 12rem;
}

.section-see-all {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--sd-muted);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.section-see-all:hover {
  color: var(--sd-yellow);
}

.section-see-all svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.section-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.section-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--sd-white);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.section-nav-btn:hover:not(:disabled) {
  border-color: rgba(255, 192, 0, 0.45);
  color: var(--sd-yellow);
  background: rgba(255, 192, 0, 0.08);
}

.section-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.section-head a {
  color: var(--sd-yellow);
  font-size: 0.85rem;
}

.section-head a.btn {
  font-size: 0.9rem;
}

.section-head a.btn-primary {
  color: #111;
}

.section-head a.btn-ghost {
  color: var(--sd-white);
}

/* Categories */
.cat-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(88px, 1fr);
  gap: 0.7rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

/* Schedule / long lists: one scroll row, never wrap into a messy grid */
.cat-row-scroll {
  display: flex;
  grid: none;
  align-items: stretch;
  gap: 0.65rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 0.45rem;
}

.cat-row-scroll .cat-item {
  flex: 0 0 auto;
  width: 92px;
  scroll-snap-align: start;
}

.cat-row-scroll .cat-item > span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Match Schedule sport filters — compact chips, not tall cards */
.schedule-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  margin-bottom: 1.25rem;
  padding: 0.15rem 0 0.5rem;
  scrollbar-width: thin;
}

.schedule-filter {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
  max-width: 11.5rem;
  padding: 0.28rem 0.75rem 0.28rem 0.28rem;
  border-radius: 999px;
  background: var(--sd-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--sd-white);
  text-decoration: none;
  scroll-snap-align: start;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.schedule-filter:hover {
  border-color: rgba(255, 192, 0, 0.45);
}

.schedule-filter.is-active {
  border-color: var(--sd-yellow);
  background: var(--sd-yellow-soft);
}

.schedule-filter-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--sd-yellow);
  font-size: 0.8rem;
}

.schedule-filter.is-active .schedule-filter-icon {
  background: var(--sd-yellow);
  color: #111;
}

.schedule-filter-icon svg {
  width: 16px;
  height: 16px;
}

.schedule-filter-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sd-muted);
}

.schedule-filter.is-active .schedule-filter-label {
  color: var(--sd-yellow);
}

@media (max-width: 720px) {
  .schedule-filters {
    gap: 0.32rem;
    margin-bottom: 0.9rem;
    padding: 0.1rem 0 0.3rem;
  }

  .schedule-filter {
    gap: 0.26rem;
    max-width: 8.25rem;
    padding: 0.1rem 0.42rem 0.1rem 0.1rem;
  }

  .schedule-filter-icon {
    width: 22px;
    height: 22px;
    font-size: 0.62rem;
  }

  .schedule-filter-icon svg {
    width: 12px;
    height: 12px;
  }

  .schedule-filter-label {
    font-size: 0.68rem;
  }

  .upcoming-meta-line .badge {
    padding: 0.08rem 0.36rem;
    font-size: 0.52rem;
    letter-spacing: 0.04em;
    gap: 0.2rem;
  }

  .upcoming-meta-line .badge.badge-live::before {
    width: 4px;
    height: 4px;
  }
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 0.5rem;
  border-radius: var(--sd-radius);
  background: var(--sd-surface);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cat-item:hover,
.cat-item.is-active {
  border-color: var(--sd-yellow);
  transform: translateY(-2px);
}

.cat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--sd-yellow-soft);
  color: var(--sd-yellow);
}

.cat-icon svg {
  width: 22px;
  height: 22px;
}

.cat-item span {
  font-size: 0.78rem;
  color: var(--sd-muted);
}

/* Cards */
.card-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 240px);
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}

.card-row--compact {
  grid-auto-columns: minmax(168px, 188px);
  gap: 0.75rem;
}

.card-row--scroll {
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  /* Padding so hover lift (translateY) is not clipped by overflow */
  padding-top: 0.5rem;
  padding-bottom: 0.75rem;
  padding-right: 0.35rem;
  margin-top: -0.35rem;
  margin-bottom: -0.25rem;
}

.card-row--lg {
  grid-auto-columns: 320px;
  gap: 1.1rem;
}

.card-row--popular {
  grid-auto-columns: 268px;
  gap: 0.95rem;
}

.card-row--popular .event-card-body {
  padding: 0.85rem 0.9rem 1rem;
}

.card-row--popular .event-card-body h3 {
  font-size: 1rem;
  line-height: 1.35;
}

.card-row--popular .event-card-body p {
  font-size: 0.82rem;
}

.card-row--lg .event-card,
.grid-cards--lg .event-card {
  width: 100%;
}

.card-row--lg .event-card-body,
.grid-cards--lg .event-card-body {
  padding: 1rem 1.05rem 1.15rem;
}

.card-row--lg .event-card-body h3,
.grid-cards--lg .event-card-body h3 {
  font-size: 1.1rem;
  line-height: 1.35;
}

.card-row--lg .event-card-body p,
.grid-cards--lg .event-card-body p {
  font-size: 0.88rem;
}

.card-row--lg .event-card .badge,
.grid-cards--lg .event-card .badge {
  top: 0.65rem;
  left: 0.65rem;
  font-size: 0.76rem;
}

.card-row-shell {
  position: relative;
}

.card-row-controls {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 0.15rem;
}

.card-row-controls[hidden] {
  display: none !important;
}

.card-row-nav-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(13, 13, 13, 0.82);
  color: var(--sd-white);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.card-row-nav-btn:hover:not(:disabled) {
  border-color: rgba(255, 192, 0, 0.5);
  color: var(--sd-yellow);
  background: rgba(13, 13, 13, 0.94);
}

.card-row-nav-btn:disabled {
  opacity: 0;
  pointer-events: none;
}

.card-row--scroll .event-card {
  scroll-snap-align: start;
}

.card-row--compact .event-card-media {
  aspect-ratio: 2 / 3;
}

.card-row--compact .event-card-body {
  padding: 0.65rem 0.75rem 0.8rem;
}

.card-row--compact .event-card-body h3 {
  font-size: 0.88rem;
}

.card-row--compact .event-card-body p {
  font-size: 0.74rem;
}

.card-row--compact .event-card .badge {
  top: 0.55rem;
  left: 0.55rem;
}

.event-card {
  position: relative;
  border-radius: var(--sd-radius);
  overflow: hidden;
  background: var(--sd-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.event-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 192, 0, 0.4);
}

.event-card.is-live {
  border-color: rgba(255, 77, 77, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 77, 77, 0.12);
}

.event-card.is-live:hover {
  border-color: rgba(255, 77, 77, 0.65);
}

.event-card-media {
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
  will-change: transform;
}

.event-card:hover .event-card-media {
  transform: scale(1.06);
}

.event-card-body {
  padding: 0.85rem 0.9rem 1rem;
}

.event-card-body h3 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.event-card-body p {
  margin: 0;
  color: var(--sd-muted);
  font-size: 0.8rem;
}

.event-card .badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.14rem 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  gap: 0.28rem;
}

.event-card .badge.badge-live::before {
  width: 5px;
  height: 5px;
}

/* DAZN-style horizontal rails (16:9 spotlight cards) */
.card-row--rail {
  grid-auto-columns: minmax(240px, 280px);
  gap: 1rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.card-row--rail .rail-card {
  scroll-snap-align: start;
}

.rail-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--sd-radius);
  overflow: hidden;
  background: var(--sd-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rail-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 192, 0, 0.35);
}

.rail-card.is-live {
  border-color: rgba(255, 77, 77, 0.4);
}

.rail-card.is-live:hover {
  border-color: rgba(255, 77, 77, 0.6);
}

.rail-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1c;
  transition: transform 0.35s ease;
  will-change: transform;
}

.rail-card:hover .rail-card-media {
  transform: scale(1.06);
}

.rail-card-media .badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 1;
}

.rail-card-body {
  padding: 0.75rem 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.rail-card-date {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sd-yellow);
}

.rail-card-body h3 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rail-card-meta {
  margin: 0;
  color: var(--sd-muted);
  font-size: 0.74rem;
}

/* Upcoming list */
.upcoming-list {
  display: grid;
  gap: 0.7rem;
}

.upcoming-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.65rem;
  border-radius: var(--sd-radius-sm);
  background: var(--sd-surface);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.upcoming-thumb {
  width: 88px;
  height: 64px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.upcoming-meta h3 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.upcoming-meta p {
  margin: 0;
  color: var(--sd-muted);
  font-size: 0.78rem;
}

.upcoming-item-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  html,
  body {
    overflow-x: hidden;
  }

  main,
  .container,
  .section {
    min-width: 0;
    max-width: 100%;
  }

  .section-head {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .section-head-actions {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-shrink: 1;
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .section-head-actions .btn,
  .section-head .section-head-actions a.btn {
    display: flex;
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    min-height: 2.25rem;
    width: auto;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    line-height: 1.2;
    white-space: normal;
  }

  .section-head-actions .btn-primary,
  .section-head .section-head-actions a.btn.btn-primary,
  .section-head-actions .btn:only-child {
    flex: 1 1 100%;
  }

  .section-head-actions .badge {
    flex: 0 0 auto;
    align-self: center;
  }

  .section-head h2,
  .section-head > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .section-head:has(> .badge) > h2 {
    flex: 1 1 100%;
  }

  .section-subhead .btn {
    width: 100%;
    justify-content: center;
  }

  .copy-row {
    flex-direction: column;
    align-items: stretch;
  }

  .copy-row input {
    min-width: 0;
    width: 100%;
  }

  .copy-row .btn {
    width: 100%;
    justify-content: center;
  }

  .affiliate-public-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .affiliate-public-cta .btn {
    width: 100%;
  }

  .admin-card .btn,
  .live-tier-remove {
    width: 100%;
    justify-content: center;
  }

  .admin-event-row.upcoming-item {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    gap: 0.65rem;
    min-width: 0;
    max-width: 100%;
  }

  .table-list .upcoming-item:not(.sales-order-row):not(.admin-event-row) {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.65rem;
  }

  .table-list .upcoming-thumb {
    width: 72px;
    height: 54px;
  }

  .table-list .upcoming-item:not(.sales-order-row):not(.admin-event-row):has(.cat-icon-admin) {
    grid-template-columns: 44px minmax(0, 1fr);
    min-width: 0;
    max-width: 100%;
  }

  .admin-sport-row .upcoming-item-actions {
    grid-template-columns: 1fr;
  }

  .admin-sport-row .upcoming-item-action-form,
  .admin-sport-row .upcoming-item-actions-form {
    grid-column: auto;
  }

  .table-list .upcoming-meta {
    min-width: 0;
  }

  .table-list .upcoming-meta h3 {
    font-size: 0.92rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .table-list .upcoming-meta p {
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .table-list .upcoming-item .price {
    align-self: start;
    padding-top: 0.1rem;
    font-size: 0.82rem;
  }

  .upcoming-item-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    justify-content: stretch;
    gap: 0.45rem;
    min-width: 0;
    max-width: 100%;
  }

  .upcoming-item-actions .badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .upcoming-item-actions form,
  .upcoming-item-actions-form {
    display: grid;
    width: 100%;
    margin: 0;
    min-width: 0;
  }

  .upcoming-item-action-form {
    display: grid;
    width: 100%;
    margin: 0;
    min-width: 0;
    grid-column: 1 / -1;
  }

  .upcoming-item-actions .btn {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 2.25rem;
    padding: 0.45rem 0.35rem;
    font-size: 0.68rem;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }
}

.upcoming-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.price {
  color: var(--sd-yellow);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Promo strip */
.promo-strip {
  margin: 2rem 0 1rem;
  border-radius: var(--sd-radius);
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background:
    linear-gradient(90deg, rgba(255, 192, 0, 0.18), rgba(28, 28, 30, 0.9)),
    var(--sd-surface);
  border: 1px solid rgba(255, 192, 0, 0.25);
}

.promo-strip-copy {
  flex: 1 1 12rem;
  min-width: 0;
}

.promo-strip-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: clamp(0.95rem, 2.6vw, 1.05rem);
  font-weight: 700;
  color: var(--sd-white);
  line-height: 1.25;
}

.promo-strip-copy p {
  margin: 0.3rem 0 0;
  color: var(--sd-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.promo-strip .btn {
  flex: 0 0 auto;
}

.promo-strip strong {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 1rem;
}

.promo-strip span {
  color: var(--sd-muted);
  font-size: 0.85rem;
}

/* Auth / forms */
.panel {
  width: min(100% - 2rem, 420px);
  margin: 2.5rem auto;
  padding: 1.6rem;
  border-radius: var(--sd-radius);
  background: var(--sd-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.panel h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.panel .lead {
  margin: 0 0 1.2rem;
  color: var(--sd-muted);
  font-size: 0.9rem;
}

.panel-wide {
  width: min(100% - 2rem, 520px);
}

.legal-page {
  padding-block: 1.5rem 2.5rem;
}

.legal-doc {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--sd-radius);
  background: var(--sd-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-doc-head {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-doc h1 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  letter-spacing: 0.03em;
}

.legal-updated {
  margin: 0 0 0.85rem;
  color: var(--sd-muted);
  font-size: 0.82rem;
}

.legal-intro {
  margin: 0;
  color: #d6d6d6;
  line-height: 1.65;
}

.legal-section + .legal-section {
  margin-top: 1.35rem;
}

.legal-section h2 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--sd-yellow);
}

.legal-section p {
  margin: 0 0 0.75rem;
  color: #c8c8c8;
  font-size: 0.92rem;
  line-height: 1.65;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-contact {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-contact p {
  margin: 0;
  color: var(--sd-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.affiliate-public-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--sd-muted);
  line-height: 1.65;
}

.affiliate-public-steps li + li {
  margin-top: 0.55rem;
}

.affiliate-public-cta {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
}

.affiliate-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.affiliate-promo-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.affiliate-promo-card img {
  width: 100%;
  height: auto;
  max-height: 22rem;
  object-fit: contain;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.affiliate-promo-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--sd-muted);
  font-size: 0.88rem;
}

.field-optional {
  color: var(--sd-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--sd-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--sd-black);
  color: var(--sd-white);
  font: inherit;
  resize: vertical;
  min-height: 6rem;
}

.field textarea:focus {
  outline: none;
  border-color: var(--sd-yellow);
}

.footer-host {
  margin: 0;
  padding: 1.15rem 0 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 192, 0, 0.04), transparent 70%);
}

.footer-host-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
}

.footer-host-label {
  margin: 0;
  color: var(--sd-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.footer-host-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.footer-host-btn,
.footer-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  min-height: 1.85rem;
  padding: 0.22rem 0.72rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.footer-host-btn {
  background: var(--sd-yellow);
  color: #111;
  border: 1px solid var(--sd-yellow);
}

.footer-host-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.footer-wa-btn {
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.4);
}

.footer-wa-btn:hover {
  background: #25d366;
  color: #0d0d0d;
  border-color: #25d366;
  transform: translateY(-1px);
}

.footer-wa-btn svg {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
}

.host-wa-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  margin: 0 0 1.15rem;
  color: var(--sd-muted);
  font-size: 0.85rem;
}

/* legacy badge helpers still used on /host */
.footer-host-badge {
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-host-badge:hover {
  background: var(--sd-yellow);
  color: #111;
  border-color: var(--sd-yellow);
}

.footer-wa-badge {
  border-color: rgba(37, 211, 102, 0.45);
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
}

.footer-wa-badge:hover {
  background: #25d366;
  color: #0d0d0d;
  border-color: #25d366;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.copy-field {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
}

.copy-field input {
  flex: 1;
  min-width: 0;
}

.copy-field-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #2a2e33;
  color: var(--sd-white);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.copy-field-btn .copy-icon-check {
  display: none;
}

.copy-field-btn.is-copied .copy-icon-copy {
  display: none;
}

.copy-field-btn.is-copied .copy-icon-check {
  display: block;
}

.copy-field-btn:hover {
  background: #353a40;
  border-color: rgba(255, 192, 0, 0.35);
  color: var(--sd-yellow);
}

.copy-field-btn.is-copied {
  background: rgba(61, 207, 142, 0.18);
  border-color: rgba(61, 207, 142, 0.55);
  color: #7dffb8;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.field-label-row label {
  margin: 0;
}

.verify-badge {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.verify-badge.is-verified {
  color: #7dffb8;
  border-color: rgba(61, 207, 142, 0.35);
  background: rgba(61, 207, 142, 0.12);
}

.verify-badge.is-unverified {
  color: #ff9b9b;
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.12);
}

a.verify-badge.is-unverified:hover {
  color: #ffb3b3;
  border-color: rgba(255, 107, 107, 0.55);
}

.field label {
  font-size: 0.82rem;
  color: var(--sd-muted);
}

.field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--sd-muted);
}

.phone-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.phone-row .phone-cc {
  flex: 0 0 min(42%, 11.5rem);
  max-width: 11.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
  color: var(--sd-white);
  border-radius: 10px;
  padding: 0.75rem 0.55rem;
  font: inherit;
  font-size: 0.85rem;
}

.phone-row .phone-national {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 480px) {
  .phone-row {
    flex-direction: column;
  }

  .phone-row .phone-cc {
    flex: 1 1 auto;
    max-width: none;
  }
}

.field input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
  color: var(--sd-white);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}

.field input[type="checkbox"],
.field input[type="radio"] {
  width: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

/* Dark fields: native date/time icons — avoid invert + color-scheme (cancels out) */
.field input[type="date"],
.field input[type="time"],
.field input[type="datetime-local"] {
  color-scheme: dark;
  cursor: pointer;
}

.field input[type="date"]::-webkit-calendar-picker-indicator,
.field input[type="time"]::-webkit-calendar-picker-indicator,
.field input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 1;
  width: 1.2rem;
  height: 1.2rem;
  margin-left: 0.35rem;
  padding: 0.2rem;
  border-radius: 6px;
  background-color: rgba(255, 214, 0, 0.18);
}

.pwd-wrap {
  position: relative;
  width: 100%;
}

.pwd-wrap input {
  width: 100%;
  padding-right: 2.75rem;
}

.pwd-toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--sd-muted);
  cursor: pointer;
  padding: 0;
}

.pwd-toggle:hover,
.pwd-toggle[aria-pressed="true"] {
  color: var(--sd-yellow);
}

.pwd-toggle:focus-visible {
  outline: 2px solid var(--sd-yellow);
  outline-offset: 1px;
}

.field select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
  color: var(--sd-white);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}

.field--compact {
  max-width: 320px;
}

.sd-search-select {
  position: relative;
  width: 100%;
}

.sd-search-select-control {
  position: relative;
}

.sd-search-select-control input[type="search"] {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
  color: var(--sd-white);
  border-radius: 10px;
  padding: 0.75rem 2.4rem 0.75rem 0.9rem;
}

.sd-search-select.is-open .sd-search-select-control input[type="search"] {
  border-color: rgba(255, 192, 0, 0.45);
}

.sd-search-select-clear {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--sd-muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: none;
}

.sd-search-select.has-value .sd-search-select-clear,
.sd-search-select.is-open .sd-search-select-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sd-search-select-clear:hover {
  color: var(--sd-white);
  background: rgba(255, 255, 255, 0.06);
}

.sd-search-select-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  max-height: 240px;
  overflow: auto;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.sd-search-select-option {
  display: grid;
  gap: 0.1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--sd-white);
}

.sd-search-select-option strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.sd-search-select-option span {
  font-size: 0.78rem;
  color: var(--sd-muted);
}

.sd-search-select-option:hover,
.sd-search-select-option.is-selected {
  background: rgba(255, 192, 0, 0.12);
}

.sd-search-select-empty {
  padding: 0.75rem;
  color: var(--sd-muted);
  font-size: 0.85rem;
}

.pwd-meter {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.pwd-meter-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.pwd-meter-bars span {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease;
}

.pwd-meter.is-weak .pwd-meter-bars span:nth-child(1) {
  background: #ff6b6b;
}

.pwd-meter.is-fair .pwd-meter-bars span:nth-child(-n+2) {
  background: #ffc000;
}

.pwd-meter.is-strong .pwd-meter-bars span {
  background: #3dcf8e;
}

.pwd-meter-label {
  margin: 0;
  font-size: 0.78rem;
  color: var(--sd-muted);
}

.pwd-meter.is-weak .pwd-meter-label {
  color: #ff9b9b;
}

.pwd-meter.is-fair .pwd-meter-label {
  color: var(--sd-yellow);
}

.pwd-meter.is-strong .pwd-meter-label {
  color: #7dffb8;
}

.opt-in {
  margin: 0 0 1.1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.65rem;
}

.opt-in-plain {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.opt-in legend {
  padding: 0 0.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sd-white);
}

.opt-in-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--sd-muted);
  cursor: pointer;
}

.opt-in-item input {
  margin-top: 0.2rem;
  accent-color: var(--sd-yellow);
  width: 1rem;
  height: 1rem;
}

.opt-in-note {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--sd-muted);
  opacity: 0.9;
}

.admin-form {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 860px;
}

.admin-form.admin-form-wide {
  max-width: 100%;
  min-width: 0;
}

.admin-form.admin-form-create {
  max-width: min(100%, 480px);
}

.create-account-steps {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
  color: var(--sd-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  display: grid;
  gap: 0.55rem;
}

.create-account-steps li::marker {
  color: var(--sd-yellow);
}

.admin-form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 960px) {
  .admin-form-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }

  .admin-form-grid .admin-card-span {
    grid-column: 1 / -1;
  }
}

.admin-card {
  background: var(--sd-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--sd-radius);
  padding: 1.2rem 1.3rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.admin-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 0.7rem;
  min-width: 0;
}

.gateway-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111;
  cursor: pointer;
}

.gateway-option.is-active,
.gateway-option:has(input:checked) {
  border-color: var(--sd-yellow);
  background: var(--sd-yellow-soft);
}

.replay-policy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 0.45rem;
}

.replay-policy-card {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  font-weight: 400;
  color: var(--sd-muted);
}

.replay-policy-card:hover {
  border-color: rgba(255, 192, 0, 0.35);
}

.replay-policy-card.is-active,
.replay-policy-card:has(input:checked) {
  border-color: var(--sd-yellow);
  background: var(--sd-yellow-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 192, 0, 0.15);
}

.replay-policy-card input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  flex: 0 0 0.7rem;
  box-sizing: border-box;
  width: 0.7rem !important;
  height: 0.7rem !important;
  max-width: 0.7rem;
  margin: 0.32rem 0 0;
  padding: 0 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50% !important;
  background: transparent !important;
  cursor: pointer;
  position: relative;
  vertical-align: top;
}

.replay-policy-card.is-active input[type="radio"],
.replay-policy-card:has(input:checked) input[type="radio"] {
  border-color: var(--sd-yellow);
}

.replay-policy-card input[type="radio"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.28rem;
  height: 0.28rem;
  margin: -0.14rem 0 0 -0.14rem;
  border-radius: 50%;
  background: var(--sd-yellow);
  transform: scale(0);
  transition: transform 0.12s ease;
}

.replay-policy-card input[type="radio"]:checked::after {
  transform: scale(1);
}

.replay-policy-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.replay-policy-card-title {
  color: var(--sd-white);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
}

.replay-policy-card-help {
  color: var(--sd-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.replay-policy-card.is-active .replay-policy-card-help,
.replay-policy-card:has(input:checked) .replay-policy-card-help {
  color: rgba(255, 255, 255, 0.72);
}

.replay-policy-custom {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(255, 192, 0, 0.35);
  background: rgba(255, 192, 0, 0.06);
}

.replay-policy-custom[hidden] {
  display: none !important;
}

.replay-policy-custom label {
  margin: 0;
  color: var(--sd-muted);
  font-size: 0.85rem;
}

.replay-policy-custom input {
  width: 100%;
  max-width: 220px;
}

.default-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 0.85rem;
  min-width: 0;
}

.default-media-option {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.default-media-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.default-media-option.is-active,
.default-media-option:has(input:checked) {
  border-color: var(--sd-yellow);
  background: var(--sd-yellow-soft);
}

.default-media-previews {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: stretch;
  min-width: 0;
}

.default-media-poster,
.default-media-banner {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 192, 0, 0.15);
  background: #0a0a0a;
  object-fit: cover;
}

.default-media-poster {
  aspect-ratio: 3 / 4;
}

.default-media-banner {
  aspect-ratio: 16 / 9;
  height: 100%;
}

.default-media-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.default-media-help {
  color: var(--sd-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .section-head > .badge {
    flex: 0 1 auto;
  }

  .admin-card {
    padding: 0.95rem 0.9rem;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .admin-card h3,
  .admin-card small,
  .admin-card .settle-card-meta {
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
  }

  .admin-card small,
  .admin-card .settle-card-meta {
    display: block;
    font-size: 0.72rem;
    line-height: 1.4;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .admin-form .field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
  .admin-form .field select {
    font-size: 16px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .field--compact {
    max-width: 100%;
  }

  .admin-card small code,
  .field small code {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .gateway-option {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .default-media-option {
    min-width: 0;
    max-width: 100%;
    padding: 0.65rem;
  }

  .default-media-previews {
    grid-template-columns: 56px minmax(0, 1fr);
    min-width: 0;
    max-width: 100%;
  }

  .default-media-poster,
  .default-media-banner {
    min-width: 0;
    max-width: 100%;
  }

  .default-media-label,
  .default-media-help {
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .live-actions .btn {
    min-height: 2.25rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
  }
}

.callback-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--sd-muted);
  font-size: 0.85rem;
  min-width: 0;
}

.callback-list li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.callback-list code {
  color: var(--sd-yellow);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ppv-buy-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.ppv-checkout {
  max-width: 28rem;
  margin: 0 auto;
}

.ppv-checkout h1 {
  margin: 0.35rem 0 0.35rem;
  font-size: 1.45rem;
}

.ppv-checkout-lead {
  margin: 0 0 1.1rem;
  color: var(--sd-muted);
  font-size: 0.92rem;
}

.ppv-checkout-event {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.ppv-checkout-thumb {
  width: 56px;
  height: 74px;
  border-radius: 8px;
  background: #111 center/cover no-repeat;
  flex-shrink: 0;
}

.ppv-checkout-event strong {
  display: block;
  font-size: 1rem;
}

.ppv-checkout-event span {
  display: block;
  margin-top: 0.2rem;
  color: var(--sd-muted);
  font-size: 0.82rem;
}

.ppv-checkout-method {
  margin: 0 0 0.85rem;
  color: var(--sd-muted);
  font-size: 0.86rem;
}

.ppv-checkout-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ppv-checkout-promo {
  margin: 0 0 1rem;
  padding: 0.95rem 1rem;
  border-radius: var(--sd-radius-sm);
  background: var(--sd-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ppv-checkout-promo.has-error {
  border-color: rgba(255, 100, 100, 0.45);
}

.ppv-checkout-promo.has-success {
  border-color: rgba(94, 234, 164, 0.35);
}

.ppv-checkout-promo .copy-row {
  align-items: stretch;
}

.ppv-checkout-promo .copy-row input {
  min-width: 0;
}

.ppv-checkout-promo .copy-row input[aria-invalid="true"] {
  border-color: rgba(255, 100, 100, 0.55);
}

.ppv-checkout-promo .field-error {
  margin: 0.45rem 0 0;
  color: #ff8a8a;
  font-size: 0.82rem;
}

.ppv-checkout-promo .field-success {
  margin: 0.45rem 0 0;
  color: #5eeaa4;
  font-size: 0.82rem;
}

.ppv-checkout-form .field select {
  width: 100%;
}

.ppv-checkout-form .btn {
  width: 100%;
  justify-content: center;
}

.ppv-price-break {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.ppv-price-break-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.85rem;
  width: 100%;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--sd-muted);
}

.ppv-price-break-row dt,
.ppv-price-break-row dd {
  margin: 0;
}

.ppv-price-break-row dd {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.ppv-price-break-row.is-total {
  margin-top: 0.12rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.ppv-price-break-row.is-total dd {
  color: var(--sd-yellow, #ffc000);
}

.ppv-gateway-pick {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: min(100%, 320px);
}

.ppv-gateway-pick legend {
  padding: 0;
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sd-muted);
}

.ppv-gateway-option {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.35;
}

.ppv-gateway-option-copy {
  display: flex;
  flex: 1;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.ppv-chip-methods {
  margin-top: -0.15rem;
}

.ppv-chip-methods[hidden] {
  display: none;
}

.ppv-gateway-option:has(input:checked) {
  border-color: rgba(255, 192, 0, 0.55);
  background: var(--sd-yellow-soft);
}

.ppv-gateway-option input {
  margin-top: 0.15rem;
  accent-color: var(--sd-yellow);
}

.hero-actions .ppv-buy-form {
  width: auto;
  max-width: min(100%, 340px);
}

.hero-actions .ppv-buy-form:has(.ppv-gateway-pick) {
  width: min(100%, 340px);
}


.alert {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

.alert-error {
  background: rgba(255, 77, 77, 0.12);
  color: #ffb3b3;
  border: 1px solid rgba(255, 77, 77, 0.3);
}

.alert-ok {
  background: rgba(255, 192, 0, 0.12);
  color: var(--sd-yellow);
  border: 1px solid rgba(255, 192, 0, 0.3);
}

.flash-wrap {
  transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease, margin 0.4s ease;
  opacity: 1;
  max-height: 120px;
  overflow: hidden;
}

.flash-wrap.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  margin-top: 0 !important;
  margin-bottom: 0;
  pointer-events: none;
}

.cat-icon-admin {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2a2e33;
  border-radius: 12px;
  color: var(--sd-white);
  flex-shrink: 0;
}

.cat-icon-admin svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 720px) {
  .cat-icon-admin {
    width: 40px;
    height: 40px;
  }

  .cat-icon-admin svg {
    width: 18px;
    height: 18px;
  }
}

.upcoming-item.is-dimmed {
  opacity: 0.55;
}

.sport-icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.55rem;
}

.sport-icon-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  cursor: pointer;
}

.sport-icon-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sport-icon-option.is-selected {
  border-color: var(--sd-yellow);
  background: rgba(255, 192, 0, 0.08);
}

.sport-icon-label {
  font-size: 0.68rem;
  color: var(--sd-muted);
  text-transform: lowercase;
}

/* Detail */
.event-hero-bleed {
  width: 100%;
  margin: 0;
}

.detail-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--sd-radius);
  overflow: hidden;
  margin: 1rem 0 1.5rem;
  background: #1a1a1c;
}

.detail-hero.detail-hero-fullbleed {
  margin: 0;
  border-radius: 0;
  aspect-ratio: auto;
  min-height: 240px;
  /* Match home hero size (header overlays the image). */
  height: calc(100svh - var(--sd-bottom-nav-h));
  height: calc(100dvh - var(--sd-bottom-nav-h));
  /* Allow share menu to open above the CTA without clipping. */
  overflow: visible;
}

.detail-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  background: #1a1608;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.92) 100%);
  pointer-events: none;
}

.detail-hero.detail-hero-fullbleed::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.18) 48%, rgba(0, 0, 0, 0.04) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.38) 0%, transparent 52%);
}

.detail-hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  gap: 0.6rem;
}

.detail-hero.detail-hero-fullbleed .detail-hero-content {
  padding-inline: clamp(1rem, 2.5vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 3.5vw, 2.75rem);
}

.detail-hero.detail-hero-fullbleed h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  max-width: 18ch;
}

.detail-hero.detail-hero-fullbleed > .detail-hero-content > p {
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  max-width: 48ch;
}

.event-page-banner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 0.85rem;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.event-page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.detail-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.event-organizer {
  margin: 0;
  color: var(--sd-muted);
  font-size: 0.88rem;
}

.event-organizer strong {
  color: var(--sd-white);
  font-weight: 600;
}

.event-organizer-link {
  color: inherit;
  text-decoration: none;
}

.event-organizer-link:hover strong {
  color: var(--sd-yellow);
}

.org-page-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.org-page-actions .event-share-wrap {
  position: relative;
}

.org-page-actions .event-share-menu {
  left: auto;
  right: 0;
}

@media (max-width: 720px) {
  .section-head:has(.org-page-title) {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .org-page-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 0.65rem;
  }

  .org-page-actions .event-share-menu,
  .event-share-menu {
    left: 0;
    right: auto;
    max-width: min(260px, calc(100vw - 2rem));
  }

  .event-social--hero .event-share-menu {
    left: 0;
    right: auto;
    bottom: calc(100% + 0.5rem);
    top: auto;
  }
}

.org-page-eyebrow {
  margin: 0;
  color: var(--sd-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.org-page-lead {
  margin: -0.35rem 0 1.1rem;
  color: var(--sd-muted);
  font-size: 0.92rem;
}

/* Organizer public page — event cards (5 / row on wide screens) */
.org-events-grid.grid-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
  justify-content: stretch;
}

.org-events-grid .event-card {
  width: 100%;
  min-width: 0;
}

.org-events-grid .event-card-media {
  aspect-ratio: 3 / 4;
}

.org-events-grid .event-card-body {
  padding: 0.7rem 0.75rem 0.85rem;
  min-height: 4.5rem;
}

.org-events-grid .event-card-body h3 {
  font-size: 0.9rem;
  line-height: 1.3;
}

.org-events-grid .event-card-body p {
  font-size: 0.72rem;
  line-height: 1.35;
}

.org-events-grid .event-card .badge {
  top: 0.45rem;
  left: 0.45rem;
  font-size: 0.62rem;
  padding: 0.15rem 0.45rem;
}

@media (min-width: 640px) {
  .org-events-grid.grid-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
  }
}

@media (min-width: 900px) {
  .org-events-grid.grid-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .org-events-grid .event-card-body {
    padding: 0.8rem 0.85rem 0.95rem;
    min-height: 4.75rem;
  }

  .org-events-grid .event-card-body h3 {
    font-size: 0.92rem;
  }
}

@media (min-width: 1100px) {
  .org-events-grid.grid-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.05rem;
  }

  .org-events-grid .event-card-body h3 {
    font-size: 0.88rem;
  }

  .org-events-grid .event-card-body p {
    font-size: 0.7rem;
  }
}

.event-organizer-block {
  margin-top: 0.85rem;
}

/* Event share / notify */
.event-social {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.35rem;
}

.hero-actions .event-social {
  margin: 0;
  gap: 0.45rem;
  flex-shrink: 0;
}

.event-social--hero .event-social-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.event-social--hero .event-social-btn:hover {
  background: rgba(0, 0, 0, 0.62);
  border-color: rgba(255, 255, 255, 0.45);
}

.event-social--hero .event-share-menu {
  top: auto;
  bottom: calc(100% + 0.5rem);
  left: 0;
  right: auto;
}

.event-social-form {
  display: inline-flex;
  margin: 0;
}

.event-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #2a2e33;
  color: var(--sd-white);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.event-social-btn:hover {
  background: #353a40;
  color: var(--sd-white);
}

.event-social-btn:active {
  transform: scale(0.96);
}

.event-social-btn.is-active {
  background: var(--sd-yellow);
  color: #111;
}

.event-social-btn.is-copied {
  background: rgba(255, 192, 0, 0.22);
  color: var(--sd-yellow);
}

.event-share-wrap {
  position: relative;
}

.event-share-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 40;
  min-width: 220px;
  padding: 0.65rem;
  border-radius: 14px;
  background: #1a1d21;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  animation: fadeUp 0.2s ease both;
}

.event-share-menu[hidden] {
  display: none !important;
}

.event-share-menu-title {
  margin: 0 0 0.45rem;
  padding: 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sd-muted);
}

.event-share-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.55rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--sd-white);
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.event-share-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--sd-white);
}

.event-share-item.is-copied {
  color: var(--sd-yellow);
}

.event-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #2a2e33;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}

.event-share-note {
  margin: 0.4rem 0 0;
  padding: 0.35rem 0.45rem 0.15rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--sd-muted);
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 240px));
  gap: 1rem;
  align-items: stretch;
  justify-content: start;
}

.grid-cards .event-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
}

.grid-cards .event-card-media {
  aspect-ratio: 3 / 4;
  width: 100%;
  flex-shrink: 0;
  background-color: #121214;
  background-size: cover;
  background-position: center;
}

.grid-cards .event-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem 1rem;
  min-height: 5.25rem;
}

.grid-cards .event-card-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.grid-cards .event-card-body p {
  margin: 0;
  margin-top: auto;
  font-size: 0.82rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.grid-cards .event-card .badge {
  top: 0.6rem;
  left: 0.6rem;
  font-size: 0.7rem;
}

.grid-cards--lg {
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
  gap: 1.1rem;
}

@media (min-width: 900px) {
  .grid-cards {
    grid-template-columns: repeat(auto-fill, minmax(220px, 250px));
    gap: 1.1rem;
  }

  .grid-cards .event-card-body {
    padding: 0.95rem 1rem 1.1rem;
    min-height: 5.5rem;
  }

  .grid-cards .event-card-body h3 {
    font-size: 1.05rem;
  }

  .grid-cards .event-card-body p {
    font-size: 0.86rem;
  }
}

.table-list {
  display: grid;
  gap: 0.7rem;
}

.empty {
  padding: 2rem;
  text-align: center;
  color: var(--sd-muted);
  background: var(--sd-surface);
  border-radius: var(--sd-radius);
}

/* Bottom nav (mobile) */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0.2rem calc(0.45rem + env(safe-area-inset-bottom));
  background: rgba(13, 13, 13, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.bottom-nav a {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--sd-muted);
  font-size: 0.62rem;
  line-height: 1.15;
  padding: 0.3rem 0.12rem;
  text-align: center;
  overflow-wrap: anywhere;
  white-space: normal;
}

@media (max-width: 380px) {
  .bottom-nav a {
    font-size: 0.55rem;
    gap: 0.12rem;
    padding: 0.25rem 0.06rem;
  }

  .bottom-nav svg {
    width: 18px;
    height: 18px;
  }
}

.bottom-nav a.is-active,
.bottom-nav a:hover {
  color: var(--sd-yellow);
}

.bottom-nav svg {
  width: 20px;
  height: 20px;
}

.bottom-nav-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav-icon-wrap .nav-live-dot {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 6px;
  height: 6px;
}

.bottom-nav-live.is-active,
.bottom-nav-live:hover {
  color: var(--sd-yellow);
}

.site-footer {
  margin-top: 2.5rem;
  padding: 0 0 5.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0a0a0a;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-block: 1.6rem 1.25rem;
}

.footer-text {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.footer-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  color: var(--sd-yellow);
  line-height: 1.2;
}

.footer-tag {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--sd-muted);
  text-transform: uppercase;
}

.footer-tagline {
  margin: 0.35rem 0 0;
  max-width: 42ch;
  color: #c8c8c8;
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-devices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  margin-left: auto;
  padding-top: 0.1rem;
  color: var(--sd-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
}

@media (max-width: 720px) {
  .footer-devices {
    display: none;
  }
}

.footer-device-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--sd-yellow);
  min-height: 1.15rem;
}

.footer-device-icons svg {
  width: 22px;
  height: 22px;
  opacity: 0.9;
}

.footer-copy {
  margin: 0.55rem 0 0;
  color: var(--sd-muted);
  font-size: 0.82rem;
}

.footer-company {
  margin: 0.15rem 0 0;
  color: var(--sd-muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.55rem;
  margin: 0;
  padding-block: 0 1.15rem;
  font-size: 0.82rem;
  text-align: center;
}

.footer-legal a {
  color: #b8b8b8;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--sd-yellow);
}

.footer-legal-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.footer-legal-wa:hover {
  color: #25d366;
}

.footer-legal-wa svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.18);
  user-select: none;
}

.footer-legal-row {
  display: contents;
}

@media (max-width: 899px) {
  .site-footer {
    padding-bottom: calc(var(--sd-bottom-nav-h) + 0.5rem);
  }
}

@media (max-width: 720px) {
  .site-footer {
    margin-top: 1.25rem;
    overflow-x: hidden;
  }

  .footer-inner {
    justify-content: center;
    padding-block: 1.15rem 0.7rem;
  }

  .footer-text {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-copy,
  .footer-company {
    max-width: 34ch;
    overflow-wrap: anywhere;
    line-height: 1.45;
  }

  .footer-copy {
    font-size: 0.72rem;
  }

  .footer-company {
    font-size: 0.65rem;
    letter-spacing: 0.02em;
  }

  .footer-legal {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 0.4rem;
    padding: 0.15rem 0.75rem 0.35rem;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .footer-legal-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.28rem 0.45rem;
    width: 100%;
  }

  .footer-legal-row > span {
    display: inline;
    line-height: 1;
  }

  .footer-legal a {
    flex: none;
    width: auto;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .footer-legal-wa {
    justify-content: center;
  }
}

.legal-contact a {
  color: var(--sd-yellow);
}

.legal-contact a:hover {
  text-decoration: underline;
}

.live-preview-card h3 {
  margin: 0;
}

.live-player-wrap {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.live-player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  pointer-events: none;
}

.live-player-overlay.is-hidden {
  display: none;
}

.live-player-overlay p {
  margin: 0;
  max-width: 36ch;
  font-size: 0.92rem;
  line-height: 1.5;
}

.live-player-overlay .live-overlay-badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 192, 0, 0.16);
  color: var(--sd-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-obs-alert {
  margin-bottom: 1rem;
}

.live-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  max-width: 1080px;
  margin-inline: auto;
}

.live-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.live-player--custom {
  cursor: pointer;
}

.player-play-btn {
  position: absolute;
  inset: 0;
  z-index: 3;
  margin: auto;
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 192, 0, 0.95);
  color: #111;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.player-play-btn svg {
  margin-left: 3px;
}

.player-play-btn:hover {
  transform: scale(1.06);
  background: #ffd24d;
}

.player-play-btn:active {
  transform: scale(0.96);
}

.player-play-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
}

.player-unmute-btn {
  position: absolute;
  left: 0.75rem;
  bottom: 4.75rem;
  z-index: 5;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.player-unmute-btn:hover {
  background: rgba(0, 0, 0, 0.88);
  color: var(--sd-yellow);
}

.player-unmute-btn.is-hidden {
  display: none;
}

.player-live-chrome {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 0.35rem 0.55rem 0.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 55%);
  pointer-events: none;
}

.player-live-chrome.is-hidden {
  display: none;
}

.player-live-chrome > * {
  pointer-events: auto;
}

.player-live-scrub {
  padding: 0.45rem 0.2rem 0.55rem;
  cursor: pointer;
  touch-action: none;
}

.player-live-scrub-rail {
  position: relative;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: height 0.12s ease;
}

.player-live-scrub:hover .player-live-scrub-rail,
.player-live-scrub:focus-visible .player-live-scrub-rail {
  height: 5px;
}

.player-live-scrub-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.92);
  transition: background 0.15s ease;
}

.player-live-chrome.is-at-live .player-live-scrub-fill {
  background: #ff3b30;
}

.player-live-chrome.is-behind .player-live-scrub-fill {
  background: rgba(255, 255, 255, 0.92);
}

.player-live-chrome.is-vod .player-live-scrub-fill {
  background: #ff3b30;
}

.player-live-scrub-knob {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  margin-top: -6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.12s ease, transform 0.12s ease, background 0.15s ease;
}

.player-live-chrome.is-at-live .player-live-scrub-knob {
  background: #ff3b30;
}

.player-live-chrome.is-vod .player-live-scrub-knob {
  background: #ff3b30;
}

.player-live-scrub:hover .player-live-scrub-knob,
.player-live-scrub:focus-visible .player-live-scrub-knob,
.player-live-chrome.is-behind .player-live-scrub-knob,
.player-live-chrome.is-vod .player-live-scrub-knob {
  opacity: 1;
  transform: scale(1);
}

.player-live-toolbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
}

.player-live-tool {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.player-live-tool:hover {
  background: rgba(255, 255, 255, 0.12);
}

.player-live-tool .is-hidden {
  display: none;
}

.player-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.15rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #ff3b30;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: default;
}

.player-live-chrome.is-behind .player-live-badge {
  background: rgba(17, 17, 17, 0.72);
  border-color: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.player-live-chrome.is-behind .player-live-badge:hover {
  background: rgba(34, 34, 34, 0.9);
}

.player-live-chrome.is-at-live .player-live-badge .player-go-live-dot {
  background: #fff;
  box-shadow: none;
}

.player-live-chrome.is-behind .player-live-badge .player-go-live-dot {
  background: #ff3b30;
}

.player-live-spacer {
  flex: 1;
}

.player-vod-time {
  margin-left: 0.25rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.player-go-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff3b30;
  box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.25);
}

.player-quality {
  position: absolute;
  left: 0.85rem;
  bottom: 3.25rem;
  z-index: 4;
}

.player-quality--toolbar {
  position: relative;
  left: auto;
  bottom: auto;
}

.player-quality.is-hidden {
  display: none;
}

.player-quality-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border: 0;
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.55);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.player-quality-btn:hover {
  background: rgba(34, 34, 34, 0.85);
}

.player-quality-menu {
  position: absolute;
  right: 0;
  left: auto;
  bottom: calc(100% + 0.4rem);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  min-width: 7.5rem;
  border-radius: 10px;
  background: rgba(17, 17, 17, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.player-quality-menu[hidden] {
  display: none;
}

.player-quality-menu button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  background: transparent;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.player-quality-menu button:hover,
.player-quality-menu button.is-active {
  background: rgba(255, 192, 0, 0.18);
  color: var(--sd-yellow);
}

.live-player-placeholder {
  display: grid;
  place-items: center;
  color: var(--sd-muted);
  text-align: center;
  padding: 1rem;
}

.live-placeholder-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: blur(2px);
}

.live-player-placeholder p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 28ch;
}

.live-preview-note {
  margin: 0.75rem auto 0;
  max-width: 1080px;
  color: var(--sd-muted);
  font-size: 0.82rem;
}

/* Live Control list */
.live-control-lead {
  margin: -0.35rem 0 1.25rem;
  color: var(--sd-muted);
  max-width: 40rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 0.9rem;
}

.live-control-section + .live-control-section {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.live-control-section-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.live-control-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.live-control-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--sd-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.live-control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.live-control-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--sd-radius);
  overflow: hidden;
  background: var(--sd-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.live-control-card:hover {
  border-color: rgba(255, 192, 0, 0.35);
  transform: translateY(-2px);
  background: var(--sd-surface-2);
}

.live-control-card.is-live {
  border-color: rgba(255, 77, 77, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 77, 77, 0.12);
}

.live-control-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(145deg, #2a2a2e, #161618);
  background-size: cover;
  background-position: center;
}

.live-control-media .badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
}

.live-control-body {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem 1rem 1.05rem;
  flex: 1;
}

.live-control-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.live-control-meta {
  margin: 0;
  color: var(--sd-muted);
  font-size: 0.78rem;
}

.live-control-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.stream-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--sd-muted);
}

.stream-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #666;
}

.stream-chip.is-ready {
  background: var(--sd-yellow-soft);
  color: var(--sd-yellow);
}

.stream-chip.is-ready::before {
  background: var(--sd-yellow);
}

.live-control-open {
  font-size: 0.78rem;
  color: var(--sd-yellow);
  font-weight: 600;
}

.event-media-preview {
  display: block;
  width: min(100%, 168px);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1a1508;
}

.event-media-preview[hidden] {
  display: none !important;
}

.event-media-preview--banner {
  width: min(100%, 420px);
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: #1a1508;
}

.admin-form .field input[type="file"] {
  display: block;
  width: 100%;
  margin-bottom: 0.55rem;
  padding: 0.55rem 0;
  color: var(--sd-muted);
  font-size: 0.88rem;
}

.admin-form .field input[type="file"]::file-selector-button {
  margin-right: 0.65rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--sd-white);
  font: inherit;
  cursor: pointer;
}

.live-back-link {
  color: var(--sd-muted);
  font-size: 0.82rem;
}

.live-back-link:hover {
  color: var(--sd-yellow);
}

.live-status-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--sd-radius);
  background: var(--sd-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.live-status-label {
  display: block;
  color: var(--sd-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.live-status-bar strong {
  font-size: 0.92rem;
}

.live-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.live-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.live-toggle-stop {
  border-color: rgba(255, 96, 96, 0.35);
  color: #ff8080;
}

.live-toggle-stop:hover {
  background: rgba(255, 96, 96, 0.12);
  border-color: rgba(255, 96, 96, 0.5);
  color: #ffb0b0;
}

.text-ok {
  color: var(--sd-yellow);
}

.text-muted {
  color: var(--sd-muted);
}

/* Account page */
.account-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.5rem;
  border-radius: var(--sd-radius);
  background:
    linear-gradient(135deg, rgba(255, 192, 0, 0.12), transparent 55%),
    var(--sd-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: var(--sd-black);
  background: var(--sd-yellow);
  flex-shrink: 0;
}

.account-hero-text {
  flex: 1;
  min-width: 180px;
}

.account-hero-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}

.account-hero-text h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  letter-spacing: 0.03em;
}

.account-hero-text p {
  margin: 0;
  color: var(--sd-muted);
  font-size: 0.9rem;
}

.account-member-since {
  margin-top: 0.2rem !important;
  font-size: 0.8rem !important;
  opacity: 0.9;
}

.account-hero-aside {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.account-ppv-stat {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  min-width: 72px;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 192, 0, 0.3);
  background: rgba(255, 192, 0, 0.1);
  color: var(--sd-white);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.account-ppv-stat:hover {
  border-color: rgba(255, 192, 0, 0.55);
  background: rgba(255, 192, 0, 0.16);
}

.account-ppv-stat strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--sd-yellow);
  letter-spacing: 0.02em;
}

.account-ppv-stat span {
  font-size: 0.68rem;
  color: var(--sd-muted);
  text-align: center;
  line-height: 1.2;
}

.account-logout {
  margin-left: 0;
}

@media (max-width: 640px) {
  .account-hero {
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
  }

  .account-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 1.2rem;
  }

  .account-hero-text {
    flex: 1 1 calc(100% - 68px);
    min-width: 0;
  }

  .account-hero-text p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .account-hero-aside {
    width: 100%;
    margin-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: stretch;
  }

  .account-ppv-stat {
    flex: 1 1 calc(50% - 0.3rem);
    min-width: 0;
    padding: 0.5rem 0.55rem;
  }

  .account-ppv-stat strong {
    font-size: 1.15rem;
  }

  .account-logout {
    flex: 1 1 100%;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .account-tile-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .account-tile {
    min-height: 0;
    padding: 0.9rem 0.95rem;
  }

  .account-block-title {
    font-size: 0.85rem;
  }
}

.ppv-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.15rem;
}

.ppv-processing-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--sd-radius);
  border: 1px solid rgba(255, 192, 0, 0.35);
  background: rgba(255, 192, 0, 0.08);
}

.ppv-failed-banner {
  border-color: rgba(220, 80, 80, 0.45);
  background: rgba(220, 80, 80, 0.1);
}

.ppv-processing-copy {
  flex: 1 1 220px;
  min-width: 0;
}

.ppv-processing-copy strong {
  display: block;
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
}

.ppv-processing-copy p {
  margin: 0;
  color: var(--sd-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.ppv-processing-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.ppv-processing-status {
  font-size: 0.78rem;
  color: var(--sd-yellow);
}

@media (max-width: 640px) {
  .ppv-processing-actions {
    width: 100%;
    align-items: stretch;
  }

  .ppv-processing-actions .btn {
    text-align: center;
  }
}

.ppv-summary-item {
  padding: 0.85rem 1rem;
  border-radius: var(--sd-radius-sm);
  border: 1px solid rgba(255, 192, 0, 0.22);
  background: rgba(255, 192, 0, 0.08);
  display: grid;
  gap: 0.25rem;
}

.ppv-summary-item span {
  font-size: 0.75rem;
  color: var(--sd-muted);
}

.ppv-summary-item strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--sd-yellow);
  letter-spacing: 0.02em;
}

.ppv-order-list {
  display: grid;
  gap: 0.75rem;
}

.ppv-failed-fold {
  margin-top: 1.15rem;
}

.ppv-failed-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--sd-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.ppv-failed-toggle:hover {
  color: var(--sd-yellow);
  border-bottom-color: rgba(255, 192, 0, 0.55);
}

.ppv-order-list--failed {
  margin-top: 0.85rem;
}

.ppv-order-card--failed {
  opacity: 0.78;
}

.ppv-order-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: var(--sd-radius);
  background: var(--sd-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 720px) {
  .ppv-order-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.ppv-order-main {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.15rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.ppv-order-main .upcoming-thumb {
  width: 88px;
  height: 64px;
  flex-shrink: 0;
}

.ppv-order-main .upcoming-meta {
  min-width: 0;
  padding-left: 0.1rem;
}

.ppv-order-amount {
  margin-top: 0.25rem !important;
  color: var(--sd-yellow) !important;
  font-weight: 600;
  font-size: 0.85rem !important;
}

.ppv-order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-start;
}

@media (min-width: 720px) {
  .ppv-order-actions {
    justify-content: flex-end;
  }
}

.ppv-order-actions .badge {
  text-decoration: none;
  line-height: 1.2;
  max-width: 100%;
  text-align: center;
}

.ppv-order-actions .ppv-receipt-btn,
.ppv-order-actions .ppv-watch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: 999px;
  line-height: 1.2;
  min-height: 2.4rem;
}

.refund-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.55rem;
}

.refund-inline-form input[type="text"] {
  min-width: 160px;
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
  color: var(--sd-white);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
}

.sales-order-side {
  display: grid;
  gap: 0.4rem;
  justify-items: end;
  align-content: center;
}

@media (max-width: 720px) {
  .sales-detail-page .sales-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .sales-detail-page .sales-stat {
    padding: 0.7rem 0.65rem;
  }

  .sales-detail-page .sales-stat span {
    font-size: 0.62rem;
  }

  .sales-detail-page .sales-stat strong {
    font-size: 0.92rem;
    overflow-wrap: anywhere;
  }

  .sales-order-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.7rem;
  }

  .sales-order-side {
    width: 100%;
    justify-items: stretch;
    gap: 0.45rem;
  }

  .sales-order-side .price {
    justify-self: start;
  }

  .sales-order-side .badge {
    justify-self: start;
  }

  .sales-order-side .btn {
    width: 100%;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .refund-inline-form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .refund-inline-form input[type="text"] {
    min-width: 0;
    width: 100%;
  }

  .refund-inline-form .btn {
    width: 100%;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .sales-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .sales-summary .sales-stat:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .sales-stat {
    padding: 0.7rem 0.65rem;
    min-width: 0;
  }

  .sales-stat span {
    font-size: 0.62rem;
    overflow-wrap: anywhere;
  }

  .sales-stat strong {
    font-size: 0.88rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .settle-card,
  .settle-card-link {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .settle-card-main {
    min-width: 0;
    width: 100%;
  }

  .settle-card-top h3,
  .settle-card-meta {
    overflow-wrap: anywhere;
  }

  .settle-card-amounts {
    width: 100%;
  }

  .settle-card-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
    align-items: stretch;
    flex-direction: row;
  }

  .settle-card-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .settle-card-actions .btn:only-child,
  .settle-card-actions .live-control-open {
    grid-column: 1 / -1;
  }

  .commission-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .commission-filter-bar .field {
    min-width: 0;
    width: 100%;
    flex: none;
    margin: 0;
  }

  .commission-filter-actions {
    width: 100%;
    padding-bottom: 0;
  }

  .commission-filter-actions .btn {
    flex: 1;
    justify-content: center;
    height: auto;
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .ppv-order-main {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.7rem;
  }

  .ppv-order-main .upcoming-thumb {
    width: 72px;
    height: 54px;
    min-width: 0;
  }

  .ppv-order-main .upcoming-meta h3,
  .ppv-order-main .upcoming-meta p {
    overflow-wrap: anywhere;
  }

  .ppv-order-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    align-items: stretch;
    gap: 0.4rem;
  }

  .ppv-order-actions:has(> a.btn + a.btn) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ppv-order-actions .badge {
    justify-self: start;
  }

  .ppv-order-actions .btn,
  .ppv-order-actions .ppv-receipt-btn,
  .ppv-order-actions .ppv-watch-btn {
    width: 100%;
    justify-content: center;
    min-height: 2.4rem;
    height: 100%;
    padding: 0.38rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    text-transform: none;
    letter-spacing: 0.01em;
    line-height: 1.2;
  }

  .account-settings-card .btn,
  .admin-card > .btn,
  .admin-form .btn-primary[type="submit"] {
    width: 100%;
    justify-content: center;
    align-self: stretch;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
  }

  .live-control-grid {
    grid-template-columns: 1fr;
  }

  .account-tile-grid {
    grid-template-columns: 1fr;
  }

  .org-card-head {
    width: 100%;
    min-width: 0;
    align-items: flex-start;
  }

  .live-status-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    padding: 0.85rem 0.9rem;
  }

  .live-status-bar strong {
    overflow-wrap: anywhere;
    font-size: 0.85rem;
  }

  .live-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .live-actions form,
  .live-actions .btn {
    width: 100%;
    margin: 0;
  }

  .live-actions .btn {
    justify-content: center;
  }

  .live-preview-head {
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .live-preview-head h2 {
    overflow-wrap: anywhere;
  }

  .account-hero-aside form,
  .account-hero-aside .btn {
    width: 100%;
  }

  .account-hero-aside .btn {
    justify-content: center;
  }

  .ppv-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ppv-order-actions .ppv-receipt-btn,
  .ppv-order-actions .ppv-watch-btn,
  .ppv-order-actions .btn {
    flex: 1 1 auto;
    width: 100%;
    min-height: 2.4rem;
    padding: 0.38rem 0.55rem;
    font-size: 0.72rem;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    text-transform: none;
    letter-spacing: 0.01em;
  }

  .ppv-failed-toggle,
  .ppv-processing-copy p,
  .ppv-processing-copy strong {
    overflow-wrap: anywhere;
  }

  .settle-bank-grid,
  .gateway-grid,
  .default-media-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ppv-buy-form,
  .ppv-buy-form .btn,
  .hero-actions .ppv-buy-form {
    width: 100%;
    max-width: 100%;
  }

  .ppv-buy-form .btn {
    justify-content: center;
  }

  .event-watch-meta .hero-actions {
    width: 100%;
    align-items: stretch;
  }

  .commission-assign-form {
    grid-template-columns: 1fr;
  }

  .commission-assign-actions,
  .commission-assign-actions .btn {
    width: 100%;
  }

  .commission-assign-actions .btn {
    justify-content: center;
  }

  .settle-paid-card {
    flex-direction: column;
    align-items: stretch;
  }

  .settle-paid-card .btn {
    width: 100%;
    justify-content: center;
  }
}

.account-tile-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.account-tile-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sd-black);
  background: var(--sd-yellow);
}

.account-block {
  margin-bottom: 1.5rem;
}

.account-block-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sd-muted);
}

.account-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.account-tile {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: var(--sd-radius-sm);
  background: var(--sd-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  min-height: 118px;
}

.account-tile:hover {
  border-color: rgba(255, 192, 0, 0.35);
  transform: translateY(-2px);
  background: var(--sd-surface-2);
}

.account-tile-primary {
  border-color: rgba(255, 192, 0, 0.28);
  background:
    linear-gradient(160deg, rgba(255, 192, 0, 0.14), transparent 60%),
    var(--sd-surface);
}

.account-tile-label {
  font-weight: 600;
  font-size: 0.98rem;
}

.account-tile-desc {
  color: var(--sd-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.account-tile-go {
  margin-top: auto;
  padding-top: 0.35rem;
  color: var(--sd-yellow);
  font-size: 0.78rem;
  font-weight: 600;
}

.account-settings-grid {
  display: grid;
  gap: 1rem;
}

.affiliate-settings-grid {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 720px) {
  .affiliate-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .affiliate-settings-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.account-settings-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 860px) {
  .account-settings-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.account-settings-span {
  grid-column: 1 / -1;
}

.account-settings-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
}

.account-settings-card h3 {
  margin: 0 0 1rem;
  flex-shrink: 0;
}

.account-settings-fields {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.account-settings-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.account-settings-card .field:last-child {
  margin-bottom: 1rem;
}

/* Keep password meter space so cards stay even */
.account-settings-card .pwd-meter {
  margin-top: 0.4rem;
}

.login-activity {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.login-activity li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--sd-border, rgba(255, 255, 255, 0.08));
}

.login-activity li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.login-activity li strong {
  margin-right: 0.4rem;
}

.login-activity-meta {
  color: var(--sd-muted);
  font-size: 0.85rem;
}

/* Sales dashboard */
.sales-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.sales-stat {
  padding: 0.95rem 1rem;
  border-radius: var(--sd-radius-sm);
  background: var(--sd-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

a.sales-stat {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

a.sales-stat:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

a.sales-stat.is-active {
  border-color: rgba(94, 234, 164, 0.35);
  background: rgba(94, 234, 164, 0.06);
}

.sales-stat span {
  display: block;
  color: var(--sd-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.sales-stat strong {
  font-size: 1.05rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .field--compact {
    max-width: 100%;
  }

  .callback-list {
    padding-left: 1rem;
    font-size: 0.78rem;
  }

  .callback-list code {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .sales-summary .sales-stat:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.sales-order-row {
  grid-template-columns: 1fr auto;
}

.sales-order-row .upcoming-meta {
  min-width: 0;
}

.sales-order-row .upcoming-meta p {
  overflow-wrap: anywhere;
}

/* Settlements */
.settle-help-card {
  margin-bottom: 1.5rem;
}

.settle-help-card h3 {
  margin-bottom: 0.55rem;
}

.settle-steps {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--sd-muted);
  font-size: 0.88rem;
  display: grid;
  gap: 0.35rem;
}

.settle-list {
  display: grid;
  gap: 0.85rem;
}

.settle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.1rem;
  border-radius: var(--sd-radius);
  background: var(--sd-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.settle-card-link {
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.settle-card-link:hover {
  border-color: rgba(255, 192, 0, 0.35);
  transform: translateY(-2px);
  background: var(--sd-surface-2);
}

.settle-card.is-paid,
.settle-card-link.is-paid {
  border-color: rgba(255, 192, 0, 0.22);
}

.settle-card-main {
  flex: 1;
  min-width: 220px;
  display: grid;
  gap: 0.35rem;
}

.settle-card-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.settle-card-top h3 {
  margin: 0;
  font-size: 1rem;
}

.settle-card-meta {
  margin: 0;
  color: var(--sd-muted);
  font-size: 0.8rem;
}

.settle-card-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  font-size: 0.8rem;
  color: var(--sd-muted);
}

.settle-card-amounts strong {
  color: var(--sd-white);
  font-weight: 600;
}

.settle-card-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}

.settle-card-action-form {
  margin: 0;
}

@media (max-width: 720px) {
  .section-head-actions:has(> :nth-child(3):last-child) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head-actions:has(> :nth-child(3):last-child) .btn,
  .section-head .section-head-actions:has(> :nth-child(3):last-child) a.btn {
    flex: none;
    width: 100%;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .section-head-actions:has(> :nth-child(n+4)) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head-actions:has(> :nth-child(n+4)) .btn,
  .section-head .section-head-actions:has(> :nth-child(n+4)) a.btn {
    flex: none;
    width: 100%;
    white-space: normal;
  }

  .section-head-actions:has(> :nth-child(2):last-child) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head-actions:has(> :nth-child(2):last-child) .btn,
  .section-head .section-head-actions:has(> :nth-child(2):last-child) a.btn {
    flex: none;
    width: 100%;
    white-space: normal;
  }

  .field label {
    overflow-wrap: anywhere;
  }

  .settle-help-card,
  .settle-steps,
  .settle-list,
  .settle-card,
  .settle-card-link {
    min-width: 0;
    max-width: 100%;
  }

  .settle-steps {
    overflow-wrap: anywhere;
    padding-left: 1rem;
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .settle-card,
  .settle-card-link {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .settle-card-main {
    min-width: 0;
    width: 100%;
  }

  .settle-card-top h3,
  .settle-card-meta,
  .settle-card-amounts {
    overflow-wrap: anywhere;
  }

  .settle-card-amounts {
    width: 100%;
  }

  .settle-card-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    align-items: stretch;
  }

  .settle-card-action-form,
  .settle-card-actions form {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .settle-card-actions .btn,
  .settle-card-actions form .btn {
    width: 100%;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    line-height: 1.2;
    white-space: normal;
  }

  .settle-card-link .live-control-open {
    align-self: flex-start;
  }
}

.invoice-filters {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.invoice-search {
  margin-bottom: 1rem;
}

.invoice-card {
  align-items: flex-start;
  flex-wrap: nowrap;
}

.invoice-card .settle-card-top h3 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.invoice-card .settle-card-top h3 a {
  color: inherit;
  text-decoration: none;
}

.invoice-card .settle-card-top h3 a:hover {
  color: var(--sd-yellow);
}

.invoice-card-actions {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 0.5rem;
}

.invoice-card-actions .btn {
  white-space: nowrap;
  min-width: 4.5rem;
  justify-content: center;
}

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

  .live-control-lead {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .invoice-card {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .settle-card.invoice-card .invoice-card-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 0.5rem;
  }

  .invoice-card-actions .price {
    flex: 1 1 auto;
    min-width: 0;
  }

  .settle-card.invoice-card .invoice-card-actions .btn,
  .invoice-card-actions .btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 5rem;
    max-width: none;
    min-height: 2.25rem;
    padding: 0.4rem 1.1rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }
}

.settle-bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}

.settle-paid-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-color: rgba(255, 192, 0, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 192, 0, 0.1), transparent 55%),
    var(--sd-surface);
}

/* Organizers */
.org-card {
  display: grid;
  gap: 0.55rem;
  padding: 1.05rem 1.1rem;
  border-radius: var(--sd-radius);
  background: var(--sd-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  min-height: 168px;
}

.org-card:hover {
  border-color: rgba(255, 192, 0, 0.35);
  transform: translateY(-2px);
  background: var(--sd-surface-2);
}

.org-card.is-inactive {
  opacity: 0.72;
}

.org-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.org-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--sd-black);
  background: var(--sd-yellow);
}

.org-avatar--logo {
  background-color: #1a1a1c;
  background-size: cover;
  background-position: center;
}

.org-page-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

/* Home organizer cards */
.home-organizers-section {
  margin-top: 0.5rem;
}

.card-row--org {
  gap: 0.85rem;
}

.card-row--org .org-home-card {
  flex: 0 0 min(46vw, 168px);
  width: min(46vw, 168px);
}

.org-public-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
  align-items: stretch;
}

.org-public-grid .org-home-card {
  width: 100%;
  min-width: 0;
}

.org-public-grid .org-home-card-body {
  padding: 0.7rem 0.75rem 0.85rem;
}

.org-public-grid .org-home-card-body h3 {
  font-size: 0.9rem;
}

.org-public-grid .org-home-card-body p {
  font-size: 0.72rem;
}

@media (min-width: 640px) {
  .org-public-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
  }
}

@media (min-width: 900px) {
  .org-public-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .org-public-grid .org-home-card-body h3 {
    font-size: 0.92rem;
  }
}

@media (min-width: 1100px) {
  .org-public-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.05rem;
  }

  .org-public-grid .org-home-card-body h3 {
    font-size: 0.88rem;
  }

  .org-public-grid .org-home-card-body p {
    font-size: 0.7rem;
  }
}

.org-home-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--sd-radius);
  overflow: hidden;
  background: var(--sd-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.org-home-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 192, 0, 0.4);
}

.org-home-card-logo {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1c;
  transition: transform 0.35s ease;
  will-change: transform;
}

.org-home-card:hover .org-home-card-logo {
  transform: scale(1.06);
}

.org-home-card:hover .org-home-card-logo--fallback {
  transform: none; /* keep initial letter steady */
}

.org-home-card-logo--fallback {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--sd-black);
  background: var(--sd-yellow);
}

.org-home-card-body {
  padding: 0.7rem 0.75rem 0.85rem;
}

.org-home-card-body h3 {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.org-home-card-body p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--sd-muted);
}

@media (min-width: 900px) {
  .card-row--org .org-home-card {
    flex-basis: 180px;
    width: 180px;
  }
}

.org-page-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1a1a1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.org-page-title h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.2;
  word-break: break-word;
}

.org-card-title {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.org-card-title h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.org-card .live-control-open {
  margin-top: auto;
}

.commission-assign-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  align-items: end;
  margin-top: 0.75rem;
}

.commission-assign-form .field input,
.commission-assign-form .field select {
  box-sizing: border-box;
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  line-height: 1.25;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.commission-assign-form .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239a9a9a' d='M1.4 1.4L6 6l4.6-4.6L12 2.8 6 8.8 0 2.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
}

.commission-assign-form .field input[type="number"] {
  -moz-appearance: textfield;
}

.commission-assign-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}

.commission-assign-actions .btn {
  height: 2.75rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
}

.settle-card-warn {
  border-color: rgba(255, 192, 0, 0.28);
}

.commission-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  padding: 1rem 1.1rem;
  border-radius: var(--sd-radius);
  background: var(--sd-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.commission-filter-bar .field {
  margin: 0;
  flex: 1;
  min-width: 160px;
}

.commission-filter-bar .field input,
.commission-filter-bar .field select {
  box-sizing: border-box;
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  line-height: 1.25;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.commission-filter-bar .field input[type="search"] {
  /* Keep search same size as select (browser search chrome can inflate height) */
  -webkit-appearance: none;
}

.commission-filter-bar .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239a9a9a' d='M1.4 1.4L6 6l4.6-4.6L12 2.8 6 8.8 0 2.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
}

.commission-filter-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: 0.1rem;
}

.commission-filter-actions .btn {
  height: 2.75rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 720px) {
  .section-subhead {
    flex-direction: column;
    align-items: stretch;
  }

  .live-tier-row {
    min-width: 0;
    max-width: 100%;
  }

  .commission-filter-bar {
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    max-width: 100%;
  }

  .commission-filter-bar .field {
    min-width: 0;
    width: 100%;
    flex: none;
  }

  .commission-filter-bar .field input,
  .commission-filter-bar .field select {
    font-size: 16px;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 2.75rem;
  }

  .commission-filter-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
  }

  .commission-filter-actions .btn {
    width: 100%;
    height: auto;
    min-height: 2.25rem;
    justify-content: center;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
  }

  .commission-assign-form {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    max-width: 100%;
  }

  .commission-assign-form .field,
  .commission-assign-form .field input,
  .commission-assign-form .field select {
    min-width: 0;
    max-width: 100%;
  }

  .commission-assign-form .field input,
  .commission-assign-form .field select {
    font-size: 16px;
    height: auto;
    min-height: 2.75rem;
  }

  .commission-assign-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .commission-assign-actions .btn {
    width: 100%;
    height: auto;
    min-height: 2.25rem;
    justify-content: center;
    white-space: normal;
    font-size: 0.78rem;
    padding: 0.45rem 0.75rem;
  }
}

.sd-pager {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}

.sd-pager ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sd-pager a,
.sd-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--sd-surface);
  color: var(--sd-muted);
  font-size: 0.85rem;
}

.sd-pager a:hover {
  border-color: rgba(255, 192, 0, 0.35);
  color: var(--sd-yellow);
}

.sd-pager .active span,
.sd-pager li.active a {
  background: var(--sd-yellow-soft);
  border-color: rgba(255, 192, 0, 0.4);
  color: var(--sd-yellow);
  font-weight: 600;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slowZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@keyframes heroKenBurnsWide {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide .hero-media,
  .hero-slide.is-active .hero-media,
  .hero-fullbleed .hero-slide.is-active .hero-media,
  .hero:not(.hero-carousel) .hero-media {
    animation: none;
    transform: scale(1.02);
  }

  .hero-slide {
    transition-duration: 0.01ms;
  }
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }

  .bottom-nav {
    display: none;
  }

  .site-footer {
    padding-bottom: 0;
  }

  .hero-content {
    padding: 2.2rem;
  }

  .hero.hero-fullbleed {
    height: calc(100svh - var(--sd-header-h));
    height: calc(100dvh - var(--sd-header-h));
  }

  body.is-home .hero.hero-fullbleed {
    height: 100svh;
    height: 100dvh;
  }

  .detail-hero.detail-hero-fullbleed {
    height: 100svh;
    height: 100dvh;
  }

  .detail-hero.detail-hero-fullbleed .detail-hero-content {
    padding-inline: clamp(1.5rem, 4vw, 4.5rem);
    padding-bottom: clamp(2rem, 4vw, 3.25rem);
  }

  .hero-fullbleed .hero-content,
  .hero-fullbleed.hero-carousel.has-multiple .hero-content {
    padding-inline: clamp(1.5rem, 4vw, 4.5rem);
    padding-bottom: clamp(2rem, 4vw, 3.25rem);
  }

  .hero-fullbleed .hero h1 {
    font-size: clamp(1.85rem, 3.2vw, 3.1rem);
    max-width: 18ch;
  }

  .hero-fullbleed .hero p {
    font-size: clamp(0.92rem, 1.2vw, 1.05rem);
    max-width: 48ch;
  }

  .hero-carousel.has-multiple .hero-content {
    padding-left: 4.25rem;
    padding-right: 4.25rem;
  }

  .hero-nav {
    left: 0.5rem;
    right: 0.5rem;
  }

  .card-row:not(.card-row--scroll) {
    grid-auto-flow: unset;
    grid-template-columns: repeat(5, 1fr);
    overflow: visible;
  }

  .section--scroll-row .card-row--scroll {
    grid-auto-flow: column;
    grid-template-columns: unset;
    overflow-x: auto;
    overflow-y: hidden; /* required with overflow-x; padding above avoids hover clip */
  }

  .section--scroll-row .card-row--lg {
    grid-auto-columns: 320px;
  }

  .section--scroll-row .card-row--popular {
    grid-auto-columns: 268px;
  }

  .cat-row:not(.cat-row-scroll) {
    grid-auto-flow: unset;
    grid-template-columns: repeat(5, 1fr);
    overflow: visible;
  }
}

/* Confirm modal (logout, etc.) */
body.sd-modal-open {
  overflow: hidden;
}

.sd-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.sd-modal[hidden] {
  display: none;
}

.sd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.sd-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: var(--sd-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--sd-surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.sd-modal-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.35;
}

.sd-modal-card p {
  margin: 0;
  color: var(--sd-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.sd-modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.grant-list-head {
  flex: 1;
  min-width: 0;
  margin: 0;
  align-items: flex-start;
}

.grant-list-main {
  min-width: 0;
}

.grant-list-main .settle-card-meta {
  overflow-wrap: anywhere;
}

.grant-list-actions .btn {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
}

.grant-access-filters .field {
  margin: 0;
  flex: 1;
  min-width: 180px;
}

@media (max-width: 720px) {
  .grant-access-page .sales-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .grant-access-page .sales-stat {
    padding: 0.7rem 0.5rem;
  }

  .grant-access-page .sales-stat span {
    font-size: 0.58rem;
    letter-spacing: 0.02em;
  }

  .grant-access-page .sales-stat strong {
    font-size: 0.95rem;
  }

  .grant-access-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .grant-access-filters .field {
    min-width: 0;
    width: 100%;
  }

  .grant-access-filters .commission-filter-actions {
    width: 100%;
    padding-bottom: 0;
  }

  .grant-access-filters .commission-filter-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .grant-list-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 0.9rem;
  }

  .grant-list-head {
    width: 100%;
  }

  .grant-list-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .grant-list-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .grant-list-actions .btn:only-child {
    grid-column: 1 / -1;
  }

  .sd-modal {
    padding: 0.75rem;
    align-items: end;
  }

  .sd-modal.sd-modal--center {
    align-items: center;
    justify-items: center;
    padding: 1.25rem;
  }

  .sd-modal-card {
    width: 100%;
  }

  .sd-modal--center .sd-modal-card {
    width: min(100%, 22rem);
    margin-inline: auto;
  }

  .sd-modal-card .field input {
    width: 100%;
    box-sizing: border-box;
  }

  .sd-modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .sd-modal-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-card:hover .event-card-media,
  .org-home-card:hover .org-home-card-logo,
  .rail-card:hover .rail-card-media {
    transform: none;
  }

  .event-card-media,
  .org-home-card-logo,
  .rail-card-media {
    transition: none;
  }
}
