/* ============================================
   REPLAY — Premium Sports Video Platform
   Design System v1.0
   Inspired by Netflix, GoPro, Red Bull, Nike
   ============================================ */

/* === CUSTOM PROPERTIES === */
:root {
  /* Colors */
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-elevated: #1A1A1A;
  --bg-glass: rgba(255,255,255,0.04);
  --bg-glass-hover: rgba(255,255,255,0.08);

  --accent: #FF3C00;
  --accent-hover: #FF5722;
  --accent-soft: #FF6B35;
  --accent-glow: rgba(255,60,0,0.25);
  --accent-glow-strong: rgba(255,60,0,0.5);

  --text-primary: #FFFFFF;
  --text-secondary: #B3B3B3;
  --text-muted: #666666;
  --text-inverse: #0A0A0A;

  --success: #00D26A;
  --success-glow: rgba(0,210,106,0.3);
  --warning: #FFB800;
  --error: #FF3B5C;

  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.16);
  --border-accent: rgba(255,60,0,0.4);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Space Grotesk', var(--font-primary);

  /* Spacing */
  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px var(--accent-glow);
  --shadow-glow-strong: 0 0 40px var(--accent-glow-strong);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;

  /* Z-index layers */
  --z-base: 1;
  --z-sticky: 100;
  --z-overlay: 500;
  --z-modal: 1000;
  --z-toast: 1500;
}


/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select {
  font-family: inherit;
  font-size: inherit;
}

ul, ol { list-style: none; }


/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }
html { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent; }


/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.125rem; }

.text-accent {
  font-family: var(--font-accent);
  letter-spacing: -0.03em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-center { text-align: center; }


/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.page__content {
  flex: 1;
}


/* === HEADER === */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  transition: background var(--duration-normal);
}

.header--scrolled {
  background: rgba(10,10,10,0.95);
  box-shadow: var(--shadow-md);
}

.logo {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo__icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo__icon svg {
  width: 18px;
  height: 18px;
  fill: white;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast);
  background: var(--bg-glass);
}

.back-btn:hover, .back-btn:active {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

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


/* === HERO SECTION === */
.hero {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255,60,0,0.12), transparent),
    var(--bg-primary);
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  font-weight: 400;
}

.hero__sports {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.hero__sport {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero__sport-icon {
  font-size: 1.2rem;
}


/* === SECTION === */
.section {
  padding: var(--space-2xl) 0;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.section__title {
  font-size: 1.25rem;
  font-weight: 700;
}

.section__count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}


/* === CARD — COURT === */
.courts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .courts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .courts-grid { grid-template-columns: repeat(3, 1fr); }
}

.court-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.court-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.court-card:hover, .court-card:active {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.court-card:hover::before,
.court-card:active::before {
  opacity: 1;
}

.court-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.court-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.court-card__info {
  flex: 1;
  min-width: 0;
}

.court-card__name {
  font-size: 1.125rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.court-card__sport {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.court-card__stats {
  display: flex;
  gap: var(--space-lg);
}

.court-card__stat {
  display: flex;
  flex-direction: column;
}

.court-card__stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-accent);
}

.court-card__stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.court-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--duration-fast);
}

.court-card:hover .court-card__cta {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}


/* === CARD — VIDEO === */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .videos-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .videos-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
}

.video-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
}

.video-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.video-card__thumbnail {
  position: relative;
  aspect-ratio: 9 / 12;
  background: var(--bg-elevated);
  overflow: hidden;
}

.video-card__thumbnail video,
.video-card__thumbnail canvas,
.video-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--duration-normal);
  border: 2px solid rgba(255,255,255,0.2);
}

.video-card__play-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
  margin-left: 2px;
}

.video-card:hover .video-card__play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-card__duration {
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-sm);
  padding: 2px var(--space-sm);
  background: rgba(0,0,0,0.75);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-accent);
}

.video-card__lock {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 3px var(--space-sm);
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.video-card__lock--locked {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  color: var(--warning);
  border: 1px solid rgba(255,184,0,0.3);
}

.video-card__lock--unlocked {
  background: rgba(0,210,106,0.15);
  color: var(--success);
  border: 1px solid rgba(0,210,106,0.3);
}

.video-card__body {
  padding: var(--space-md);
}

.video-card__time {
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--font-accent);
  margin-bottom: var(--space-2xs);
}

.video-card__date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.video-card__action {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  transition: all var(--duration-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.video-card__action--buy {
  background: var(--accent);
  color: white;
}

.video-card__action--buy:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-glow);
}

.video-card__action--download {
  background: var(--success);
  color: white;
}

.video-card__action--download:hover {
  box-shadow: 0 0 20px var(--success-glow);
}


/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background: var(--accent);
  color: white;
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn--secondary {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn--secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
}

.btn--ghost {
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
}

.btn--ghost:hover { color: var(--text-primary); }

.btn--large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  min-height: 56px;
}

.btn--block {
  width: 100%;
}

.btn--success {
  background: var(--success);
  color: white;
}

.btn--success:hover {
  box-shadow: 0 0 30px var(--success-glow);
}

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


/* === FILTER BAR === */
.filter-bar {
  position: sticky;
  top: 57px;
  z-index: calc(var(--z-sticky) - 1);
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-bar__inner {
  display: flex;
  gap: var(--space-sm);
  padding: 0 var(--space-md);
  min-width: min-content;
}

.chip {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-secondary);
  transition: all var(--duration-fast);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.chip:hover { border-color: var(--border-hover); color: var(--text-primary); }

.chip--active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.chip--date {
  background: var(--bg-glass);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.8rem;
  border-radius: var(--radius-full);
  min-height: 36px;
  color-scheme: dark;
}

.chip--date::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
}


/* === CUSTOM VIDEO PLAYER === */
.player-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-slow) var(--ease-out);
}

.player-overlay--open {
  opacity: 1;
  visibility: visible;
}

.player__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  flex-shrink: 0;
}

.player__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast);
}

.player__close:hover { background: var(--bg-glass-hover); }
.player__close svg { width: 20px; height: 20px; fill: white; }

.player__container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  position: relative;
}

.player__video-wrap {
  position: relative;
  width: 100%;
  max-width: 720px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
}

.player__video-wrap video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #000;
}

.player__watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.player__watermark-text {
  font-family: var(--font-accent);
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 700;
  color: rgba(255,255,255,0.15);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transform: rotate(-20deg);
  white-space: nowrap;
}

.player__watermark--hidden { display: none; }

.player__controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl) var(--space-md) var(--space-md);
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  z-index: 3;
}

.player__progress {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  transition: height var(--duration-fast);
}

.player__progress:hover { height: 6px; }

.player__progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width 0.1s linear;
  position: relative;
}

.player__progress-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.player__progress:hover .player__progress-fill::after {
  opacity: 1;
}

.player__buttons {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.player__btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--duration-fast);
}

.player__btn:hover { background: rgba(255,255,255,0.1); }
.player__btn svg { width: 20px; height: 20px; fill: white; }

.player__time {
  font-size: 0.8rem;
  font-family: var(--font-accent);
  color: var(--text-secondary);
  margin-left: auto;
}

.player__cta-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal);
}

.player__cta-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.player__cta-price {
  font-family: var(--font-accent);
  font-size: 2rem;
  font-weight: 700;
}

.player__footer {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
  justify-content: center;
}


/* === PIX CHECKOUT OVERLAY === */
.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--ease-out);
}

.checkout-overlay--open {
  transform: translateY(0);
}

.checkout__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.checkout__title {
  font-size: 1rem;
  font-weight: 700;
}

.checkout__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout__close svg { width: 18px; height: 18px; fill: var(--text-secondary); }

.checkout__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

.checkout__video-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 400px;
}

.checkout__video-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  overflow: hidden;
  flex-shrink: 0;
}

.checkout__video-thumb img,
.checkout__video-thumb canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout__video-details h4 {
  font-size: 0.9rem;
  font-weight: 600;
}

.checkout__video-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.checkout__price {
  text-align: center;
}

.checkout__price-value {
  font-family: var(--font-accent);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.checkout__price-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.checkout__qr-container {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  box-shadow: var(--shadow-lg);
  position: relative;
  min-width: 220px;
  min-height: 220px;
}

.checkout__qr-container img {
  width: 180px;
  height: 180px;
}

.checkout__qr-loading {
  color: var(--text-inverse);
  font-size: 0.85rem;
  font-weight: 600;
  position: absolute;
}

.checkout__copy-section {
  width: 100%;
  max-width: 400px;
}

.checkout__copy-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--duration-fast);
}

.checkout__copy-btn:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.checkout__copy-btn--copied {
  border-color: var(--success) !important;
  color: var(--success) !important;
}

.checkout__copy-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.checkout__copy-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.checkout__status {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  width: 100%;
  max-width: 400px;
  text-align: center;
  justify-content: center;
}

.checkout__status--waiting {
  background: rgba(255,184,0,0.1);
  border: 1px solid rgba(255,184,0,0.2);
  color: var(--warning);
}

.checkout__status--success {
  background: rgba(0,210,106,0.1);
  border: 1px solid rgba(0,210,106,0.2);
  color: var(--success);
}

.checkout__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

.checkout__status--waiting .checkout__status-dot {
  background: var(--warning);
}


/* === SUCCESS SCREEN === */
.success-screen {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  text-align: center;
  padding: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-slow);
}

.success-screen--open {
  opacity: 1;
  visibility: visible;
}

.success-screen__check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: success-pop 0.6s var(--ease-spring);
  box-shadow: 0 0 60px var(--success-glow);
}

.success-screen__check svg {
  width: 40px;
  height: 40px;
  fill: white;
  animation: check-draw 0.4s 0.3s both;
}

.success-screen h2 {
  font-size: 1.75rem;
}

.success-screen p {
  color: var(--text-secondary);
  max-width: 300px;
}

.success-screen__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
  max-width: 320px;
}

.success-screen__share {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-md);
}

.share-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
}

.share-btn--whatsapp { background: #25D366; }
.share-btn--instagram { background: linear-gradient(135deg, #833AB4, #E1306C, #F77737); }
.share-btn svg { width: 22px; height: 22px; fill: white; }

.share-btn:hover { transform: scale(1.1); }


/* === TOAST === */
.toast {
  position: fixed;
  bottom: calc(var(--space-xl) + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: var(--z-toast);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all var(--duration-normal) var(--ease-spring);
  white-space: nowrap;
  max-width: 90vw;
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast--success { border-color: rgba(0,210,106,0.3); }
.toast--error { border-color: rgba(255,59,92,0.3); }


/* === SKELETON LOADING === */
.skeleton {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.04),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

.skeleton--card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

.skeleton--thumbnail {
  aspect-ratio: 9/12;
}

.skeleton--text {
  height: 16px;
  border-radius: var(--radius-sm);
  margin: var(--space-sm) var(--space-md);
}

.skeleton--text-sm {
  height: 12px;
  width: 60%;
  border-radius: var(--radius-sm);
  margin: var(--space-sm) var(--space-md);
}

.skeleton--btn {
  height: 36px;
  border-radius: var(--radius-md);
  margin: var(--space-md);
}


/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  max-width: 400px;
  margin: 0 auto;
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  opacity: 0.4;
}

.empty-state h3 {
  margin-bottom: var(--space-sm);
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
}


/* === FOOTER === */
.footer {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  border-top: 1px solid var(--border);
  margin-top: var(--space-3xl);
}

.footer__text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__brand {
  color: var(--accent);
  font-weight: 600;
}


/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow-strong); }
  50% { box-shadow: 0 0 20px 8px var(--accent-glow); }
}

@keyframes success-pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes check-draw {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes confetti-fall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.animate-in {
  animation: fadeInUp 0.6s var(--ease-out) both;
}

.animate-in--delay-1 { animation-delay: 0.1s; }
.animate-in--delay-2 { animation-delay: 0.2s; }
.animate-in--delay-3 { animation-delay: 0.3s; }
.animate-in--delay-4 { animation-delay: 0.4s; }
.animate-in--delay-5 { animation-delay: 0.5s; }

.pulse-glow {
  animation: pulse-glow 2s infinite;
}


/* === CONFETTI === */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: calc(var(--z-modal) + 1);
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  top: -10px;
  animation: confetti-fall 3s linear forwards;
}


/* === UTILITIES === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.w-full { width: 100%; }
.hidden { display: none !important; }


/* === MOBILE OPTIMIZATIONS === */
@media (max-width: 639px) {
  .header { padding: var(--space-sm) var(--space-md); }
  .hero { padding: var(--space-2xl) var(--space-md) var(--space-xl); }
  .hero__sports { gap: var(--space-md); }
  .section { padding: var(--space-xl) 0; }

  .court-card { padding: var(--space-md); }
  .court-card__icon { width: 40px; height: 40px; font-size: 1.2rem; }

  .videos-grid { gap: var(--space-sm); }
  .video-card__body { padding: var(--space-sm) var(--space-md) var(--space-md); }
  .video-card__time { font-size: 1rem; }
  .video-card__action { padding: var(--space-sm); font-size: 0.75rem; }

  .player__header { padding: var(--space-sm) var(--space-md); }
  .player__container { padding: var(--space-sm); }

  .checkout__body { padding: var(--space-lg) var(--space-md); }
  .checkout__price-value { font-size: 2.5rem; }
}

/* Safe area for devices with notch */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer { padding-bottom: calc(var(--space-2xl) + env(safe-area-inset-bottom)); }
  .checkout-overlay { padding-bottom: env(safe-area-inset-bottom); }
  .player-overlay { padding-bottom: env(safe-area-inset-bottom); }
}
