/* Tons of Rock 2026 spilletider — vertikal tidsplan (canonical festival-format)
   Scener som kolonner, tid på Y-aksen. Skala styres via --px-per-min.
   Konserterinorge-branding: hvit + gul accent (#FFC107) + DM Sans/Outfit. */

:root {
  --px-per-min: 2;
  --grid-total-min: 660;
  --grid-height: calc(var(--px-per-min) * var(--grid-total-min) * 1px);
  --time-axis-width: 64px;
  --scene-gap: 10px;
  --header-height: 56px;
}

/* Respekter brukerens preferanse om redusert bevegelse */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===========================================================================
   Day-tabs (uendret fra forrige iterasjon)
   =========================================================================== */
.day-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 0 0;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}

.day-tabs button {
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  border-radius: 0;
  padding: 0.7rem 1.2rem;
  font-family: "Outfit", "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.day-tabs button.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.day-tabs button:hover,
.day-tabs button:focus-visible {
  color: var(--text);
  background: rgba(255, 193, 7, 0.08);
  outline: none;
}

/* ===========================================================================
   Scene-tabs (kun mobil): én scene synlig om gangen under 768px
   =========================================================================== */
.scene-tabs {
  display: none;
  gap: 0.4rem;
  padding: 0.75rem 0 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.scene-tabs button {
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  padding: 0.55rem 0.9rem;
  font-family: "Outfit", "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.scene-tabs button.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ===========================================================================
   Save-bar (bokmerk, del, install-knapper)
   =========================================================================== */
.save-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

.save-bar button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.save-bar button:hover,
.save-bar button:focus-visible {
  border-color: var(--accent);
  background: #fffbea;
  outline: none;
}

.save-bar button.is-saved,
.save-bar button.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-color: var(--accent-dark);
  color: var(--text);
}

.save-bar button svg {
  flex-shrink: 0;
}

.save-bar .fav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--text);
  color: var(--accent);
  border-radius: 9px;
  font-size: 0.7rem;
  font-weight: 800;
}

.save-bar .filter-favorites.is-active .fav-count {
  background: var(--bg);
  color: var(--text);
}

.plan-hint {
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.85rem;
  background: #fffbea;
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.5;
  font-family: "DM Sans", sans-serif;
}

.plan-hint strong {
  font-weight: 700;
}

/* ===========================================================================
   Cross-link-cards (Mer om Tons of Rock 2026)
   =========================================================================== */
.cross-links-section {
  margin: 3rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.cross-link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 1.25rem 0 0;
}

@media (max-width: 900px) {
  .cross-link-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .cross-link-grid {
    grid-template-columns: 1fr;
  }
}

.cross-link-card {
  display: grid;
  grid-template-columns: 40px 1fr 20px;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: border-left-color 0.15s, transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.cross-link-card:hover,
.cross-link-card:focus-visible {
  border-left-color: var(--accent);
  background: #fffdf3;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  outline: none;
  text-decoration: none;
  color: var(--text);
}

.cross-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border-radius: 8px;
  color: var(--text);
  flex-shrink: 0;
}

.cross-link-card:hover .cross-link-icon,
.cross-link-card:focus-visible .cross-link-icon {
  background: var(--accent);
  color: var(--text);
}

.cross-link-icon svg {
  width: 22px;
  height: 22px;
}

.cross-link-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.cross-link-title {
  font-family: "Outfit", "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.2;
}

.cross-link-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  font-family: "DM Sans", sans-serif;
}

.cross-link-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}

.cross-link-card:hover .cross-link-arrow,
.cross-link-card:focus-visible .cross-link-arrow {
  color: var(--text);
  transform: translateX(2px);
}

.cross-link-arrow svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 600px) {
  .cross-link-card {
    padding: 0.85rem 1rem;
    grid-template-columns: 36px 1fr 18px;
    gap: 0.7rem;
  }

  .cross-link-icon {
    width: 36px;
    height: 36px;
  }

  .cross-link-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* Partner-CTA: subtilt gult kort som ikke føles som push-annonse */
.partner-cta {
  margin: 2rem 0 1rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, #fffbea 0%, #fff5d0 100%);
  border: 1px solid var(--accent-dark);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.partner-cta-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-cta-icon svg {
  width: 28px;
  height: 28px;
}

.partner-cta-body {
  flex: 1;
  min-width: 220px;
}

.partner-cta-body h3 {
  margin: 0 0 0.25rem;
  font-family: "Outfit", "DM Sans", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}

.partner-cta-body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}

.partner-cta-button {
  background: var(--text);
  color: var(--accent);
  border: none;
  padding: 0.7rem 1.1rem;
  border-radius: 6px;
  font-family: "Outfit", "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.partner-cta-button:hover,
.partner-cta-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  color: var(--accent-hover);
  outline: none;
}

.partner-cta-button svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 600px) {
  .partner-cta {
    padding: 1rem;
  }

  .partner-cta-button {
    width: 100%;
    justify-content: center;
  }
}

/* ===========================================================================
   Grid wrapper
   =========================================================================== */
.grid-wrap {
  padding: 1.5rem 0 0;
  background: var(--bg);
}

/* ===========================================================================
   Vertikal grid (default desktop layout)
   =========================================================================== */
.grid-vertical {
  display: grid;
  grid-template-columns: var(--time-axis-width) repeat(4, 1fr);
  gap: var(--scene-gap);
  position: relative;
}

/* Tid-aksen til venstre */
.time-axis-v {
  position: relative;
  height: var(--grid-height);
  padding-top: var(--header-height, 56px); /* match scene-header høyde */
}

.time-axis-v .tick {
  position: absolute;
  left: 0;
  right: 0;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-top: 1px dashed #e5e5e5;
  padding-top: 3px;
}

.time-axis-v .tick span {
  display: inline-block;
  background: var(--bg);
  padding-right: 6px;
}

/* Posisjoner 11 ticks (12:30, 13:30, ..., 22:30) via nth-child.
   Hver tick er 60 minutter fra forrige = 60 * var(--px-per-min) piksler.
   Pre-commit-hook forbyr inline style, så vi gjør det her i stedet. */
.time-axis-v .tick:nth-child(1)  { top: calc(0   * 60 * var(--px-per-min) * 1px); }
.time-axis-v .tick:nth-child(2)  { top: calc(1   * 60 * var(--px-per-min) * 1px); }
.time-axis-v .tick:nth-child(3)  { top: calc(2   * 60 * var(--px-per-min) * 1px); }
.time-axis-v .tick:nth-child(4)  { top: calc(3   * 60 * var(--px-per-min) * 1px); }
.time-axis-v .tick:nth-child(5)  { top: calc(4   * 60 * var(--px-per-min) * 1px); }
.time-axis-v .tick:nth-child(6)  { top: calc(5   * 60 * var(--px-per-min) * 1px); }
.time-axis-v .tick:nth-child(7)  { top: calc(6   * 60 * var(--px-per-min) * 1px); }
.time-axis-v .tick:nth-child(8)  { top: calc(7   * 60 * var(--px-per-min) * 1px); }
.time-axis-v .tick:nth-child(9)  { top: calc(8   * 60 * var(--px-per-min) * 1px); }
.time-axis-v .tick:nth-child(10) { top: calc(9   * 60 * var(--px-per-min) * 1px); }
.time-axis-v .tick:nth-child(11) { top: calc(10  * 60 * var(--px-per-min) * 1px); }

/* Scene-kolonne */
.scene-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.scene-header {
  position: sticky;
  top: 56px; /* under sticky save-bar */
  background: var(--bg);
  z-index: 5;
  padding: 0.6rem 0.75rem;
  border-bottom: 3px solid var(--accent);
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  height: 56px;
  justify-content: center;
}

.scene-header .scene-name {
  color: var(--text);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.scene-header .scene-type {
  color: var(--text-muted);
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  margin-top: 2px;
}

/* Selve banen der acts plasseres absolutt */
.scene-lane {
  position: relative;
  height: var(--grid-height);
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(60 * var(--px-per-min) * 1px - 1px),
      #f0f0f0 calc(60 * var(--px-per-min) * 1px - 1px),
      #f0f0f0 calc(60 * var(--px-per-min) * 1px)
    );
  border-radius: 4px;
}

/* ===========================================================================
   Act-celle (default konsert)
   =========================================================================== */
.act {
  position: absolute;
  left: 3px;
  right: 3px;
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  background: #fafafa;
  color: var(--text);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.act:hover,
.act:focus-visible {
  transform: translateY(-1px);
  background: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(255, 193, 7, 0.25);
  z-index: 10;
  outline: none;
}

.act .name {
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.2;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  font-family: "Outfit", "DM Sans", sans-serif;
}

.act .name a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 193, 7, 0.4);
  text-underline-offset: 2px;
}

.act .name a:hover {
  text-decoration-color: var(--accent);
}

.act .time {
  font-size: 0.72rem;
  opacity: 0.75;
  margin-top: 4px;
  white-space: nowrap;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
}

/* Min plan: stjerne-knapp i hjørnet av hver act */
.act-star {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 3;
  transition: transform 0.15s, background 0.15s;
}

.act-star:hover,
.act-star:focus-visible {
  background: var(--bg);
  border-color: var(--accent);
  transform: scale(1.1);
  outline: none;
}

.act-star svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
  transition: stroke 0.15s, fill 0.15s;
}

.act.is-favorite .act-star {
  background: var(--text);
  border-color: var(--text);
}

.act.is-favorite .act-star svg {
  stroke: var(--accent);
  fill: var(--accent);
}

/* Filter-modus: skjul ikke-favoritter */
.grid-vertical.show-favorites-only .act:not(.is-favorite) {
  display: none;
}

.grid-vertical.show-favorites-only .scene-lane:empty::after {
  content: "Ingen lagrede band på denne scenen";
  position: absolute;
  top: 1rem;
  left: 0;
  right: 0;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  font-family: "DM Sans", sans-serif;
}

/* Tooltip ved hover/fokus */
.act .tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 100;
  font-weight: 600;
}

.act:hover .tooltip,
.act:focus-visible .tooltip {
  opacity: 1;
}

/* ===========================================================================
   Variant: headliner (gul gradient)
   =========================================================================== */
.act.headliner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--text);
  border: 1px solid var(--accent-dark);
  border-left: 4px solid var(--text);
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.35);
  padding-top: 1.7rem;
}

.act.headliner .name {
  color: var(--text);
  font-weight: 900;
  font-size: 0.95rem;
}

.act.headliner::before {
  content: "Headliner";
  position: absolute;
  top: 6px;
  left: 8px;
  right: 8px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  background: var(--text);
  padding: 2px 6px;
  border-radius: 3px;
  text-align: center;
}

/* ===========================================================================
   Variant: show (stand-up, karaoke, silent disco)
   =========================================================================== */
.act.show {
  background: #f5f0ff;
  border-left-color: #7c3aed;
  padding-top: 1.5rem;
}

.act.show::before {
  content: "Show";
  position: absolute;
  top: 5px;
  left: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #7c3aed;
  background: #ede5ff;
  padding: 1px 5px;
  border-radius: 3px;
}

/* ===========================================================================
   Variant: football (storskjerm)
   =========================================================================== */
.act.football {
  background: #eaf2ff;
  border-left-color: #1e88e5;
  padding-top: 1.5rem;
}

.act.football::before {
  content: "Storskjerm";
  position: absolute;
  top: 5px;
  left: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0d47a1;
  background: #d4e6f7;
  padding: 1px 5px;
  border-radius: 3px;
}

/* ===========================================================================
   Side-glue (legend, info-sections, fallback)
   =========================================================================== */
.schedule-info-section,
.special-acts-section {
  margin: 3rem 0 2rem;
}

.legend {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0 2rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-family: "DM Sans", sans-serif;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent);
}

.legend-dot.dot-headliner {
  background: var(--text);
}

.legend-dot.dot-show {
  background: #7c3aed;
}

.legend-dot.dot-football {
  background: #1e88e5;
}

.day-summary-section,
.headliner-spotlight,
.faq-section {
  margin: 3rem 0 2rem;
}

.faq-item {
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.faq-item h3 {
  margin: 0 0 0.5rem;
  font-family: "Outfit", "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.faq-item p {
  margin: 0;
  line-height: 1.6;
  color: var(--text);
}

/* ===========================================================================
   Headliner-strip: visual hierarki i stedet for prose
   =========================================================================== */
.headliner-strip-note {
  margin: 0.5rem 0 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  font-family: "DM Sans", sans-serif;
}

.headliner-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 0;
}

.headliner-card {
  position: relative;
  padding: 1.3rem 1.2rem 1rem;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-top: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.headliner-card.hl-featured {
  background: linear-gradient(180deg, #fffbea 0%, #fafafa 100%);
  border-top-color: var(--accent-dark);
}

.headliner-card .hl-day {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-family: "DM Sans", sans-serif;
}

.headliner-card .hl-time {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.headliner-card .hl-name {
  margin: 0.15rem 0 0;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.2;
}

.headliner-card .hl-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
}

.headliner-card .hl-note {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
}

/* ===========================================================================
   Day-summary-grid: kompakte kort med scene-liste
   =========================================================================== */
.day-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 0;
}

.day-summary {
  margin: 0;
  padding: 1.5rem 1.4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.day-summary-head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.day-summary-date {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-family: "DM Sans", sans-serif;
}

.day-summary-headliner {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.day-summary-hero {
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.day-summary-hero .ds-hero-time {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: var(--text);
}

.day-summary-picks {
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.day-summary-picks-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: "DM Sans", sans-serif;
  margin-bottom: 0.6rem;
}

.day-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.day-summary-list li {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.45rem 0;
  border-top: 1px solid #f1f1f1;
  font-family: "DM Sans", sans-serif;
}

.day-summary-list li:first-child { border-top: none; padding-top: 0; }

.day-summary-list .ds-time {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.day-summary-list .ds-name {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.3;
}

.day-summary-list .ds-scene {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.day-summary-note {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  font-family: "DM Sans", sans-serif;
}

@media (max-width: 600px) {
  .headliner-card .hl-time {
    font-size: 1.4rem;
  }

  .day-summary {
    padding: 1.25rem 1.15rem;
  }

  .day-summary-headliner {
    font-size: 1.3rem;
  }
}

/* ===========================================================================
   Save-bar toast (vises etter klikk)
   =========================================================================== */
.save-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  border-radius: 24px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.25s ease-out;
  pointer-events: none;
}

.save-toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

/* ===========================================================================
   Mobile-responsive (under 768px)
   - Bytter scene-grid til scene-faner: kun valgt scene synlig
   - Time-aksen blir smalere
   - Acts får mer pust
   =========================================================================== */
@media (max-width: 768px) {
  :root {
    --time-axis-width: 52px;
    --scene-gap: 0;
    --px-per-min: 1.8;
    --header-height: 48px;
  }

  .scene-tabs {
    display: flex;
  }

  .grid-vertical {
    grid-template-columns: var(--time-axis-width) 1fr;
  }

  .scene-col {
    display: none;
  }

  .scene-col.is-active {
    display: flex;
  }

  .scene-header {
    height: 48px;
    padding: 0.5rem 0.6rem;
    position: static; /* unngå konflikt med save-bar på mobil med multi-line layout */
  }

  .save-bar {
    position: static; /* mobil: ikke sticky, for å unngå at den tar opp halve viewport */
  }

  .act .name {
    font-size: 0.85rem;
  }

  /* Større touch-target på mobil: 36x36 for stjerne-knapp */
  .act-star {
    width: 36px;
    height: 36px;
    top: 3px;
    right: 3px;
  }

  .act-star svg {
    width: 18px;
    height: 18px;
  }

  .day-tabs button {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .save-bar {
    flex-wrap: wrap;
  }

  .save-bar button {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }

  /* På smal mobil (<=420px): skjul tekst på sekundære knapper, behold ikoner.
     Filter-knapp beholder tekst som primary action. */
  @media (max-width: 420px) {
    .save-bar .save-day span:not(.fav-count),
    .save-bar .share-day span:not(.fav-count),
    .save-bar .install-app span:not(.fav-count) {
      display: none;
    }

    .save-bar .save-day,
    .save-bar .share-day,
    .save-bar .install-app {
      flex: 0 0 auto;
      padding: 0.5rem 0.7rem;
    }

    .save-bar .filter-favorites {
      flex: 1 1 100%;
    }
  }

  .legend {
    gap: 1rem;
    font-size: 0.78rem;
    padding-top: 1rem;
  }

  .day-summary,
  .headliner-card,
  .faq-item {
    padding: 0.85rem 1rem;
  }
}

/* Print: gjør grid statisk uten hover-state */
@media print {
  .save-bar,
  .scene-tabs,
  .save-toast {
    display: none;
  }

  .scene-header {
    position: static;
  }

  .act:hover {
    transform: none;
    box-shadow: none;
  }

  .tooltip {
    display: none;
  }
}
