/* =============================================
   cinema.css — shared stylesheet
   Pages: index_redesign, shows_redesign, film_redesign
   Body classes: page-index | page-shows | page-film
   ============================================= */

/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --surface: #13131a;
  --surface2: #1c1c26;
  --border: rgba(255,255,255,0.07);
  --accent: #e8b84b;
  --accent2: #c9392a;
  --text: #f0ede8;
  --muted: #7a7880;
  --muted2: #504e5a;
  --radius: 12px;
}

/* ===== BASE ===== */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  min-height: 100vh;
}
body.page-index {
  overflow: hidden;
  height: 100vh;
}

/* ===== NAV ===== */
nav {
  position: relative; z-index: 100;
  background: rgba(10,10,15,0.92);
  /* backdrop-filter: blur(12px); */
  /* -webkit-backdrop-filter: blur(12px); */
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
body.page-index nav {
  position: fixed;
  width: 100%;
  background: rgba(10,10,15,0.55);
  /* backdrop-filter: blur(16px); */
  -webkit-backdrop-filter: blur(16px);
}
body.page-shows nav { padding: 0 32px; }

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--muted); font-size: 16px; font-weight: 600;
  text-decoration: none; letter-spacing: 0.5px; text-transform: uppercase;
  transition: color .2s;
}
body.page-index .nav-links a { color: rgba(240,237,232,0.65); }
.nav-links a:hover { color: var(--accent); }
body.page-index .nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }

.nav-phone {
  font-size: 16px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  color: var(--muted);
}
.nav-phone a { color: var(--text); text-decoration: none; }
.nav-phone a:hover { color: var(--accent); }

/* ===== DATE TABS — base (shows page) ===== */
.date-scroll {
  display: flex; gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
}
.date-scroll::-webkit-scrollbar { display: none; }

body.page-shows .date-scroll {
  padding: 24px 32px 0;
  max-width: 1100px; margin: 0 auto;
}

.date-btn {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  color: var(--muted);
}
.date-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }
.date-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0f;
}
.date-btn .day-name { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; display: block; }
.date-btn .day-num  { font-size: 20px; font-weight: 700; display: block; line-height: 1.1; }
.date-btn .month    { font-size: 11px; display: block; }

/* film page — date-btn inside sessions-block (slightly smaller) */
.sessions-block .date-btn {
  background: var(--surface2);
  padding: 8px 14px;
}
.sessions-block .date-btn .day-name { font-size: 10px; }
.sessions-block .date-btn .day-num  { font-size: 18px; }
.sessions-block .date-btn .month    { font-size: 10px; }

/* ===== SESSION BUTTON ===== */
.session-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  text-align: center;
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: inline-block;
}
.session-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0f;
}
.session-btn:hover .session-price { color: rgba(10,10,15,0.7); }
.session-time  { font-size: 17px; font-weight: 700; display: block; }
.session-price { font-size: 11px; font-weight: 600; color: var(--muted); display: block; margin-top: 2px; }

/* 3D badge — inline in slider session-time */
.badge-3d {
  display: inline-block;
  background: #00c8ff;
  color: #0a0a0f;
  font-size: 8px; font-weight: 800;
  letter-spacing: 0.5px;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.4;
  vertical-align: middle;
  margin-left: 3px;
  position: relative;
  top: -5px;
}

/* 3D session button (shows/film pages) */
.session-btn--3d { position: relative; }
.session-btn--3d::before {
  content: '3D';
  position: absolute;
  top: -8px; right: -6px;
  background: #00c8ff;
  color: #0a0a0f;
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.5px;
  padding: 1px 5px;
  border-radius: 3px;
  line-height: 1.4;
}

/* film page — wider padding */
.sessions-block .session-btn { padding: 10px 18px; }

/* index page — semi-transparent, glassmorphism */
body.page-index .session-btn {
  background: rgba(19,19,26,0.85);
  border-color: rgba(232,184,75,0.25);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 18px;
}
body.page-index .session-btn:hover .session-price { color: rgba(10,10,15,0.6); }
body.page-index .session-time  { font-size: 18px; }
body.page-index .session-price { font-weight: 400; }

/* ===== NOTICE ===== */
.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.notice strong { color: var(--text); }
.notice a { color: var(--accent); text-decoration: none; }
/* notice inside flex films-section */
.films-section .notice { width: 100%; margin-top: 8px; }
/* notice inside notice-section (film page) */
.notice-section .notice { padding: 14px 18px; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 32px;
}
body.page-film footer { margin-top: 60px; }

.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}
.footer-col h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--muted); margin-bottom: 12px;
}
.footer-col p, .footer-col a {
  font-size: 14px; color: var(--text); line-height: 1.8;
  text-decoration: none; display: block;
}
.footer-col a:hover { color: var(--accent); }
.social-links { display: flex; gap: 12px; margin-top: 4px; }
.social-link {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 14px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  text-decoration: none; transition: all .2s;
}
.social-link:hover { color: var(--accent); border-color: rgba(232,184,75,0.4); }
.footer-copy {
  max-width: 1100px; margin: 24px auto 0;
  padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted2);
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center; justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  max-width: 600px; width: 100%;
  position: relative;
  max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none;
  color: var(--muted); font-size: 18px;
  cursor: pointer; line-height: 1;
  transition: color .2s;
}
.modal-close:hover { color: var(--text); }

.modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px; letter-spacing: 2px;
  color: var(--text); margin-bottom: 20px;
}
.modal-body p {
  font-size: 14px; color: rgba(240,237,232,0.75);
  line-height: 1.7; margin-bottom: 14px;
}
.modal-body ul {
  padding-left: 18px; margin-bottom: 14px;
}
.modal-body li {
  font-size: 14px; color: rgba(240,237,232,0.75);
  line-height: 1.7; margin-bottom: 6px;
}
.modal-body strong { color: var(--text); }
.modal-body a { color: var(--accent); text-decoration: none; }
.modal-body a:hover { text-decoration: underline; }
.modal-body ol { padding-left: 20px; margin-bottom: 14px; }
.modal-body ol ol { margin-top: 6px; margin-bottom: 0; }
.modal-body li { font-size: 14px; color: rgba(240,237,232,0.75); line-height: 1.7; margin-bottom: 6px; }
.modal-body > ol > li > p { color: var(--text); font-size: 14px; margin-bottom: 6px; }
.modal-footer-btn { margin-top: 24px; text-align: right; }
.modal-close-btn {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 24px;
  color: var(--text); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.modal-close-btn:hover { background: var(--accent); border-color: var(--accent); color: #0a0a0f; }

@media (max-width: 700px) {
  .modal-box { padding: 28px 20px; }
}

/* ===== BURGER BUTTON ===== */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px; margin: -6px;
  z-index: 110;
}
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ===== MOBILE — shared ===== */
@media (max-width: 700px) {
  nav { padding: 0 16px; }
  .nav-burger { display: flex; }
  .nav-links { display: none; }
  footer { padding: 24px 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }

  /* open state */
  nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,15,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px 32px;
    gap: 8px;
    z-index: 99;
    overflow-y: auto;
  }
  nav.nav-open .nav-links a {
    font-size: 32px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    color: var(--text);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  nav.nav-open .nav-links a.active { color: var(--accent); }
  nav.nav-open .nav-links li:last-child a { border-bottom: none; }

  /* burger → ✕ animation */
  nav.nav-open .nav-burger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  nav.nav-open .nav-burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  nav.nav-open .nav-burger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}


/* =============================================
   INDEX PAGE — full-screen slider
   ============================================= */

.slider-wrap {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  z-index: 1;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  cursor: pointer;
}
.slide.active { opacity: 1; z-index: 2; }
.slide > img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.slide::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.6) 40%, transparent 65%),
    linear-gradient(to top,  rgba(10,10,15,0.75) 0%, transparent 40%);
  z-index: 1;
  pointer-events: none;
}
.slide-content {
  position: absolute;
  bottom: 250px; left: 52px;
  z-index: 3;
  max-width: 580px;
}
.slide-age {
  display: inline-block;
  background: var(--accent2);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 4px;
  letter-spacing: 0.3px;
}
.slide-badges {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.slide-premiere {
  display: inline-block;
  background: rgba(232,184,75,0.15);
  color: var(--accent);
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap;
}
.slide-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(26px, 4vw, 50px);
  letter-spacing: 3px; line-height: 0.92;
  color: var(--text);
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.slide-genre {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 24px;
}
.sessions-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--muted); margin-bottom: 10px;
}
.slide-sessions { display: flex; gap: 10px; flex-wrap: wrap; }

.arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(19,19,26,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity .3s, background .2s, border-color .2s;
  backdrop-filter: blur(8px);
}
.slider-wrap:hover .arrow { opacity: 1; }
.arrow:hover { background: rgba(232,184,75,0.15); border-color: rgba(232,184,75,0.5); }
.arrow.prev { left: 20px; }
.arrow.next { right: 20px; }
.arrow::after {
  content: '';
  border: solid rgba(255,255,255,0.85);
  border-width: 0 2px 2px 0;
  padding: 6px;
  display: inline-block;
}
.arrow.prev::after { transform: rotate(135deg) translate(-2px, 2px); }
.arrow.next::after { transform: rotate(-45deg) translate(2px, -2px); }

.thumbs {
  position: absolute;
  bottom: 24px; right: 24px;
  display: flex; gap: 10px;
  z-index: 10;
  align-items: flex-end;
}
.thumbs img {
  width: 136px; height: 196px;
  object-fit: cover; border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.4;
  transition: all .25s;
}
.thumbs img.active {
  opacity: 1;
  border-color: var(--accent);
  transform: scale(1.06);
  box-shadow: 0 4px 20px rgba(232,184,75,0.35);
}
.thumbs img:not(.active):hover { opacity: 0.75; transform: translateY(-8px); }

@media (max-width: 768px) {
  body.page-index { overflow: auto; height: auto; }
  body.page-index nav { position: sticky; top: 0; width: auto; left: auto; }
  .slider-wrap {
    position: relative;
    width: 100%; aspect-ratio: 4/3; height: auto;
    top: auto; left: auto;
    margin-top: 0;
  }
  .slide-content { top: 16px; bottom: auto; left: 16px; max-width: calc(100% - 32px); }
  .slide-title { font-size: 32px; letter-spacing: 1px; }
  .slide-genre { margin-bottom: 14px; }
  .thumbs img { width: 80px; height: 116px; }
  .thumbs { bottom: 8px; right: 8px; gap: 5px; }
  .sessions-label { display: none; }
}
@media (max-width: 480px) {
  .slide-title { font-size: 26px; }
  .thumbs img { width: 44px; height: 64px; }
}


/* =============================================
   SHOWS PAGE — film grid
   ============================================= */

.page-header {
  padding: 40px 32px 0;
  max-width: 1100px; margin: 0 auto;
}
.page-header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: 3px; line-height: 1;
  color: var(--text);
}
.page-header h1 span { color: var(--accent); }

.films-section {
  padding: 32px 32px 60px;
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.film-card {
  display: flex; flex-direction: column;
  width: 310px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .15s;
  cursor: pointer;
  color: inherit;
}
.film-card:hover {
  border-color: rgba(232,184,75,0.35);
  transform: translateY(-2px);
}
.film-card .film-poster {
  width: 310px; height: 444px;
  object-fit: cover; display: block;
}
.film-card .film-poster-placeholder {
  width: 310px; height: 444px;
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted2); font-size: 11px;
}
.film-info {
  padding: 14px 18px 18px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.film-badges {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; min-height: 22px;
}
.film-card .film-title {
  font-size: 20px; font-weight: 700;
  line-height: 1.2; color: var(--text);
}
.age-badge {
  background: var(--accent2);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  letter-spacing: 0.3px; white-space: nowrap;
}
.film-card .film-genres {
  margin-top: 6px;
  font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
}
.premiere-tag {
  background: rgba(232,184,75,0.15);
  color: var(--accent);
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap;
}
.film-sessions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

@media (max-width: 700px) {
  .page-header, body.page-shows .date-scroll, .films-section { padding-left: 16px; padding-right: 16px; }
  body.page-shows .date-scroll { padding-top: 16px; }
  .film-card { width: 100%; }
  .film-card .film-poster,
  .film-card .film-poster-placeholder { width: 100%; height: auto; aspect-ratio: 2/3; }
}


/* =============================================
   FILM PAGE — film detail
   ============================================= */

.breadcrumb {
  max-width: 1100px; margin: 0 auto;
  padding: 20px 32px 0;
  font-size: 12px; color: var(--muted);
  display: flex; gap: 6px; align-items: center;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: 0.4; }

.film-hero {
  max-width: 1100px; margin: 0 auto;
  padding: 28px 32px 0;
  display: grid;
  grid-template-columns: 265px 1fr;
  gap: 40px;
  align-items: start;
}
.film-poster-wrap { position: relative; }
.film-hero .film-poster {
  width: 265px; height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.premiere-ribbon {
  position: absolute;
  top: 12px; left: -4px;
  background: var(--accent);
  color: #0a0a0f;
  font-size: 11px; font-weight: 700;
  padding: 4px 12px 4px 10px;
  letter-spacing: 0.5px; text-transform: uppercase;
  border-radius: 0 4px 4px 0;
}

.film-detail { padding-top: 4px; }
.film-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 6px; }

.film-hero .film-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: 2px; line-height: 0.95;
  color: var(--text);
}
.film-hero .age-badge {
  flex-shrink: 0;
  font-size: 12px;
  padding: 4px 9px; border-radius: 5px;
  margin-top: 6px;
}
.film-hero .film-genres {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 22px;
}

.film-meta { margin-bottom: 28px; }
.meta-row {
  display: flex; gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.meta-row:first-child { border-top: 1px solid var(--border); }
.meta-label { color: var(--muted); width: 160px; flex-shrink: 0; font-weight: 500; }
.meta-val   { color: var(--text); }

.rating-link { text-decoration: none; display: inline-flex; align-items: center; }
.rating-link img { height: 29px; }

.sessions-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.sessions-head {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--muted); margin-bottom: 14px;
}
.sessions-block .date-scroll { margin-bottom: 16px; }
.shows-list { display: flex; gap: 10px; flex-wrap: wrap; }

.film-sessions-outer {
  max-width: 1100px; margin: 24px auto 0;
  padding: 0 32px;
}

.film-section {
  max-width: 1100px; margin: 0 auto;
  padding: 40px 32px 0;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px; letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.film-desc {
  font-size: 15px;
  color: rgba(240,237,232,0.75);
  line-height: 1.8;
}

.trailer-wrap {
  position: relative;
  width: 100%; aspect-ratio: 16/9;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.trailer-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}

.actors-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.actor-card  { width: 120px; text-align: center; }
.actor-photo {
  width: 120px; height: 160px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: transform .2s;
  display: block;
}
.actor-photo:hover { transform: scale(1.04); }
.actor-name { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.actor-role { margin-top: 3px; font-size: 11px; color: var(--muted); }

.notice-section {
  max-width: 1100px; margin: 40px auto 0;
  padding: 0 32px;
}

@media (max-width: 700px) {
  .breadcrumb, .film-section, .notice-section, .film-sessions-outer { padding-left: 16px; padding-right: 16px; }
  .film-hero {
    grid-template-columns: 1fr;
    padding: 20px 16px 0;
    gap: 24px;
  }
  .film-poster-wrap { display: flex; justify-content: center; }
  .film-hero .film-poster { width: 100%; max-width: 265px; height: auto; aspect-ratio: 2/3; }
}
