/* liberty-schedule.css */

.liberty-schedule{max-width:1100px;margin:0 auto}

/* Controls styling (Elementor can wrap/position this however you like) */
.liberty-schedule--controls{
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
}

/* All-in-one bar (non-sticky) */
.liberty-schedule__bar{
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.liberty-schedule__heading{
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--e-global-color-ffffff, #fff);
}

/* "Select day" inline with the select */
.liberty-schedule__label{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:10px;
  color: var(--e-global-color-ffffff, #fff);
}

.liberty-schedule__labeltext{
  font-size: 1rem;
  font-weight: 800;
  opacity: .9;
}

.liberty-schedule__select{
  min-width:260px;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.2);
  border-radius:14px;
  background:#fff;
  font-weight: 800;
}

.liberty-schedule__card{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:16px;
  padding:16px;
  /* border:3px solid rgba(0,0,0,.2); */
  border: 1px solid var(--e-global-color-text, rgba(0,0,0,.2));
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  border-radius:18px;
  margin-bottom:14px;
  overflow:hidden
}
.liberty-schedule__poster{width:160px;aspect-ratio:2/3;object-fit:cover;border-radius:14px;background:rgba(0,0,0,.06);display:block}
.liberty-schedule__poster--placeholder{width:160px;aspect-ratio:2/3;border-radius:14px;background:rgba(0,0,0,.06)}

.liberty-schedule__titlewrap{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.liberty-schedule__title{font-size:1.35rem;font-weight:900;line-height:1.2;margin:0 0 6px}

/* COMING SOON pill */
.liberty-schedule__soon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:.75rem;
  font-weight:900;
  letter-spacing:.04em;
  background: rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.14);
}

/* keep venue line hidden */
.liberty-schedule__venue{display:none}

/* MPAA-style rating + runtime */
.liberty-schedule__meta{display:flex;align-items:center;gap:10px;margin:0 0 8px}
.liberty-schedule__rating{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 8px;
  border:2px solid #000;
  border-radius:0;
  font-weight:900;
  font-size:.9rem;
  letter-spacing:.03em;
  line-height:1;
}
.liberty-schedule__runtime{font-size:.95rem;opacity:.85}

/* misc + trailer row */
.liberty-schedule__toprow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 12px;
}
.liberty-schedule__misc{font-size:.95rem;font-weight:700;opacity:.8;margin:0}
.liberty-schedule__actions{margin:0;flex:0 0 auto}

/* =========================================================
   Buttons + chips
   - Chips: Accent color
   - Trailer button: Primary color
   - Remove underline + add subtle "lift" on hover
   ========================================================= */

/* Shared “button-like” base */
.liberty-schedule__trailer,
.liberty-schedule__chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  text-decoration:none;           /* remove underline */
  font-weight:800;
  border:1px solid transparent;
  transition: filter .15s ease, transform .15s ease;
}
/* Force “button links” to never underline in any state */
.liberty-schedule a.liberty-schedule__trailer,
.liberty-schedule a.liberty-schedule__trailer:link,
.liberty-schedule a.liberty-schedule__trailer:visited,
.liberty-schedule a.liberty-schedule__trailer:hover,
.liberty-schedule a.liberty-schedule__trailer:focus,
.liberty-schedule a.liberty-schedule__trailer:active {
  text-decoration: none !important;
}

/* TIME CHIPS → Accent */
.liberty-schedule__chip{
  background: var(--e-global-color-accent, var(--e-global-color-primary, #111));
  color: var(--e-global-color-ffffff, #fff);
  padding:8px 12px;               /* your original chip padding */
}

/* TRAILER BUTTON → Primary */
.liberty-schedule__trailer{
  background: var(--e-global-color-primary, #111);
  color: var(--e-global-color-ffffff, #fff);
}

/* NOTE chip: visually attached to the time chip before it */
.liberty-schedule__chip--note{
  /* Pull it into the previous chip so there is no gap */
  margin-left:-10px; /* matches horizontal padding/roundness feel */

  /* Make it look like an extension */
  border-top-left-radius:0;
  border-bottom-left-radius:0;

  /* Alternate styling: outlined + lighter background */
  background: rgba(255,255,255,.85);
  color: var(--e-global-color-accent, var(--e-global-color-primary, #111));
  border: 2px solid var(--e-global-color-accent, var(--e-global-color-primary, #111));

  /* Slightly tighter so it feels like a tag */
  padding:7px 12px;
}

/* Ensure the time chip has a clean seam when followed by a note */
.liberty-schedule__chip:not(.liberty-schedule__chip--note){
  border-top-right-radius:999px;
  border-bottom-right-radius:999px;
}

/* If a time chip is immediately followed by a note chip, square off its right edge */
.liberty-schedule__chip:not(.liberty-schedule__chip--note) + .liberty-schedule__chip--note{
  /* Square the time chip’s right side so they join cleanly */
  border-top-left-radius:0;
  border-bottom-left-radius:0;
}

/* Optional: give the time chip a tiny outline when paired so the join reads well */
.liberty-schedule__chip:not(.liberty-schedule__chip--note) + .liberty-schedule__chip--note{
  box-shadow: -2px 0 0 0 var(--e-global-color-accent, var(--e-global-color-primary, #111));
}

/* Hover */
.liberty-schedule__trailer:hover,
.liberty-schedule__chip:hover{
  filter:brightness(0.95);
}

/* Subtle lift for the trailer button */
.liberty-schedule__trailer:hover{
  transform: translateY(-1px);
}

.liberty-schedule__synopsis{margin:0 0 12px;opacity:.9}
.liberty-schedule__times{display:flex;flex-wrap:wrap;gap:10px}
.liberty-schedule__begins{margin:0 0 10px;font-weight:800}
.liberty-schedule__empty{opacity:.7}
.liberty-schedule-error{padding:12px 14px;border:1px solid rgba(255,0,0,.35);border-radius:14px}

/* hidden SEO alternate spelling (kept) */
.liberty-seo-hidden{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* MOBILE */
@media (max-width: 640px){
  .liberty-schedule__card{grid-template-columns:1fr}
  .liberty-schedule__poster,
  .liberty-schedule__poster--placeholder{
    width:100%;
    max-height:40vh;
    height:auto;
    object-fit:contain;
    border-radius:14px;
  }

  /* Right-aligned, compact date picker (≤50% width) */
  .liberty-schedule__label{
    width:50%;
    max-width:50%;
    margin-left:auto;
    justify-content:flex-end;
  }
  .liberty-schedule__select{
    width:auto;
    min-width:0;
    max-width:12.5rem;
  }

  .liberty-schedule__toprow{flex-direction:column;align-items:flex-start}
}

/* Trailer modal */
.liberty-trailer-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:999999}
.liberty-trailer-modal[aria-hidden='false']{display:flex}
.liberty-trailer-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.65)}
.liberty-trailer-modal__panel{position:relative;width:min(920px,92vw);border-radius:18px;overflow:hidden;background:#000}
.liberty-trailer-modal__close{position:absolute;top:10px;right:10px;z-index:2;border:0;border-radius:999px;padding:10px 12px;font-weight:800;cursor:pointer}
.liberty-trailer-modal__frame{display:block;width:100%;aspect-ratio:16/9;border:0}

/* --- Mobile: single row, title truncates, select stays usable --- */
@media (max-width: 767px) {

  .liberty-schedule--controls {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .liberty-schedule--controls .liberty-schedule__heading {
    flex: 1 1 auto;
    min-width: 0;                 /* CRITICAL: allows shrinking */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
    margin: 0;
  }

  .liberty-schedule--controls .liberty-schedule__label {
    flex: 0 1 80%;
    min-width: 180px;
    margin: 0;
  }

  .liberty-schedule--controls .liberty-schedule__labeltext {
    display: none;                /* optional: removes “Select day” on mobile */
  }

  .liberty-schedule--controls .liberty-schedule__select {
    width: 100%;
  }
}
