/* PROUD OF US: films. Cards, rails and the player, shared by /films and the home page. */
/* ---------- Page-specific: films ---------- */
.films-hero { position: relative; padding: 130px 0 40px; isolation: isolate; }
.films-hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.films-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(28px) saturate(1.1); transform: scale(1.15); opacity: 0.38; transition: opacity 0.6s ease; }
.films-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,6,10,0.55) 0%, rgba(6,6,10,0.75) 55%, var(--bg-deep) 100%); }
.films-hero__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.films-hero__label { display: flex; align-items: center; gap: 14px; color: var(--gold); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 12px; }
.films-hero__label::before { content: ""; width: 44px; height: 1px; background: var(--gold); }
.films-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 500; }
.films-hero__sub { color: var(--text-secondary); max-width: 560px; margin-top: 12px; font-size: 1.02rem; }
.films-hero__stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-pill { padding: 7px 14px; border: 1px solid var(--border-soft); border-radius: 100px; font-size: 0.8rem; color: var(--text-secondary); background: rgba(255,255,255,0.03); }
.stat-pill b { color: var(--heading); font-weight: 600; }

.feature { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.feature__main { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #000; aspect-ratio: 16 / 9; cursor: pointer; display: block; width: 100%; padding: 0; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.feature__main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s cubic-bezier(0.2,0.7,0.3,1); }
.feature__main:hover img { transform: scale(1.03); }
.feature__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.85) 100%); }
.feature__meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 28px; text-align: left; }
.feature__tag { display: inline-block; padding: 4px 11px; border-radius: 100px; background: var(--gold); color: var(--bg-deep); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.feature__title { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 600; color: #fff; line-height: 1.12; max-width: 640px; }
.play { position: absolute; top: 50%; left: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(6,6,10,0.55); border: 2px solid var(--gold); backdrop-filter: blur(6px); display: grid; place-items: center; transition: transform 0.3s ease, background 0.3s ease; }
.play::after { content: ""; margin-left: 6px; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent var(--gold); }
.feature__main:hover .play { transform: scale(1.08); background: rgba(232,184,74,0.18); }
.feature__side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.feature__side-title { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 2px; }
.mini { display: grid; grid-template-columns: 132px minmax(0,1fr); gap: 14px; align-items: center; padding: 8px; border-radius: 12px; border: 1px solid transparent; background: rgba(255,255,255,0.025); cursor: pointer; text-align: left; color: inherit; font: inherit; transition: border-color 0.25s, background 0.25s; flex: 1; }
.mini:hover { border-color: var(--border); background: rgba(232,184,74,0.06); }
.mini__thumb { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #000; }
.mini__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini__title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.08rem; font-weight: 600; line-height: 1.18; color: var(--heading); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.row { padding: 46px 0 0; position: relative; z-index: 3; }
.row__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.row__title { font-size: clamp(1.55rem, 2.6vw, 2.1rem); }
.row__sub { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.row__link { color: var(--gold); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.row__nav { display: flex; gap: 8px; }
.row__btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255,255,255,0.03); color: var(--gold); cursor: pointer; font-size: 1rem; transition: background 0.2s; }
.row__btn:hover { background: var(--gold-dim); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 23.5%); gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 14px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail--big { grid-auto-columns: minmax(300px, 32%); }
.film { scroll-snap-align: start; background: none; border: 0; padding: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; min-width: 0; }
.film__thumb { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #0c0c12; border: 1px solid var(--border-soft); transition: border-color 0.25s, transform 0.35s cubic-bezier(0.2,0.7,0.3,1), box-shadow 0.35s; }
.film__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.film:hover .film__thumb { border-color: var(--gold-mid); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,0.55); }
.film__dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 5px; background: rgba(0,0,0,0.78); color: #fff; font-size: 0.72rem; font-weight: 600; }
.film__play { position: absolute; left: 10px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(6,6,10,0.6); border: 1px solid var(--gold); display: grid; place-items: center; opacity: 0; transition: opacity 0.25s; }
.film__play::after { content: ""; margin-left: 2px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--gold); }
.film:hover .film__play { opacity: 1; }
.film__title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.14rem; font-weight: 600; line-height: 1.2; color: var(--heading); margin-top: 11px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.film__kicker { color: var(--gold); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; margin-top: 6px; }

.book-strip { margin-top: 56px; border: 1px solid var(--border); border-radius: 18px; padding: 26px 30px; display: grid; grid-template-columns: 92px minmax(0,1fr) auto; gap: 26px; align-items: center; background: linear-gradient(120deg, rgba(232,184,74,0.09), rgba(16,16,24,0.6)); position: relative; z-index: 3; }
.book-strip img { width: 92px; border-radius: 4px; box-shadow: 0 12px 30px rgba(0,0,0,0.6); display: block; }
.book-strip h3 { font-size: 1.6rem; }
.book-strip p { color: var(--text-secondary); font-size: 0.95rem; margin-top: 4px; max-width: 620px; }

.all { padding: 70px 0 30px; position: relative; z-index: 3; }
.all__bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 18px 0 26px; }
.all__search { flex: 1; min-width: 240px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,0.03); color: var(--text-primary); font: inherit; font-size: 0.95rem; }
.all__search::placeholder { color: var(--text-muted); }
.chip { padding: 9px 15px; border-radius: 100px; border: 1px solid var(--border-soft); background: none; color: var(--text-secondary); font: inherit; font-size: 0.82rem; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); background: var(--gold-wash); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 26px 18px; }
.all__more { display: flex; justify-content: center; margin-top: 36px; }
.all__empty { color: var(--text-muted); padding: 30px 0; }

.films-cta { margin: 60px 0 90px; text-align: center; position: relative; z-index: 3; }
.films-cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.films-cta p { color: var(--text-secondary); max-width: 560px; margin: 12px auto 24px; }
.films-cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Player */
.player { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(3,3,6,0.92); backdrop-filter: blur(10px); }
.player.open { display: flex; }
.player__box { width: min(1100px, 100%); }
.player__frame { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 40px 120px rgba(0,0,0,0.8); }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; flex-wrap: wrap; }
.player__title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.5rem; font-weight: 600; color: var(--heading); flex: 1; min-width: 220px; line-height: 1.15; }
.player__actions { display: flex; gap: 10px; align-items: center; }
.player__actions .btn { padding: 11px 20px; font-size: 0.86rem; width: auto; }
.player__close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255,255,255,0.05); color: var(--text-primary); font-size: 1.3rem; cursor: pointer; }

@media (max-width: 1000px) {
  .feature { grid-template-columns: 1fr; }
  .feature__side { display: grid; grid-template-columns: 1fr 1fr; }
  .feature__side-title { grid-column: 1 / -1; }
  .grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .rail { grid-auto-columns: minmax(230px, 40%); }
  .rail--big { grid-auto-columns: minmax(260px, 60%); }
}
@media (max-width: 680px) {
  .films-hero { padding-top: 104px; }
  .feature__side { grid-template-columns: 1fr; }
  .mini { grid-template-columns: 112px minmax(0,1fr); }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px 12px; }
  .rail { grid-auto-columns: 72%; }
  .rail--big { grid-auto-columns: 84%; }
  .row__nav { display: none; }
  .book-strip { grid-template-columns: 70px minmax(0,1fr); padding: 20px; }
  .book-strip img { width: 70px; }
  .book-strip .btn { grid-column: 1 / -1; }
  .play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .feature__meta { padding: 16px; }
  .film__title { font-size: 1.02rem; }
}

/* ---------- Home page film section ---------- */
.home-films { padding: 90px 0 70px; position: relative; z-index: 3; }
.home-films__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.home-films__title { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 500; }
.home-films__sub { color: var(--text-secondary); max-width: 560px; margin-top: 10px; }
.home-films__head .btn { width: auto; }
.home-films__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.home-films__side { min-width: 0; }
.home-films__side .rail { grid-auto-columns: 62%; margin-top: 10px; }
@media (max-width: 1000px) {
  .home-films__grid { grid-template-columns: 1fr; }
  .home-films__side .rail { grid-auto-columns: minmax(230px, 40%); }
}
@media (max-width: 680px) {
  .home-films { padding: 60px 0 40px; }
  .home-films__side .rail { grid-auto-columns: 72%; }
}
@media (max-width: 680px) {
  .feature__title { font-size: 1.15rem; }
  .feature__tag { margin-bottom: 6px; font-size: 0.6rem; }
  .play { top: 40%; }
}
