html, body { max-width: 100%; }

body {
  background-color: #FFF8FA;
  background-image:
    radial-gradient(circle at 18% 10%, rgba(233, 30, 140, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(255, 122, 89, 0.10) 0%, transparent 45%),
    linear-gradient(180deg, #FFF3F7 0%, #FFFDFB 55%, #FFFFFF 100%);
  background-attachment: fixed;
  color: #1D1D1F;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}
html.dark body {
  background-color: #09090C;
  background-image:
    radial-gradient(circle at 18% 10%, rgba(233, 30, 140, 0.18) 0%, transparent 48%),
    radial-gradient(circle at 85% 20%, rgba(255, 122, 89, 0.14) 0%, transparent 48%),
    linear-gradient(180deg, #09090C 0%, #0F0F14 55%, #070709 100%);
  background-attachment: fixed;
  color: #F5F5F7;
}
a { color: #E91E8C; text-decoration: none; }
a:hover { color: #D6146E; }

.text-floral {
  background: linear-gradient(100deg, #D6146E 0%, #E91E8C 35%, #FF4D6D 60%, #FF8A50 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.btn-gradient {
  background: linear-gradient(120deg, #D6146E 0%, #E91E8C 50%, #FF7A59 100%);
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-gradient:hover { filter: brightness(1.08); box-shadow: 0 12px 28px -6px rgba(233, 30, 140, 0.45); transform: translateY(-2px); }
.btn-gradient:active { transform: translateY(0); }
.btn-gradient:disabled { filter: none; box-shadow: none; transform: none; }

.apple-glass-light {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(29, 29, 31, 0.08);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.6), 0 20px 40px -14px rgba(233, 30, 140, 0.12);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
html.dark .apple-glass-light {
  background: rgba(18, 18, 24, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.09), 0 24px 50px -14px rgba(0, 0, 0, 0.7);
}

.apple-glass-pill-light {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(29, 29, 31, 0.08);
  box-shadow: inset 0 1px 0.5px 0 rgba(255, 255, 255, 0.8), 0 10px 24px -6px rgba(0, 0, 0, 0.04);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
html.dark .apple-glass-pill-light {
  background: rgba(22, 22, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0.5px 0 rgba(255, 255, 255, 0.12), 0 10px 28px -6px rgba(0, 0, 0, 0.55);
}

.apple-glass-button-light {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(29, 29, 31, 0.1);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.7), 0 12px 26px -10px rgba(233, 30, 140, 0.18);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.apple-glass-button-light:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(233, 30, 140, 0.4);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.85), 0 0 25px rgba(233, 30, 140, 0.2);
  transform: translateY(-2px);
}
html.dark .apple-glass-button-light {
  background: rgba(28, 28, 35, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #F5F5F7;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.1), 0 12px 26px -10px rgba(0, 0, 0, 0.5);
}
html.dark .apple-glass-button-light:hover {
  background: rgba(38, 38, 48, 0.95);
  border-color: rgba(233, 30, 140, 0.5);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.16), 0 0 25px rgba(233, 30, 140, 0.35);
}
.apple-glass-button-light:active { transform: translateY(0); }

/* Schedule card in Lato (incl. mono/sans utility text inside) */
#schedule-card, #schedule-card * { font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif !important; }

/* Event detail popup: plain white sheet, Apple system type */
.event-sheet { background: #FFFFFF; color: #1D1D1F; border: 1px solid rgba(0, 0, 0, 0.06); backdrop-filter: none; -webkit-backdrop-filter: none; }
.event-sheet, .event-sheet * { font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif !important; letter-spacing: normal; }
.event-sheet h2 { letter-spacing: -0.02em; background-image: linear-gradient(100deg, #D6146E 0%, #E91E8C 35%, #FF4D6D 60%, #FF8A50 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; display: inline-block; padding-right: 0.06em; }
.event-sheet .uppercase { text-transform: none; }
.event-sheet .apple-glass-pill-light, .event-sheet .apple-glass-light { background: #F5F5F7 !important; border-color: transparent !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.dark .event-sheet { background: #1C1C1E; color: #F5F5F7; border-color: rgba(255, 255, 255, 0.08); }
html.dark .event-sheet .apple-glass-pill-light, html.dark .event-sheet .apple-glass-light { background: #2C2C2E !important; }

/* Profile popup: plain white sheet */
.profile-sheet { background: #FFFFFF; color: #1D1D1F; border: 1px solid rgba(0, 0, 0, 0.06); backdrop-filter: none; -webkit-backdrop-filter: none; }
.profile-sheet .apple-glass-pill-light, .profile-sheet .apple-glass-light { background: #F5F5F7 !important; border-color: transparent !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.dark .profile-sheet { background: #1C1C1E; color: #F5F5F7; border-color: rgba(255, 255, 255, 0.08); }
html.dark .profile-sheet .apple-glass-pill-light, html.dark .profile-sheet .apple-glass-light { background: #2C2C2E !important; }

/* Event cards: Apple-style white tiles */
.event-tile { background: #FFFFFF; box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.08); }
.event-tile:hover { box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.16); }
.event-tile { will-change: transform; scroll-snap-align: start; }
.event-tile:focus-visible { outline: 2px solid #E91E8C; outline-offset: 3px; }
html.dark .event-tile { background: #15151B; box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.5); }
html.dark .event-tile:hover { box-shadow: 2px 4px 18px rgba(0, 0, 0, 0.7); }

/* Horizontal event rows */
.track-row {
  --shelf-pad: 12px; --shelf-bleed: 0px;
  margin-left: calc(-1 * var(--shelf-bleed)); margin-right: calc(-1 * var(--shelf-bleed));
  padding-left: var(--shelf-pad); padding-right: var(--shelf-pad);
  scroll-padding-left: var(--shelf-pad); scroll-padding-right: var(--shelf-pad);
  scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.track-row.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.track-row.is-dragging .event-tile { pointer-events: none; }
.track-arrow:hover { background-color: rgba(223, 223, 227, 0.85) !important; }
#arenas-section { overflow-x: clip; }
.track-row::-webkit-scrollbar { display: none; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.apple-glass-pill {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0.5px 0 rgba(255, 255, 255, 0.35);
}

@keyframes sheenSweep {
  0% { transform: translateX(-150%) rotate(25deg); }
  100% { transform: translateX(180%) rotate(25deg); }
}
.animate-sheen { animation: sheenSweep 2.4s linear infinite; }

@keyframes apocFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes apocSlideIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.apoc-fade { animation: apocFadeIn 0.2s ease; }
.apoc-slide { animation: apocSlideIn 0.2s ease; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FFF3F7; }
::-webkit-scrollbar-thumb { background: rgba(233, 30, 140, 0.25); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(233, 30, 140, 0.45); }
html.dark ::-webkit-scrollbar-track { background: #09090C; }
html.dark ::-webkit-scrollbar-thumb { background: rgba(233, 30, 140, 0.45); }
html.dark ::-webkit-scrollbar-thumb:hover { background: rgba(233, 30, 140, 0.65); }

.apoc-input {
  width: 100%; padding: 0.625rem 0.875rem; border-radius: 0.75rem; font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(29, 29, 31, 0.14); color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.apoc-input:focus { outline: none; border-color: #E91E8C; box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.15); }
html.dark .apoc-input { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.14); }
html.dark .apoc-input option { background: #16161C; }

@media print {
  body * { visibility: hidden !important; }
  #printable-pass, #printable-pass * { visibility: visible !important; }
  #printable-pass { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}
