/**
 * Think Success — slideshow start screen (slideshow.css / .js unchanged)
 */
@import url('lux.css');

/* Page shell layout on slideshow pages — document scrolls to footer */
html.slideshow-html {
  height: auto !important;
  min-height: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scroll-behavior: smooth;
}

html.slideshow-html body.page-shell.slideshow-page:not(.slideshow-running) {
  height: auto !important;
  min-height: 100vh;
  overflow: visible !important;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}

body.page-shell.slideshow-page:not(.slideshow-running) {
  min-height: 100vh;
}

body.page-shell.slideshow-page.slideshow-running,
html.slideshow-html body.page-shell.slideshow-page.slideshow-running {
  height: 100% !important;
  overflow: hidden !important;
}

body.slideshow-running .lux-header,
body.slideshow-running .lux-footer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

body.slideshow-page.page-shell .slideshow-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  position: relative;
  z-index: auto;
}

body.page-shell.slideshow-page:not(.slideshow-running) #start-screen {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  flex: 0 0 auto;
  width: 100%;
  min-height: 0 !important;
  height: auto !important;
  z-index: 100 !important;
  overflow: visible !important;
  padding-bottom: 2rem;
}

body.page-shell.slideshow-page:not(.slideshow-running) #slideshow {
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

body.page-shell.slideshow-page:not(.slideshow-running) #overlay {
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

body.page-shell.slideshow-page:not(.slideshow-running) .lux-footer {
  flex-shrink: 0;
  position: relative;
  z-index: auto;
  margin-top: auto;
  background: #070707;
  isolation: isolate;
}

body.slideshow-running #slideshow {
  visibility: visible !important;
  pointer-events: auto !important;
}

body.slideshow-running #overlay {
  visibility: visible !important;
}

body.slideshow-page {
  background: #080808;
}

body.slideshow-page .lux-header {
  top: 0;
}

/* Legacy ss-header rules kept for reference — header now uses lux-header site-wide */
.ss-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(8, 8, 8, 0.9);
  border-bottom: 1px solid rgba(139, 21, 56, 0.25);
  backdrop-filter: blur(16px);
}

body.slideshow-running .ss-header {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

body.slideshow-running .lux-footer--slideshow {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lux-footer--slideshow {
  background: transparent;
}

.lux-footer--slideshow .lux-footer-bottom {
  padding: 0.85rem 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.72rem;
}

.lux-footer-bottom--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.lux-footer-bottom--inline a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.lux-footer-bottom--inline a:hover {
  color: var(--lux-gold-light);
  text-decoration: none;
}

.ss-header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--lux-text);
  font-family: var(--lux-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ss-header-brand:hover {
  color: var(--lux-gold-light);
  text-decoration: none;
}

.ss-header-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.ss-header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.75rem;
  font-family: var(--lux-font-body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ss-header-nav a {
  color: var(--lux-text-muted);
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.ss-header-nav a:hover {
  color: var(--lux-text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.ss-header-nav--accent {
  border: 1px solid rgba(139, 21, 56, 0.55);
  background: rgba(139, 21, 56, 0.2);
  color: #f5d0dc !important;
}

.ss-header-nav--accent:hover {
  background: rgba(139, 21, 56, 0.35) !important;
  color: #fff !important;
}

.ss-header-user {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
  text-transform: none;
  letter-spacing: 0;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.slideshow-page--play.page-shell #start-screen {
  padding-top: 1rem;
}

.ss-play-title {
  margin: 0 auto 1rem;
  max-width: 420px;
  text-align: center;
  font-family: var(--lux-font-display);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 600;
  color: var(--lux-gold-light);
  letter-spacing: 0.03em;
}

/* ── Start screen canvas ── */
body.slideshow-page.page-shell #start-screen {
  padding: 1.25rem 1rem 2rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 21, 56, 0.14), transparent 42%),
    radial-gradient(circle at 80% 90%, rgba(201, 169, 98, 0.06), transparent 35%),
    linear-gradient(180deg, #0c0c0c 0%, #080808 100%);
}

/* Brand hero */
.ss-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto 1.25rem;
  max-width: 420px;
}

.ss-logo-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(139, 21, 56, 0.35) 0%, rgba(139, 21, 56, 0.05) 55%, transparent 70%);
  border: 1px solid rgba(139, 21, 56, 0.35);
  box-shadow:
    0 0 40px rgba(139, 21, 56, 0.2),
    inset 0 0 30px rgba(139, 21, 56, 0.08);
}

.ss-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.ss-brand-name {
  margin: 0;
  font-family: var(--lux-font-display);
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--lux-text);
}

.ss-brand-slogan {
  margin: 0.35rem 0 0;
  font-family: var(--lux-font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lux-gold);
}

/* Step hints */
.ss-steps {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 1rem;
  padding: 0;
  list-style: none;
  max-width: 360px;
}

.ss-step {
  flex: 1;
  padding: 0.45rem 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  font-family: var(--lux-font-body);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.ss-step--active {
  border-color: rgba(139, 21, 56, 0.45);
  background: rgba(139, 21, 56, 0.15);
  color: #f0c4d0;
}

/* Status hint */
body.slideshow-page #start-hint:has(.start-hint-label) {
  display: none;
}

body.slideshow-page #start-hint {
  max-width: 380px;
  margin: 0 auto 1rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(139, 21, 56, 0.28);
  border-radius: 12px;
  background: rgba(16, 16, 16, 0.85);
  font-size: 0.84rem;
  letter-spacing: normal;
  text-transform: none;
  color: rgba(255, 255, 255, 0.55);
}

body.slideshow-page .start-hint-label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lux-gold);
}

body.slideshow-page .start-hint-track {
  color: rgba(255, 255, 255, 0.88);
  font-style: normal;
}

/* Account promo */
body.slideshow-page #my-loa-promo.ss-account {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  max-width: 380px;
  margin: 0 auto 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(201, 169, 98, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(22, 22, 22, 0.95), rgba(14, 14, 14, 0.9));
}

body.slideshow-page .ss-account-text {
  margin: 0;
  font-family: var(--lux-font-body);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

body.slideshow-page .ss-account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(201, 169, 98, 0.35);
  border-radius: 999px;
  background: rgba(201, 169, 98, 0.1);
  color: var(--lux-gold-light);
  font-family: var(--lux-font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

body.slideshow-page .ss-account-btn:hover {
  background: rgba(201, 169, 98, 0.2);
  border-color: var(--lux-gold);
  color: #fff;
  text-decoration: none;
}

/* Controls panel */
body.slideshow-page .start-setup {
  width: min(560px, 100%);
  margin: 0 auto 0.5rem;
  padding: 1.35rem 1.25rem 1.5rem;
  border: 1px solid rgba(139, 21, 56, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(24, 18, 20, 0.95) 0%, rgba(12, 12, 12, 0.98) 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.slideshow-page #speed-picker,
body.slideshow-page #music-picker {
  margin-top: 0;
  width: 100%;
}

body.slideshow-page #music-picker {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  align-items: stretch;
}

body.slideshow-page #music-picker > label {
  display: none;
}

body.slideshow-page #music-picker > #track-list:not(.ss-track-list--picker) {
  display: none;
}

/* Pro music picker — dropdown grid, no scroll box */
.ss-track-picker {
  position: relative;
  width: 100%;
}

.ss-track-picker-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.ss-track-picker-toggle:hover,
.ss-track-picker.is-open .ss-track-picker-toggle {
  border-color: rgba(139, 21, 56, 0.45);
  background: rgba(139, 21, 56, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.ss-track-picker-label {
  flex-shrink: 0;
  font-family: var(--lux-font-body);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lux-gold);
}

.ss-track-picker-value {
  flex: 1;
  min-width: 0;
  font-family: var(--lux-font-body);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ss-track-picker-chevron {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s;
}

.ss-track-picker-chevron::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.7);
  transform: translate(-50%, -60%) rotate(45deg);
}

.ss-track-picker.is-open .ss-track-picker-chevron {
  transform: rotate(180deg);
  border-color: rgba(139, 21, 56, 0.45);
}

.ss-track-picker-menu {
  position: static;
  z-index: auto;
  margin-top: 0.5rem;
  padding: 0.55rem;
  border: 1px solid rgba(139, 21, 56, 0.28);
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.ss-track-picker-menu[hidden] {
  display: none !important;
}

body.slideshow-page #track-list.ss-track-list--picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  width: 100%;
  max-height: none !important;
  overflow: visible !important;
  padding: 0;
  flex: none !important;
  min-height: 0 !important;
}

body.slideshow-page #track-list.ss-track-list--picker .track-item {
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  padding: 0.65rem 0.55rem 0.55rem;
  min-height: 74px;
  border-radius: 12px;
  cursor: pointer;
}

body.slideshow-page #track-list.ss-track-list--picker .track-name {
  font-size: 0.74rem;
  line-height: 1.35;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}

body.slideshow-page #track-list.ss-track-list--picker .track-preview-btn {
  align-self: center;
  min-width: 0;
  width: 100%;
  max-width: 88px;
  min-height: 32px;
  padding: 0.35rem 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

body.slideshow-page #track-list.ss-track-list--picker .track-item.active {
  border-color: rgba(139, 21, 56, 0.55);
  background: rgba(139, 21, 56, 0.14);
  box-shadow: inset 0 0 0 1px rgba(139, 21, 56, 0.2);
}

body.slideshow-page #track-list.ss-track-list--picker .track-item.previewing {
  border-color: rgba(201, 169, 98, 0.45);
  background: rgba(201, 169, 98, 0.08);
}

body.slideshow-page #speed-picker label {
  width: 100%;
  text-align: left;
  color: var(--lux-gold);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

body.slideshow-page #speed-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  max-width: none;
  width: 100%;
}

body.slideshow-page .speed-btn {
  padding: 0.6rem 0.35rem;
  font-size: 0.72rem;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

body.slideshow-page .speed-btn.active {
  border-color: rgba(139, 21, 56, 0.65);
  background: linear-gradient(135deg, rgba(139, 21, 56, 0.35), rgba(139, 21, 56, 0.12));
  color: #fff;
  box-shadow: 0 0 20px rgba(139, 21, 56, 0.25);
}

body.slideshow-page .track-preview-btn:hover {
  border-color: rgba(201, 169, 98, 0.45);
  color: var(--lux-gold-light);
}

/* Play button */
body.slideshow-page #start-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.65rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.slideshow-page .start-play-label {
  margin: 0;
  font-family: var(--lux-font-body);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

body.slideshow-page #start-btn {
  width: 72px;
  height: 72px;
  margin-top: 0;
  border: 2px solid rgba(139, 21, 56, 0.55);
  background: radial-gradient(circle at 30% 30%, rgba(166, 26, 68, 0.9), rgba(107, 15, 42, 0.95));
  color: #fff;
  font-size: 1.5rem;
  box-shadow:
    0 0 0 4px rgba(139, 21, 56, 0.15),
    0 12px 32px rgba(139, 21, 56, 0.35);
  animation: ss-play-pulse 2.5s ease-in-out infinite;
}

@keyframes ss-play-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(139, 21, 56, 0.15), 0 12px 32px rgba(139, 21, 56, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(139, 21, 56, 0.08), 0 16px 40px rgba(139, 21, 56, 0.45); }
}

body.slideshow-page #start-btn:hover:not(:disabled) {
  transform: scale(1.07);
  border-color: rgba(201, 169, 98, 0.55);
}

body.slideshow-page #start-btn:disabled {
  opacity: 0.35;
  animation: none;
}

/* ── Fullscreen loading overlay ────────────────────────────── */
#load-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(139, 21, 56, 0.18), transparent 55%),
    #080808;
}

#load-overlay.load-overlay--hidden { display: none !important; }

.load-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  padding: 2rem;
}

.load-overlay-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.load-overlay-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(139, 21, 56, 0.5));
  animation: loadLogoPulse 1.8s ease-in-out infinite;
}

@keyframes loadLogoPulse {
  0%, 100% { opacity: 1;   filter: drop-shadow(0 0 24px rgba(139, 21, 56, 0.5)); }
  50%       { opacity: 0.7; filter: drop-shadow(0 0 40px rgba(139, 21, 56, 0.8)); }
}

.load-overlay-label {
  margin: 0 0 0.6rem;
  font-family: var(--lux-font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lux-gold);
}

.load-overlay-count {
  margin: 0 0 1.75rem;
  font-family: var(--lux-font-display);
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 600;
  line-height: 1;
  color: #fff;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.load-overlay-bar-track {
  width: min(320px, 80vw);
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.load-overlay-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--lux-accent), var(--lux-gold));
  border-radius: 99px;
  transition: width 0.25s ease;
}

/* Cookie banner on dark page */
body.slideshow-page .loa-cookie-banner {
  background: rgba(12, 12, 12, 0.96);
  border-top-color: rgba(139, 21, 56, 0.25);
}

@media (max-width: 640px) {
  html.slideshow-html {
    height: auto !important;
    min-height: 100dvh !important;
    overflow-y: auto !important;
    -webkit-text-size-adjust: 100%;
  }

  html.slideshow-html body.page-shell.slideshow-page:not(.slideshow-running) {
    min-height: 100dvh !important;
    overflow: visible !important;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  html.slideshow-html body.page-shell.slideshow-page:not(.slideshow-running) #start-screen,
  html.slideshow-html body.page-shell.slideshow-page:not(.slideshow-running) #slideshow,
  html.slideshow-html body.page-shell.slideshow-page:not(.slideshow-running) #overlay {
    height: auto !important;
    min-height: 0 !important;
  }

  body.page-shell.slideshow-page:not(.slideshow-running) #start-screen {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0.75rem max(0.85rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(0.85rem, env(safe-area-inset-left)) !important;
    padding-top: 0.75rem !important;
    -webkit-overflow-scrolling: touch;
  }

  body.slideshow-page.page-shell .slideshow-main {
    width: 100%;
    padding: 0;
  }

  body.slideshow-page .ss-brand {
    margin-bottom: 1rem;
    max-width: 100%;
  }

  body.slideshow-page .ss-brand-name {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  body.slideshow-page .ss-brand-slogan {
    font-size: 0.68rem;
  }

  body.slideshow-page .ss-logo-ring {
    width: 88px;
    height: 88px;
  }

  body.slideshow-page .ss-logo {
    width: 56px;
    height: 56px;
  }

  body.slideshow-page #start-hint {
    font-size: 0.78rem;
    margin-bottom: 0.75rem;
  }

  body.slideshow-page .start-setup {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 0.5rem;
    padding: 1rem max(0.85rem, env(safe-area-inset-right)) 1.15rem max(0.85rem, env(safe-area-inset-left));
    border-radius: 16px;
  }

  body.slideshow-page #speed-picker {
    width: 100%;
    margin-top: 0;
  }

  body.slideshow-page #speed-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    width: 100%;
    max-width: none;
  }

  body.slideshow-page .speed-btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.72rem;
    padding: 0.55rem 0.35rem;
  }

  body.slideshow-page #music-picker {
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    flex: none !important;
    min-height: 0 !important;
  }

  body.slideshow-page #track-list,
  body.slideshow-page #track-list.ss-track-list--picker {
    max-height: none !important;
    overflow: visible !important;
    flex: none !important;
    min-height: 0 !important;
    grid-template-columns: 1fr;
  }

  body.slideshow-page .ss-track-picker-toggle {
    min-height: 52px;
    padding: 0.7rem 0.85rem;
  }

  body.slideshow-page .ss-track-picker-label {
    font-size: 0.58rem;
  }

  body.slideshow-page .ss-track-picker-value {
    font-size: 0.82rem;
  }

  body.slideshow-page #track-list.ss-track-list--picker .track-item {
    flex-direction: row;
    align-items: center;
    min-height: 52px;
    padding: 0.6rem 0.7rem;
  }

  body.slideshow-page #track-list.ss-track-list--picker .track-name {
    text-align: left;
    -webkit-line-clamp: 2;
    font-size: 0.8rem;
  }

  body.slideshow-page #track-list.ss-track-list--picker .track-preview-btn {
    min-width: 72px;
    min-height: 44px;
    width: auto;
    max-width: none;
    font-size: 0.62rem;
  }

  body.slideshow-page #start-btn-wrap {
    position: static !important;
    bottom: auto !important;
    width: 100%;
    margin-top: 1.15rem;
    padding: 1rem 0 0.25rem !important;
    background: none !important;
    flex-shrink: 0;
  }

  body.slideshow-page #start-btn {
    width: 76px;
    height: 76px;
    font-size: 1.55rem;
  }

  body.slideshow-page .lux-footer {
    margin-top: auto;
    padding-bottom: env(safe-area-inset-bottom);
  }

  body.slideshow-page .lux-footer-inner {
    padding: 1.75rem 1rem 1.25rem;
  }

  body.slideshow-page .loa-cookie-banner {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  body.slideshow-page--play .ss-play-title {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    padding: 0 0.5rem;
  }
}

@media (max-width: 640px) and (orientation: landscape) {
  body.page-shell.slideshow-page:not(.slideshow-running) #start-screen {
    padding-top: 0.5rem !important;
  }

  body.slideshow-page .ss-brand {
    flex-direction: row;
    gap: 0.75rem;
    text-align: left;
    max-width: 100%;
  }

  body.slideshow-page .ss-logo-ring {
    width: 72px;
    height: 72px;
    margin-bottom: 0;
  }

  body.slideshow-page .ss-logo {
    width: 48px;
    height: 48px;
  }

  body.slideshow-page .ss-brand-copy {
    text-align: left;
  }

  body.slideshow-page #speed-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.slideshow-page #track-list.ss-track-list--picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.slideshow-page #start-btn {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 380px) {
  body.slideshow-page #speed-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.slideshow-page .ss-track-picker-toggle {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  body.slideshow-page .ss-track-picker-label {
    width: 100%;
  }
}

/* Slideshow playback — show full photo at max size (full width or full height, no crop) */
body.slideshow-running #slideshow {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: var(--app-height, 100vh) !important;
  z-index: 50 !important;
  display: block !important;
}

body.slideshow-running #slideshow img {
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

body.slideshow-running #overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 55 !important;
}

/* Affirmations text must sit above slideshow images (z-index 50) */
body.slideshow-running #title {
  z-index: 65 !important;
  visibility: visible !important;
}

/* Mobile fullscreen — fully hide playback controls after auto-hide timer */
@media (max-width: 640px) {
  body.slideshow-running #slideshow {
    min-height: var(--app-height, 100dvh) !important;
  }

  body.slideshow-running.controls-hidden #stop-btn.visible,
  body.slideshow-running.controls-hidden #display-mode-btn.visible,
  body.slideshow-running.controls-hidden #music-controls.visible,
  body.slideshow-running.controls-hidden #speed-controls.visible,
  body.slideshow-running.controls-hidden #counter {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.slideshow-running .loa-cookie-banner,
  body.slideshow-running .lux-orientation-lock {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
