/* SAGE THEATER CLEAN CHROME + DIRECT LINKS — 2026-07-22 */
.theater-compact-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 42px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .8rem;
  padding: .42rem .8rem;
  border-bottom: 1px solid rgba(224,187,95,.28);
  background: rgba(4,6,10,.97);
  backdrop-filter: blur(12px);
}
.theater-compact-bar strong {
  text-align: center;
  color: #e7c46e;
  font-family: Georgia, serif;
  font-size: clamp(.82rem,1.5vw,1rem);
  letter-spacing: .08em;
}
.theater-browser-drawer {
  position: relative;
  z-index: 70;
  margin: 0;
  border-bottom: 1px solid rgba(224,187,95,.2);
  background: #080b11;
}
.theater-browser-drawer > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: .35rem .8rem;
  color: #e7c46e;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.theater-browser-drawer > summary::-webkit-details-marker { display:none; }
.theater-browser-drawer > summary::after { content:' ▾'; margin-left:.45rem; }
.theater-browser-drawer[open] > summary::after { content:' ▴'; }
.theater-browser-inner { border-top:1px solid rgba(224,187,95,.14); }
.theater-topbar-inside { position:static !important; padding:.7rem 1rem .35rem !important; min-height:0 !important; }
.theater-topbar-inside .theater-home-link,
.theater-topbar-inside .theater-count { display:none !important; }
.theater-topbar-inside h1 { margin:.1rem 0; font-size:clamp(1.25rem,3vw,2rem); }
.theater-topbar-inside p { margin:.15rem 0; }
.theater-controls { padding-top:.45rem !important; padding-bottom:.65rem !important; }
.btn-info { text-decoration:none; display:inline-flex; align-items:center; justify-content:center; }
.cinema-player-panel .plyr { width:100%; }
.plyr--video { --plyr-color-main:#c79a31; }
.plyr__menu { display:none !important; }
video::-webkit-media-controls-enclosure { overflow:hidden; }
@media (max-width:700px) {
  .theater-compact-bar { grid-template-columns:auto 1fr; min-height:38px; padding:.35rem .55rem; }
  .theater-compact-bar .theater-count { display:none; }
  .theater-compact-bar strong { text-align:right; font-size:.73rem; }
  .theater-browser-drawer > summary { min-height:32px; font-size:.69rem; }
  .theater-topbar-inside { padding:.55rem .65rem .25rem !important; }
}

/* SAGE THEATER MODAL VISIBILITY HARDENING — 2026-07-22 */

#player-modal[hidden] {
  display: none !important;
}

#player-modal:not([hidden]) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;

  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;

  display: grid !important;
  place-items: center !important;

  padding: clamp(.65rem, 2vw, 1.5rem) !important;
  margin: 0 !important;

  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;

  overflow: auto !important;
  box-sizing: border-box !important;
  isolation: isolate !important;
}

#player-modal .cinema-modal-backdrop {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;

  width: 100% !important;
  height: 100% !important;

  display: block !important;
  background: rgba(0, 0, 0, .91) !important;
  backdrop-filter: blur(10px) !important;
  pointer-events: auto !important;
}

#player-modal .cinema-player-panel {
  position: relative !important;
  z-index: 2 !important;

  width: min(1120px, calc(100vw - 2rem)) !important;
  max-width: 1120px !important;
  max-height: calc(100dvh - 2rem) !important;

  display: block !important;
  overflow: auto !important;

  padding: clamp(.8rem, 2vw, 1.35rem) !important;
  margin: auto !important;

  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;

  background: #080b11 !important;
  border: 1px solid rgba(231, 191, 88, .72) !important;
  border-radius: 18px !important;

  box-shadow:
    0 0 0 1px rgba(255, 226, 147, .12),
    0 1.5rem 5rem rgba(0, 0, 0, .88) !important;
}

#player-modal .cinema-player-panel .plyr,
#player-modal .cinema-player-panel video {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  max-height: min(72vh, 720px) !important;
  background: #000 !important;
}

#player-modal .modal-close {
  position: absolute !important;
  top: .55rem !important;
  right: .65rem !important;
  z-index: 5 !important;

  width: 42px !important;
  height: 42px !important;

  display: grid !important;
  place-items: center !important;

  border: 1px solid rgba(231, 191, 88, .68) !important;
  border-radius: 999px !important;

  background: rgba(5, 7, 10, .96) !important;
  color: #f2d887 !important;
  cursor: pointer !important;
}

body.modal-open {
  overflow: hidden !important;
}

@media (max-width: 700px) {
  #player-modal:not([hidden]) {
    padding: .45rem !important;
  }

  #player-modal .cinema-player-panel {
    width: calc(100vw - .9rem) !important;
    max-height: calc(100dvh - .9rem) !important;
    padding: .65rem !important;
    border-radius: 12px !important;
  }

  #player-modal .cinema-player-panel h2 {
    padding-right: 3rem !important;
    font-size: 1.2rem !important;
  }
}

/* SAGE THEATER CARD CLICK LAYER REPAIR — 2026-07-22 */

/*
 Decorative card overlays must never intercept Watch, Info,
 poster-play, mouse, touch, or keyboard interaction.
*/
.film-card::before,
.film-card::after,
.film-poster-wrap::before,
.film-poster-wrap::after {
  pointer-events: none !important;
}

/* Keep real card content above decorative pseudo-elements. */
.film-card .film-poster-wrap,
.film-card .film-card-copy,
.film-card .film-card-actions {
  position: relative !important;
  z-index: 2 !important;
}

/* Make every interactive movie-card control explicitly clickable. */
.film-card .poster-play,
.film-card .btn-play,
.film-card .btn-info,
.film-card [data-play-id],
.film-card a[href*="/theater/watch/"] {
  position: relative !important;
  z-index: 5 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

/* Ensure the card itself does not suppress child interaction. */
.film-card {
  pointer-events: auto !important;
}

/* SAGE THEATER BILLBOARD ZOOM OUT 10 PERCENT — 2026-07-22 */

.cinema-billboard {
  overflow: hidden !important;
  background: #05070a !important;
}

.cinema-billboard #billboard-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;

  transform: none !important;
  transform-origin: center center !important;

  background: #05070a !important;
}

/* SAGE THEATER BILLBOARD HEADER REVEAL — 2026-07-22 */

.cinema-billboard #billboard-image {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;

  object-fit: cover !important;
  object-position: center top !important;

  transform: none !important;
  transform-origin: center top !important;
}



/* SAGE_THEATER_VISIBLE_NAV_20260910 */
.theater-compact-bar > span:first-child {
    display: inline-flex !important;
    align-items: center !important;
    gap: 14px !important;
    white-space: nowrap !important;
}

.theater-compact-bar > span:first-child .theater-home-link {
    display: inline-flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #e7c46e !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    position: relative !important;
    z-index: 90 !important;
}

@media (max-width:700px) {
    .theater-compact-bar > span:first-child {
        gap: 8px !important;
    }

    .theater-compact-bar > span:first-child .theater-home-link {
        font-size: .68rem !important;
    }
}
