:root {
  --accent: #f0b323;
  --accent-soft: rgba(240,179,35,.20);
  --panel: rgba(3,16,22,.82);
  --border: rgba(240,179,35,.72);
  --text: #f7f7f4;
  --muted: #d4d8da;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: #02080b; }
body { font-family: "Roboto Condensed", Arial, sans-serif; color: var(--text); }
a { color: inherit; }

.cinema-card {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  background: #031016;
}

.cinema-card__bg,
.cinema-card__shade { position: absolute; inset: 0; pointer-events: none; }

/*
  Obraz filmu / sali nie jest osobnym prostokątem. To warstwa tła,
  która zajmuje głównie górną część modułu i miękko zanika na brzegach.
*/
.cinema-card__bg {
  z-index: -3;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  height: clamp(520px, 58vw, 760px);
  background-image: var(--bg-image, url('images/default-cinema.svg'));
  background-repeat: no-repeat;
  background-position: 74% 8%;
  background-size: cover;
  filter: saturate(.95) contrast(1.04) brightness(.92);
  transform: scale(1.015);
  opacity: .98;
  transition: background-image .5s ease, filter .5s ease, opacity .5s ease;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 8%, #000 82%, transparent 100%),
    linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 8%, #000 82%, transparent 100%),
    linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
  mask-composite: intersect;
}

/* Przyciemnienie tworzy miejsce dla tekstu po lewej i wygasza dół obrazu. */
.cinema-card__shade {
  z-index: -2;
  background:
    linear-gradient(90deg,
      rgba(0,7,10,.99) 0%,
      rgba(0,7,10,.94) 23%,
      rgba(0,7,10,.68) 39%,
      rgba(0,7,10,.24) 61%,
      rgba(0,7,10,.42) 100%),
    linear-gradient(180deg,
      rgba(0,7,10,.04) 0%,
      rgba(0,7,10,.10) 28%,
      rgba(0,7,10,.58) 48%,
      rgba(0,7,10,.94) 66%,
      #02080b 78%);
}

.cinema-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 74% 15%, var(--accent-soft), transparent 35%),
    linear-gradient(180deg, transparent 0 36%, rgba(2,8,11,.30) 50%, rgba(2,8,11,.92) 72%);
}

.content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 24px;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  min-height: 350px;
}

.eyebrow {
  margin: 0 0 6px;
  font-family: "League Spartan", sans-serif;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--accent);
  font-weight: 700;
}

h1 {
  margin: 0;
  max-width: 560px;
  font-family: "League Spartan", sans-serif;
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: .84;
  text-transform: uppercase;
  letter-spacing: -.04em;
  text-shadow: 0 4px 28px rgba(0,0,0,.7);
}

.hero__lead {
  margin: 16px 0 0;
  max-width: 470px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  text-shadow: 0 2px 12px #000;
}

.now-playing {
  width: min(310px, 100%);
  margin-top: 4px;
  padding: 15px 18px;
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(0,8,12,.76), rgba(0,8,12,.18));
  text-align: right;
  text-shadow: 0 2px 10px #000;
  backdrop-filter: blur(4px);
}

.now-playing span,
.now-playing small { display: block; color: var(--muted); }

.now-playing strong {
  display: block;
  margin: 5px 0;
  color: var(--accent);
  font-family: "League Spartan", sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.top-grid,
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 18px;
}

.bottom-grid {
  grid-template-columns: 1fr 1.15fr;
  margin-top: 18px;
}

.panel,
.schedule-item {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  backdrop-filter: blur(9px);
}

.panel { border-radius: 22px; padding: 24px; }
.panel__heading { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.panel__heading h2,
.section-title h2 {
  margin: 0;
  font-family: "League Spartan", sans-serif;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.icon,
.schedule-icon { color: var(--accent); font-size: 1.75rem; }
.panel p { margin: 0; color: var(--muted); font-size: 1.12rem; line-height: 1.45; }
.price-list { display: grid; gap: 7px; }
.price-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 1.08rem;
}
.price-list strong,
.schedule-item strong,
.big-price { color: var(--accent); }
.price-list small { font-size: .7em; }

.ticket-button {
  display: grid;
  justify-items: center;
  margin-top: 17px;
  padding: 14px 18px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffc83d, #e7a413);
  color: #101010;
  text-decoration: none;
  border: 2px solid rgba(255,221,111,.65);
  box-shadow: 0 8px 20px rgba(0,0,0,.24);
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.ticket-button span { font-size: .8rem; text-transform: uppercase; font-weight: 700; letter-spacing: .04em; }
.ticket-button strong { font-family: "League Spartan", sans-serif; font-size: clamp(1.8rem, 4vw, 2.65rem); line-height: 1; }
.ticket-button:hover,
.ticket-button:focus-visible {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.06);
  box-shadow: 0 12px 26px rgba(0,0,0,.35), 0 0 0 4px rgba(240,179,35,.18);
  outline: none;
}

.plain-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.repertoire-link {
  display: block;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-family: "League Spartan", sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 1.45rem;
}
.repertoire-link strong { color: var(--accent); }

.schedule-section { margin-top: 26px; }
.section-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}
.section-title span { height: 1px; background: var(--border); }
.section-title h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.schedule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.schedule-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  border-radius: 18px;
  padding: 17px;
}
.schedule-item h3 { margin: 0 0 6px; font-size: 1.12rem; }
.schedule-item p { margin: 0; color: var(--muted); line-height: 1.35; }
.schedule-item strong { display: inline-block; margin-top: 5px; }
.compact small { display: block; margin-top: 4px; color: var(--muted); }
.big-price { display: block; margin-top: 6px; font-family: "League Spartan"; font-size: 2.35rem; }

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 22px;
  border-top: 1px solid var(--border);
  background: rgba(0,8,12,.78);
}
.footer-bar div { display: flex; gap: 12px; align-items: baseline; }
.footer-bar span { text-transform: uppercase; color: var(--muted); }
.footer-bar a {
  color: var(--accent);
  text-decoration: none;
  font-family: "League Spartan", sans-serif;
  font-size: 2rem;
  font-weight: 800;
}
.footer-bar p { margin: 0; color: var(--muted); font-size: .9rem; text-align: right; }

@media (max-width: 880px) {
  .cinema-card__bg {
    height: 610px;
    background-position: 68% top;
  }
  .hero { min-height: 300px; flex-direction: column; }
  .now-playing { text-align: left; }
  .top-grid,
  .bottom-grid,
  .schedule-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .content { width: min(100% - 20px, 1180px); padding-top: 22px; }
  h1 { font-size: clamp(3.3rem, 18vw, 5rem); }
  .hero { min-height: 405px; margin-bottom: 22px; }
  .cinema-card__bg {
    height: 520px;
    background-position: 64% top;
    background-size: auto 520px;
    background-color: #02080b;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
  }
  .cinema-card__shade {
    background:
      linear-gradient(90deg, rgba(0,8,12,.90) 0%, rgba(0,8,12,.52) 45%, rgba(0,8,12,.20) 100%),
      linear-gradient(180deg, rgba(0,8,12,.12) 0%, rgba(0,8,12,.22) 25%, rgba(0,8,12,.84) 48%, #02080b 66%);
  }
  .top-grid,
  .bottom-grid,
  .schedule-grid { grid-template-columns: 1fr; }
  .panel { padding: 19px; border-radius: 18px; }
  .section-title { grid-template-columns: 1fr; text-align: center; }
  .section-title span { display: none; }
  .footer-bar { align-items: flex-start; flex-direction: column; }
  .footer-bar p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .cinema-card__bg,
  .ticket-button { transition: none; }
}
