.m-lineupTimetable {
  --lineupTimetableHeaderHeight: 4.5rem;
  --lineupTimetableNavHeight: 3.5rem;
  --lineupTimetableRowHeight: 2rem;
  --lineupTimetableTimeWidth: 8rem;
  --lineupTimetableStageWidth: 100%;
  --lineupTimetableStageMinWidth: 20rem;
  --lineupTimetableColGap: 0.5rem;
  --lineupTimetableRowGap: 2px;
  --lineupTimetableInset: 1rem;
  background: var(--c-surface-neutral);
  border: 1px solid var(--c-border-neutral);
  border-radius: var(--borderRadius);
  margin-top: var(--space-s);
  overflow: visible;
  padding: 0 0 var(--space-s);
  position: relative;
}

.m-lineupTimetable li {
  list-style: none;
}

.m-lineupTimetable__stageNav {
  background: var(--c-surface-neutral);
  min-height: var(--lineupTimetableNavHeight);
  position: relative;
  z-index: 2;
}

.m-lineupTimetable__arrow {
  align-items: center;
  appearance: none;
  background: var(--c-surface-neutral);
  border: 1px solid var(--c-border-neutral);
  border-radius: 999px;
  color: var(--c-text);
  cursor: pointer;
  display: inline-flex;
  height: 2.75rem;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 0.375rem;
  transition:
    background-color var(--an-duration) var(--an-ease),
    border-color var(--an-duration) var(--an-ease),
    opacity var(--an-duration) var(--an-ease);
  width: 2.75rem;
}

.m-lineupTimetable__arrow.left {
  left: var(--lineupTimetableInset);
  transform: scaleX(-1);
}

.m-lineupTimetable__arrow.left svg {
  transform: rotate(180deg);
}

.m-lineupTimetable__arrow.right {
  right: var(--lineupTimetableInset);
}

.m-lineupTimetable__arrow:hover,
.m-lineupTimetable__arrow:focus-visible {
  background: var(--c-surface-accent-blue);
  border-color: var(--c-surface-accent-blue);
  color: var(--c-text-light);
  outline: none;
}

.m-lineupTimetable__arrow.disabled,
.m-lineupTimetable__arrow[hidden] {
  opacity: 0;
  pointer-events: none;
}

.m-lineupTimetable__arrow svg {
  fill: none;
  height: 1.25rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 1.25rem;
}

.m-lineupTimetable__day {
  border-top: 1px solid var(--c-border-neutral);
  padding-top: var(--space-3xl);
}
.m-lineupTimetable__day:first-of-type {
  padding-top: 0;
}

.m-lineupTimetable__day:first-of-type {
  border-top: 0;
}

.m-lineupTimetable__day[data-stages="1"] {
  --lineupTimetableStageWidth: 100%;
}

.m-lineupTimetable__day[data-stages="2"] {
  --lineupTimetableStageWidth: 50%;
}

.m-lineupTimetable__day[data-stages="3"] {
  --lineupTimetableStageWidth: 33.3334%;
}

.m-lineupTimetable__day[data-stages="4"] {
  --lineupTimetableStageWidth: 25%;
}

.m-lineupTimetable__dayHeader {
  background: var(--c-surface-neutral);
  padding: 1rem var(--lineupTimetableInset) 1rem
    calc(var(--lineupTimetableTimeWidth) + var(--lineupTimetableInset));
  position: sticky;
  top: 0;
  z-index: 20;
}

.m-lineupTimetable__dayHeader h2,
.m-lineupTimetable__stageTitle {
  color: var(--c-text);
  font-family: var(--ff-headline, var(--ff-label));
  font-size: clamp(1rem, calc(16 / var(--fluidFontRatio) * 1vw), 1.25rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
  text-align: center;
}
.m-lineupTimetable__dayHeader h2 {
  font-family: var(--ff-head);
  font-size: clamp(2rem, calc(32 / var(--fluidFontRatio) * 1vw), 3.75rem);
  font-weight: 600;
  line-height: 1;
}

.m-lineupTimetable__layout {
  align-items: flex-start;
  display: flex;
  min-width: 0;
}

.m-lineupTimetable__times {
  display: grid;
  flex: 0 0 var(--lineupTimetableTimeWidth);
  min-width: var(--lineupTimetableTimeWidth);
  position: relative;
  width: var(--lineupTimetableTimeWidth);
  z-index: 1;
}

.m-lineupTimetable__timeHeadSpacer {
  background: var(--c-surface-neutral);
}

.m-lineupTimetable__time {
  color: var(--c-text);
  font-family: var(--ff-label);
  font-size: clamp(0.75rem, calc(12 / var(--fluidFontRatio) * 1vw), 0.875rem);
  letter-spacing: -0.02em;
  line-height: 1;
  padding: 0 var(--lineupTimetableInset);
  position: relative;
}

.m-lineupTimetable__time::before,
.m-lineupTimetable__time::after {
  border-top: 1px solid var(--c-border-neutral);
  content: "";
  left: calc(var(--lineupTimetableTimeWidth) - 1rem);
  position: absolute;
  right: 0;
  top: 0;
  z-index: 0;
  width: 100vw;
}

.m-lineupTimetable__time::after {
  border-top-style: dashed;
  opacity: 0.45;
  top: calc(var(--lineupTimetableRowHeight) * 2);
}

.m-lineupTimetable__time:last-of-type::after {
  display: none;
}

.m-lineupTimetable__time span {
  background: var(--c-surface-neutral);
  display: inline-block;
  padding: 0.45rem 0.75rem;
  position: relative;
  z-index: 1;
  bottom: 1em;
  background-color: var(--c-surface-neutral);
}

.m-lineupTimetable__stageViewport {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  z-index: 10;
}

.m-lineupTimetable__stageViewport::before,
.m-lineupTimetable__stageViewport::after {
  bottom: 0;
  content: "";
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transition: opacity var(--an-duration) var(--an-ease);
  width: 2rem;
  z-index: 2;
}

.m-lineupTimetable__stageViewport::before {
  background: linear-gradient(
    90deg,
    var(--c-surface-neutral) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  left: 0;
}

.m-lineupTimetable__stageViewport::after {
  background: linear-gradient(
    270deg,
    var(--c-surface-neutral) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  right: 0;
}

.m-lineupTimetable__stageViewport.is-scrollable:not(.is-at-start)::before,
.m-lineupTimetable__stageViewport.is-scrollable:not(.is-at-end)::after {
  opacity: 1;
}

.m-lineupTimetable__stages {
  display: flex;
  gap: 0;
  margin: 0;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.m-lineupTimetable__stages::-webkit-scrollbar {
  display: none;
}

.m-lineupTimetable__stage {
  display: grid;
  flex: 0 0 var(--lineupTimetableStageWidth);
  max-width: none;
  min-width: var(--lineupTimetableStageMinWidth);
  position: relative;
  width: var(--lineupTimetableStageWidth);
}

.m-lineupTimetable__stageTitleWrap {
  align-items: flex-end;
  background: var(--c-surface-neutral);
  display: flex;
  min-height: var(--lineupTimetableHeaderHeight);
  padding: 0 0.25rem;
  position: sticky;
  top: 0;
  z-index: 20;
}

.m-lineupTimetable__stageTitle {
  padding: 1.15rem var(--lineupTimetableInset) 0.9rem;
  width: 100%;
}

.m-lineupTimetable__show {
  color: inherit;
  display: block;
  min-height: 3.75rem;
  padding: var(--lineupTimetableRowGap) var(--lineupTimetableColGap) 0;
  text-decoration: none;
}

.m-lineupTimetable__showCard {
  align-items: center;
  background: var(--c-surface-accent-blue);
  border-radius: var(--innerBorderRadius);
  color: var(--c-text-light);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  justify-content: center;
  padding: 0.75rem;
  text-align: center;
  transition:
    background-color var(--an-duration) var(--an-ease),
    color var(--an-duration) var(--an-ease),
    transform var(--an-duration) var(--an-ease);
}

.m-lineupTimetable__show:hover .m-lineupTimetable__showCard,
.m-lineupTimetable__show:focus-visible .m-lineupTimetable__showCard {
  background: var(--c-surface-accent-yellow);
  color: var(--c-text);
  transform: translateY(-1px);
}

.m-lineupTimetable__show:focus-visible {
  outline: none;
}

.m-lineupTimetable__show.no-link {
  cursor: default;
}

.m-lineupTimetable__show.no-link .m-lineupTimetable__showCard {
  transform: none;
}

.m-lineupTimetable__show--short .m-lineupTimetable__showCard {
  padding-block: 0.55rem;
}

.m-lineupTimetable__artist {
  font-family: var(--ff-headline, var(--ff-label));
  font-size: clamp(0.95rem, calc(15 / var(--fluidFontRatio) * 1vw), 1.1rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  max-width: 100%;
  text-transform: uppercase;
}

.m-lineupTimetable__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
}

.m-lineupTimetable__timeLabel,
.m-lineupTimetable__category {
  font-family: var(--ff-label);
  font-size: clamp(
    0.6875rem,
    calc(11 / var(--fluidFontRatio) * 1vw),
    0.8125rem
  );
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.m-lineupTimetable__category {
  opacity: 0.9;
}

@media (min-width: 768px) {
  .m-lineupTimetable {
    --lineupTimetableTimeWidth: 8.5rem;
    --lineupTimetableInset: 1rem;
  }
}
@media (max-width: 767px) {
  .m-lineupTimetable {
    --lineupTimetableStageMinWidth: 0;
    --lineupTimetableStageWidth: 100%;
  }
  .m-lineupTimetable__day {
    --lineupTimetableStageWidth: 100% !important;
  }
}
