/* General Styling for Film Details */
#film-details-container {
    margin: 0 auto;
    padding: 20px;
    /* max-width: 800px; */
    /* border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
    color: #333; */
    overflow: hidden;
    position: relative;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 20px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    box-shadow: inset 0 -50px 50px rgba(0, 0, 0, 0.6);
}

/* Desktop refinements for hero and poster */
@media (min-width: 1024px) {
  .hero-section {
    height: 420px; /* Taller hero on desktop */
  }
  .film-images img.film-poster {
    width: 200px; /* Larger poster on desktop */
  }
}

/* Refined borders, shadows, and subtle animations */
.hero-section {
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: box-shadow 300ms ease, transform 300ms ease;
  animation: heroFade 600ms ease-out both;
}

.hero-section:hover {
  box-shadow: inset 0 -60px 60px rgba(0, 0, 0, 0.55), 0 10px 30px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

/* Film poster polish */
.film-images img.film-poster {
  border: 1px solid rgba(255,255,255,0.5);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.film-images img.film-poster:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* Elevate event wrappers on hover */
.eventive-event-wrapper {
  transition: box-shadow 250ms ease, transform 250ms ease;
}

.eventive-event-wrapper:hover {
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* Keyframes & reduced motion safety */
@keyframes heroFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-section,
  .film-images img.film-poster,
  .eventive-event-wrapper {
    transition: none !important;
    animation: none !important;
  }
}

.film-images img.film-poster {
    width: 150px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Film Details Section */
.film-details {
    padding: 20px;
    text-align: center;
}

.film-title {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #222;
}

.film-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.film-info div {
    font-size: 1em;
    color: #555;
    background-color: #f1f1f1;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
}

/* Adjusted film-description margin */
.film-description {
    font-size: 1.2em;
    margin: 20px 0;
    color: #373737;
    line-height: 1.6;
}

/* Tags */
.film-tags {
    margin: 20px 0;
}

.film-tag-pill {
    display: inline-block;
    padding: 5px 10px;
    margin: 5px;
    font-size: 0.9em;
    background-color: #007bff;
    color: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-transform: capitalize;
    cursor: default;
}

.film-tag-pill:hover {
    background-color: #0056b3;
}

/* Credits Section */
.film-credits {
  margin-top: 20px;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr; /* default: 1 column on mobile */
  gap: 1rem; /* space between items */
}

.film-credits h3 {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #222;
    grid-column: 1 / -1;
}

/* Tablet and up */
@media (min-width: 768px) {
  .film-credits {
    grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
  }
}

.film-credits div {
    font-size: 0.95em;
    color: #444;
    margin-bottom: 5px;
}

/* Events Section */
.film-events {
    margin-top: 30px;
    text-align: left;
}

.film-events h3 {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #222;
}

.event-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-date-time {
    flex: 1;
    font-size: 1em;
    font-weight: bold;
    color: #555;
    text-align: center;
    padding: 10px;
    border-right: 2px solid #f1f1f1;
}

.event-details {
    flex: 2;
    padding: 0 15px;
}

.event-details h4 {
    font-size: 1.2em;
    font-weight: bold;
    color: #222;
    margin-bottom: 5px;
}

.event-details p {
    font-size: 0.9em;
    color: #555;
}

.ticket-bucket {
    margin-top: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    color: #555;
}

/* Horizontal Button Grid for Event Times */
/* Updated Eventive Button Grid Styles */
.eventive-event-button-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
    padding: 10px 0;
    justify-content: flex-start;
}

.eventive-custom-button {
    display: inline-block;
}

.eventive-custom-button button.showtime {
    background-color: #222;
    color: #fff;
    font-size: 0.9em;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.eventive-custom-button button.showtime:hover {
    background-color: #444;
}

/* Date Selector Styles */
.eventive-date-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0px;
    padding: 10px 0;
}

.eventive-date-button {
    background-color: #eee;
    color: #333;
    font-size: 0.9em;
    padding: 8px 14px;
    border-radius: 0px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
}

.eventive-date-button:hover {
    background-color: #ddd !important;
}

.eventive-date-button.active {
    background-color: #007bff;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .film-info {
        flex-direction: column;
        gap: 10px;
    }

    .event-box {
        flex-direction: column;
        text-align: center;
    }

    .event-date-time {
        border: none;
        padding: 0;
        margin-bottom: 10px;
    }

    .film-poster {
        width: 100px;
    }
}
 
.eventive-event-wrapper {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #fdfdfd;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.eventive-event-wrapper span small {
    display: block;
    font-weight: bold;
    font-size: 0.7em;
    color: #bdbdbd;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =============================
   Grouped Screenings (date + venue)
   ============================= */
.eventive-screening {
  padding: 14px 16px !important;
  margin: 12px 0;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.eventive-screening__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.eventive-screening__datetime {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: .03em;
}

.eventive-screening__venue {
  font-size: 0.9rem;
  opacity: .85;
}

/* list of showtimes inside a grouped screening */
.eventive-screening__items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

/* one row: time · venue · button */
.eventive-showtime-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px dashed rgba(0,0,0,0.06);
}

.eventive-showtime-row:first-child {
  border-top: 0;
}

.eventive-showtime-time {
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.95rem;
}

.eventive-showtime-venue {
  opacity: .85;
  font-size: 0.92rem;
}

.eventive-showtime-btn .eventive-button {
  width: 100%;
  min-width: 160px;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .eventive-screening__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .eventive-showtime-row {
    grid-template-columns: 1fr; /* stack time/venue above the button */
    gap: 6px;
  }
  .eventive-showtime-time { margin-right: 8px; }
  .eventive-showtime-btn .eventive-button { width: 100%; }
}

/* Placeholder for no upcoming screenings (only shown when show-events=true) */
.film-events .eventive-no-screenings, .eventive-screening-empty {
  display: block;
  padding: 12px 16px;
  margin: 12px 0;
  border: 1px dashed #e0e0e0;
  border-radius: 10px;
  background: #fafafa;
  color: #666;
  text-align: center;
}

/* =============================
   Single film detail layout
   Matches the single event renderer.
   ============================= */
.eventive-film-details {
  --eventive-action-bg: var(--button-bg, var(--wp--preset--color--primary, #0056b3));
  --eventive-action-bg-hover: var(--primary-color, var(--wp--preset--color--primary, #004494));
  --eventive-action-text: var(--button-text, #ffffff);
  --eventive-action-border: rgba(0, 0, 0, 0.18);
  --eventive-action-disabled-bg: #4b5563;
  --eventive-action-disabled-text: #ffffff;
  color: #222;
  overflow: hidden;
}

@supports (background: color-mix(in srgb, #000 50%, #fff)) {
  .eventive-film-details {
    --eventive-action-disabled-bg: color-mix(in srgb, var(--eventive-action-bg) 18%, #374151);
  }
}

.eventive-film-details *,
.eventive-film-details *::before,
.eventive-film-details *::after {
  box-sizing: border-box;
}

.eventive-film-details .hero-section.eventive-film-details__hero {
  position: relative;
  width: 100%;
  min-height: clamp(340px, 52vw, 560px);
  height: auto;
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px 8px 0 0;
  background-color: #222;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: inset 0 -90px 100px rgba(0, 0, 0, 0.62);
  animation: none;
  transform: none;
}

.eventive-film-details .hero-section.eventive-film-details__hero:hover {
  box-shadow: inset 0 -90px 100px rgba(0, 0, 0, 0.62);
  transform: none;
}

.eventive-film-details .hero-overlay {
  width: 100%;
  min-height: inherit;
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 5vw, 56px);
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.74));
}

.eventive-film-details .eventive-single-film__hero-content {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: end;
}

@media (min-width: 760px) {
  .eventive-film-details .eventive-single-film__hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  }
}

.eventive-film-details .eventive-single-film__hero-copy {
  max-width: 900px;
}

.eventive-film-details .film-title {
  max-width: 900px;
  margin: 0;
  color: #fff !important;
  font-size: clamp(2rem, 6vw, 4.75rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
}

.eventive-film-details .eventive-single-event__eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
}

.eventive-film-details .eventive-single-film__poster-panel {
  justify-self: start;
  display: grid;
  gap: 10px;
  width: min(190px, 48vw);
}

@media (min-width: 760px) {
  .eventive-film-details .eventive-single-film__poster-panel {
    justify-self: end;
  }
}

.eventive-film-details .eventive-single-film__poster-panel .film-poster {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.eventive-film-details .film-watch-button {
  width: 100%;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--eventive-action-border, rgba(0, 0, 0, 0.18));
  border-radius: 6px;
  background: var(--eventive-action-bg, var(--button-bg, #0056b3));
  color: var(--eventive-action-text, #fff);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.eventive-film-details .film-watch-button:hover,
.eventive-film-details .film-watch-button:focus-visible {
  background: var(--eventive-action-bg-hover, var(--primary-color, #004494));
  color: var(--eventive-action-text, #fff);
}

.eventive-film-details .film-details.eventive-film-details__body {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.eventive-film-details .eventive-single-film__film-details,
.eventive-film-details .eventive-single-film__screenings,
.eventive-film-details .eventive-single-film__credits {
  text-align: left;
}

.eventive-film-details .eventive-single-event__section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.eventive-film-details .eventive-single-event__section-heading h2,
.eventive-film-details .eventive-single-film__credits h2 {
  margin: 0;
  color: #222;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
}

.eventive-film-details .film-description {
  margin: 0;
  color: #373737;
  font-size: 1.06rem;
  line-height: 1.65;
}

.eventive-film-details .film-description > *:last-child {
  margin-bottom: 0;
}

.eventive-film-details .film-info {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: stretch;
  gap: 10px;
  margin: 22px 0 0;
}

@media (min-width: 720px) {
  .eventive-film-details .film-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.eventive-film-details .film-info div {
  min-width: 0;
  padding: 11px 14px;
  border-radius: 8px;
  background: #f1f1f1;
  color: #444;
  font-size: 0.96rem;
  line-height: 1.35;
  text-align: left;
}

.eventive-film-details .film-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}

.eventive-film-details .film-tag-pill.eventive-single-film__tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.eventive-film-details .film-events {
  margin: 0;
  text-align: left;
}

.eventive-film-details .eventive-events-list {
  display: grid;
  gap: 12px;
}

.eventive-film-details .eventive-screening {
  margin: 0;
  padding: 16px !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fafafa;
  box-shadow: none;
}

.eventive-film-details .eventive-screening__header {
  align-items: flex-start;
  margin-bottom: 10px;
}

.eventive-film-details .eventive-screening__datetime {
  color: #222;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.eventive-film-details .eventive-screening__venue {
  color: #555;
  font-size: 0.92rem;
  opacity: 1;
}

.eventive-film-details .eventive-showtime-row {
  min-height: 44px;
  padding: 9px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.eventive-film-details .eventive-showtime-row--online-window .eventive-showtime-time {
  white-space: normal;
  line-height: 1.2;
}

.eventive-film-details .eventive-showtime-time {
  color: #222;
  font-weight: 700;
}

.eventive-film-details .eventive-showtime-venue {
  color: #555;
  opacity: 1;
}

.eventive-film-details .film-credits {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  text-align: left;
}

@media (min-width: 720px) {
  .eventive-film-details .film-credits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.eventive-film-details .film-credits h2 {
  grid-column: 1 / -1;
}

.eventive-film-details .film-credits div {
  min-width: 0;
  margin: 0;
  padding: 11px 14px;
  border-radius: 8px;
  background: #f7f7f7;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .eventive-film-details .hero-section.eventive-film-details__hero {
    min-height: 420px;
  }

  .eventive-film-details .eventive-single-event__section-heading {
    display: block;
  }

  .eventive-film-details .eventive-showtime-row {
    grid-template-columns: 1fr;
  }

  .eventive-film-details .eventive-showtime-btn .eventive-button {
    width: 100%;
  }
}
