/*
 * "Eat nearby" (Tonight::ShowDiningController): where to eat before a show.
 *
 * A companion to Discover and drawn in its language — it sits inside .vd, so
 * discover.css supplies the tokens, the resets and the Book tickets / More
 * info buttons. Unlike Discover this page scrolls: on a phone the show heads
 * the list; on a wide screen it stays put on the left while the restaurants
 * scroll past on the right.
 */

.vn {
  background: #06070d;
}

.vn-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.vn-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(70px) saturate(1.3);
  opacity: 0.55;
  transform: scale(1.3);
}

.vn-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(6, 7, 13, 0.35), rgba(6, 7, 13, 0.9) 420px, #06070d 760px);
}

.vn-scroll {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.vn-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(var(--vd-top) + 6px) 16px 4px;
}

.vn-back {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.4);
}

.vn-chrome .vd-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vn-chrome .vd-brand img {
  width: auto;
  height: 22px;
}

.vn-chrome .vd-brand span {
  padding: 4px 9px;
  border: 1px solid rgba(255, 107, 61, 0.5);
  border-radius: 999px;
  color: var(--vd-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.vn-layout {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px calc(var(--vd-bottom) + 40px);
}

/* ------------------------------------------------------------------ Hero */

.vn-hero {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  padding: 18px 0 22px;
}

.vn-poster {
  display: block;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.vn-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

.vn-hero-copy {
  display: contents;
}

.vn-hero-copy > * {
  grid-column: 1 / -1;
}

.vn-hero-copy > .vn-eyebrow,
.vn-hero-copy > h1,
.vn-hero-copy > .vn-where {
  grid-column: 2;
}

.vn-poster {
  grid-row: 1 / span 3;
}

.vn-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  color: var(--vd-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
}

.vn-eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vd-accent);
}

.vn-hero h1 {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.05;
  text-wrap: balance;
}

/* "before" / "after": the word itself is the switch. */
.vn-when {
  display: inline-flex;
  align-items: center;
  gap: 0.18em;
  margin: 0 0.02em;
  padding: 0.02em 0.3em 0.06em 0.36em;
  border: 1.5px solid rgba(0, 199, 190, 0.6);
  border-radius: 0.4em;
  background: rgba(0, 199, 190, 0.14);
  color: #4fdcd3;
  vertical-align: baseline;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.vn-when svg {
  width: 0.5em;
  height: 0.5em;
}

.vn-when:active {
  transform: scale(0.96);
}

@media (hover: hover) {
  .vn-when:hover {
    background: rgba(0, 199, 190, 0.28);
  }
}

.vn-hero h1 em {
  color: var(--vd-accent);
  font-style: normal;
}

.vn-where {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 500;
}

.vn-times {
  display: flex;
  gap: 8px;
  margin: 18px -20px 0;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.vn-times::-webkit-scrollbar {
  display: none;
}

.vn-time {
  flex: none;
  min-width: 92px;
  padding: 7px 12px 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(20, 26, 54, 0.7);
  text-align: center;
}

.vn-time small {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.vn-time b {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.vn-time.is-selected {
  border-color: rgba(0, 199, 190, 0.7);
  background: rgba(0, 199, 190, 0.14);
  color: var(--vd-mint);
}

.vn-time.is-selected small {
  color: var(--vd-mint);
}

.vn-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.vn-summary b {
  color: var(--vd-accent);
  font-size: 52px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1;
}

.vn-summary span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.vn-summary em {
  color: var(--vd-mint);
  font-style: normal;
}

.vn-hero-buttons {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

/* --------------------------------------------------------------- Filters */

.vn-filters {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  margin: 0 -20px;
  padding: 10px 20px;
  overflow-x: auto;
  background: linear-gradient(rgba(6, 7, 13, 0.94) 70%, rgba(6, 7, 13, 0));
  scrollbar-width: none;
}

.vn-filters::-webkit-scrollbar {
  display: none;
}

.vn-filters input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vn-filters span {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.vn-filters i {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.vn-filters input:checked + span {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.vn-filters input:checked + span i {
  color: rgba(0, 0, 0, 0.55);
}

.vn-filters input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.vn:has(#vn-fits:checked) .vn-card:not([data-fits]),
.vn:has(#vn-inside:checked) .vn-card:not([data-inside]) {
  display: none;
}

/* ----------------------------------------------------------------- Cards */

.vn-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 6px;
}

.vn-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(20, 26, 54, 0.62);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.vn-card-image {
  position: relative;
  display: block;
  min-height: 132px;
  background: #141a36;
}

.vn-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.vn-card-image img.object-top { object-position: top; }
.vn-card-image img.object-bottom { object-position: bottom; }

.vn-chip {
  position: absolute;
  bottom: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  padding: 4px 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.66);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.vn-wide {
  display: none;
}

.vn-chip.is-inside {
  background: var(--vd-gold);
  color: #000;
}

.vn-card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 12px 14px;
}

.vn-card-facts {
  overflow: hidden;
  color: var(--vd-label);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.vn-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.15;
}

/* The whole card opens the restaurant; the action links sit above that. */
.vn-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.vn-card-line {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.vn-status {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.35;
}

.vn-status i {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.vn-status.is-fits b {
  color: var(--vd-mint);
}

.vn-status.is-fits i {
  background: var(--vd-mint);
  box-shadow: 0 0 0 3px rgba(0, 199, 190, 0.18);
}

.vn-status b {
  font-weight: 700;
}

.vn-card.is-out .vn-card-image img {
  filter: saturate(0.5) brightness(0.75);
}

.vn-card-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.vn-card-actions a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.15s ease;
}

.vn-card-actions a:first-child {
  border-color: transparent;
  background: #fff;
  color: #000;
}

.vn-note {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  text-align: center;
}

.vn-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 70px 20px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.vn-empty h2 {
  font-size: 20px;
  font-weight: 700;
}

@media (hover: hover) {
  .vn-card:hover {
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
  }

  .vn-card:hover .vn-card-image img {
    transform: scale(1.05);
  }

  .vn-card-actions a:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .vn-card-actions a:first-child:hover {
    background: rgba(255, 255, 255, 0.86);
  }

  .vn-time:hover {
    border-color: rgba(255, 255, 255, 0.4);
  }

  .vn-filters span:hover {
    background: rgba(255, 255, 255, 0.14);
  }
}

/* Two cards across once there is room. */
@media (min-width: 640px) {
  .vn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .vn-card-image {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .vn-chip {
    bottom: 10px;
    left: 10px;
    padding: 5px 10px;
    font-size: 11px;
  }

  .vn-wide {
    display: inline;
  }

  .vn-narrow {
    display: none;
  }

  .vn-card-body {
    padding: 14px 16px 16px;
  }

  .vn-card h3 {
    font-size: 20px;
  }
}

/* Stage: the show stays on the left, the restaurants scroll on the right. */
@media (min-width: 1000px) {
  .vn-backdrop::after {
    background:
      radial-gradient(90% 80% at 18% 40%, rgba(6, 7, 13, 0.2), rgba(6, 7, 13, 0.82) 70%, #06070d 100%),
      linear-gradient(90deg, rgba(6, 7, 13, 0) 20%, rgba(6, 7, 13, 0.75) 62%);
  }

  .vn-chrome {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 20px clamp(28px, 3vw, 48px) 0;
    pointer-events: none;
  }

  .vn-chrome > * {
    pointer-events: auto;
  }

  .vn-chrome .vd-brand img {
    height: 26px;
  }

  .vn-back {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 13, 22, 0.55);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
  }

  .vn-layout {
    display: grid;
    grid-template-columns: minmax(340px, 440px) minmax(0, 1fr);
    column-gap: clamp(36px, 5vw, 88px);
    align-items: start;
    padding: 0 clamp(28px, 3vw, 48px) 80px;
  }

  .vn-hero {
    position: sticky;
    top: 84px;
    display: block;
    padding: 12px 0 0;
  }

  .vn-poster {
    width: auto;
    height: min(26vh, 250px);
    border-radius: 22px;
    box-shadow: 0 40px 90px -28px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.12);
    transform: rotate(-2deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.75, 0.2, 1);
  }

  .vn-poster:hover {
    transform: rotate(0deg) scale(1.02);
  }

  .vn-hero-copy {
    display: block;
  }

  .vn-eyebrow {
    margin-top: 26px;
    font-size: 12px;
  }

  .vn-hero h1 {
    margin-top: 14px;
    font-size: clamp(38px, 3.6vw, 56px);
    letter-spacing: -0.04em;
    line-height: 1;
  }

  .vn-where {
    margin-top: 14px;
    font-size: 17px;
  }

  .vn-times {
    flex-wrap: wrap;
    margin: 22px 0 0;
    padding: 0;
    overflow: visible;
  }

  .vn-summary {
    margin-top: 24px;
  }

  .vn-summary b {
    font-size: 68px;
  }

  .vn-summary span {
    font-size: 17px;
  }

  .vn-hero-buttons {
    gap: 12px;
    margin-top: 26px;
  }

  .vn-hero-buttons .vd-book,
  .vn-hero-buttons .vd-more {
    flex: 0 1 auto;
    min-height: 54px;
    padding: 0 24px;
  }

  .vn-hero-buttons .vd-book b,
  .vn-hero-buttons .vd-more {
    font-size: 16px;
  }

  .vn-list {
    padding-top: 6px;
  }

  .vn-filters {
    top: 0;
    margin: 0;
    padding: 22px 0 16px;
    background: none;
  }

  .vn-filters span {
    height: 42px;
    padding: 0 18px;
    background: rgba(12, 13, 22, 0.6);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
  }

  .vn-grid {
    gap: 20px;
    margin-top: 0;
  }

  .vn-card {
    border-radius: 22px;
  }

  .vn-note {
    text-align: left;
  }
}

@media (min-width: 1400px) {
  .vn-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Short wide screens: drop the poster so the show's details still fit. */
@media (min-width: 1000px) and (max-height: 760px) {
  .vn-poster {
    display: none;
  }

  .vn-eyebrow {
    margin-top: 8px;
  }
}
