/* ============================================
   Megaport Festival 2026 Planner
   20th Anniversary Edition
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&display=swap');

:root {
  --primary: #FF6B35;
  --primary-light: #FF8F65;
  --primary-dark: #E55A2B;
  --primary-glow: rgba(255,107,53,0.3);
  --secondary: #1A1A2E;
  --accent: #16213E;
  --bg: #0A0A14;
  --bg-card: #14142A;
  --bg-card-hover: #1E1E3A;
  --bg-elevated: #1A1A30;
  --text: #F0F0F5;
  --text-secondary: #9090B0;
  --text-dim: #606080;
  --success: #00E676;
  --success-bg: rgba(0,230,118,0.1);
  --warning: #FFD740;
  --warning-bg: rgba(255,215,64,0.1);
  --danger: #FF5252;
  --danger-bg: rgba(255,82,82,0.1);
  --border: #252545;
  --border-light: #303060;
  --gradient-primary: linear-gradient(135deg, #FF6B35, #FF3D7F);
  --gradient-dark: linear-gradient(180deg, #0A0A14 0%, #14142A 100%);
  --gradient-card: linear-gradient(145deg, #14142A, #1A1A30);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 20px var(--primary-glow);
  --radius: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* ---- Animated Background ---- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,107,53,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,61,127,0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(22,33,62,0.8) 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Header ---- */
.header {
  background: rgba(10,10,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

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

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow);
}

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

.logo-title {
  font-size: 1.1rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.6rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

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

.badge {
  background: var(--gradient-primary);
  color: white;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

.lang-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover { border-color: var(--primary); color: var(--text); }

/* ---- Navigation ---- */
.nav-bar {
  display: flex;
  gap: 2px;
  max-width: 1200px;
  margin: 8px auto 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0;
}

.nav-bar::-webkit-scrollbar { display: none; }

.nav-tab {
  flex-shrink: 0;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
}

.nav-tab:hover { color: var(--text-secondary); }

.nav-tab.active {
  color: var(--primary);
  background: rgba(255,107,53,0.08);
}

.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.nav-tab .tab-icon {
  font-size: 1rem;
  display: block;
  text-align: center;
  margin-bottom: 1px;
}

/* ---- Day Selector (inside pages) ---- */
.day-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.day-btn {
  padding: 8px 20px;
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--text-secondary);
  border-radius: 24px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.day-btn:hover { border-color: var(--primary-light); color: var(--text); }

.day-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-glow);
}

/* ---- Main Content ---- */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  position: relative;
  z-index: 1;
}

.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Countdown Banner ---- */
.countdown-banner {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.countdown-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255,107,53,0.05), transparent, rgba(255,61,127,0.05), transparent);
  animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
  to { transform: rotate(360deg); }
}

.countdown-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  position: relative;
}

.countdown-timer {
  display: flex;
  gap: 8px;
  justify-content: center;
  position: relative;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-num {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.countdown-text {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 2px;
}

.countdown-sep {
  font-size: 1.5rem;
  color: var(--text-dim);
  align-self: flex-start;
  margin-top: 2px;
}

.countdown-venue {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 8px;
  position: relative;
}

/* ---- Search Bar ---- */
.search-bar {
  position: relative;
  margin-bottom: 12px;
}

.search-bar input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.search-bar input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.search-bar input::placeholder { color: var(--text-dim); }

.search-bar::before {
  content: '🔍';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
}

/* ---- Stage Filter ---- */
.stage-filter {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.stage-filter::-webkit-scrollbar { display: none; }

.stage-filter-btn {
  flex-shrink: 0;
  padding: 5px 12px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.stage-filter-btn:hover { border-color: var(--primary-light); }
.stage-filter-btn.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ---- Band Selection ---- */
.stage-section { margin-bottom: 20px; }

.stage-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  margin-bottom: 8px;
}

.stage-color-bar {
  width: 3px;
  height: 20px;
  border-radius: 2px;
}

.stage-name { font-size: 0.95rem; font-weight: 800; }
.stage-icon { font-size: 1.1rem; }

.band-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 6px;
}

.band-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
  user-select: none;
  -webkit-user-select: none;
}

.band-card:hover { background: var(--bg-card-hover); transform: translateY(-1px); }
.band-card:active { transform: scale(0.98); }

.band-card.selected {
  border-color: var(--success);
  background: var(--success-bg);
}

.band-card.must-see {
  border-color: var(--warning);
  background: var(--warning-bg);
  box-shadow: 0 0 12px rgba(255,215,64,0.1);
}

.band-info { flex: 1; min-width: 0; }

.band-name {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.band-time {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 1px;
}

.yt-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FF0000;
  color: white;
  font-size: 9px;
  text-decoration: none;
  margin-left: 6px;
  vertical-align: middle;
  transition: var(--transition);
  line-height: 1;
}

.yt-link:hover {
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(255,0,0,0.4);
}

.venue-map-expanded img {
  transform: scale(1.5);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.band-status {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.04);
  border: none;
  color: var(--text-dim);
  transition: var(--transition);
}

.band-card.selected .band-status { color: var(--success); background: rgba(0,230,118,0.15); }
.band-card.must-see .band-status { color: var(--warning); background: rgba(255,215,64,0.15); }

/* ---- Schedule Timeline ---- */
.schedule-timeline { position: relative; }

.time-slot {
  display: flex;
  align-items: stretch;
  margin-bottom: 4px;
}

.time-label {
  width: 52px;
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--text-dim);
  padding-top: 4px;
  text-align: right;
  padding-right: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.time-content {
  flex: 1;
  border-left: 2px solid var(--border);
  padding-left: 14px;
  padding-bottom: 8px;
}

.schedule-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 6px;
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.schedule-card:hover { background: var(--bg-card-hover); }

.schedule-card.conflict {
  border-left-color: var(--danger);
  background: var(--danger-bg);
}

.schedule-card .band-name { font-size: 0.9rem; font-weight: 700; }

.stage-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
  font-weight: 700;
}

.walking-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 6px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
}

.walking-info.tight { color: var(--warning); border-color: rgba(255,215,64,0.2); }
.walking-info.too-tight { color: var(--danger); border-color: rgba(255,82,82,0.2); }

.conflict-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--danger-bg);
  color: var(--danger);
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 6px;
}

/* ---- Map ---- */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  height: 480px;
  position: relative;
  border: 1px solid var(--border);
}

#map, #accommodation-map { width: 100%; height: 100%; }

.map-controls {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.map-btn {
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
}

.map-btn:hover { border-color: var(--primary); color: var(--text); }
.map-btn.active { background: var(--primary); border-color: var(--primary); color: white; }

.stage-markers-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
  margin-top: 16px;
}

.stage-marker-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  font-size: 0.85rem;
}

.stage-marker-card:hover { background: var(--bg-card-hover); border-color: var(--border); }

.stage-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- Walking Matrix ---- */
.walking-matrix {
  overflow-x: auto;
  margin-top: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.walking-matrix table {
  border-collapse: collapse;
  font-size: 0.7rem;
  width: 100%;
  min-width: 600px;
}

.walking-matrix th, .walking-matrix td {
  padding: 6px 8px;
  text-align: center;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.walking-matrix th {
  background: var(--bg-elevated);
  font-weight: 700;
  position: sticky;
  top: 0;
  color: var(--text-secondary);
}

.walking-matrix td { background: var(--bg-card); }
.walking-matrix td.short { color: var(--success); font-weight: 600; }
.walking-matrix td.medium { color: var(--warning); font-weight: 600; }
.walking-matrix td.long { color: var(--danger); font-weight: 600; }
.walking-matrix td.self { background: var(--bg-elevated); color: var(--text-dim); }

/* ---- Cards / Sections ---- */
.section-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.section-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-card p.desc {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-bottom: 12px;
}

/* ---- Inputs ---- */
.input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.input-field {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.input-field:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.input-field::placeholder { color: var(--text-dim); }

/* ---- Buttons ---- */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover { filter: brightness(1.1); }

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover { border-color: var(--primary); color: var(--text); }

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-sm { padding: 6px 12px; font-size: 0.75rem; }

/* ---- Toggle Switch ---- */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ---- Transport Cards ---- */
.transport-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 8px;
  border-left: 3px solid var(--primary);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.transport-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(255,107,53,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.transport-info { flex: 1; }
.transport-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 2px; }
.transport-detail { font-size: 0.78rem; color: var(--text-secondary); }
.transport-walk { font-size: 0.72rem; color: var(--primary); margin-top: 2px; }

.tips-list {
  list-style: none;
  padding: 0;
}

.tips-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.tips-list li:last-child { border-bottom: none; }
.tips-list li::before { content: '💡'; flex-shrink: 0; }

/* ---- Route Result ---- */
.route-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  border: 1px solid var(--border);
}

.route-card .route-icon { font-size: 1.3rem; }
.route-card .route-label { font-size: 0.72rem; color: var(--text-dim); }
.route-card .route-value { font-size: 0.9rem; font-weight: 700; }

/* ---- Language Selector ---- */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.lang-option {
  padding: 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.lang-option:hover { border-color: var(--primary); }
.lang-option.active { border-color: var(--primary); background: rgba(255,107,53,0.1); }
.lang-option .flag { font-size: 1.5rem; display: block; margin-bottom: 4px; }

/* ---- Share ---- */
.share-section { text-align: center; padding: 20px 0; }
.share-section h2 { margin-bottom: 12px; font-size: 1.2rem; }

.share-url {
  display: flex;
  gap: 8px;
  max-width: 500px;
  margin: 12px auto;
}

/* ---- Toast ---- */
.toast-container {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  min-width: 280px;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  backdrop-filter: blur(10px);
}

.toast-icon { font-size: 1.3rem; flex-shrink: 0; }
.toast-content { flex: 1; }
.toast-title { font-weight: 700; font-size: 0.85rem; }
.toast-message { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }

.toast-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-secondary);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: 0.9rem; margin-bottom: 16px; }

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-dim);
  font-size: 0.7rem;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.footer a { color: var(--primary); text-decoration: none; }
.footer p { margin-bottom: 4px; }

/* ---- Section Title ---- */
.section-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 20px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .band-list { grid-template-columns: 1fr 1fr; }
  .map-container { height: 380px; }
  .stage-markers-list { grid-template-columns: repeat(3, 1fr); }
  .countdown-num { font-size: 1.6rem; }
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .header { padding: 8px 12px 0; }
  .logo-icon { width: 30px; height: 30px; font-size: 1rem; }
  .logo-title { font-size: 0.95rem; }
  .nav-tab { padding: 6px 10px; font-size: 0.72rem; }
  .main { padding: 10px; }
  .band-list { grid-template-columns: 1fr; }
  .input-row { flex-direction: column; }
  .time-label { width: 44px; font-size: 0.65rem; }
  .map-container { height: 320px; }
  .map-btn { padding: 5px 10px; font-size: 0.72rem; }
  .stage-markers-list { grid-template-columns: repeat(2, 1fr); }
  .toast-container { top: 70px; right: 8px; left: 8px; }
  .toast { min-width: auto; }
  .share-url { flex-direction: column; }
  .countdown-num { font-size: 1.3rem; }
  .countdown-timer { gap: 4px; }
  .section-card { padding: 14px; }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

::selection { background: var(--primary); color: white; }

@media print {
  .header, .footer, .toast-container, .countdown-banner { display: none; }
  body { background: white; color: black; }
  body::before { display: none; }
}
