/*
 * NOWON Radio - Shows page.
 *
 * TABLE OF CONTENTS
 *  1. Tonight's line-up
 *  2. All shows
 *  3. Show spotlight
 *  4. Live room sessions
 *  5. Pitch form
 *  6. Media queries
 */

/* ==========================================================================
   1. Tonight's line-up
   ========================================================================== */
.tonight-clock {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tonight {
  display: flex;
  gap: 14px;
  min-width: 1100px;
}

.tonight-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 460px;
  overflow: hidden;
  border: 1.5px solid var(--line-soft);
  border-radius: 20px;
  transition: flex .55s var(--ease-fill), border-color .3s ease;
}

.tonight-panel.is-open {
  flex: 3 1 0;
}

.tonight-panel.is-open,
.tonight-panel.is-live {
  border-color: var(--acc);
}

.tonight-panel__art {
  position: absolute;
  inset: 0;
  filter: grayscale(1) brightness(.7);
  transition: filter .4s ease;
}

.tonight-panel.is-open .tonight-panel__art {
  filter: none;
}

.tonight-panel__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% 30%;
}

/* Two hosts face each other: the crop stays on the middle of the table. */
.tonight-panel__photo--crate-talks-show {
  object-position: 50% 30%;
}

/* In these shots the DJ, the mirror ball and the synth sit right of centre. */
.tonight-panel__photo--deep-cuts-show,
.tonight-panel__photo--disco-fever-show,
.tonight-panel__photo--crate-diggers-show {
  object-position: 68% 30%;
}

/* Closed panels are dimmed by a filter: a lighter label stays readable. */
.tonight-panel:not(.is-open) .slot-size {
  color: var(--cream);
}

.tonight-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 17, 16, .2) 20%, rgba(18, 17, 16, .96));
  pointer-events: none;
}

.tonight-panel__top,
.tonight-panel__body {
  position: absolute;
  z-index: 1;
}

.tonight-panel__top {
  left: 20px;
  right: 20px;
  top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tonight-panel__top [hidden] {
  display: none;
}

.tonight-panel__time {
  color: var(--acc);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 22px;
}

.tonight-panel__body {
  left: 22px;
  right: 22px;
  bottom: 22px;
}

.tonight-panel__name {
  margin-top: 6px;
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.03em;
  transition: font-size .4s ease;
}

.tonight-panel.is-open .tonight-panel__name {
  font-size: 40px;
}

.tonight-panel__host {
  margin-top: 6px;
  color: var(--ink-75);
  font-size: 14px;
}

.tonight-panel__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s ease;
}

.tonight-panel.is-open .tonight-panel__more {
  grid-template-rows: 1fr;
}

.tonight-panel__more-inner {
  overflow: hidden;
  visibility: hidden;
}

.tonight-panel.is-open .tonight-panel__more-inner {
  visibility: visible;
}

.tonight-panel__text {
  margin: 12px 0 14px;
  color: rgba(245, 237, 216, .8);
  font-size: 14px;
  line-height: 1.55;
}

.tonight-panel__more-inner [hidden] {
  display: none;
}

.tonight-panel__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: calc(var(--progress, 0) * 1%);
  height: 4px;
  background: var(--acc);
}

/* ==========================================================================
   2. All shows
   ========================================================================== */
.show-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}

.show-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.show-grid [hidden] {
  display: none;
}

.show-card {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1.5px solid var(--line-soft);
  border-radius: 18px;
  background: var(--surface-2);
  text-align: left;
  transition: transform .3s cubic-bezier(.3, 1.2, .5, 1), border-color .3s ease;
}

.show-card:hover,
.show-card[aria-pressed="true"] {
  border-color: var(--acc);
}

.show-card:hover {
  transform: translateY(-6px);
}

.show-card__art {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
}

.show-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.show-card__abbr {
  position: absolute;
  left: 14px;
  bottom: 10px;
  font-size: 48px;
}

.show-card__station {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--acc);
  color: var(--ink-dark);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .15em;
}

.show-card__body {
  display: block;
  padding: 16px 18px 18px;
}

.show-card__name {
  display: block;
  font-size: 20px;
  transition: color .25s ease;
}

.show-card:hover .show-card__name {
  color: var(--acc);
}

.show-card__host {
  display: block;
  margin: 4px 0 12px;
  color: rgba(245, 237, 216, .65);
  font-size: 13px;
}

.show-none {
  padding: 40px 0;
  color: var(--ink-60);
  font-size: 16px;
}

/* ==========================================================================
   3. Show spotlight
   ========================================================================== */
.spot-art {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 24px;
}

.spot-art__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spot-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 17, 16, 0) 40%, rgba(18, 17, 16, .95));
  pointer-events: none;
}

.spot-art__abbr {
  position: absolute;
  left: 24px;
  top: 22px;
  z-index: 1;
  font-size: clamp(80px, 9vw, 170px);
  line-height: .8;
  letter-spacing: -.06em;
  -webkit-text-stroke-width: 2px;
}

.spot-art__tags {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spot-art__when {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(18, 17, 16, .8);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0;
}

.spot-info {
  display: flex;
  flex-direction: column;
}

.spot-info__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.spot-info__nav {
  display: flex;
  flex: none;
  gap: 8px;
}

.spot-nav {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

.spot-info__name {
  margin-top: 22px;
  font-weight: 900;
  font-size: clamp(40px, 4vw, 76px);
  line-height: .92;
  letter-spacing: -.04em;
}

.spot-info__host {
  margin-top: 10px;
  color: rgba(245, 237, 216, .7);
  font-size: 16px;
}

.spot-info__text {
  margin-top: 18px;
  color: rgba(245, 237, 216, .8);
  font-size: 17px;
  line-height: 1.7;
}

.spot-info__week-label {
  margin-top: 22px;
}

.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.week-cell {
  padding: 10px 4px;
  border-radius: 10px;
  background: var(--surface-2);
  color: rgba(245, 237, 216, .6);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  text-align: center;
}

.week-cell.is-on {
  background: var(--acc-20);
  color: var(--acc);
}

.week-cell.is-today {
  background: var(--acc);
  color: var(--ink-dark);
}

.week-cell__time {
  display: block;
  margin-top: 4px;
  font-size: 10px;
}

.spot-info__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

/* ==========================================================================
   4. Live room sessions
   ========================================================================== */
.session-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 20px;
}

.session-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  border: 1.5px solid rgba(245, 237, 216, .1);
  border-radius: 20px;
}

.session-card--first {
  border-color: color-mix(in srgb, var(--acc) 40%, transparent);
  background: var(--surface-2);
}

.session-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
  border-radius: 14px;
  background: var(--bg);
}

.session-card__day {
  font-weight: 900;
  font-size: 52px;
  line-height: 1;
}

.session-card__info {
  display: flex;
  flex-direction: column;
}

.session-card__band {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
}

.session-card__genre {
  margin-top: 4px;
  color: rgba(245, 237, 216, .65);
  font-size: 13px;
}

.session-card__seats {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  white-space: nowrap;
}

.session-card__seats .meter {
  flex: 1;
}

.session-fill {
  width: var(--fill, 0%);
}

.session-card__book {
  align-self: flex-start;
  margin-top: 14px;
}

.session-card__book[aria-pressed="true"] {
  background: var(--cream);
}

.past-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 16px 22px;
  border: 1px dashed var(--acc-35);
  border-radius: 16px;
}

.past-note__text {
  color: var(--ink-75);
  font-size: 14px;
}

.past-note__link {
  margin-left: auto;
  color: var(--acc);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .12em;
}

/* ==========================================================================
   5. Pitch form
   ========================================================================== */
.pitch-gap-lg {
  margin-top: 16px;
}

.pitch-genre-label {
  margin: 14px 0 8px;
  color: var(--ink-60);
  font-size: 12px;
}

.pitch-text {
  flex: 1;
  margin-top: 14px;
}

.pitch-link {
  height: 50px;
  margin-top: 10px;
  font-size: 14px;
}

.pitch-send {
  height: 58px;
  margin-top: 16px;
  font-weight: 900;
  letter-spacing: .12em;
}

/* ==========================================================================
   6. Media queries (widest first)
   ========================================================================== */
@media (max-width: 1599.98px) {
  .show-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  .show-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .tonight-scroll {
    overflow: visible;
  }

  .tonight {
    flex-direction: column;
    min-width: 0;
  }

  .tonight-panel,
  .tonight-panel.is-open {
    flex: none;
    height: auto;
    min-height: 280px;
  }

  .tonight-panel__body {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 90px 22px 22px;
  }

  .tonight-panel__name,
  .tonight-panel.is-open .tonight-panel__name {
    font-size: 32px;
  }

  .tonight-panel__more {
    grid-template-rows: 1fr;
  }

  .tonight-panel__more-inner {
    visibility: visible;
  }

  .show-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .show-card:hover {
    transform: none;
  }

  .show-card__body {
    padding: 14px;
  }

  .show-card .meta-split {
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
  }

  .spot-art {
    min-height: 360px;
  }

  .week-cell,
  .week-cell__time {
    font-size: 12px;
    letter-spacing: -.04em;
  }

  .session-card {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .session-card__day {
    font-size: 40px;
  }

  .session-card__seats {
    flex-wrap: wrap;
  }

  .session-card__seats .meter {
    flex-basis: 100%;
  }

  .past-note__link {
    margin-left: 0;
  }

  .form-panel {
    padding: 20px;
  }
}

@media (max-width: 379.98px) {
  .show-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .week {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .figure {
    padding-left: 10px;
  }

  .figure .stat-label {
    letter-spacing: 0;
  }

  .spot-info__actions .btn {
    width: 100%;
  }

  .spot-info__top {
    flex-wrap: wrap;
  }

  .session-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .session-card__date {
    flex-direction: row;
    gap: 10px;
  }

  .session-card__day {
    font-size: 32px;
  }
}
