/* DateNightMovies.co.uk
   Matches the original Date Night Movies design (name, logo and visual identity used under licence from UTA).
   Palette: ink #000505 · heart #cc1851 · plum #5c164e · hover plum #8d3b72 · mist #e8f1f2
   Type: PT Sans (body), Bebas Neue Bold (display) */
:root {
  --ink: #000505;
  --heart: #cc1851;
  --plum: #5c164e;
  --plum-hover: #8d3b72;
  --mist: #e8f1f2;
  --band: rgba(255, 255, 255, 0.09);
  --band-line: rgba(255, 255, 255, 0.12);
  --display: 'Bebas Neue', BebasNeueBold, Impact, sans-serif;
  --body: 'PT Sans', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--ink); color: #fff; font: 400 16px/1.4 var(--body);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p { margin: 0; }
a { color: #fff; }
button { font: inherit; color: inherit; }
img { display: block; }
::selection { background: var(--heart); color: #fff; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: #fff; color: var(--heart); padding: 8px 12px; border-radius: 2px; font-weight: 700; }
.skip:focus { left: 8px; }

.app-bg {
  position: fixed; inset: 0; z-index: -1;
  background-image:
    radial-gradient(circle at 80% 60%, rgba(92, 22, 78, 0.5) 0, transparent 40%),
    radial-gradient(at 80% 70%, rgba(27, 23, 37, 0.5) 0, transparent 40%),
    radial-gradient(at 80% 55%, rgba(27, 23, 37, 0.5) 0, transparent 40%),
    radial-gradient(circle at 20% 60%, rgba(92, 22, 78, 0.5) 0, transparent 40%),
    radial-gradient(at 20% 70%, rgba(27, 23, 37, 0.5) 0, transparent 40%),
    radial-gradient(at 20% 55%, rgba(27, 23, 37, 0.5) 0, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(92, 22, 78, 0.5) 0, transparent 30%),
    linear-gradient(var(--ink), var(--ink));
}
.max-width-container { max-width: 1246px; margin: 0 auto; padding: 0 50px; }
@media (max-width: 768px) { .max-width-container { padding: 0 20px; } }
@media (max-width: 374px) { .max-width-container { padding: 0 10px; } }

/* ---------- header ---------- */
.app-header { position: fixed; top: 0; left: 0; right: 0; height: 50px; line-height: 50px; z-index: 4; }
.app-header-background { position: absolute; inset: 0; background: var(--ink); border-bottom: 1px solid var(--band-line); }
.app-header .max-width-container { position: relative; height: 50px; }
.logo { display: inline-block; height: 40px; margin-top: 5px; }
.logo-heart { width: 40px; height: 40px; color: var(--heart); transition: color 150ms ease-in-out; }
.logo:hover .logo-heart { color: var(--plum-hover); }
@media (max-width: 568px) { .logo { position: absolute; left: 50%; transform: translateX(-50%); } }

main { flex: 1; padding-top: 50px; outline: none; display: flex; flex-direction: column; }

/* ---------- hero ---------- */
.hero-bg { position: relative; height: calc(100vh - 250px); min-height: 395px; transition: height 250ms ease-in-out; }
.hero-bg.hero-not-full { height: auto; min-height: 395px; padding: 24px 0; }
.heart-clip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-bg-heart-container { position: absolute; left: 50%; bottom: 50%; transform: translate(-50%, 50%); width: 100%; min-width: 520px; height: 580px; }
.hero-bg-heart { width: 100%; height: 580px; color: var(--heart); }
.hero { position: relative; top: 50%; transform: translateY(-50%); z-index: 3; }
.hero-not-full .hero { top: 0; transform: none; }

.app-logo {
  font: 700 15vh/1 var(--display); letter-spacing: 1.68px; text-align: center; text-transform: uppercase;
  height: 15vh; margin: 0 0 -2vh; color: #fff; white-space: nowrap;
}
@media (min-height: 850px) { .app-logo { font-size: 140px; height: 140px; line-height: 127px; } }
@media (max-width: 768px) { .app-logo { font-size: 84px; height: 84px; line-height: 70px; } }
@media (max-width: 568px) { .app-logo { line-height: 80px; height: 64px; padding-top: 2vh; margin-bottom: 0; } }
@media (max-width: 374px) { .app-logo { font-size: 80px; } }
@media (max-width: 568px) { .app-logo, .hero-not-full .app-logo { font-size: min(80px, 21vw); } }
.hero-not-full .app-logo { font-size: 84px; height: 84px; line-height: 84px; margin-bottom: 0; }
@media (max-width: 568px) { .hero-not-full .app-logo { font-size: 64px; height: 64px; line-height: 64px; padding-top: 0; } }

.app-tagline { color: var(--mist); font-size: 3vh; font-weight: 700; text-align: center; padding: 0.4em 0 2vh; }
@media (min-height: 850px) { .app-tagline { font-size: 24px; } }
@media (max-width: 768px) { .app-tagline { font-size: 18px; } }
@media (max-width: 568px) { .app-tagline { font-size: 14px; line-height: 14px; padding: 1vh 0 10px; } }
@media (max-width: 374px) { .app-tagline { font-size: 12px; } }

.hero-width-container { width: 456px; max-width: 100%; margin: 0 auto; }
@media (max-width: 568px) { .hero-width-container { width: 332px; } }
@media (max-width: 374px) { .hero-width-container { width: 290px; } }
.hero-choice-container { position: relative; display: grid; grid-template-columns: 142px 1fr 142px; align-items: start; text-align: center; }
@media (max-width: 568px) { .hero-choice-container { grid-template-columns: 136px 1fr 136px; } }
@media (max-width: 374px) { .hero-choice-container { grid-template-columns: 120px 1fr 120px; } }
.hero-choice.yours { grid-column: 1; grid-row: 1; }
.hero-choice.theirs { grid-column: 3; grid-row: 1; }
.hero-choice-button { grid-column: 2; grid-row: 1; position: relative; height: 253px; }
@media (max-width: 568px) { .hero-choice-button { height: 244px; } }
@media (max-width: 374px) { .hero-choice-button { height: 220px; } }

.hero-thumbnail-crop {
  display: block; width: 142px; height: 213px; margin: 0 0 10px; padding: 0; border: 0; border-radius: 2px;
  overflow: hidden; position: relative; cursor: pointer; background: var(--plum);
  transition: box-shadow 150ms ease-in-out, background-color 150ms ease-in-out;
}
.hero-thumbnail-crop img, .hero-thumbnail-crop .poster-fallback { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 568px) { .hero-thumbnail-crop { width: 136px; height: 204px; } }
@media (max-width: 374px) { .hero-thumbnail-crop { width: 120px; height: 180px; } }
.hero-choice:hover .hero-thumbnail-crop { background: var(--plum-hover); box-shadow: -8px 8px 16px rgba(0, 0, 0, 0.45); }
.no-choice-text { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); padding: 0 10px; font-size: 32px; font-weight: 700; line-height: 42px; user-select: none; }
@media (max-width: 374px) { .no-choice-text { font-size: 26px; line-height: 34px; } }

.search-group { position: relative; height: 30px; }
.search-group-button, .search-input {
  position: absolute; inset: 0; width: 100%; height: 30px; border: 0; border-radius: 2px;
  font-size: 16px; line-height: 30px; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-group-button { background: #fff; color: var(--heart); font-weight: 700; cursor: pointer; z-index: 1; transition: background-color 150ms, color 150ms; }
.hero-choice:hover .search-group-button, .search-group-button:focus-visible { background: var(--plum-hover); color: #fff; }
@media (max-width: 374px) { .search-group-button { font-size: 12px; } }
.search-input { padding: 0 10px; background: var(--plum); color: #fff; opacity: 0; pointer-events: none; z-index: 2; text-align: left; appearance: none; font-family: var(--body); }
.search-input::placeholder { color: rgba(255, 255, 255, 0.6); }
.search-input::-webkit-search-cancel-button { display: none; }
.hero-choice.searching .search-input { opacity: 1; pointer-events: auto; outline: 2px solid #fff; outline-offset: 0; }

.hero-plus { position: absolute; left: 50%; top: 106px; transform: translate(-50%, -50%); }
@media (max-width: 568px) { .hero-plus { top: 102px; } }
@media (max-width: 374px) { .hero-plus { top: 90px; } }
.hero-plus-icon { display: block; width: 60px; height: 60px; color: #fff; }
@media (max-width: 568px) { .hero-plus-icon { width: 40px; height: 40px; } }
.hero-plus-spin { animation: rotateForever 1000ms linear infinite; }
@keyframes rotateForever { to { transform: rotate(360deg); } }

.random-button { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 132px; height: 60px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.random-text { display: block; font-weight: 700; font-size: 14px; color: #fff; background: none; border: 0; cursor: pointer; transition: color 150ms; }
.random-text-desktop { height: 30px; padding-top: 6px; }
.random-button-text { display: block; height: 30px; line-height: 28px; border: 1px solid #fff; border-radius: 2px; font-size: 12px; font-weight: 700; color: #fff; transition: background-color 150ms, border-color 150ms; }
.random-button:hover .random-button-text, .random-button:focus-visible .random-button-text { background: var(--plum-hover); border-color: transparent; }
.random-button-cube { display: none; }
.random-text-mobile { display: none; grid-column: 1 / -1; margin: 6px auto 0; }
.random-text-mobile:hover { color: var(--plum-hover); }
@media (max-width: 568px) {
  .random-button { width: 40px; height: 30px; }
  .random-text-desktop, .random-button-text { display: none; }
  .random-button-cube { display: block; margin: 0 auto; color: #fff; }
  .random-button:hover .random-button-cube { color: var(--plum-hover); }
  .random-text-mobile { display: block; }
}

.suggestions {
  position: absolute; left: 0; right: 0; top: 253px; z-index: 5; list-style: none; margin: 0; padding: 0;
  background: var(--plum); max-height: 420px; overflow-y: auto; text-align: left; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}
@media (max-width: 568px) { .suggestions { top: 244px; } }
@media (max-width: 374px) { .suggestions { top: 220px; } }
.suggestions li { display: flex; align-items: center; gap: 8px; height: 60px; padding: 5px; cursor: pointer; transition: background 0.2s; }
.suggestions li[aria-selected="true"], .suggestions li:hover { background: var(--plum-hover); }
.suggestions img, .suggestions .poster-fallback { width: 34px; height: 51px; flex: none; object-fit: cover; background: var(--plum-hover); font-size: 0; }
.suggestions .s-text { min-width: 0; overflow: hidden; white-space: nowrap; }
.suggestions .s-name { display: block; font-size: 20px; line-height: 24px; overflow: hidden; text-overflow: ellipsis; }
.suggestions .s-year { display: block; font-size: 16px; line-height: 20px; color: var(--mist); }
.suggestions .s-empty { font-size: 20px; padding-left: 10px; cursor: default; }
.suggestions .s-empty:hover { background: none; }

/* ---------- results band ---------- */
.results {
  position: relative; width: 100%; height: 200px; margin: 0 auto;
  background: var(--band); border-top: 1px solid var(--band-line); border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}
.empty-night { display: flex; align-items: center; justify-content: center; }
.empty-night-description, .empty-message { font-size: 18px; line-height: 24px; font-weight: 700; text-align: center; color: var(--mist); max-width: 750px; padding: 0 20px; }
.results .empty-message { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); margin: 0 auto; }
.slider-width { position: relative; width: 1146px; max-width: calc(100% - 100px); height: 100%; margin: 0 auto; }
@media (max-width: 768px) { .slider-width { max-width: 100%; } }
.slick-list {
  list-style: none; margin: 0; padding: 15px 0; height: 100%;
  display: flex; align-items: center; gap: 0; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain;
}
.slick-list::-webkit-scrollbar { display: none; }
@media (max-width: 768px) { .slick-list { padding: 15px 15px; scroll-padding: 0 15px; } }
.slide { flex: none; scroll-snap-align: start; padding: 0 7px; }
@media (max-width: 768px) { .slide { padding: 0 5px; } }
.result-poster, .load-more {
  position: relative; display: block; width: 100px; height: 150px; padding: 0; border: 0; border-radius: 2px;
  background: var(--plum); cursor: pointer; transition: box-shadow 150ms ease-in-out, transform 150ms ease-in-out;
}
.result-poster img, .result-poster .poster-fallback { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.result-poster::before { content: ''; position: absolute; inset: -4px; border: 4px solid transparent; border-radius: 3px; transition: border-color 150ms ease-in-out; pointer-events: none; }
.result-poster::after {
  content: ''; position: absolute; left: 50%; bottom: -12px; margin-left: -10px; width: 0; height: 0;
  border-style: solid; border-width: 10px 10px 0; border-color: transparent; transition: border-color 150ms ease-in-out;
}
.result-poster:hover, .result-poster:focus-visible, .result-poster.selected { box-shadow: 0 0 10px rgba(0, 0, 0, 0.8); outline: none; }
.result-poster:hover::before, .result-poster:focus-visible::before, .result-poster.selected::before { border-color: #fff; }
.result-poster.selected::after { border-top-color: #fff; }
@media (hover: none) { .result-poster.selected { transform: scale(1.1); } .result-poster.selected::after { display: none; } }
.load-more { font: 700 24px/1 var(--display); letter-spacing: 1px; color: #fff; text-transform: uppercase; }
.load-more:hover { background: var(--plum-hover); }
.slick-prev, .slick-next {
  position: absolute; top: 0; height: 100%; width: 40px; padding: 0; border: 0; background: transparent;
  color: #fff; cursor: pointer; z-index: 2;
}
.slick-prev { left: -45px; }
.slick-next { right: -45px; }
.slick-prev svg, .slick-next svg { margin: 0 auto; transform: scale(0.7); transition: transform 150ms ease-in-out; }
.slick-prev svg { transform: scale(0.7) rotate(180deg); }
.slick-next:hover svg { transform: scale(1); }
.slick-prev:hover svg { transform: scale(1) rotate(180deg); }
.slick-prev[disabled] svg, .slick-next[disabled] svg { opacity: 0.1; }
.slick-prev[disabled], .slick-next[disabled] { cursor: default; }
@media (max-width: 768px), (hover: none) { .slick-prev, .slick-next { display: none; } }

.pair-summary { max-width: 750px; margin: 18px auto 0; padding: 0 20px; text-align: center; color: var(--mist); font-size: 15px; }
.pair-summary strong { color: #fff; }

/* ---------- info panel ---------- */
.info-panel-wrapper { background: var(--band); position: relative; }
.info-panel-wrapper:empty { display: none; }
.info-panel { position: relative; max-width: 1146px; margin: 0 auto; padding: 20px 50px 24px; outline: none; animation: slideIn 400ms ease-in-out; }
@media (max-width: 768px) { .info-panel { padding: 20px; } }
@keyframes slideIn { from { opacity: 0; transform: translate3d(60px, 0, 0); } }
.info-panel-inner { display: flex; gap: 15px; }
.info-thumbnail-crop { flex: none; width: 148px; height: 222px; border-radius: 2px; overflow: hidden; background: var(--plum); }
.info-thumbnail-crop img, .info-thumbnail-crop .poster-fallback { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) { .info-thumbnail-crop { display: none; } }
.info-panel-body { flex: 1; min-width: 0; }
.header-title { font: 700 36px/57px var(--display); letter-spacing: 1px; text-transform: uppercase; color: var(--mist); padding-right: 40px; }
@media (max-width: 568px) { .header-title { font-size: 28px; line-height: 34px; } }
.media-info { color: var(--mist); font-size: 18px; line-height: 23px; margin-bottom: 8px; }
@media (max-width: 568px) { .media-info { font-size: 14px; line-height: 16px; } }
.media-why { font-weight: 700; color: #fff; margin-bottom: 6px; }
.media-description { line-height: 20px; max-width: 70ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
@media (max-width: 568px) { .media-description { font-size: 14px; } }
.media-people { color: var(--mist); font-size: 14px; }
.info-panel-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.info-panel-button {
  appearance: none; display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 10px 16px;
  border: 0; border-radius: 2px; background: #fff; color: var(--heart); font-size: 20px; cursor: pointer;
  transition: background-color 250ms ease-in-out, color 250ms ease-in-out;
}
.info-panel-button:hover, .info-panel-button:focus-visible { background: var(--plum-hover); color: #fff; }
.info-panel-button[disabled] { background: var(--heart); color: #fff; cursor: default; }
.info-panel-button-pitch { font: 700 22px/1 var(--display); letter-spacing: 1px; text-transform: uppercase; padding-top: 2px; }
.close-button { position: absolute; top: 12px; right: 20px; width: 36px; height: 36px; border: 0; background: transparent; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; opacity: 0.8; z-index: 2; }
.close-button:hover { opacity: 1; color: var(--heart); }
.trailer-slot iframe { display: block; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; border: 0; border-radius: 2px; margin-top: 16px; }

.sources { margin-top: 20px; }
.sources-title { font: 700 22px/1 var(--display); letter-spacing: 1px; text-transform: uppercase; color: var(--mist); margin-bottom: 10px; }
.touch-sources { list-style: none; margin: 0; padding: 0 0 4px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.touch-sources::-webkit-scrollbar { display: none; }
.touch-source { flex: none; }
.source-logo {
  display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 180px; height: 72px; padding: 10px 20px;
  background: var(--plum-hover); border-radius: 2px; color: #fff;
}
.source-logo-image { height: 23px; width: auto; max-width: 140px; border-radius: 4px; }
.source-logo-name { font-weight: 700; font-size: 15px; line-height: 23px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source-logo-pitch { font-weight: 700; font-size: 16px; line-height: 20px; }
.no-sources { font-weight: 700; font-size: 18px; line-height: 48px; }
.jw { font-size: 12px; color: var(--mist); opacity: 0.8; margin-top: 8px; }
.jw a { color: var(--mist); }

.poster-fallback {
  display: flex; align-items: center; justify-content: center; padding: 8px; text-align: center;
  background: var(--plum); color: #fff; font: 700 16px/1.05 var(--display); letter-spacing: 0.5px; text-transform: uppercase;
}

/* ---------- footer ---------- */
.app-footer { text-align: center; padding: 16px 20px 24px; font-size: 14px; }
.footer-group { line-height: 20px; }
.footer-group-item { position: relative; display: inline-block; font-size: 14px; line-height: 14px; margin-left: 10px; text-decoration: none; border-bottom: 1px solid transparent; transition: border 150ms ease-in-out; }
.footer-group-item.no-separator { margin-left: 0; }
.footer-group-item:not(.no-separator)::after { content: '|'; position: absolute; left: -8px; }
a.footer-group-item:hover, a.footer-group-item:focus-visible { border-bottom-color: #fff; }
.footer-logo { display: inline-block; width: 18px; height: 16px; margin: 0 4px; vertical-align: -3px; color: var(--heart); }
.footer-legal { margin: 10px auto 0; max-width: 640px; font-size: 12px; line-height: 16px; color: var(--mist); opacity: 0.7; }

/* ---------- toast + misc ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 60; background: #fff; color: var(--heart); font-weight: 700; padding: 10px 16px; border-radius: 2px; opacity: 0; pointer-events: none; transition: 0.25s; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.notice { background: var(--plum); text-align: center; font-weight: 700; padding: 10px 20px; }
.page { max-width: 760px; margin: 0 auto; padding: 40px 20px; line-height: 1.6; }
.page h1 { font: 700 56px/1 var(--display); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.page h2 { font-size: 20px; margin: 24px 0 8px; }
.page p { margin-bottom: 12px; color: var(--mist); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 568px) {
  .info-panel-button { height: 44px; padding: 8px 12px; }
  .info-panel-button-pitch { font-size: 18px; }
}
