/* ===== Variables ===== */
:root {
  --bg: #0C0C0E;
  --bg-card: #161618;
  --bg-card-hover: #1F1F22;
  --primary: #DDE000;
  --primary-rgb: 221, 224, 0;
  --text: #E5E5E5;
  --text-muted: #838490;
  --text-dim: #5B5C66;
  --border: rgba(255,255,255,0.08);
  --radius: 14px;
  --nav-height: 70px;
  --header-height: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Header ===== */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--header-height) + var(--safe-top));
  padding-top: var(--safe-top);
  background: rgba(12, 12, 14, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 16px;
  padding-right: 16px;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
.header-logo {
  height: 32px;
  width: auto;
}
.header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
/* Lang Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-btn {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}
.lang-btn.active {
  color: var(--primary);
}
.lang-sep {
  color: var(--text-dim);
  font-size: 0.7rem;
}

/* ===== Main ===== */
.app-main {
  padding-top: calc(var(--header-height) + var(--safe-top));
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
  min-height: 100vh;
  min-height: 100dvh;
}
.has-countdown .app-main {
  padding-top: calc(var(--header-height) + var(--safe-top) + 46px);
}
.has-countdown #page-map {
  top: calc(var(--header-height) + var(--safe-top) + 46px + 44px);
}

/* ===== Pages ===== */
.page { display: none; padding: 16px; }
.page.active { display: block; }
#page-map.active { display: flex; }

/* ===== Bottom Nav ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(12, 12, 14, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}
.nav-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  cursor: pointer;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.nav-btn svg {
  width: 22px;
  height: 22px;
}
.nav-btn span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.nav-btn.active {
  color: var(--primary);
}

/* ===== Day Tabs ===== */
.day-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.day-tab.active {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

/* ===== Schedule ===== */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.schedule-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: background 0.2s;
  align-items: center;
}
.schedule-item:active {
  background: var(--bg-card-hover);
}
.schedule-time {
  min-width: 52px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  line-height: 1.2;
}
.schedule-details {
  flex: 1;
  min-width: 0;
}
.schedule-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.schedule-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.schedule-genre {
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 600;
  background: rgba(var(--primary-rgb), 0.12);
  padding: 2px 8px;
  border-radius: 20px;
}
.schedule-stage {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}
.schedule-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(var(--primary-rgb), 0.3);
}
.schedule-time-inline {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
}

/* ===== Map ===== */
#page-map {
  position: fixed;
  top: calc(var(--header-height) + var(--safe-top) + 44px);
  left: 0;
  right: 0;
  bottom: calc(var(--nav-height) + var(--safe-bottom));
  padding: 8px;
  padding-top: 0;
  display: none;
  flex-direction: column;
}
#page-map.active {
  display: flex;
}
.map-container {
  flex: 1;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-legend-wrapper {
  position: fixed;
  top: calc(var(--header-height) + var(--safe-top));
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.has-countdown .map-legend-wrapper {
  top: calc(var(--header-height) + var(--safe-top) + 46px);
}
.map-legend {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px;
  flex-shrink: 0;
}
.map-legend::-webkit-scrollbar { display: none; }
.legend-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--bg-card);
  border-radius: 50px;
  border: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.legend-item:active {
  background: var(--bg-card-hover);
}
.legend-icon {
  font-size: 1rem;
}

/* ===== Info Cards ===== */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.info-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.info-tabs::-webkit-scrollbar { display: none; }
.info-card {
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.info-card-highlight {
  border-color: rgba(var(--primary-rgb), 0.3);
  background: rgba(var(--primary-rgb), 0.05);
}
.info-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.info-card-icon {
  flex-shrink: 0;
}
.info-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.info-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.info-card-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}
.info-card-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 500;
}
.info-card-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.info-card-action:active {
  opacity: 0.7;
}
.info-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  transition: all 0.2s;
}
.info-chip:active {
  background: rgba(var(--primary-rgb), 0.25);
}
.info-chip-directions {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
  border-color: rgba(var(--primary-rgb), 0.25);
}
.info-chip-directions:active {
  background: rgba(var(--primary-rgb), 0.25);
}
.info-emergency {
  margin-top: 20px;
  padding: 14px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: var(--radius);
  text-align: center;
}
.info-emergency a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
}

/* ===== Crowdfunding ===== */
.crowdfunding-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cf-hero {
  text-align: center;
  padding: 30px 16px;
}
.cf-heart {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}
.cf-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.cf-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}
.cf-progress-wrap {
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.cf-progress-bar {
  height: 10px;
  background: rgba(var(--primary-rgb), 0.15);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}
.cf-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 10px;
  transition: width 0.6s ease;
}
.cf-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}
.cf-progress-amount {
  font-weight: 700;
  color: var(--primary);
}
.cf-progress-goal {
  color: var(--text-muted);
}
.cf-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.cf-btn:active {
  opacity: 0.85;
}
.cf-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.cf-quote {
  text-align: center;
  padding: 20px;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}
.cf-quote strong {
  color: var(--primary);
  font-style: normal;
}

/* ===== Leaflet overrides ===== */
.leaflet-container {
  background: #e8e8e8 !important;
}
.map-marker-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  margin-bottom: 4px;
}
.map-directions-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #4A90D9;
  text-decoration: none;
  white-space: nowrap;
}
.map-directions-link:active {
  opacity: 0.7;
}
.leaflet-popup-content-wrapper {
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4) !important;
  padding: 0 !important;
}
.leaflet-popup-content {
  margin: 8px 12px !important;
  color: var(--text) !important;
}
.leaflet-popup-tip {
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}
/* ===== SVG Icons ===== */
.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.svg-icon svg {
  width: 24px;
  height: 24px;
}
.svg-icon.icon-sm svg {
  width: 16px;
  height: 16px;
}
.svg-icon.icon-xl svg {
  width: 48px;
  height: 48px;
  color: var(--primary);
}
.map-marker-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg);
  border: 2px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.map-marker-svg svg {
  width: 16px;
  height: 16px;
}
.info-card-icon .svg-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}
.locate-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.locate-btn svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}
.locate-btn:active {
  background: var(--bg-card-hover);
}

/* ===== Install Banner ===== */
.install-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: installFadeIn 0.3s ease;
}
@keyframes installFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.install-banner-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 360px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  animation: installSlideUp 0.4s ease;
}
@keyframes installSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.install-banner-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}
.install-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.install-banner-text strong {
  font-size: 1.1rem;
  color: var(--text);
}
.install-banner-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.install-banner-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}
.install-btn {
  flex: 1;
  padding: 12px;
  background: var(--primary);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s;
}
.install-btn:active {
  opacity: 0.85;
}
.install-dismiss {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.install-dismiss:hover {
  background: rgba(255,255,255,0.15);
}
.ios-instructions {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.ios-instructions p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}
.ios-instructions strong {
  color: var(--text);
}

/* ===== Update Banner ===== */
.update-banner {
  position: fixed;
  top: calc(var(--header-height) + var(--safe-top) + 8px);
  left: 16px;
  right: 16px;
  background: var(--bg-card);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: installSlideUp 0.4s ease;
}
.update-banner-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.update-banner-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--primary);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

/* ===== Countdown Bar ===== */
.countdown-bar {
  position: fixed;
  top: calc(var(--header-height) + var(--safe-top));
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 16px;
  background: rgba(12, 12, 14, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.2);
  z-index: 99;
}
.countdown-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.countdown-units {
  display: flex;
  gap: 12px;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 36px;
}
.countdown-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.countdown-txt {
  font-size: 0.55rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

/* ===== Live Banner ===== */
.live-banner {
  margin-bottom: 12px;
  padding: 12px 14px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: var(--radius);
}
.live-now {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e53e3e;
  animation: livePulse 1.5s infinite;
  flex-shrink: 0;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.live-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
}
.live-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.live-next {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
.live-countdown {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: auto;
}

/* ===== Favorites ===== */
.fav-btn {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}
.fav-btn svg {
  width: 18px;
  height: 18px;
}
.fav-btn.fav-active {
  color: var(--primary);
}
.fav-btn.fav-active svg {
  fill: var(--primary);
}
.fav-btn:active {
  transform: scale(1.2);
}
.schedule-item-fav {
  border-color: rgba(var(--primary-rgb), 0.3);
  background: rgba(var(--primary-rgb), 0.05);
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 0;
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s;
}
.gallery-item img:active {
  transform: scale(0.97);
}
.gallery-lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: installFadeIn 0.2s ease;
}
.gallery-lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  object-fit: contain;
}
.gallery-lightbox-close {
  position: absolute;
  top: calc(var(--safe-top) + 16px);
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Weather Page ===== */
.weather-content {
  padding: 0;
}
.weather-page-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}
.weather-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  margin-bottom: 16px;
}
.weather-hero-icon {
  font-size: 2.4rem;
}
.weather-hero-temp {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.weather-hero-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}
.weather-forecast {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.weather-day {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.weather-day-today {
  border-color: rgba(var(--primary-rgb), 0.3);
  background: rgba(var(--primary-rgb), 0.05);
}
.weather-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.weather-day-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.weather-day-today .weather-day-name {
  color: var(--primary);
}
.weather-day-icon {
  font-size: 1.5rem;
}
.weather-day-temps {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.weather-day-max {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}
.weather-day-min {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
}
.weather-day-details {
  display: flex;
  gap: 14px;
}
.weather-day-detail {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== Share Button ===== */
.share-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.share-btn svg {
  width: 18px;
  height: 18px;
}
.share-btn:active {
  color: var(--primary);
}

/* Nav: distribuir los 5 botones de forma uniforme */
.nav-btn { flex: 1 1 0; min-width: 0; padding-left: 4px; padding-right: 4px; }
.nav-btn span { font-size: 0.6rem; }

/* ===== Band Bio Sheet ===== */
.band-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: bandSheetFade 0.2s ease;
}
@keyframes bandSheetFade { from { opacity: 0; } to { opacity: 1; } }
.band-sheet {
  position: relative;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 8px 20px 28px;
  animation: bandSheetUp 0.3s ease;
  will-change: transform;
}
@keyframes bandSheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.band-sheet-grabber {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 4px auto 12px;
}
.band-sheet-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.band-sheet-img {
  display: block;
  width: 100%;
  height: 220px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center top;
  margin: 4px 0 14px;
}
.band-sheet-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 4px;
}
.band-sheet-genre {
  font-size: 0.9rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 4px;
}
.band-sheet-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
}
.band-sheet-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}
.schedule-item-clickable { cursor: pointer; }
.schedule-item-clickable:active { opacity: 0.7; }

.band-sheet-socials { display: flex; justify-content: center; gap: 20px; margin-top: 18px; }
.band-sheet-social { color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }
.band-sheet-social svg { width: 26px; height: 26px; }
.band-sheet-social:active { opacity: .7; }

/* Header: separar la fecha del logo (gap mínimo garantizado; logo algo menor en móvil) */
.app-header { gap: 12px; }
.header-date { line-height: 1.2; }
@media (max-width: 575.98px) {
  .header-logo { height: 26px; }
}

/* ===== Cookie consent banner ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 14px 16px calc(14px + var(--safe-bottom));
  animation: cookieUp 0.3s ease;
}
@keyframes cookieUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-banner-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-banner-text { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.cookie-banner-text a { color: var(--primary); }
.cookie-banner-actions { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-btn { padding: 9px 18px; border-radius: 10px; border: none; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.cookie-btn-accept { background: var(--primary); color: var(--bg); }
.cookie-btn-reject { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.cookie-prefs-link { display: inline-block; margin-top: 16px; color: var(--text-muted); font-size: 0.8rem; text-decoration: underline; }

/* Chip de leyenda del plano seleccionado (amarillo) */
.legend-item.active { background: var(--primary); border-color: var(--primary); color: var(--bg); }
.legend-item.active .legend-icon { color: var(--bg); }
