/* ==========================================================================
   RHEINGRÜN FESTIVAL 2026 - TIMETABLE STYLESHEET
   Official Open Air Branding · Hard Techno Vibe · Mobile-First PWA
   ========================================================================== */

/* Local Space Grotesk Variable Font (Self-hosted, GDPR/DSGVO compliant, WOFF2) */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2-variations'),
       url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Local Barlow Fonts (Self-hosted, GDPR/DSGVO compliant, WOFF2) */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/barlow-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/barlow-latin-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Default Event Color Palette (Overridden dynamically via EVENT_CONFIG.theme) */
  --bg-black: #060608;
  --bg-dark: #0A0B0E;
  --bg-surface: #111318;
  --bg-surface-elevated: #181B22;
  --bg-surface-card: #13161C;
  
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Brand Accents (Dynamically configurable via EVENT_CONFIG.theme) */
  --neon-green: #FF1E27;
  --accent-contrast: #FFFFFF;
  --neon-green-glow: color-mix(in srgb, var(--neon-green) 35%, transparent);
  --neon-green-subtle: color-mix(in srgb, var(--neon-green) 14%, transparent);
  --neon-cyan: #E2E8F0;
  --fav-color: #FF1E27;

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* Sizing & Geometry */
  --time-axis-width: 62px;
  --stage-col-min-width: 250px;
  --px-per-minute: 2px; /* 60 min = 120px */
  --timeline-start-minutes: 660;
  --timeline-end-minutes: 1380;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.6);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-black);
  color: var(--text-primary);
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  overflow: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* App Shell Container */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  background-color: var(--bg-black);
  position: relative;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.app-header {
  background: color-mix(in srgb, var(--bg-dark) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 6px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 4px var(--neon-green); }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--neon-green); }
  100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 4px var(--neon-green); }
}

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

.brand-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Space Grotesk', 'Barlow', -apple-system, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-name {
  color: var(--neon-green);
  text-shadow: 0 0 16px var(--neon-green-glow);
}

.brand-pill-tag {
  font-family: 'Space Grotesk', 'Barlow', -apple-system, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--neon-green);
  border: 1px solid color-mix(in srgb, var(--neon-green) 65%, transparent);
  border-radius: 4px;
  padding: 1px 6px;
  line-height: 1.2;
  text-shadow: none;
}

.brand-subtitle {
  font-family: 'Space Grotesk', 'Barlow', -apple-system, sans-serif;
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.8px;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  height: 34px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  font-size: 0.8rem;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}

.action-btn:focus {
  outline: none;
}

.action-btn:focus-visible {
  outline: 2px solid var(--neon-green);
  outline-offset: 2px;
}

@media (hover: hover) {
  .action-btn:hover {
    background: var(--bg-surface-elevated);
    border-color: rgba(255, 255, 255, 0.2);
  }
}

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

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

.btn-now {
  background: var(--neon-green-subtle);
  border-color: color-mix(in srgb, var(--neon-green) 40%, transparent);
  color: var(--neon-green);
}

@media (hover: hover) {
  .btn-now:hover {
    background: color-mix(in srgb, var(--neon-green) 25%, transparent);
    border-color: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green-glow);
  }
}

.btn-now:active,
.btn-now.is-pressed {
  background: color-mix(in srgb, var(--neon-green) 35%, transparent);
  border-color: var(--neon-green);
  box-shadow: 0 0 12px var(--neon-green-glow);
  transform: scale(0.95);
}

.badge-mini-time {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.45);
  color: var(--text-primary);
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-fav-filter {
  position: relative;
  padding: 0 9px;
}

.btn-fav-filter.active {
  background: color-mix(in srgb, var(--fav-color) 20%, transparent);
  border-color: var(--fav-color);
  color: var(--fav-color);
}

.btn-fav-filter.active .star-icon {
  fill: var(--fav-color);
  stroke: var(--fav-color);
}

.btn-install {
  background: var(--neon-green);
  color: var(--accent-contrast, #FFFFFF);
  font-weight: 700;
  border: none;
}

/* ==========================================================================
   Single Unified Event Switcher (Event Pills Nav)
   Mobile: Horizontal scrollable track with full-size, touch-friendly buttons
   Tablet/Desktop: 4-column balanced grid
   ========================================================================== */
.event-pills-nav {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 2px 2px;
  margin: 0;
  width: 100%;
}

.event-pills-nav::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .event-pills-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    overflow-x: visible;
  }
}

.event-pill {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-height: 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  text-align: left;
}

.event-pill:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.event-pill:active {
  transform: scale(0.97);
}

/* Active State */
.event-pill.active {
  background: var(--bg-surface-elevated);
  color: var(--neon-green);
  border-color: color-mix(in srgb, var(--neon-green) 50%, transparent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), inset 0 0 0 1px color-mix(in srgb, var(--neon-green) 35%, transparent);
}

/* Day Badges - Neutral & Quiet when Inactive */
.pill-badge,
.pill-day-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

/* Active State: Badges */
.event-pill.active .pill-badge,
.event-pill.active .pill-day-badge {
  background: var(--neon-green) !important;
  color: var(--accent-contrast, #FFFFFF) !important;
  font-weight: 800;
}

.pill-meta,
.pill-text-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pill-title,
.pill-main-title {
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  line-height: 1.15;
  white-space: nowrap;
}

.pill-sub,
.pill-sub-venue {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.75;
  line-height: 1.15;
  white-space: nowrap;
}

.event-pill.active .pill-sub,
.event-pill.active .pill-sub-venue {
  opacity: 0.9;
}

/* Sub-Controls Row: Compact Search & View Switcher */
.sub-controls-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.sub-controls-row .search-box {
  flex: 1;
  height: 32px;
}

.view-switcher-group {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 2px;
  flex-shrink: 0;
  height: 32px;
}

.view-switch-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
}

.view-switch-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  gap: 8px;
}

.search-box:focus-within {
  border-color: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green-subtle);
}

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

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.82rem;
  width: 100%;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px;
}

.filter-status-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--neon-green);
  margin-top: 6px;
  padding: 0 4px;
}

.btn-reset-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.72rem;
}

/* --------------------------------------------------------------------------
   MAIN TIMETABLE VIEWPORT
   -------------------------------------------------------------------------- */
.timetable-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-black);
}

/* Grid View Container */
.grid-view-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

/* Stage Headers Sticky Track */
.stage-headers-track {
  position: relative;
  display: flex;
  background: var(--bg-surface);
  border-bottom: 2px solid var(--border-subtle);
  z-index: 30;
  flex-shrink: 0;
  overflow: hidden;
}

.stage-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 35;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg-surface-elevated) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--neon-green) 45%, transparent);
  color: var(--neon-green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.stage-scroll-btn:hover {
  background: var(--neon-green);
  color: var(--accent-contrast, #FFFFFF);
  box-shadow: 0 0 12px var(--neon-green-glow);
  transform: translateY(-50%) scale(1.08);
}

.stage-scroll-btn.left {
  left: calc(var(--time-axis-width) + 6px);
}

.stage-scroll-btn.right {
  right: 6px;
}

.stage-scroll-btn.hidden {
  display: none !important;
}

.time-axis-corner {
  width: var(--time-axis-width);
  min-width: var(--time-axis-width);
  max-width: var(--time-axis-width);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-subtle);
  background: var(--bg-dark);
}

.corner-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.stage-headers-list {
  display: flex;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.stage-headers-list::-webkit-scrollbar {
  display: none;
}

.stage-header-item {
  flex: 1;
  min-width: var(--stage-col-min-width);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border-subtle);
  border-top: 3px solid var(--stage-color, var(--neon-green));
  transition: all 0.2s;
}

.stage-header-item:last-child {
  border-right: none;
}

.stage-header-name {
  font-family: 'Space Grotesk', 'Barlow', -apple-system, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--stage-color, var(--neon-green));
}

/* Timetable Body (Scroll Area) */
.timetable-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Timetable Grid Content Row (Time Axis + Stages) */
.timetable-grid-content {
  display: flex;
  flex-direction: row;
  position: relative;
  width: 100%;
}

/* Sticky Time Axis (Left Column) */
.time-axis-column {
  width: var(--time-axis-width);
  min-width: var(--time-axis-width);
  background: var(--bg-dark);
  border-right: 1px solid var(--border-subtle);
  position: sticky;
  left: 0;
  z-index: 25;
  height: calc((var(--timeline-end-minutes) - var(--timeline-start-minutes)) * var(--px-per-minute));
}

.time-axis-tick {
  position: absolute;
  left: 0;
  width: 100%;
  padding-right: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-family: monospace;
  font-weight: 600;
  transform: translateY(-50%);
}

.time-axis-tick.hour {
  color: var(--text-primary);
  font-weight: 700;
}

.time-axis-tick.hour::after {
  content: "";
  position: absolute;
  right: 0;
  width: 6px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.time-axis-tick.half::after {
  content: "";
  position: absolute;
  right: 0;
  width: 4px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* Stages Columns Horizontal Scroll Track */
.stages-columns-container {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  height: calc((var(--timeline-end-minutes) - var(--timeline-start-minutes)) * var(--px-per-minute));
  -webkit-overflow-scrolling: touch;
}

/* Scroll Content Wrapper (Spans full width of all stage columns) */
.stages-scroll-content {
  position: relative;
  min-width: 100%;
  width: max-content;
  height: 100%;
}

/* Grid Background Lines (Hour & Half-hour marks) */
.grid-background-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 100%;
  bottom: 0;
  pointer-events: none;
}

.grid-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.04);
}

.grid-line.hour {
  background: rgba(255, 255, 255, 0.08);
}

/* Stage Columns Grid */
.stages-grid-columns {
  display: flex;
  min-width: 100%;
  height: 100%;
  position: relative;
}

.stage-column {
  flex: 1;
  min-width: var(--stage-col-min-width);
  position: relative;
  height: 100%;
  border-right: 1px solid var(--border-subtle);
  padding: 0 4px;
}

.stage-column:last-child {
  border-right: none;
}

/* Single Stage Layout (e.g. Friday Pre-Party @ Gotec Main) */
.is-single-stage .stages-scroll-content {
  min-width: auto;
  width: 100%;
  max-width: 460px;
}

.is-single-stage .stages-grid-columns {
  min-width: auto;
  width: 100%;
}

.is-single-stage .stage-column {
  max-width: 460px;
  width: 100%;
  flex: 1 1 auto;
  border-right: 1px solid var(--border-subtle);
}

.is-single-stage .stage-header-item {
  max-width: 460px;
  width: 100%;
  flex: 1 1 auto;
  border-right: 1px solid var(--border-subtle);
}

.is-single-stage .stage-scroll-btn {
  display: none !important;
}

/* --------------------------------------------------------------------------
   CURRENT TIME INDICATOR ("NOW" LINE)
   -------------------------------------------------------------------------- */
.now-indicator-line {
  position: absolute;
  left: 0;
  width: 100%;
  min-width: 100%;
  z-index: 20;
  pointer-events: none;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  transition: top 0.4s ease;
}

.now-line-badge {
  background: #000000;
  border: 1px solid var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green-glow);
  color: var(--neon-green);
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 800;
  margin-left: 4px;
  position: sticky;
  left: 4px;
  z-index: 22;
  white-space: nowrap;
  flex-shrink: 0;
}

.now-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--neon-green);
  animation: pulse-dot 1.5s infinite;
}

.now-line-label {
  font-size: 0.62rem;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.now-line-bar {
  flex: 1;
  height: 2px;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green-glow), 0 0 2px var(--neon-green);
}

.now-indicator-line.pulse-highlight {
  animation: line-pulse 1.2s ease-out forwards;
}

@keyframes line-pulse {
  0% {
    filter: drop-shadow(0 0 16px var(--neon-green));
  }
  40% {
    filter: drop-shadow(0 0 20px var(--neon-green));
  }
  100% {
    filter: drop-shadow(0 0 0px transparent);
  }
}

/* --------------------------------------------------------------------------
   ACT CARDS (TIMETABLE GRID BLOCKS)
   -------------------------------------------------------------------------- */
.act-card {
  position: absolute;
  left: 4px;
  right: 4px;
  border-radius: var(--radius-md);
  padding: 8px 10px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--stage-color, transparent) 10%, transparent) 0%, var(--bg-surface-card) 60%);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--stage-color, var(--border-subtle));
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.act-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.act-card:active {
  transform: scale(0.98);
}

/* Live Playing State */
.act-card.is-live {
  border-color: var(--neon-green) !important;
  box-shadow: 0 0 16px var(--neon-green-glow), inset 0 0 12px color-mix(in srgb, var(--neon-green) 12%, transparent);
  animation: live-card-pulse 3s infinite ease-in-out;
  z-index: 12;
}

@keyframes live-card-pulse {
  0% { box-shadow: 0 0 12px var(--neon-green-glow); }
  50% { box-shadow: 0 0 24px color-mix(in srgb, var(--neon-green) 50%, transparent), inset 0 0 16px color-mix(in srgb, var(--neon-green) 15%, transparent); }
  100% { box-shadow: 0 0 12px var(--neon-green-glow); }
}

/* Favorite State */
.act-card.is-favorite {
  border-right: 2px solid var(--fav-color, #FF4B6E);
}

/* Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.card-time-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.card-time {
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.card-live-pill {
  background: var(--neon-green);
  color: var(--accent-contrast, #FFFFFF);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  animation: pulse-dot 1.5s infinite;
}

.card-fav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, color 0.15s;
}

.card-fav-btn:hover {
  color: var(--fav-color, #FF4B6E);
  transform: scale(1.15);
}

.card-fav-btn.favorited {
  color: var(--fav-color, #FF4B6E);
}

.card-fav-btn.favorited svg {
  fill: var(--fav-color, #FF4B6E);
}

/* Card Main Details */
.card-body {
  margin: 4px 0;
  flex: 1;
}

.card-artist {
  font-family: 'Space Grotesk', 'Barlow', -apple-system, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text-primary);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Collaborative Set Separators (B2B / F2F / &) & Live Badges */
.act-separator {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0 3px;
  opacity: 0.8;
  transform: translateY(-0.5px);
}

.modal-artist .act-separator {
  font-size: 0.7em;
  padding: 0 5px;
  color: var(--text-muted);
}

/* Card Footer */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.card-duration {
  font-weight: 500;
}

.card-stage-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   LIST VIEW (ALTERNATIVE CHRONOLOGICAL VIEW)
   -------------------------------------------------------------------------- */
.list-view-container {
  height: 100%;
  overflow-y: auto;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
}

.list-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 12px;
}

.list-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--stage-color, var(--border-subtle));
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.list-item-card:hover {
  background: var(--bg-surface-elevated);
  border-color: rgba(255, 255, 255, 0.2);
}

.list-item-card.is-live {
  border-color: var(--neon-green) !important;
  box-shadow: 0 0 14px var(--neon-green-glow);
}

.list-time-block {
  display: flex;
  flex-direction: column;
  min-width: 85px;
}

.list-time {
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.list-duration {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.list-info-block {
  flex: 1;
}

.list-artist-title {
  font-family: 'Space Grotesk', 'Barlow', -apple-system, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.list-stage-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--stage-color, var(--neon-green));
}

/* --------------------------------------------------------------------------
   EMPTY STATE
   -------------------------------------------------------------------------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 80%;
  padding: 24px;
}

.empty-state-icon {
  color: var(--text-muted);
  margin-bottom: 16px;
  background: var(--bg-surface);
  padding: 16px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
}

.empty-state-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 320px;
  margin-bottom: 16px;
}

.btn-neon-outline {
  background: transparent;
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-neon-outline:hover {
  background: var(--neon-green-subtle);
  box-shadow: 0 0 12px var(--neon-green-glow);
}

/* --------------------------------------------------------------------------
   ACT DETAILS MODAL / BOTTOM SHEET
   -------------------------------------------------------------------------- */
.act-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.act-modal-overlay.hidden {
  display: none;
}

.act-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.act-modal-sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--bg-surface-elevated);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  box-shadow: var(--shadow-elevated);
  padding: 16px 20px calc(env(safe-area-inset-bottom, 0px) + 20px);
  z-index: 101;
  animation: sheet-slide-up 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sheet-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-drag-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0 auto 14px;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
}

.modal-stage-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.modal-artist {
  font-family: 'Space Grotesk', 'Barlow', -apple-system, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  line-height: 1.2;
}

.modal-time-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-time {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.modal-live-pill {
  background: var(--neon-green);
  color: var(--accent-contrast, #FFFFFF);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.modal-status-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

.modal-clash-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.8rem;
  color: #FCD34D;
}

.modal-footer {
  display: flex;
  gap: 10px;
}

.modal-btn-favorite {
  flex: 1;
  background: color-mix(in srgb, var(--fav-color) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--fav-color) 40%, transparent);
  color: var(--fav-color);
  border-radius: var(--radius-pill);
  padding: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-btn-favorite.active {
  background: var(--fav-color);
  color: #FFFFFF;
}

.modal-btn-favorite.active .modal-heart-icon {
  fill: #FFFFFF;
}

/* --------------------------------------------------------------------------
   PWA UPDATE AVAILABLE TOAST
   -------------------------------------------------------------------------- */
.pwa-update-toast {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  left: 14px;
  right: 14px;
  max-width: 480px;
  margin: 0 auto;
  background: color-mix(in srgb, var(--bg-surface) 96%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--neon-green);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 20px var(--neon-green-glow);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 1000;
  cursor: pointer;
  animation: updateToastSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes updateToastSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.update-toast-body {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.update-toast-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--neon-green-subtle);
  border: 1px solid color-mix(in srgb, var(--neon-green) 35%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-green);
  flex-shrink: 0;
}

.update-toast-icon {
  animation: updateIconSpin 4s linear infinite;
}

@keyframes updateIconSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.update-toast-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.update-toast-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-toast-sub {
  font-size: 0.72rem;
  color: var(--neon-green);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-toast-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-update-reload {
  background: var(--neon-green);
  color: var(--accent-contrast, #FFFFFF);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 12px var(--neon-green-glow);
  transition: all 0.2s ease;
}

.btn-update-reload:hover,
.btn-update-reload:active {
  filter: brightness(1.1);
  transform: scale(1.04);
  box-shadow: 0 0 16px var(--neon-green-glow);
}

.btn-update-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.btn-update-close:hover,
.btn-update-close:active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0.95);
}

/* --------------------------------------------------------------------------
   IOS PWA INSTALL BANNER
   -------------------------------------------------------------------------- */
.ios-install-toast {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  left: 14px;
  right: 14px;
  max-width: 480px;
  margin: 0 auto;
  background: color-mix(in srgb, var(--bg-surface) 98%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--neon-green);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 0 16px var(--neon-green-glow);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 100;
  font-size: 0.8rem;
}

.ios-toast-content {
  flex: 1;
  color: var(--text-primary);
  line-height: 1.35;
}

.ios-toast-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.2s;
}

.ios-toast-close:hover,
.ios-toast-close:active {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0.95);
}
/* Utility Classes */
.hidden {
  display: none !important;
}

/* Custom Sleek Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  :root {
    --stage-col-min-width: 300px;
    --time-axis-width: 75px;
    --px-per-minute: 2.2px;
  }

  .app-header {
    padding-left: 20px;
    padding-right: 20px;
  }

  .card-artist {
    font-size: 0.95rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --stage-col-min-width: 320px;
  }
  
  .stages-columns-container {
    overflow-x: auto;
  }
}

/* Desktop Drag-to-Scroll cursor cues */
.stages-columns-container {
  cursor: grab;
}

body.is-dragging-timetable,
body.is-dragging-timetable .stages-columns-container,
body.is-dragging-timetable .act-card,
body.is-dragging-timetable .stage-headers-list {
  cursor: grabbing !important;
  user-select: none !important;
}

/* --------------------------------------------------------------------------
   FIRST-VISIT DISCLAIMER OVERLAY
   -------------------------------------------------------------------------- */
.disclaimer-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.disclaimer-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.disclaimer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.disclaimer-card {
  position: relative;
  z-index: 10000;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px color-mix(in srgb, var(--neon-green) 10%, transparent);
  max-width: 440px;
  width: 100%;
  padding: 26px 22px;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.disclaimer-textlogo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0 auto 12px;
}

.disclaimer-textlogo-main {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.1;
  color: #FFFFFF;
  background: linear-gradient(135deg, #FFFFFF 20%, var(--neon-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.disclaimer-textlogo-sub {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--neon-green);
  opacity: 0.85;
  text-transform: uppercase;
}

.disclaimer-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 179, 0, 0.12);
  border: 1px solid rgba(255, 179, 0, 0.3);
  color: #FFB300;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.disclaimer-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.disclaimer-intro {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.disclaimer-intro strong {
  color: var(--neon-green);
}

.disclaimer-sub {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.disclaimer-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
}

.disclaimer-btn-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.disclaimer-btn-link svg {
  flex-shrink: 0;
  color: var(--neon-green);
}

.disclaimer-btn-link.btn-instagram svg {
  color: #E1306C;
}

@media (hover: hover) {
  .disclaimer-btn-link:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.25);
  }
}

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

.btn-arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-left: auto;
}

.btn-confirm-disclaimer {
  width: 100%;
  height: 48px;
  background: var(--neon-green);
  color: var(--accent-contrast, #FFFFFF);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 0 16px var(--neon-green-glow);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-confirm-disclaimer:active {
  transform: scale(0.97);
  box-shadow: 0 0 8px var(--neon-green-glow);
}

@media (hover: hover) {
  .btn-confirm-disclaimer:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 22px var(--neon-green-glow);
  }
}

/* --------------------------------------------------------------------------
   MINI PRIVACY & AUTHOR TEXTLINKS & PRIVACY MODAL
   -------------------------------------------------------------------------- */
.disclaimer-mini-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 12px;
}

.mini-links-sep {
  color: var(--text-muted);
  font-size: 0.75rem;
  opacity: 0.45;
  user-select: none;
  padding: 0 3px;
}

.btn-mini-textlink {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 3px 6px;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
}

.btn-mini-textlink:hover,
.btn-mini-textlink:active {
  color: var(--neon-green);
}

#privacy-modal {
  z-index: 20000;
}

.privacy-modal-sheet {
  max-width: 540px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.privacy-modal-contact {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.privacy-contact-label {
  color: var(--text-muted);
  font-weight: 600;
}

.privacy-mail-link,
.privacy-ext-link {
  color: var(--neon-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 0 14px;
}

.privacy-card-highlight {
  background: color-mix(in srgb, var(--neon-green) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--neon-green) 25%, transparent);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-primary);
}

.privacy-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.privacy-card-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  margin: 0;
}

.privacy-card p {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
}

.privacy-stand {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
  padding-top: 4px;
}

.privacy-modal-footer {
  padding: 8px 0 0;
  background: transparent;
  border-top: none;
}

.btn-confirm-privacy {
  width: 100%;
  height: 44px;
  background: transparent;
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-confirm-privacy:hover,
.btn-confirm-privacy:active {
  background: color-mix(in srgb, var(--neon-green) 15%, transparent);
  box-shadow: 0 0 12px var(--neon-green-glow);
}

/* --------------------------------------------------------------------------
   TIMETABLE MAIN FOOTER (Grid, List, Empty State)
   -------------------------------------------------------------------------- */
.timetable-main-footer {
  width: 100%;
  padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 10px);
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-black);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  z-index: 10;
}

.timetable-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
}

.timetable-main-footer .btn-mini-textlink {
  font-size: 0.70rem;
  padding: 2px 4px;
  color: var(--text-muted);
  opacity: 0.85;
}

.timetable-main-footer .btn-mini-textlink:hover,
.timetable-main-footer .btn-mini-textlink:active {
  opacity: 1;
  color: var(--neon-green);
}

.timetable-main-footer .mini-links-sep {
  font-size: 0.65rem;
  opacity: 0.35;
  padding: 0 2px;
}

.empty-state-footer {
  margin-top: 16px;
  background: transparent;
  border-top: none;
  padding: 8px 12px 0;
}

/* --------------------------------------------------------------------------
   IN-APP BROWSER FLOATING BANNER
   -------------------------------------------------------------------------- */
.iab-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30000;
  background: color-mix(in srgb, var(--bg-surface) 96%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--neon-green);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85), 0 0 25px var(--neon-green-glow);
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 14px;
  animation: slideDownIAB 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-primary);
}

.iab-banner.hidden {
  display: none !important;
}

@keyframes slideDownIAB {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.iab-pointer-indicator {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--neon-green);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.iab-pointer-text {
  opacity: 0.9;
}

.iab-dots-icon {
  background: var(--neon-green-subtle);
  border: 1px solid color-mix(in srgb, var(--neon-green) 40%, transparent);
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: 2px;
  color: #FFFFFF;
}

.iab-arrow-svg {
  animation: bounceIABArrow 1.3s infinite ease-in-out;
  color: var(--neon-green);
  flex-shrink: 0;
}

@keyframes bounceIABArrow {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(3px, -3px);
  }
}

.iab-content {
  max-width: 560px;
  margin: 0 auto;
}

.iab-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.iab-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(255, 179, 0, 0.15);
  border: 1px solid rgba(255, 179, 0, 0.4);
  color: #FFB300;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.iab-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.3px;
  margin: 0;
}

.iab-instructions {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.iab-instructions strong {
  color: var(--neon-green);
  font-weight: 700;
}

.iab-reason {
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--text-secondary);
  margin: 0 0 10px;
}

.iab-reason em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.75);
}

.iab-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-iab-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--neon-green);
  color: var(--accent-contrast, #FFFFFF);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-iab-copy:active {
  transform: scale(0.96);
}

.btn-iab-copy.copied {
  filter: brightness(1.15);
}

.btn-iab-intent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-iab-intent:active {
  transform: scale(0.96);
}

.btn-iab-dismiss {
  margin-left: auto;
  padding: 6px 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-iab-dismiss:hover,
.btn-iab-dismiss:active {
  color: #FFFFFF;
}
