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

:root {
  --letter-spacing: -0.2px;
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.32s;
  --dur-fast: 0.2s;
  --dur-slow: 0.45s;
  --page-text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  --page-drop-shadow: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.55));
  --page-glow-pad: 32px;
  --app-height: 100dvh;
}

html {
  width: 100%;
  height: var(--app-height, 100%);
  min-height: 100%;
  min-height: -webkit-fill-available;
}

html, body {
  width: 100%;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #0a0a0a;
}

body {
  min-height: var(--app-height, 100%);
  min-height: -webkit-fill-available;
  height: var(--app-height, 100%);
}

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

/* Front: pas de sélection / focus bleus navigateur */
body,
.overlay,
.overlay * {
  -webkit-tap-highlight-color: transparent;
}

.overlay,
.overlay * {
  outline: none;
  -webkit-user-select: none;
  user-select: none;
}

.overlay ::selection {
  background: transparent;
  color: inherit;
}

.overlay ::-moz-selection {
  background: transparent;
  color: inherit;
}

/* Garder la sélection dans l’admin */
#admin-panel,
#admin-panel * {
  -webkit-user-select: text;
  user-select: text;
}

#admin-panel input,
#admin-panel textarea,
#admin-panel select {
  -webkit-user-select: text;
  user-select: text;
}

/* ====== BACKGROUND IMAGE ====== */
.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--app-height, 100dvh);
  min-height: -webkit-fill-available;
  z-index: 0;
  background-color: #0a0a0a;
  background-image: url('bg.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: background-position var(--dur-slow) var(--ease);
  isolation: isolate;
}

.bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: var(--bg-wash, transparent);
}

/* YouTube bg: 16:9 cover du cadre (preview mobile inclus) + crop chrome */
#yt-player-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  container-type: size;
}

#yt-player-host iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 0;
  pointer-events: none;
  /* Fallback portrait : largeur 16:9 pour remplir la hauteur */
  width: 177.78%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%) scale(1.2);
  transform-origin: center center;
}

@supports (width: 1cqw) {
  #yt-player-host iframe {
    width: max(100cqw, calc(16 / 9 * 100cqh));
    height: max(100cqh, calc(9 / 16 * 100cqw));
    min-width: 0;
    min-height: 0;
  }
}

/* Portrait / PWA : cover agressif + bleed sous barre du bas / home indicator */
@media (max-width: 900px) {
  body:not(.admin-shell):not(.is-device-preview) .bg-image {
    /* Déborde sous la chrome Safari / zone home pour peindre le bas */
    height: calc(
      var(--app-height, 100dvh)
      + env(safe-area-inset-bottom, 0px)
      + 64px
    );
  }

  body:not(.admin-shell):not(.is-device-preview) #yt-player-host iframe {
    width: 220%;
    height: 100%;
    min-width: 220%;
    min-height: 100%;
    transform: translate(-50%, -50%) scale(1.5);
  }

  @supports (width: 1cqw) {
    body:not(.admin-shell):not(.is-device-preview) #yt-player-host iframe {
      width: max(100cqw, calc(16 / 9 * 100cqh));
      height: max(100cqh, calc(9 / 16 * 100cqw));
      min-width: 0;
      min-height: 0;
      transform: translate(-50%, -50%) scale(1.5);
    }
  }
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  body:not(.admin-shell):not(.is-device-preview) .bg-image,
  body:not(.admin-shell):not(.is-device-preview) .overlay {
    height: var(--app-height, 100dvh);
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }

  body:not(.admin-shell):not(.is-device-preview) .bg-image {
    height: calc(
      var(--app-height, 100dvh)
      + env(safe-area-inset-bottom, 0px)
      + 24px
    );
  }
}

#yt-chrome-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #0a0a0a url('bg.jpg') center center / cover no-repeat;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s ease;
}

#yt-chrome-mask.is-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

/* ====== OVERLAY ====== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--app-height, 100dvh);
  min-height: -webkit-fill-available;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  letter-spacing: var(--letter-spacing, -0.2px);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.05) 30%,
    rgba(0, 0, 0, 0.05) 60%,
    rgba(0, 0, 0, 0.6) 100%
  );
  transition: background var(--dur-slow) var(--ease), letter-spacing var(--dur) var(--ease);
}

/* ====== LOGO ====== */
.logo-header {
  position: absolute;
  top: 40px;
  top: calc(40px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  padding-top: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  pointer-events: none;
  z-index: 2;
  transition: top var(--dur-slow) var(--ease);
}

.logo-header .logo {
  pointer-events: auto;
}

.logo {
  width: 35%;
  max-width: 100%;
  height: auto;
  transition:
    opacity var(--dur) var(--ease),
    filter var(--dur) var(--ease),
    width var(--dur-slow) var(--ease),
    transform var(--dur) var(--ease);
  display: block;
  line-height: 0;
}

.logo svg {
  width: 100%;
  height: auto;
  display: block;
}

.logo:hover {
  opacity: 0.85;
}

.overlay.is-legal .logo {
  opacity: 0.9;
  transform: scale(0.985);
}

/* ====== FOOTER MENU ====== */
.footer-menu {
  position: relative;
  z-index: 6;
  width: 100%;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: padding-bottom var(--dur-slow) var(--ease), gap var(--dur) var(--ease);
}

/* Ligne 1 : Dates / Shop / Join */
.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-icon-blocks,
.footer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: inherit;
  width: 100%;
}

.nav-link {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: var(--letter-spacing, -0.2px);
  text-transform: uppercase;
  transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-link:hover {
  opacity: 0.7;
}

.separator {
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
  font-weight: 300;
}

.footer-title {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--letter-spacing, -0.2px);
  text-transform: uppercase;
  transition: opacity var(--dur-slow) var(--ease);
}

.footer-socials,
.footer-streaming {
  display: flex;
  align-items: center;
}

.footer-socials {
  gap: 18px;
}

.footer-streaming {
  gap: 16px;
}

.footer-links,
.footer-socials,
.footer-streaming {
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.footer-socials a,
.footer-streaming a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.footer-socials a:hover,
.footer-streaming a:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}

.overlay.is-legal .footer-title,
.overlay.is-legal .footer-socials,
.overlay.is-legal .footer-streaming {
  opacity: 0.28;
  transform: translateY(4px);
}

.overlay.is-legal .footer-links {
  pointer-events: auto;
}

.overlay.is-legal .footer-links .nav-link,
.overlay.is-legal .footer-links .separator {
  opacity: 0.28;
  transition: opacity var(--dur) var(--ease);
}

.overlay.is-legal .footer-links .nav-link.is-active {
  opacity: 1;
  color: #ffffff;
}

.overlay.is-legal .footer-links .nav-link:hover {
  opacity: 0.7;
}

.overlay.is-legal .footer-links .nav-link.is-active:hover {
  opacity: 1;
}

.footer-socials svg {
  width: var(--icon-size-social, 22px);
  height: var(--icon-size-social, 22px);
}

.footer-streaming svg {
  width: var(--icon-size-music, 20px);
  height: var(--icon-size-music, 20px);
}

/* Copyright */
.footer-bottom {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  margin-top: 16px;
  transition: margin-top var(--dur) var(--ease);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.35);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: var(--letter-spacing, -0.2px);
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
}

.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  font-size: 9px;
  letter-spacing: var(--letter-spacing, -0.2px);
  text-transform: uppercase;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.4);
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.footer-legal a.is-active {
  color: rgba(255, 255, 255, 0.9);
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.25);
}

/* ====== NOW PLAYING ====== */
.now-playing {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  pointer-events: auto;
  transition: opacity var(--dur-slow) var(--ease);
}

.now-playing[hidden],
.footer-title[hidden],
.footer-copy[hidden],
.footer-legal[hidden],
.cookie-consent[hidden] {
  display: none !important;
}

.overlay.is-legal .now-playing {
  opacity: 0.4;
}

.now-playing-sound {
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  opacity: 0.85;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.45));
}

.now-playing-sound[hidden] {
  display: none !important;
}

.now-playing-sound:hover {
  opacity: 1;
  background: transparent;
  border: none;
  transform: scale(1.06);
}

.now-playing-sound svg {
  width: 22px;
  height: 22px;
  display: block;
}

.now-playing-title {
  position: relative;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--letter-spacing, -0.2px);
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
}

.now-playing-title-track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
}

.now-playing-title-seg {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Cursor-style "Thinking" shimmer on the title */
.now-playing-title.is-thinking .now-playing-title-seg {
  color: transparent;
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0.38) 35%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.38) 65%,
    rgba(255, 255, 255, 0.38) 100%
  );
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: thinking-shimmer 2.2s ease-in-out infinite;
}

.now-playing-title.is-marquee .now-playing-title-track {
  animation: now-playing-scroll 10s linear infinite;
}

@keyframes now-playing-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes thinking-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.now-playing-cursor {
  display: inline-block;
  width: 1.5px;
  height: 0.95em;
  margin-left: 2px;
  background: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
  opacity: 0;
  align-self: center;
}

.now-playing-title.is-thinking .now-playing-cursor {
  opacity: 1;
  animation: thinking-cursor 1s steps(1, end) infinite;
}

@keyframes thinking-cursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ====== ADMIN TRIGGER ====== */
#admin-trigger {
  position: fixed;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  z-index: 9999;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  appearance: none;
  transition: background var(--dur) var(--ease);
}

#admin-trigger:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ====== ADMIN SHELL (app macOS sidebar) ====== */
body.admin-shell {
  margin: 0;
  background: #141414;
  overflow: hidden;
  min-height: 100vh;
}

body.admin-shell #admin-panel,
body.admin-shell #admin-panel.open {
  position: relative;
  top: auto;
  right: auto;
  width: 100%;
  height: 100vh;
  max-width: none;
  border-left: 0;
  transition: none;
  background: #141414;
}

body.admin-shell #admin-trigger {
  display: none !important;
}

body.admin-shell .ap-close,
body.admin-shell .ap-header {
  display: none !important;
}

body.admin-shell .ap-body {
  padding: 12px 12px 20px;
}

body.admin-shell .ap-actions {
  margin: 12px -12px -20px;
  padding: 12px 12px 16px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0) 0%, #141414 22%, #141414 100%);
}

/* ====== ADMIN PANEL ====== */
#admin-panel {
  position: fixed;
  top: 0;
  right: -340px;
  width: 340px;
  height: 100vh;
  z-index: 9998;
  background: #0d0d0d;
  color-scheme: dark;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: normal;
  transition: right var(--dur-slow) var(--ease-out);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

#admin-panel.open {
  right: 0;
}

#admin-panel::-webkit-scrollbar {
  width: 6px;
}

#admin-panel::-webkit-scrollbar-track {
  background: transparent;
}

#admin-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
}

#admin-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

.ap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1;
  flex-shrink: 0;
}

.ap-device-bar {
  margin: 0 0 12px;
  padding: 10px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.ap-device-switch {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
  padding: 2px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.ap-device-btn {
  flex: 1;
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font: inherit;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ap-device-btn:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
}

.ap-device-btn.is-active {
  color: #111;
  background: #ffffff;
}

.ap-breakpoint-group {
  margin-bottom: 0;
}

.ap-hint {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.4);
}

.ap-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.ap-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.ap-close:hover {
  color: #ffffff;
  transform: scale(1.08);
}

.ap-body {
  padding: 8px 20px 24px;
  flex: 1;
}

.ap-section {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.028);
  border-radius: 10px;
  padding: 0 12px;
  margin-bottom: 8px;
}

.ap-section[open] {
  padding-bottom: 10px;
}

.ap-section summary {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  padding: 11px 0 8px;
  outline: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ap-section summary::-webkit-details-marker {
  display: none;
}

.ap-section summary::before {
  content: '';
  width: 5px;
  height: 5px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.45);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.45);
  transform: rotate(-45deg);
  transition: transform 0.16s ease;
  flex-shrink: 0;
}

.ap-section[open] summary::before {
  transform: rotate(45deg);
}

.ap-section[open] summary {
  color: rgba(255, 255, 255, 0.88);
}

.ap-group {
  margin-bottom: 10px;
}

.ap-group label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ap-group label span {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.ap-group input[type="text"],
.ap-group input[type="url"],
.ap-group textarea,
.ap-group select,
.ap-link-row input,
.ap-icon-url,
.ap-add-row select {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #f2f2f2;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  padding: 8px 10px;
  outline: none;
  color-scheme: dark;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.ap-group textarea {
  resize: vertical;
  line-height: 1.45;
  min-height: 96px;
}

.ap-page-sections {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.ap-page-section {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  background: #141414;
}

.ap-page-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ap-page-section-head label {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
}

.ap-page-section .ap-group {
  margin-bottom: 8px;
}

.ap-page-section .ap-group:last-child {
  margin-bottom: 0;
}

.ap-page-section textarea {
  min-height: 96px;
}

.ap-group select,
.ap-add-row 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='%23aaaaaa' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.ap-group select option,
.ap-add-row select option {
  background: #1a1a1a;
  color: #f2f2f2;
}

.ap-group input[type="text"]:focus,
.ap-group textarea:focus,
.ap-group select:focus,
.ap-link-row input:focus,
.ap-icon-url:focus,
.ap-add-row select:focus {
  border-color: rgba(106, 201, 243, 0.45);
  background: #202020;
}

.ap-group input[type="text"]::placeholder,
.ap-link-row input::placeholder,
.ap-icon-url::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.ap-group input[type="text"][readonly] {
  opacity: 0.65;
  cursor: default;
}

.ap-group input[type="color"] {
  width: 100%;
  height: 36px;
  padding: 2px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  cursor: pointer;
  color-scheme: dark;
}

.ap-check-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0 !important;
}

.ap-check-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #6ac9f3;
  cursor: pointer;
  color-scheme: dark;
}

.ap-color-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ap-color-row input[type="color"] {
  width: 44px;
  flex-shrink: 0;
}

.ap-color-row input[type="text"] {
  flex: 1;
}

/* Admin media carousels */
.ap-carousel {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin-top: 6px;
}

.ap-carousel-viewport {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.ap-carousel-track {
  display: flex;
  gap: 8px;
  padding: 2px 0 6px;
}

.ap-carousel-nav {
  flex-shrink: 0;
  width: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.ap-carousel-nav:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.ap-carousel-card {
  position: relative;
  flex: 0 0 112px;
  width: 112px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #141414;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}

.ap-carousel-card.is-selected {
  border-color: rgba(106, 201, 243, 0.85);
  box-shadow: 0 0 0 1px rgba(106, 201, 243, 0.35);
}

.ap-carousel-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0a0a center / cover no-repeat;
}

.ap-carousel-label {
  display: block;
  padding: 6px 7px 8px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.8);
  max-height: 2.6em;
  overflow: hidden;
}

.ap-carousel-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
}

.ap-carousel-del:hover {
  background: rgba(255, 60, 60, 0.85);
}

.ap-carousel-empty {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  padding: 18px 8px;
  white-space: nowrap;
}

.ap-trim {
  position: relative;
  height: 28px;
  margin: 10px 0 4px;
}

.ap-trim-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.ap-trim-sel {
  position: absolute;
  top: 0;
  height: 4px;
  border-radius: 2px;
  background: rgba(106, 201, 243, 0.55);
}

.ap-trim input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  background: none;
  pointer-events: none;
}

.ap-trim input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.ap-trim input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
}

.ap-trim #ap-trim-end::-webkit-slider-thumb {
  z-index: 3;
}

.ap-trim-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}

.ap-trim-reset {
  margin-top: 8px;
  width: auto;
}

.ap-group input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  outline: none;
  color-scheme: dark;
}

.ap-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6ac9f3;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  border: none;
}

.ap-group input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6ac9f3;
  cursor: pointer;
  border: none;
}

.ap-group input[type="range"]::-moz-range-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}

/* Footer links editor */
.ap-link-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  align-items: center;
}

.ap-link-row input {
  flex: 1;
  width: auto;
}

.ap-link-label {
  max-width: 90px;
}

.ap-link-del {
  background: #1a1a1a;
  border: 1px solid rgba(255, 77, 77, 0.25);
  border-radius: 6px;
  color: rgba(255, 77, 77, 0.85);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  flex-shrink: 0;
}

.ap-link-del:hover {
  color: #ff4d4d;
  background: rgba(255, 60, 60, 0.12);
}

.ap-add-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
}

.ap-add-row select {
  flex: 1;
  width: auto;
}

.ap-btn {
  width: 100%;
  margin-top: 8px;
  padding: 10px 14px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    opacity var(--dur-fast) var(--ease);
}

.ap-btn:active {
  transform: scale(0.98);
}

.ap-add-row .ap-btn {
  width: auto;
  min-width: 36px;
  margin-top: 0;
  padding: 8px 12px;
}

.ap-btn:hover {
  background: #242424;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.ap-actions {
  position: sticky;
  bottom: 0;
  margin: 16px -20px -24px;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(180deg, transparent 0%, #0d0d0d 28%, #0d0d0d 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ap-btn-save {
  margin-top: 0;
  background: #6ac9f3;
  border-color: #6ac9f3;
  color: #0a0a0a;
}

.ap-btn-save:hover:not(:disabled) {
  background: #7fd3f7;
  border-color: #7fd3f7;
  color: #0a0a0a;
}

.ap-btn-save:disabled {
  opacity: 0.4;
  cursor: default;
}

.ap-btn-save.is-dirty {
  opacity: 1;
  box-shadow: 0 6px 18px rgba(106, 201, 243, 0.18);
}

.ap-btn-save.is-saved {
  background: #1a1a1a;
  border-color: rgba(106, 201, 243, 0.45);
  color: #6ac9f3;
  opacity: 1;
}

.ap-btn-undo {
  margin-top: 0;
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
}

.ap-btn-undo:hover:not(:disabled) {
  background: #242424;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.ap-btn-undo:disabled {
  opacity: 0.35;
  cursor: default;
}

.ap-icon-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  align-items: center;
  cursor: grab;
  border-radius: 6px;
  padding: 2px;
  transition: background var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.ap-icon-row.dragging {
  opacity: 0.45;
  cursor: grabbing;
}

.ap-icon-row.drag-over {
  background: rgba(106, 201, 243, 0.12);
  outline: 1px dashed rgba(106, 201, 243, 0.4);
}

.ap-drag-handle {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
  line-height: 1;
}

.ap-icon-preview {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

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

.ap-icon-name {
  width: 72px;
  flex-shrink: 0;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-icon-url {
  flex: 1;
  min-width: 0;
  width: auto;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 480px) {
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    min-height: 0;
  }

  .now-playing {
    position: static;
    top: auto;
    right: auto;
    transform: none;
  }

  .now-playing-title {
    max-width: min(70vw, 220px);
    font-size: 10px;
  }

  .footer-socials {
    gap: 14px;
  }

  .footer-streaming {
    gap: 12px;
  }
}

/* ====== SKIP LINK ====== */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 10000;
  padding: 10px 14px;
  background: #111;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
  outline: none;
}

/* ====== COOKIE CONSENT (inline footer text) ====== */
.cookie-consent {
  width: max-content;
  max-width: min(100%, calc(100vw - 32px));
  text-align: center;
}

.cookie-status-text {
  margin: 0;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: var(--letter-spacing, -0.2px);
  color: rgba(255, 255, 255, 0.35);
  text-transform: none;
  white-space: nowrap;
}

.cookie-link {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}

.cookie-link:hover {
  color: rgba(255, 255, 255, 0.85);
}

.cookie-options {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.cookie-options[hidden] {
  display: none !important;
}

.cookie-btn {
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: var(--letter-spacing, -0.2px);
  text-transform: uppercase;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.cookie-btn:hover,
.cookie-more:hover {
  color: rgba(255, 255, 255, 0.85);
}

.cookie-btn-accept {
  color: rgba(255, 255, 255, 0.7);
}

.cookie-more {
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing, -0.2px);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--dur) var(--ease);
}

/* ====== LEGAL STAGE (between logo & footer) ====== */
.overlay.is-legal .logo-header .logo {
  cursor: pointer;
}

.legal-stage {
  position: absolute;
  top: var(--legal-top, 140px);
  bottom: var(--legal-bottom, 240px);
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out),
    visibility 0s linear var(--dur-slow),
    top var(--dur) var(--ease),
    bottom var(--dur) var(--ease);
  padding: 0 clamp(16px, 4vw, 40px);
  box-sizing: border-box;
}

.overlay.is-legal .legal-stage {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out),
    visibility 0s linear 0s,
    top var(--dur) var(--ease),
    bottom var(--dur) var(--ease);
}

.legal-stage[hidden] {
  display: none !important;
}

.legal-stage-frame {
  --legal-rail: 28px;
  --legal-sb-thumb: 2px;
  width: 100%;
  max-width: 640px;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--legal-rail);
  column-gap: 0;
  min-height: 0;
}

.legal-stage-main {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.legal-stage-main.is-fade-bottom {
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0,
    #000 calc(100% - 72px),
    rgba(0, 0, 0, 0.45) calc(100% - 28px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0,
    #000 calc(100% - 72px),
    rgba(0, 0, 0, 0.45) calc(100% - 28px),
    transparent 100%
  );
}

.legal-stage-bar {
  flex-shrink: 0;
  display: block;
  padding: 40px var(--page-glow-pad) 12px;
  background: transparent;
}

.legal-stage-title {
  margin: 0;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: var(--letter-spacing, -0.2px);
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: var(--page-text-shadow);
  filter: none;
}

.legal-stage-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  height: 100%;
  padding: 40px 0 50px;
  box-sizing: border-box;
}

.legal-close {
  flex-shrink: 0;
  box-sizing: border-box;
  width: var(--legal-rail);
  height: var(--legal-rail);
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  filter: var(--page-drop-shadow);
  transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.legal-close:hover {
  opacity: 0.75;
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.05);
}

.legal-close svg {
  display: block;
  width: 14px;
  height: 14px;
}

.legal-scrollbar {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow: visible;
  background: transparent;
}

.legal-scrollbar::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: var(--legal-sb-thumb);
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.legal-scrollbar-thumb {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--legal-sb-thumb);
  height: 40%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  transform: translate(-50%, 0);
  will-change: transform, height;
}

.legal-stage-inner {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 var(--page-glow-pad) 50px;
  box-sizing: border-box;
  background: transparent;
  scrollbar-width: none;
}

.legal-stage-inner::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* ====== TOUR DATES ====== */
.dates-status {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.dates-section-title {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.dates-section + .dates-section {
  margin-top: 32px;
}

.dates-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dates-list > li {
  margin: 0;
  padding: 0;
}

.dates-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
  text-decoration: none !important;
  transition: opacity var(--dur) var(--ease);
}

a.dates-row:hover,
a.dates-row:focus,
a.dates-row:visited,
a.dates-row:active {
  text-decoration: none !important;
}

a.dates-row:hover,
a.dates-row:focus {
  opacity: 0.75;
}

.dates-when {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.dates-day {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.dates-month {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.dates-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.dates-venue {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: var(--letter-spacing, -0.2px);
  text-transform: uppercase;
}

.dates-city {
  display: block;
  margin-top: 0;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.dates-action {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.dates-source {
  margin: 24px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 480px) {
  .dates-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .dates-day {
    font-size: 16px;
  }

  .dates-venue {
    font-size: 16px;
  }

  .dates-city {
    font-size: 13px;
  }

  .dates-action {
    font-size: 12px;
  }
}

/* ====== SHOP ====== */
.legal-doc.shop-doc {
  padding-top: 0;
}

.shop-status {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.shop-status:empty {
  display: none;
  margin: 0;
}

.shop-body {
  margin: 0;
  padding: 0;
}

.shop-list {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 80px;
}

.shop-list > li {
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0;
  line-height: 0;
  list-style: none;
  font-size: 0;
}

.shop-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  margin: 0;
  padding: 0;
  border: none;
  color: inherit;
  font-size: 13px;
  line-height: normal;
  text-decoration: none !important;
  transition: opacity var(--dur) var(--ease);
}

a.shop-row:hover,
a.shop-row:focus,
a.shop-row:visited,
a.shop-row:active {
  text-decoration: none !important;
}

a.shop-row:hover,
a.shop-row:focus {
  opacity: 0.8;
}

.shop-row.is-soldout {
  opacity: 0.55;
}

.shop-media {
  width: 75%;
  max-width: 75%;
  margin: 0 auto;
  padding: 0;
  display: block;
  line-height: 0;
  overflow: hidden;
}

.shop-media img {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  display: block;
  vertical-align: top;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.legal-doc.shop-doc img {
  filter: none;
}

.shop-meta {
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 13px;
  line-height: 1.2;
  gap: 2px;
}

.shop-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: var(--letter-spacing, -0.2px);
  text-transform: uppercase;
}

.shop-price {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.shop-action {
  display: inline-block;
  margin-top: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.shop-source {
  margin: 24px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

@media (max-width: 480px) {
  .shop-list {
    gap: 80px;
  }

  .shop-title {
    font-size: 12px;
  }

  .shop-price {
    font-size: 12px;
  }

  .shop-action {
    font-size: 11px;
  }
}

/* ====== JOIN ====== */
.join-status {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.join-intro {
  margin: 0 0 22px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  max-width: 36em;
}

.join-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
  width: 100%;
}

.join-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.join-field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.join-field input {
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  padding: 8px 0;
  outline: none;
  transition: border-color var(--dur) var(--ease);
}

.join-field input:focus {
  border-bottom-color: rgba(255, 255, 255, 0.95);
}

.join-field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.join-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.join-consent input {
  margin-top: 3px;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  accent-color: #fff;
}

.join-actions {
  margin-top: 8px;
}

.join-submit {
  appearance: none;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 20px;
  cursor: pointer;
  transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease);
  filter: var(--page-drop-shadow);
}

.join-submit:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.join-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.join-message {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.join-message.is-ok {
  color: rgba(255, 255, 255, 0.9);
}

.join-message.is-error {
  color: rgba(255, 200, 200, 0.95);
}

.join-privacy,
.join-source {
  margin: 20px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.join-privacy {
  margin-top: 18px;
}

.legal-doc {
  width: 100%;
  max-width: none;
  margin: 0;
  color: #ffffff;
  text-shadow: var(--page-text-shadow);
}

.legal-doc img {
  filter: var(--page-drop-shadow);
}

.legal-doc[hidden] {
  display: none !important;
}

.legal-doc .legal-updated {
  margin: 0 0 24px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}

.legal-doc section {
  margin-bottom: 22px;
}

.legal-doc h2 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.legal-doc p,
.legal-doc li {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.legal-doc p {
  margin: 0 0 10px;
}

.legal-doc ul {
  margin: 0 0 10px;
  padding-left: 1.15em;
}

.legal-doc a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity var(--dur) var(--ease);
}

.legal-doc a:hover {
  opacity: 0.8;
}

.legal-doc.dates-doc a,
.legal-doc.dates-doc a:link,
.legal-doc.dates-doc a:visited,
.legal-doc.dates-doc a:hover,
.legal-doc.dates-doc a:active,
.legal-doc.dates-doc a:focus,
.legal-doc.shop-doc a,
.legal-doc.shop-doc a:link,
.legal-doc.shop-doc a:visited,
.legal-doc.shop-doc a:hover,
.legal-doc.shop-doc a:active,
.legal-doc.shop-doc a:focus,
.legal-doc.join-doc a,
.legal-doc.join-doc a:link,
.legal-doc.join-doc a:visited,
.legal-doc.join-doc a:hover,
.legal-doc.join-doc a:active,
.legal-doc.join-doc a:focus {
  text-decoration: none !important;
}

.legal-doc code {
  font-size: 0.9em;
  background: transparent;
  padding: 0;
  color: #ffffff;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 14px;
  font-size: 12px;
  background: transparent;
}

.legal-table th,
.legal-table td {
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  color: #ffffff;
  background: transparent;
}

.legal-table th {
  font-weight: 600;
}

@media (max-width: 480px) {
  .legal-doc p,
  .legal-doc li {
    font-size: 12px;
  }
}

/* ====== MOTION (light tweens site-wide) ====== */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur: 0.01ms;
    --dur-fast: 0.01ms;
    --dur-slow: 0.01ms;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .overlay.is-legal .footer-title,
  .overlay.is-legal .footer-socials,
  .overlay.is-legal .footer-streaming,
  .legal-stage,
  .overlay.is-legal .legal-stage,
  .overlay.is-legal .logo {
    transform: none;
  }
}

/* ====== DEVICE ADMIN PREVIEW ====== */
.device-preview {
  --device-admin: 340px;
  --device-bezel: 14px;
  --device-screen-w: 402px;
  --device-screen-h: 874px;
  --device-radius-outer: 58px;
  --device-radius-screen: 46px;
  --chrome-w: 126px;
  --chrome-h: 37px;
  --chrome-punch: 14px;
  position: fixed;
  top: 0;
  left: 0;
  right: var(--device-admin);
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 55% at 40% 35%, rgba(70, 72, 82, 0.45), transparent 62%),
    radial-gradient(ellipse 50% 40% at 70% 80%, rgba(40, 42, 50, 0.5), transparent 60%),
    #101012;
  overflow: hidden;
}

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

.device-preview-scale {
  transform: scale(var(--device-scale, 1));
  transform-origin: center center;
  will-change: transform;
}

.device-preview-phone {
  position: relative;
  width: calc(var(--device-screen-w) + var(--device-bezel) * 2);
  height: calc(var(--device-screen-h) + var(--device-bezel) * 2);
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.55));
}

.device-preview-bezel {
  position: absolute;
  inset: 0;
  border-radius: var(--device-radius-outer);
  background: linear-gradient(145deg, #3a3a3e 0%, #1a1a1c 42%, #0c0c0e 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55);
}

.device-preview-bezel.is-android {
  background: linear-gradient(145deg, #2c2c30 0%, #141416 45%, #0a0a0c 100%);
}

.device-preview-bezel::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: calc(var(--device-radius-outer) - 3px);
  background: #0a0a0a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.device-preview-screen {
  position: absolute;
  top: var(--device-bezel);
  left: var(--device-bezel);
  width: var(--device-screen-w);
  height: var(--device-screen-h);
  border-radius: var(--device-radius-screen);
  overflow: hidden;
  background: #0a0a0a;
  isolation: isolate;
}

.device-preview[data-chrome="home"] .device-preview-screen {
  border-radius: 2px;
}

/* Status bars */
.device-statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  color: #fff;
  font-family: -apple-system, 'SF Pro Text', 'Inter', sans-serif;
  text-shadow: none;
  filter: none;
}

.device-statusbar.is-ios {
  height: 54px;
  padding: 14px 22px 0;
  box-sizing: border-box;
}

.device-statusbar.is-android {
  height: 28px;
  padding: 6px 14px 0;
  box-sizing: border-box;
}

.device-sb-left,
.device-sb-right {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 72px;
}

.device-sb-right {
  justify-content: flex-end;
}

.device-sb-time {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.device-statusbar.is-android .device-sb-time {
  font-size: 12px;
  font-weight: 500;
}

.device-sb-icon {
  display: block;
  opacity: 0.95;
}

.device-sb-battery {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.device-sb-battery.is-ios {
  width: 25px;
  height: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 3px;
  padding: 1px;
  box-sizing: border-box;
}

.device-sb-battery.is-ios .device-sb-battery-level {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 1px;
  background: #fff;
}

.device-sb-battery.is-ios .device-sb-battery-cap {
  position: absolute;
  right: -4px;
  top: 3px;
  width: 2px;
  height: 4px;
  border-radius: 0 1px 1px 0;
  background: rgba(255, 255, 255, 0.45);
}

.device-sb-battery.is-android {
  width: 20px;
  height: 10px;
  border: 1.2px solid rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  padding: 1px;
  box-sizing: border-box;
}

.device-sb-battery.is-android .device-sb-battery-level {
  display: block;
  width: 70%;
  height: 100%;
  border-radius: 1px;
  background: #fff;
}

.device-sb-battery.is-android::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 4px;
  border-radius: 0 1px 1px 0;
  background: rgba(255, 255, 255, 0.7);
}

/* Chrome: island / notch / punch */
.device-preview-chrome {
  position: absolute;
  top: calc(var(--device-bezel) + 11px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  pointer-events: none;
}

.device-preview-island {
  width: var(--chrome-w);
  height: var(--chrome-h);
  border-radius: 20px;
  background: #050505;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
}

.device-preview-island::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1b2a44, #0a1018 70%);
  box-shadow: inset 0 0 0 1px rgba(120, 160, 220, 0.25);
}

.device-preview-notch {
  width: var(--chrome-w);
  height: var(--chrome-h);
  background: #050505;
  border-radius: 0 0 18px 18px;
  position: relative;
}

.device-preview-notch::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.device-preview-punch {
  width: var(--chrome-punch);
  height: var(--chrome-punch);
  border-radius: 50%;
  background: #050505;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 2px rgba(0, 0, 0, 0.35);
  margin-top: 4px;
}

.device-preview[data-chrome="punch"] .device-preview-chrome {
  top: calc(var(--device-bezel) + 8px);
}

.device-preview[data-chrome="notch"] .device-preview-chrome {
  top: var(--device-bezel);
}

.device-preview[data-chrome="home"] .device-preview-chrome,
.device-preview[data-chrome="none"] .device-preview-chrome {
  display: none;
}

.device-preview-home {
  position: absolute;
  left: 50%;
  bottom: calc(var(--device-bezel) + 8px);
  transform: translateX(-50%);
  width: 128px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  z-index: 40;
  pointer-events: none;
}

.device-preview-home[hidden] {
  display: none !important;
}

.device-preview-home.is-button {
  bottom: calc(var(--device-bezel) + 14px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.device-preview[data-os="android"] .device-preview-home:not(.is-button) {
  width: 110px;
  height: 4px;
  opacity: 0.55;
}

.device-preview-caption {
  margin: 14px 0 0;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.ap-preview-model-group {
  margin-top: 10px;
}

body.is-iphone-preview,
body.is-device-preview {
  background: #101012;
}

body.is-iphone-preview .bg-image,
body.is-iphone-preview .overlay,
body.is-device-preview .bg-image,
body.is-device-preview .overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
}

body.is-iphone-preview .footer-bottom,
body.is-device-preview .footer-bottom {
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

body.is-iphone-preview .now-playing,
body.is-device-preview .now-playing {
  position: static;
  top: auto;
  right: auto;
  transform: none;
}

body.is-iphone-preview .now-playing-title,
body.is-device-preview .now-playing-title {
  max-width: min(70%, 220px);
  font-size: 10px;
}

body.is-iphone-preview .footer-socials,
body.is-device-preview .footer-socials {
  gap: 14px;
}

body.is-iphone-preview .footer-streaming,
body.is-device-preview .footer-streaming {
  gap: 12px;
}

@media (max-width: 900px) {
  .device-preview {
    right: 0;
    bottom: 45vh;
  }
}
