/* 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;
}