/* ===========================================================
   SMOOVIE — Screening Page (token link page)
   File: static/custom/css/public/screening_page.css
   =========================================================== */

/* ---------- page shell ---------- */

.screenings-container {
  width: 100%;
  max-width: var(--public-maxw, 1180px);
  margin: 0 auto;
  padding: 18px var(--public-pad, 18px) 56px;

  /* crisp background, matches new public pages */
  background:
    radial-gradient(1100px 520px at 50% -280px, rgba(238,241,255,1) 0%, rgba(238,241,255,0) 55%),
    linear-gradient(180deg, #fbfbfd 0%, #ffffff 70%);
}

/* ---------- hero (venue image) ---------- */

.screenings-hero {
  position: relative;
  height: 360px;
  background: #111;
  overflow: hidden;

  width: 100%;
  max-width: var(--public-maxw, 1180px);
  margin: 14px auto 18px;

  border: 1px solid var(--line, rgba(0,0,0,.12));
  border-radius: 0;
  box-shadow: var(--shadow, 0 12px 26px rgba(0,0,0,.08));
}

@media (max-width: 720px) {
  .screenings-hero { height: 300px; }
}

.screenings-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: saturate(.95);
}

.screenings-hero__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.screenings-hero__inner {
  position: relative;
  height: 100%;
  max-width: var(--public-maxw, 1180px);
  margin: 0 auto;
  padding: 24px 18px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.screenings-hero__back {
  align-self: flex-start;
  display: inline-flex;
  gap: 8px;
  align-items: center;

  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-weight: 900;

  border-bottom: 1px solid rgba(255,255,255,.22);
  padding-bottom: 2px;
}

.screenings-hero__back:hover {
  border-bottom-color: rgba(255,255,255,.55);
}

.screenings-hero__tag {
  display: inline-block;
  align-self: flex-start;

  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  font-size: 12px;
}

.screenings-hero__title {
  margin: 0;
  color: #fff;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

@media (max-width: 720px) {
  .screenings-hero__title { font-size: 34px; }
}

.screenings-hero__meta {
  margin: 0;
  color: rgba(255,255,255,.85);
  font-weight: 700;
}

/* ---------- grid layout ---------- */

.screenings-shell {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: start;
}

@media (max-width: 980px) {
  .screenings-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
}

/* sticky sidebar on desktop */
.screenings-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;

  position: sticky;
  top: 92px;
  align-self: start;
}

@media (max-width: 980px) {
  .screenings-sidebar {
    position: static;
    top: auto;
  }
}

/* ---------- card utility ---------- */

.sp-card {
  border: 1px solid var(--line, rgba(0,0,0,.12));
  background: #fff;
  box-shadow: var(--shadow, 0 12px 26px rgba(0,0,0,.08));
  border-radius: 0;
  padding: 16px;
}

.sp-card__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line, rgba(0,0,0,.12));
}

.sp-card__title {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.sp-card__sub {
  margin: 0;
  color: rgba(0,0,0,.62);
  font-weight: 600;
  font-size: 13px;
}

/* ---------- film header card ---------- */

.sp-film {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 720px) {
  .sp-film {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
  }
}

.sp-film__poster img {
  width: 100%;
  height: auto;
  display: block;

  border: 1px solid var(--line, rgba(0,0,0,.12));
  border-radius: 0;
  box-shadow: var(--shadow, 0 12px 26px rgba(0,0,0,.08));
}

.sp-film__title {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

@media (max-width: 720px) {
  .sp-film__title { font-size: 28px; }
}

.sp-film__meta {
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: rgba(0,0,0,.75);
  font-weight: 650;
  font-size: 13px;
}

.sp-film__meta span { white-space: nowrap; }
.sp-film__meta--secondary { margin-top: -2px; }

.sp-film__logline {
  margin: 8px 0 10px;
  color: rgba(0,0,0,.78);
  font-weight: 650;
}

.sp-film__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;

  border: 1px solid var(--line, rgba(0,0,0,.12));
  background: rgba(0,0,0,.02);
  border-radius: 0;

  font-weight: 800;
  font-size: 12px;
}

/* ---------- screening times ---------- */

.sp-times__list {
  display: flex;
  flex-direction: column;
}

.sp-times__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line, rgba(0,0,0,.12));
}

.sp-times__row:last-child { border-bottom: 0; }

.sp-times__left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sp-times__day {
  font-weight: 950;
  letter-spacing: -0.01em;
}

.sp-times__time {
  font-weight: 800;
  color: rgba(0,0,0,.65);
  font-size: 13px;
}

.sp-empty {
  margin: 0;
  font-weight: 650;
  color: rgba(0,0,0,.7);
}

/* ---------- film details (NEW) ---------- */

.sp-details__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin-top: 6px;
}

@media (max-width: 720px) {
  .sp-details__grid {
    grid-template-columns: 1fr;
  }
}

.sp-details__item {
  border: 1px solid var(--line, rgba(0,0,0,.12));
  background: rgba(0,0,0,.02);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-details__item .k {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 900;
  color: rgba(0,0,0,.55);
  display: block;
}

.sp-details__item .v {
  font-size: 14px;
  font-weight: 800;
  color: rgba(0,0,0,.85);
  line-height: 1.35;
  display: block;
}

.sp-details__item a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------- synopsis text ---------- */

.sp-copy__text {
  color: rgba(0,0,0,.82);
  font-weight: 600;
  line-height: 1.7;
}

/* ---------- trailer embed ---------- */

.sp-trailer__wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;

  border: 1px solid var(--line, rgba(0,0,0,.12));
  border-radius: 0;
  overflow: hidden;
}

.sp-trailer__wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- venue gallery ---------- */

.venue-photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.venue-photo {
  width: 100%;
  height: 150px;
  object-fit: cover;

  border: 1px solid var(--line, rgba(0,0,0,.12));
  border-radius: 0;
  box-shadow: var(--shadow, 0 12px 26px rgba(0,0,0,.08));
}

@media (max-width: 720px) {
  .venue-photo { height: 110px; }
}

.sp-about__desc {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line, rgba(0,0,0,.12));
}

/* ---------- sidebar blocks ---------- */

.sp-venueinfo__rows p {
  margin: 10px 0;
  color: rgba(0,0,0,.78);
  font-weight: 600;
}

.sp-venueinfo__rows a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.sp-venueinfo__backbtn {
  width: 100%;
  margin-top: 10px;
}

/* ---------- SHARE CARD (new) ---------- */

.sp-share .sp-card__sub{
  margin-top: 2px;
}

.sp-share__row{
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.sp-share__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  height: 42px;
  padding: 0 12px;

  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
  color: #111;
  border-radius: 0;

  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.sp-share__btn:hover{
  background: rgba(0,0,0,.03);
}

.sp-share__btn--copy{
  flex: 1;
}

.sp-share__iconbtn{
  width: 46px;
  padding: 0;
}

/* Make icons monochrome (works for <img> icons) */
.sp-share__icon{
  width: 18px;
  height: 18px;
  display: block;
  filter: grayscale(1) contrast(1.2) brightness(.15);
  opacity: .9;
}

/* If you’re using inline SVG icons, this helps too */
.sp-share__icon svg{
  width: 18px;
  height: 18px;
  fill: #111 !important;
  stroke: #111 !important;
}

.sp-share__hint{
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(0,0,0,.62);
}

/* newsletter */
.sp-newsletter__form { margin-top: 10px; }

.sp-fieldrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 520px) {
  .sp-fieldrow { grid-template-columns: 1fr; }
}

.sp-field label {
  display: block;
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 6px;
}

.sp-field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;

  border: 1px solid var(--line, rgba(0,0,0,.12));
  border-radius: 0;

  font-weight: 650;
  outline: none;
}

.sp-field input:focus {
  border-color: rgba(225,29,72,.55);
  box-shadow: 0 0 0 3px rgba(225,29,72,.14);
}

.sp-newsletter__submit {
  width: 100%;
  margin-top: 10px;
}

/* ---------- buttons (fallback, if base.css doesn't supply .btn styles) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 40px;
  padding: 0 14px;

  border-radius: 0;
  border: 1px solid var(--line, rgba(0,0,0,.12));
  font-weight: 900;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: #e11d48;
  border-color: #e11d48;
  color: #fff;
}

.btn-primary:hover { filter: brightness(.95); }

.btn-secondary {
  background: #fff;
  color: #111;
}

.btn-secondary:hover { background: rgba(0,0,0,.03); }

/* ---------- booking modal (self-contained) ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

#booking-modal .modal-overlay {
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 12px;
  overflow: auto;
}

#booking-modal .modal-content {
  width: min(960px, 100%);
  background: #fff;
  border: 1px solid var(--line, rgba(0,0,0,.12));
  border-radius: 0;
  box-shadow: var(--shadow, 0 12px 26px rgba(0,0,0,.08));
  position: relative;
  padding: 18px;
}

#booking-modal .close-modal {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: rgba(0,0,0,.65);
}

#booking-modal .close-modal:hover {
  color: rgba(0,0,0,.9);
}

/* ---------- lightbox (self-contained) ---------- */

.lb-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99998;
  background: rgba(0,0,0,.82);
  padding: 18px;
}

.lb-content {
  width: min(1000px, 100%);
  position: relative;
}

.lb-image {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(255,255,255,.12);
}

.lb-caption {
  margin-top: 10px;
  color: rgba(255,255,255,.9);
  font-weight: 700;
}

.lb-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 44px;
  height: 44px;
  border: 0;
  background: #fff;
  border-radius: 0;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: #fff;
  border-radius: 0;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
}

.lb-prev { left: -10px; }
.lb-next { right: -10px; }

/* ---------- newsletter feedback (reuses your existing markup) ---------- */

.newsletter-message .success {
  padding: 10px 12px;
  border: 1px solid rgba(16,185,129,.35);
  background: rgba(16,185,129,.08);
  font-weight: 700;
}

.newsletter-message .error {
  padding: 10px 12px;
  border: 1px solid rgba(225,29,72,.35);
  background: rgba(225,29,72,.08);
  font-weight: 700;
}

/* ===========================================================
   FORCE 2-COLUMN LAYOUT (override any legacy page CSS)
   =========================================================== */

.screenings-shell{
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr) !important;
  gap: 22px !important;
  align-items: start !important;
}

.screenings-main{
  min-width: 0;
}

.screenings-sidebar{
  min-width: 0;
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;

  position: sticky !important;
  top: 92px;
}

.screenings-sidebar .sp-card{
  width: 100%;
}

@media (max-width: 980px){
  .screenings-shell{
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .screenings-sidebar{
    position: static !important;
    top: auto !important;
  }
}
