/* =============================================================================
   Filmchief Schedule — Frontend Styles v4.2
   ============================================================================= */

.fcs-schedule, .fcs-programme-detail { font-family: inherit; }
.fcs-schedule__title { margin: 0 0 1.25em; font-size: 1.5em; font-weight: 700; }

/* Grid */
.fcs-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.fcs-cols-2 { grid-template-columns: repeat(2, 1fr); }
.fcs-cols-3 { grid-template-columns: repeat(3, 1fr); }
.fcs-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .fcs-cols-3, .fcs-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .fcs-cols-2, .fcs-cols-3, .fcs-cols-4 { grid-template-columns: 1fr; } }

/* Programme line group */
.fcs-programme-line-group { margin-bottom: 2.5rem; }
.fcs-programme-line-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid #e05c2d; color: #1a1a2e; }

/* Overview card */
.fcs-card { background: #fff; border: 1px solid rgba(0,0,0,.1); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.fcs-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.11); transform: translateY(-2px); }
.fcs-card__img { aspect-ratio: 16/9; overflow: hidden; background: #f0f0f0; }
.fcs-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.fcs-card__img a { display: block; width: 100%; height: 100%; }
.fcs-card:hover .fcs-card__img img { transform: scale(1.04); }
.fcs-card__body { padding: 1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .45rem; }
.fcs-card__programme-line { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #e05c2d; }
.fcs-card__title { margin: 0; font-size: 1.05em; font-weight: 700; line-height: 1.3; }
.fcs-card__title-link { color: inherit; text-decoration: none; }
.fcs-card__title-link:hover { color: #e05c2d; }
.fcs-card__director { font-size: .82em; color: #666; font-style: italic; }
.fcs-card__meta { display: flex; flex-wrap: wrap; gap: .3rem .7rem; margin: .1rem 0; }
.fcs-meta { font-size: .8em; color: #666; }
.fcs-meta--date { color: #333; font-weight: 600; }
.fcs-card__synopsis { font-size: .88em; line-height: 1.6; color: #555; }
.fcs-card__synopsis p { margin: 0; }
.fcs-card__more-link { display: inline-block; margin-top: auto; padding-top: .6rem; font-size: .82em; font-weight: 600; color: #e05c2d; text-decoration: none; }
.fcs-card__more-link:hover { text-decoration: underline; }

/* Tickets */
.fcs-card__tickets, .fcs-viewing-row__tickets { margin-top: .4rem; }
.fcs-ticket-btn { display: inline-block; padding: 8px 18px; background: #e05c2d; color: #fff; border-radius: 5px; font-size: .82em; font-weight: 700; text-decoration: none; transition: background .15s; }
.fcs-ticket-btn:hover { background: #c94d20; color: #fff; text-decoration: none; }
.fcs-ticket-tag { display: inline-block; padding: 6px 14px; background: #f3f4f6; color: #6b7280; border-radius: 5px; font-size: .8em; font-weight: 600; }
.fcs-ticket-tag--soldout { background: #fee2e2; color: #b91c1c; }

/* Tags */
.fcs-detail__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fcs-tags-inline { display: inline-flex; flex-wrap: wrap; gap: 6px; } /* [filmchief_field field="tags"] has no wrapper div, so this span carries the gap */
.fcs-tag { display: inline-block; background: #f0f0f0; color: #555; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.fcs-tag:hover { background: #e05c2d; color: #fff; }

/* Tag filter banner (overview page, ?fcs_tag=...) */
.fcs-tag-filter { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; padding: .65rem 1rem; background: #fff7f2; border: 1px solid #f3d9c9; border-radius: 6px; font-size: .9em; color: #555; }
.fcs-tag-filter__clear { color: #e05c2d; font-weight: 600; text-decoration: none; }
.fcs-tag-filter__clear:hover { text-decoration: underline; }

/* Resets font styling for [filmchief_field] lines pasted into a Code Block
   element, whose default monospace/code font otherwise makes label+value
   wrap onto separate lines. */
.fcs-detail-line { font-family: inherit; font-size: .95rem; line-height: 1.6; white-space: normal; margin: 0 0 .35em; color: #333; }
.fcs-detail-line b { font-weight: 700; }

/* Pagination ([filmchief_programme] per_page) */
.fcs-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: 2rem; }
.fcs-pagination__prev, .fcs-pagination__next, .fcs-pagination__page { display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; height: 2.25rem; padding: 0 .6rem; border-radius: 5px; font-size: .85em; font-weight: 600; text-decoration: none; color: #555; background: #f3f4f6; transition: background .15s, color .15s; }
.fcs-pagination__prev:hover, .fcs-pagination__next:hover, .fcs-pagination__page:hover { background: #e05c2d; color: #fff; }
.fcs-pagination__page--current { background: #e05c2d; color: #fff; }
.fcs-pagination__ellipsis { padding: 0 .3rem; color: #999; }

/* Schedule embed ([filmchief_schedule]) — cross-origin, so it can't
   auto-resize to its own content; height is set per breakpoint instead. */
.fcs-schedule-embed iframe { display: block; width: 100%; border: 0; height: var(--fcs-schedule-height, 1400px); }
@media (max-width: 768px) {
    .fcs-schedule-embed iframe { height: var(--fcs-schedule-height-mobile, 6000px); }
}

/* =============================================================================
   PROGRAMME DETAIL PAGE
   ============================================================================= */
.fcs-programme-detail { max-width: 960px; margin: 0 auto; }

/* Hero — image left, header info right */
.fcs-detail__hero { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; align-items: start; }
@media (max-width: 700px) { .fcs-detail__hero { grid-template-columns: 1fr; } }
.fcs-detail__image { border-radius: 8px; overflow: hidden; }
.fcs-detail__image img { width: 100%; height: auto; display: block; }
.fcs-detail__header { display: flex; flex-direction: column; gap: .75rem; }
.fcs-detail__programme-line { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #e05c2d; }
.fcs-detail__title { font-size: 2rem; font-weight: 800; line-height: 1.2; margin: 0; color: #1a1a2e; }
.fcs-detail__film-meta { display: flex; flex-wrap: wrap; gap: .35rem .75rem; font-size: .88em; color: #555; }
.fcs-detail__director { font-weight: 600; color: #333; }
.fcs-detail__year::before,
.fcs-detail__country::before,
.fcs-detail__duration::before,
.fcs-detail__language::before,
.fcs-detail__age-rating::before { content: '·'; margin-right: .4rem; color: #ccc; }
.fcs-detail__age-rating { font-weight: 700; border: 1px solid #999; border-radius: 3px; padding: 0 5px; }

/* Body — content left, viewings sidebar right */
.fcs-detail__body { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
@media (max-width: 780px) { .fcs-detail__body { grid-template-columns: 1fr; } }
.fcs-detail__content { display: flex; flex-direction: column; gap: 1.75rem; }
.fcs-detail__synopsis { font-size: 1rem; line-height: 1.75; color: #333; }
.fcs-detail__synopsis p { margin: 0 0 1em; }
.fcs-detail__synopsis p:last-child { margin: 0; }

/* Trailer */
.fcs-embed-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; }
.fcs-embed-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.fcs-trailer-link { display: inline-block; padding: 10px 20px; background: #1a1a2e; color: #fff; border-radius: 6px; text-decoration: none; font-weight: 600; }
.fcs-trailer-link:hover { background: #e05c2d; color: #fff; }

/* Gallery */
.fcs-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.fcs-gallery__item { display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; background: #f0f0f0; }
.fcs-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.fcs-gallery__item:hover img { transform: scale(1.05); }

/* Lightbox (assets/js/schedule.js opens this for .fcs-gallery clicks) */
.fcs-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; z-index: 100000; opacity: 0; visibility: hidden; transition: opacity .2s; }
.fcs-lightbox.is-open { opacity: 1; visibility: visible; }
.fcs-lightbox__img { max-width: 90vw; max-height: 85vh; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.fcs-lightbox__close,
.fcs-lightbox__prev,
.fcs-lightbox__next { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; font-size: 2rem; line-height: 1; padding: .5rem 1rem; border-radius: 4px; transition: background .15s; }
.fcs-lightbox__close:hover,
.fcs-lightbox__prev:hover,
.fcs-lightbox__next:hover { background: rgba(255,255,255,.28); }
.fcs-lightbox__close { top: 1.5rem; right: 1.5rem; }
.fcs-lightbox__prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.fcs-lightbox__next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
    .fcs-lightbox__prev, .fcs-lightbox__next { padding: .4rem .8rem; font-size: 1.5rem; }
}

/* Credits */
.fcs-detail__credits h3,
.fcs-detail__included-films h3,
.fcs-detail__viewings h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .75rem; color: #1a1a2e; }
.fcs-credits { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; font-size: .88em; margin: 0; }
.fcs-credits dt { font-weight: 600; color: #555; white-space: nowrap; }
.fcs-credits dd { margin: 0; color: #333; }

/* Included films list */
.fcs-film-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.fcs-film-list__item { font-size: .9em; color: #333; display: flex; flex-wrap: wrap; gap: .35rem .75rem; align-items: baseline; }
.fcs-film-list__item strong { font-weight: 700; }
.fcs-film-list__dir, .fcs-film-list__dur { color: #777; font-size: .88em; }

/* Viewings panel (sticky sidebar on detail page) */
.fcs-detail__viewings { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 1.25rem; position: sticky; top: 2rem; }
.fcs-viewings-list { display: flex; flex-direction: column; gap: .75rem; }
.fcs-viewing-row { background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; padding: .8rem 1rem; display: flex; flex-direction: column; gap: .35rem; }
.fcs-viewing-row__datetime { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.fcs-viewing-row__date { font-weight: 700; font-size: 1.2em; color: #1a1a2e; }
.fcs-viewing-row__time { font-size: .85em; color: #555; }
.fcs-viewing-row__venue { font-size: .99em; color: #777; }
.fcs-viewing-row__tickets { margin-top: .25rem; }

/* Layout: stacked — single column throughout, viewings flow below content */
.fcs-layout-stacked .fcs-detail__hero,
.fcs-layout-stacked .fcs-detail__body { grid-template-columns: 1fr; }
.fcs-layout-stacked .fcs-detail__viewings { position: static; }

/* Layout: minimal — single column, unboxed viewings, tighter spacing */
.fcs-layout-minimal .fcs-detail__hero,
.fcs-layout-minimal .fcs-detail__body { grid-template-columns: 1fr; gap: 1.5rem; }
.fcs-layout-minimal .fcs-detail__title { font-size: 1.6rem; }
.fcs-layout-minimal .fcs-detail__viewings { position: static; background: none; border: 0; padding: 0; }
.fcs-layout-minimal .fcs-viewing-row { border: 0; border-bottom: 1px solid #e5e7eb; border-radius: 0; padding: .8rem 0; }

/* Empty / Error */
.fcs-empty p { color: #999; font-style: italic; }
.fcs-error { background: #fff3cd; border: 1px solid #ffc107; border-radius: 4px; padding: .75rem 1rem; color: #856404; font-size: .9em; }
