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

:root {
  --bg-primary: #06060f;
  --bg-secondary: #0c0c1e;
  --bg-card: rgba(15, 15, 35, 0.85);
  --text-primary: #f0f0f5;
  --text-secondary: #8888aa;
  --text-muted: #555570;
  --border-subtle: rgba(255, 255, 255, 0.06);

  --color-kinetic: #ffc531;
  --color-kinetic-glow: rgba(255, 197, 49, 0.15);
  --color-circuit: #00d4ff;
  --color-circuit-glow: rgba(0, 212, 255, 0.15);
  --color-neon: #3dff8b;
  --color-neon-glow: rgba(61, 255, 139, 0.15);
  --color-stereo: #ff4fd8;
  --color-stereo-glow: rgba(255, 79, 216, 0.15);
  --color-bionic: #ff7a2f;
  --color-bionic-glow: rgba(255, 122, 47, 0.15);
  --color-now: #ff2d78;

  --hour-height: 140px;
  --time-col-width: 44px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  background: #020205;
  /* Oscuro para PC */
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  height: 100%;
}

body {
  height: 100%;
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0, 100, 200, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(155, 50, 180, 0.06) 0%, transparent 60%),
    var(--bg-primary);
}

/* ===== HEADER ===== */
#app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(6, 6, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  flex-shrink: 0;
}

.header-logo-container {
  display: flex;
  align-items: center;
}

.edc-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  font-family: 'Outfit', sans-serif;
  user-select: none;
}

.edc-logo-main {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #ffc531, #ff4fd8 55%, #7b2fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 79, 216, 0.35));
}

.edc-logo-sub {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 3.2px;
  color: var(--text-secondary);
  margin-top: 1px;
}

/* ===== DAY TABS ===== */
.day-tabs {
  display: flex;
  padding: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
}

.day-tab {
  padding: 4px 10px;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.day-tab.active {
  background: linear-gradient(135deg, #7b2fff, #ff4fd8);
  color: #fff;
  box-shadow: 0 0 10px rgba(123, 47, 255, 0.4);
}

.day-tab.soon {
  opacity: 0.45;
}

.day-tab:active {
  transform: scale(0.95);
}

.header-live {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 45, 120, 0.12);
  border: 1px solid rgba(255, 45, 120, 0.3);
  border-radius: 20px;
  padding: 5px 12px;
  transition: opacity 0.3s;
}

.header-live.hidden {
  display: none;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #ff2d78;
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}

.live-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ff2d78;
}

@keyframes livePulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

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

.info-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 5px 10px;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.info-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
}

.info-btn:active {
  transform: scale(0.95);
}

/* Header FAVS button */
.header-fav-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 5px 12px;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-fav-btn:hover {
  background: rgba(255, 60, 100, 0.1);
  color: #ff3c64;
  border-color: rgba(255, 60, 100, 0.3);
}

.header-fav-btn:active {
  transform: scale(0.95);
}

.header-fav-btn.active {
  background: rgba(255, 60, 100, 0.15);
  border-color: rgba(255, 60, 100, 0.4);
  color: #ff3c64;
}

.header-fav-btn.active svg {
  fill: #ff3c64;
}

.info-btn span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ===== ARTIST SEARCH ===== */
.search-panel {
  position: relative;
  z-index: 120;
  flex-shrink: 0;
  padding: 8px 12px 10px;
  background: rgba(6, 6, 15, 0.98);
  border-bottom: 1px solid var(--border-subtle);
}

.search-panel.hidden {
  display: none;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.search-field:focus-within {
  border-color: rgba(255, 79, 216, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 79, 216, 0.15);
}

.search-field input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.search-field input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.search-clear.hidden {
  display: none;
}

.search-results {
  display: none;
  margin-top: 6px;
  border-radius: 14px;
  overflow: hidden;
  background: #101022;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.search-results.open {
  display: block;
}

.search-option {
  display: flex;
  align-items: stretch;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.search-option:first-child {
  border-top: none;
}

.search-option.active,
.search-option:hover {
  background: rgba(255, 255, 255, 0.05);
}

.search-option-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
}

.search-option-name {
  font-size: 15px;
  font-weight: 700;
}

.search-option-name mark {
  background: transparent;
  color: #ff4fd8;
  font-weight: 800;
}

.search-option-main small {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.search-option-fav {
  flex-shrink: 0;
  width: 46px;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.search-option-fav.on {
  color: #ff3c64;
}

.search-empty {
  margin: 0;
  padding: 14px 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.event-block.search-hit {
  z-index: 5;
  border-color: #fff;
  box-shadow: 0 0 0 2px #fff, 0 0 22px var(--stage-color);
  animation: searchHit 1.6s ease;
}

@keyframes searchHit {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.04); }
}

/* ===== STAGE TABS ===== */
#stage-tabs {
  flex-shrink: 0;
  background: rgba(6, 6, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 90;
}

.tabs-container {
  display: flex;
  gap: 4px;
  padding: 12px 16px 12px 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.tabs-container::-webkit-scrollbar {
  display: none;
}

.tab {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  scroll-snap-align: start;
  user-select: none;
  background: rgba(255, 255, 255, 0.03);
}

@media (hover: hover) {
  .tab:hover {
    background: rgba(255, 255, 255, 0.08);
  }
}

.tab:active {
  transform: scale(0.95);
}

.tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.tab[data-stage="kinetic"].active {
  background: rgba(255, 197, 49, 0.12);
  border-color: rgba(255, 197, 49, 0.35);
  color: #ffc531;
}

.tab[data-stage="circuit"].active {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.35);
  color: #00d4ff;
}

.tab[data-stage="neon"].active {
  background: rgba(61, 255, 139, 0.12);
  border-color: rgba(61, 255, 139, 0.35);
  color: #3dff8b;
}

.tab[data-stage="stereo"].active {
  background: rgba(255, 79, 216, 0.12);
  border-color: rgba(255, 79, 216, 0.35);
  color: #ff4fd8;
}

.tab[data-stage="bionic"].active {
  background: rgba(255, 122, 47, 0.12);
  border-color: rgba(255, 122, 47, 0.35);
  color: #ff7a2f;
}

.tab-icon {
  font-size: 12px;
}

.tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tab-color);
}

/* ===== STAGE EMBLEMS ===== */
.stage-icon {
  flex-shrink: 0;
  display: block;
  overflow: visible;
}

.tab-stage-icon {
  display: inline-flex;
  width: 15px;
  height: 15px;
  color: var(--tab-color);
}

.tab-stage-icon .stage-icon {
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--tab-color) 50%, transparent));
}

.stage-column-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.stage-column-header span {
  line-height: 1.15;
}

.stage-column-header .stage-icon {
  filter: drop-shadow(0 0 4px currentColor);
}

.modal-stage {
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-stage .stage-icon {
  filter: drop-shadow(0 0 4px currentColor);
}

.event-stage-badge {
  align-items: center;
  gap: 6px;
}

.event-stage-badge .stage-icon {
  color: var(--stage-color);
}

/* ===== NOW PLAYING BAR ===== */
.now-playing {
  flex-shrink: 0;
  background: linear-gradient(90deg, rgba(255, 45, 120, 0.15), rgba(123, 47, 255, 0.1));
  border-bottom: 1px solid rgba(255, 45, 120, 0.2);
  overflow: hidden;
  transition: max-height 0.3s, opacity 0.3s;
  max-height: 40px;
}

.now-playing.hidden {
  max-height: 0;
  opacity: 0;
}

.now-playing-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
}

.now-label {
  font-weight: 700;
  color: #ff2d78;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.now-artist {
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  position: relative;
}

/* Only apply fade mask when marquee is actively scrolling */
.now-artist.marquee-active {
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: inline-flex;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* Only add spacing between duplicated content when scrolling */
.marquee-active .marquee-content {
  padding-right: 40px;
}

.marquee-active .marquee-track {
  animation: marquee-scroll 18s linear infinite;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.artist-sep {
  color: var(--color-now);
  opacity: 0.7;
  margin: 0 10px;
  font-size: 10px;
  vertical-align: middle;
}

/* ===== B2B BADGE ===== */
.b2b-badge {
  display: inline;
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  opacity: 0.7;
  margin: 0 2px;
  vertical-align: baseline;
}

/* B2B badge in single stage view */
.events-area[data-view="single"] .b2b-badge {
  font-size: 0.6em;
}

/* B2B badge in modal */
.modal-dj-name .b2b-badge {
  font-size: 0.5em;
  opacity: 0.6;
}

/* B2B badge in marquee */
.marquee-content .b2b-badge {
  font-size: 10px;
}

/* ===== TIMELINE ===== */
#timeline-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
  scroll-behavior: smooth;
}

.timeline-scroll {
  position: relative;
  min-height: 100%;
}

/* Time Column */
.time-ruler {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--time-col-width);
  height: 100%;
  z-index: 10;
}

.time-mark {
  position: absolute;
  left: 0;
  width: var(--time-col-width);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0;
  transform: translateY(-8px);
}

.time-mark span {
  font-family: 'Outfit', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.time-mark.half span {
  font-size: 9px;
  font-weight: 500;
  opacity: 0.5;
}

/* Grid lines */
.grid-line {
  position: absolute;
  left: var(--time-col-width);
  right: 0;
  height: 1px;
  background: var(--border-subtle);
}

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

.grid-line.half {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px dashed rgba(255, 255, 255, 0.03);
}

/* Event Blocks Area */
.events-area {
  position: absolute;
  left: var(--time-col-width);
  right: 8px;
  top: 0;
  height: 100%;
}

/* Stage Columns for ALL view */
.events-area[data-view="all"] {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
}

.events-area[data-view="single"] {
  padding-left: 8px;
}

.stage-column {
  position: relative;
}

.stage-column-header {
  position: sticky;
  top: 6px;
  z-index: 40;
  text-align: center;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  background: rgba(6, 6, 15, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 2px;
  border-radius: 8px;
  margin: 0 2px;
  border-bottom: 2px solid;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Event Block */
.event-block {
  position: absolute;
  left: 2px;
  right: 2px;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: blockFadeIn 0.4s ease backwards;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.event-block:hover {
  background: rgba(255, 255, 255, 0.05);
}

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

.event-block::before {
  display: none;
}

/* Stage colors */
.event-block.kinetic {
  --stage-color: var(--color-kinetic);
  --stage-glow: var(--color-kinetic-glow);
  background: linear-gradient(135deg, rgba(255, 197, 49, 0.08), rgba(255, 197, 49, 0.03));
  border-color: rgba(255, 197, 49, 0.2);
}

.event-block.kinetic .event-time {
  color: var(--color-kinetic);
}

.event-block.circuit {
  --stage-color: var(--color-circuit);
  --stage-glow: var(--color-circuit-glow);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(0, 212, 255, 0.03));
  border-color: rgba(0, 212, 255, 0.2);
}

.event-block.circuit .event-time {
  color: var(--color-circuit);
}

.event-block.neon {
  --stage-color: var(--color-neon);
  --stage-glow: var(--color-neon-glow);
  background: linear-gradient(135deg, rgba(61, 255, 139, 0.08), rgba(61, 255, 139, 0.03));
  border-color: rgba(61, 255, 139, 0.2);
}

.event-block.neon .event-time {
  color: var(--color-neon);
}

.event-block.stereo {
  --stage-color: var(--color-stereo);
  --stage-glow: var(--color-stereo-glow);
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.08), rgba(255, 79, 216, 0.03));
  border-color: rgba(255, 79, 216, 0.2);
}

.event-block.stereo .event-time {
  color: var(--color-stereo);
}

.event-block.bionic {
  --stage-color: var(--color-bionic);
  --stage-glow: var(--color-bionic-glow);
  background: linear-gradient(135deg, rgba(255, 122, 47, 0.08), rgba(255, 122, 47, 0.03));
  border-color: rgba(255, 122, 47, 0.2);
}

.event-block.bionic .event-time {
  color: var(--color-bionic);
}

/* Playing now highlight — subtle brighter background + soft pulse */
@keyframes playingGlowSubtle {
  0% { box-shadow: 0 0 6px color-mix(in srgb, var(--stage-glow) 40%, transparent), 0 4px 12px rgba(0, 0, 0, 0.2); }
  50% { box-shadow: 0 0 15px color-mix(in srgb, var(--stage-glow) 60%, transparent), 0 4px 12px rgba(0, 0, 0, 0.2); }
  100% { box-shadow: 0 0 6px color-mix(in srgb, var(--stage-glow) 40%, transparent), 0 4px 12px rgba(0, 0, 0, 0.2); }
}

.event-block.playing {
  border-color: color-mix(in srgb, var(--stage-color) 60%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--stage-color) 18%, transparent), color-mix(in srgb, var(--stage-color) 8%, transparent));
  animation: playingGlowSubtle 3s ease-in-out infinite;
}

.event-block.past {
  opacity: 0.4;
}

.event-name {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.event-time {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.event-time::before {
  display: none;
}

.event-genre {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.event-stage-badge {
  display: inline-flex;
  margin-top: 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.events-area[data-view="all"] .event-name {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.1;
  margin-bottom: 2px;
  overflow-wrap: anywhere;
}

.events-area[data-view="all"] .event-time {
  font-size: 8px;
  letter-spacing: 0;
}

.events-area[data-view="all"] .event-time::before {
  display: none;
}

.events-area[data-view="all"] .event-genre {
  display: none;
}

.events-area[data-view="all"] .event-block {
  padding: 6px 3px;
  border-radius: 8px;
  justify-content: center;
}

.events-area[data-view="all"] .event-block::before {
  width: 2px;
}

.events-area[data-view="all"] .event-stage-badge {
  display: none;
}

/* Stage column header in ALL view */
.stage-col-header {
  position: sticky;
  top: 0;
  z-index: 20;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 2px;
  background: rgba(6, 6, 15, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* ===== NOW LINE ===== */
.now-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 50;
  pointer-events: none;
  display: flex;
  align-items: center;
  transition: top 1s linear;
}

.now-line::before {
  content: '';
  position: absolute;
  left: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-now);
  box-shadow: 0 0 8px var(--color-now), 0 0 20px rgba(255, 45, 120, 0.4);
  z-index: 2;
}

.now-line::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-now), rgba(255, 45, 120, 0.3));
  box-shadow: 0 0 6px rgba(255, 45, 120, 0.3);
}

.now-line-label {
  position: absolute;
  right: 8px;
  top: -10px;
  font-size: 10px;
  font-weight: 800;
  color: var(--color-now);
  letter-spacing: 1px;
  background: rgba(6, 6, 15, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 45, 120, 0.5);
  padding: 3px 8px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 45, 120, 0.3);
  z-index: 5;
}

/* ===== SCROLL TO NOW BUTTON ===== */
.scroll-to-now {
  position: fixed;
  bottom: calc(20px + var(--safe-bottom));
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #ff2d78, #7b2fff);
  color: white;
  border: none;
  border-radius: 25px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(255, 45, 120, 0.4);
  transition: all 0.3s ease;
  animation: floatBtn 3s ease-in-out infinite;
}

.scroll-to-now.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.scroll-to-now:active {
  transform: scale(0.92);
}

/* ===== FLOATING INFO BUTTON ===== */
.floating-info-btn {
  position: fixed;
  bottom: calc(20px + var(--safe-bottom));
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(15, 15, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.floating-info-btn:hover {
  background: rgba(30, 30, 60, 0.9);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.floating-info-btn:active {
  transform: scale(0.92);
}

@keyframes floatBtn {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

/* ===== ANIMATIONS ===== */
@keyframes blockFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes playingGlow {

  0%,
  100% {
    box-shadow: 0 0 8px var(--stage-glow), inset 0 0 4px var(--stage-glow);
  }

  50% {
    box-shadow: 0 0 16px var(--stage-glow), inset 0 0 8px var(--stage-glow);
  }
}

/* ===== SCROLLBAR ===== */
#timeline-container::-webkit-scrollbar {
  width: 3px;
}

#timeline-container::-webkit-scrollbar-track {
  background: transparent;
}

#timeline-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* ===== DETAIL MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-sheet {
  width: 100%;
  max-width: 420px;
  background: var(--bg-secondary);
  border-radius: 20px 20px 0 0;
  padding: 20px 20px calc(20px + var(--safe-bottom));
  max-height: 92vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
  border: 1px solid var(--border-subtle);
  border-bottom: none;
}

.modal-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  margin: 0 auto 16px;
}

.modal-dj-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.modal-dj-photo {
  position: relative;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--stage-color);
  box-shadow: 0 0 18px color-mix(in srgb, var(--stage-color) 35%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--stage-color) 35%, #0c0c1e), #0c0c1e);
}

.modal-dj-photo::before {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--stage-color);
}

.modal-dj-photo img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-dj-info {
  min-width: 0;
}

.modal-dj-info .modal-stage {
  margin-bottom: 4px;
}

.modal-dj-info .modal-dj-genre {
  margin: 0;
}

.modal-dj-name {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.modal-dj-nat {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.modal-dj-genre {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: -6px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-stage {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.modal-time-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  margin-bottom: 12px;
}

.modal-time-icon {
  font-size: 20px;
}

.modal-time-range {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.modal-time-duration {
  font-size: 11px;
  color: var(--text-secondary);
  margin-left: auto;
}

.modal-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.modal-status.playing {
  background: rgba(255, 45, 120, 0.15);
  color: #ff2d78;
}

.modal-status.upcoming {
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
}

.modal-status.past {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.modal-close {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-close:active {
  background: rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(100%);
  }
}

.modal-info-content {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  line-height: 1.5;
  text-align: center;
  padding: 10px 0;
}

.modal-info-icon {
  color: #00d4ff;
  margin-bottom: 16px;
  display: inline-block;
}

.modal-info-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.modal-info-highlight {
  font-size: 13px;
  font-weight: 600;
  color: #ff6b35;
  background: rgba(255, 107, 53, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 8px;
}

/* ===== EMPTY HOURS ===== */
.empty-hour-label {
  position: absolute;
  left: calc(var(--time-col-width) + 16px);
  color: var(--text-muted);
  font-size: 11px;
  font-style: italic;
  opacity: 0.5;
  transform: translateY(10px);
}

/* ===== FAVORITES ===== */

/* Share button in tabs bar */
.share-tab-btn {
  margin-left: auto;
  padding: 6px 12px !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-muted) !important;
}

.share-tab-btn:hover {
  color: var(--text-primary) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.share-tab-btn:active {
  transform: scale(0.95);
}

/* FAVS tab active state */
.tab[data-stage="favs"].active {
  background: rgba(255, 60, 100, 0.12);
  border-color: rgba(255, 60, 100, 0.35);
  color: #ff3c64;
}

.tab[data-stage="favs"].active svg {
  fill: #ff3c64;
}

/* Fav count badge */
.fav-count-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #ff3c64;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

/* Heart on event blocks */
.block-heart {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.fav-heart {
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.2s, transform 0.2s;
}

.fav-heart.active {
  color: #ff3c64;
  filter: drop-shadow(0 0 4px rgba(255, 60, 100, 0.5));
}

/* Favorited block highlight — strong & prominent */
.event-block.fav {
  border-color: var(--stage-color);
  animation: playingGlow 2s ease-in-out infinite;
  transition: opacity 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

/* Dimmed state for non-favorites in FAVS view */
.event-block.dimmed {
  opacity: 0.2;
  transition: opacity 0.3s ease;
}

/* Modal favorite button */
.modal-fav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 60, 100, 0.08);
  border: 1px solid rgba(255, 60, 100, 0.25);
  border-radius: 12px;
  color: #ff3c64;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-fav-btn:hover {
  background: rgba(255, 60, 100, 0.15);
}

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

.modal-fav-btn.active {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

.modal-fav-btn.active svg {
  fill: none;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(15, 15, 30, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== SCHEDULE CONFLICTS ===== */
:root {
  --color-conflict: #ffae34;
  --conflict-hatch: repeating-linear-gradient(-45deg, rgba(255, 174, 52, 0.32) 0 3px, transparent 3px 7px);
}

.bolt-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -1px;
}

/* Overlapping slice inside a favorite block */
.event-block {
  isolation: isolate;
}

.conflict-zone {
  position: absolute;
  left: 0;
  right: 0;
  z-index: -1;
  background: repeating-linear-gradient(-45deg, rgba(255, 174, 52, 0.2) 0 3px, transparent 3px 7px);
  border-top: 1px dashed rgba(255, 174, 52, 0.7);
  border-bottom: 1px dashed rgba(255, 174, 52, 0.7);
  pointer-events: none;
}

.conflict-flag {
  position: absolute;
  top: 4px;
  left: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-conflict);
  color: #1a1000;
  box-shadow: 0 0 8px rgba(255, 174, 52, 0.6);
  pointer-events: none;
}

.conflict-flag .bolt-icon {
  width: 10px;
  height: 10px;
}

/* Badge on the FAVS header button */
.header-fav-btn {
  position: relative;
}

.conflict-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-conflict);
  color: #1a1000;
  box-shadow: 0 0 0 2px var(--bg-primary), 0 0 10px rgba(255, 174, 52, 0.6);
  animation: conflictPulse 2s ease-in-out infinite;
}

.conflict-badge.hidden {
  display: none;
}

@keyframes conflictPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Bar under the stage tabs */
.conflict-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 16px;
  border: none;
  border-bottom: 1px solid rgba(255, 174, 52, 0.25);
  background: linear-gradient(90deg, rgba(255, 174, 52, 0.14), rgba(255, 174, 52, 0.04));
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.conflict-bar.hidden {
  display: none;
}

.conflict-bar-icon {
  display: flex;
  color: var(--color-conflict);
  filter: drop-shadow(0 0 4px rgba(255, 174, 52, 0.6));
}

.conflict-bar-title {
  flex-shrink: 0;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--color-conflict);
  text-transform: uppercase;
  font-size: 11px;
}

.conflict-bar-detail {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-secondary);
  font-weight: 600;
}

.conflict-bar-cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-conflict);
}

/* "Se cruza con" in the DJ modal */
.modal-conflicts {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 174, 52, 0.06);
  border: 1px solid rgba(255, 174, 52, 0.22);
}

.modal-conflicts-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-conflict);
}

.modal-conflict-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  margin-top: 6px;
  border: none;
  border-left: 3px solid var(--stage-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  text-align: left;
  cursor: pointer;
}

.modal-conflict-item .stage-icon {
  color: var(--stage-color);
}

.modal-conflict-name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 700;
}

.modal-conflict-name small {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
}

.modal-conflict-overlap {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-conflict);
  background: rgba(255, 174, 52, 0.12);
  padding: 3px 8px;
  border-radius: 10px;
}

/* Conflicts sheet */
.modal-sheet--scroll {
  max-height: 88vh;
  overflow-y: auto;
}

.conflicts-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.conflicts-title .bolt-icon {
  width: 18px;
  height: 18px;
  color: var(--color-conflict);
}

.conflicts-subtitle,
.conflicts-empty {
  margin: 6px 0 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.conflicts-day {
  margin: 16px 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.conflict-card {
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.conflict-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.conflict-window {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.conflict-window .bolt-icon {
  color: var(--color-conflict);
}

.conflict-meta {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-conflict);
}

.gantt {
  --label-w: 118px;
  position: relative;
}

.gantt-grid {
  position: absolute;
  top: 0;
  bottom: 18px;
  left: calc(var(--label-w) + 10px);
  right: 0;
  pointer-events: none;
}

.gantt-period {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 6px;
  background: rgba(255, 174, 52, 0.06);
}

.gantt-gridline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.gantt-row,
.gantt-heat-row,
.gantt-axis {
  display: grid;
  grid-template-columns: var(--label-w) 1fr;
  gap: 10px;
  align-items: center;
}

.gantt-row {
  width: 100%;
  padding: 5px 0;
  border: none;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.gantt-label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.gantt-label .stage-icon {
  color: var(--stage-color);
}

.gantt-name {
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
}

.gantt-name-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gantt-name small {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-secondary);
}

.gantt-track {
  position: relative;
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.gantt-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--stage-color), color-mix(in srgb, var(--stage-color) 55%, transparent));
  box-shadow: 0 0 10px color-mix(in srgb, var(--stage-color) 45%, transparent);
}

.gantt-clash {
  position: absolute;
  top: -2px;
  bottom: -2px;
  border-radius: 4px;
  background: repeating-linear-gradient(-45deg, rgba(10, 6, 0, 0.55) 0 3px, transparent 3px 6px);
  box-shadow: inset 0 0 0 1.5px var(--color-conflict);
}

.gantt-row:hover .gantt-name-text,
.gantt-row:active .gantt-name-text {
  color: var(--stage-color);
}

.gantt-heat-row {
  margin-top: 6px;
}

.gantt-heat-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: right;
}

.gantt-heat {
  position: relative;
  height: 14px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
}

.gantt-heat-seg {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #1a1000;
}

.gantt-heat-seg.level-2 { background: rgba(255, 174, 52, 0.55); }
.gantt-heat-seg.level-3 { background: #ff8a2a; }
.gantt-heat-seg.level-4 { background: #ff4d3a; color: #fff; }

.gantt-heat-seg:first-child { border-top-left-radius: 7px; border-bottom-left-radius: 7px; }
.gantt-heat-seg:last-child { border-top-right-radius: 7px; border-bottom-right-radius: 7px; }

.gantt-axis {
  height: 18px;
}

.gantt-ticks {
  position: relative;
  height: 100%;
}

.gantt-tick {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.gantt-tick.first {
  transform: none;
}

.gantt-tick.last {
  transform: translateX(-100%);
}

/* ===== SHARE POSTER SHEET ===== */
.modal-sheet--share {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: calc(100dvh - 12px);
  padding-top: 10px;
  padding-bottom: calc(14px + var(--safe-bottom));
}

.share-sheet-head {
  flex-shrink: 0;
  touch-action: none;
  cursor: grab;
  padding-bottom: 10px;
}

.modal-sheet--share .modal-handle {
  width: 52px;
  height: 5px;
  margin: 2px auto 12px;
  background: rgba(255, 255, 255, 0.28);
}

.share-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.share-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 0;
}

.share-x {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  cursor: pointer;
}

.share-x:active {
  transform: scale(0.94);
}

.share-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.share-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.share-preview canvas {
  display: block;
  height: min(38vh, 420px);
  width: auto;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  background: #06051a;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.share-preview-hint {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
}

.share-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.share-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.share-days {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.share-day {
  flex: 1;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.share-day.active {
  border-color: transparent;
  background: linear-gradient(135deg, #7b2fff, #ff4fd8);
  color: #fff;
}

.share-help {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 2px 0 6px;
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

.share-btn.primary {
  grid-column: 1 / -1;
  border: none;
  background: linear-gradient(135deg, #7b2fff, #ff4fd8);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 14px;
  box-shadow: 0 6px 20px rgba(255, 79, 216, 0.3);
}

.share-actions .share-btn:last-child:nth-child(even) {
  grid-column: 1 / -1;
}

@media (min-width: 720px) {
  .share-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }

  .share-preview canvas {
    height: 540px;
  }

  .share-controls {
    flex: 1;
    padding-top: 4px;
  }
}

/* ===== SHARED VIEW BANNER ===== */
.shared-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(255, 180, 50, 0.08);
  border-bottom: 1px solid rgba(255, 180, 50, 0.2);
  flex-shrink: 0;
}

.shared-banner-content {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffb432;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.shared-banner-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 5px 14px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.shared-banner-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.shared-banner-btn:active {
  transform: scale(0.95);
}

/* ===== DESKTOP RESPONSIVE ENHANCEMENTS ===== */
@media (min-width: 768px) {
  :root {
    --time-col-width: 54px;
  }

  /* Timeline Grid */
  .time-mark span {
    font-size: 13px;
  }
  
  .time-mark.half span {
    font-size: 11px;
  }

  /* Single Stage View */
  .event-name {
    font-size: 22px;
  }
  
  .event-time {
    font-size: 13px;
  }
  
  .event-genre {
    font-size: 12px;
  }
  
  /* All Stages View (TODOS) */
  .events-area[data-view="all"] .event-name {
    font-size: 15px;
    margin-bottom: 4px;
  }
  
  .events-area[data-view="all"] .event-time {
    font-size: 10px;
  }
  
  .events-area[data-view="all"] .event-genre {
    display: block;
    font-size: 11px;
    margin-top: 3px;
  }
  
  /* Column headers */
  .stage-column-header {
    font-size: 11px;
    padding: 8px 4px;
    letter-spacing: 1px;
  }

  /* Tabs */
  .tab {
    font-size: 12px;
    padding: 8px 16px;
  }
}