/* Velora — cinematic film theme */

:root {
  --velora-bg: #09090b;
  --velora-elev: #121218;
  --velora-card: #17171f;
  --velora-line: rgba(244, 241, 234, 0.08);
  --velora-text: #f4f1ea;
  --velora-muted: #9b968c;
  --velora-accent: #e53935;
  --velora-radius: 16px;
  --velora-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body.velora {
  margin: 0;
  min-height: 100vh;
  background: var(--velora-bg);
  color: var(--velora-text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
}

body.velora > .site {
  position: relative;
  z-index: 1;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--velora-accent);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  clip: auto;
  z-index: 1000;
  background: var(--velora-accent);
  color: #111;
  padding: 8px 12px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 177, 90, 0.18);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.site-header__inner {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 1 auto;
}

.brand__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3a2800;
  background: linear-gradient(135deg, #f8e7a8, #d4a017 45%, #f0d078);
  box-shadow: 0 0 0 1px rgba(255, 215, 120, 0.25), 0 6px 16px rgba(212, 160, 23, 0.25);
}

.custom-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 5px 16px 5px 5px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    #121018;
  border: 1px solid rgba(245, 197, 24, 0.32);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 10px 28px rgba(229, 57, 53, 0.18);
}

.brand-logo__mark {
  display: block;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 6px 10px rgba(229, 57, 53, 0.35));
}

.brand-logo__word {
  font-family: var(--font);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 0%, #f3e2b0 55%, #d4a017 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.brand-logo--img {
  padding: 6px 10px;
}

.custom-logo-link img,
.custom-logo {
  display: block;
  width: auto;
  height: 36px;
  max-height: 36px;
  max-width: min(220px, 42vw);
  object-fit: contain;
  object-position: left center;
}

.site-footer .brand-logo {
  padding: 4px 14px 4px 4px;
}

.site-footer .brand-logo__mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.site-footer .brand-logo__word {
  font-size: 1.05rem;
}

.site-footer .custom-logo-link img,
.site-footer .custom-logo {
  height: 32px;
  max-height: 32px;
}

.nav-toggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--velora-line);
  border-radius: 10px;
  background: transparent;
  display: grid;
  place-items: center;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--velora-text);
  position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bar::before {
  top: -6px;
}

.nav-toggle__bar::after {
  top: 6px;
}

.site-header__nav {
  display: none;
}

body.nav-open .site-header__nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: fixed;
  inset: 72px 0 0 0;
  background: #0c0c10;
  padding: 24px;
  overflow: auto;
  z-index: 50;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 35;
}

.primary-nav {
  position: relative;
}

.primary-nav .menu {
  list-style: none;
  margin: 0;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.primary-nav .menu > li {
  position: relative;
}

.primary-nav .menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  min-height: 44px;
  border-radius: 12px;
  color: #d7d0c4;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.primary-nav .menu > li > a:hover,
.primary-nav .menu > li > a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.primary-nav .menu > .current-menu-item > a,
.primary-nav .menu > .current-menu-ancestor > a,
.primary-nav .menu > .current_page_item > a {
  color: #fff;
  background: linear-gradient(135deg, #e53935, #9f1c1c);
  box-shadow: 0 10px 22px rgba(229, 57, 53, 0.28);
}

.primary-nav .ui-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #e2b15a;
}

.primary-nav .menu > .current-menu-item > a .ui-icon,
.primary-nav .menu > .current-menu-ancestor > a .ui-icon {
  color: #fff;
}

.primary-nav .menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.7;
}

.primary-nav .sub-menu {
  list-style: none;
  margin: 6px 0 0;
  padding: 8px;
  display: none;
  gap: 6px;
  border-radius: 14px;
  background: #16141c;
  border: 1px solid rgba(245, 197, 24, 0.18);
}

.primary-nav .menu-item-has-children.is-open > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.primary-nav .sub-menu a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #d7d0c4;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu a:focus-visible {
  color: #fff;
  background: rgba(229, 57, 53, 0.16);
}

.search-form {
  position: relative;
  display: block;
  width: 100%;
}

.search-form input {
  width: 100%;
  min-width: 0;
  background: var(--velora-elev);
  border: 1px solid var(--velora-line);
  border-radius: 999px;
  padding: 10px 44px 10px 16px;
}

.search-form__btn {
  position: absolute;
  top: 50%;
  right: 6px;
  z-index: 2;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: #e2b15a;
  cursor: pointer;
}

.search-form__btn:hover,
.search-form__btn:focus-visible {
  background: rgba(226, 177, 90, 0.14);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  background: var(--velora-accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  text-transform: none;
}

.btn--watch {
  width: fit-content;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn--watch:hover {
  background: var(--velora-accent);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--velora-text);
  border: 1px solid var(--velora-line);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.live-search {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--velora-card);
  border: 1px solid var(--velora-line);
  border-radius: 12px;
  box-shadow: var(--velora-shadow);
  z-index: 60;
  max-height: 360px;
  overflow: auto;
}

.live-search__list {
  list-style: none;
  margin: 0;
  padding: 8px;
}

.live-search__list a {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
}

.live-search__list a:hover {
  background: rgba(255, 255, 255, 0.04);
}

.live-search__poster {
  width: 40px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.live-search__body {
  display: flex;
  flex-direction: column;
}

.live-search__empty {
  padding: 16px;
  color: var(--velora-muted);
}

.hero,
.featured {
  position: relative;
  padding: 8px 0 12px;
}

.featured__wrap {
  position: relative;
}

.featured__viewport {
  overflow: hidden;
}

.featured__track {
  display: flex;
  gap: 12px;
  transition: transform 0.35s ease;
}

.featured-card {
  flex: 0 0 100%;
  min-width: 0;
}

.featured-card__link {
  position: relative;
  display: block;
  min-height: 250px;
  border-radius: 14px;
  overflow: hidden;
  background: #141414;
  color: inherit;
}

.featured-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.featured-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 8, 8, 0.92) 8%, rgba(8, 8, 8, 0.35) 70%, rgba(8, 8, 8, 0.15));
}

.featured-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px;
  max-width: 36rem;
}

.featured-card__title {
  font-family: var(--font);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 800;
  margin: 0;
  line-height: 1.15;
}

.featured-card__excerpt,
.featured-card__line {
  color: #cfcfcf;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-card__premium,
.film-card__premium {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #f6d365, #e8a317);
  color: #3a2800;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.film-card__premium svg,
.featured-card__premium svg {
  width: 12px;
  height: 12px;
}

.imdb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  background: #f5c518;
  color: #111;
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: 800;
  font-size: 0.85rem;
}

.imdb-badge em {
  font-style: normal;
  background: #111;
  color: #f5c518;
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 0.7rem;
}

.featured__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  padding: 0;
  line-height: 1;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 1.6rem;
  cursor: pointer;
}

.featured__arrow--prev {
  left: 12px;
}

.featured__arrow--next {
  right: 12px;
}

.hero__nav,
.hero__dots,
.hero__slide {
  display: none;
}

.home-sections,
.section {
  padding: 32px 0 56px;
}

.section-block {
  margin-bottom: 40px;
}

.section-block__head h2,
.section-block h2 {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ui-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #e2b15a;
}

.search-form__btn .ui-icon {
  width: 16px;
  height: 16px;
  margin: 0;
  color: #e2b15a;
}

.site-toolbar {
  border-top: 1px solid var(--velora-line);
  background: rgba(18, 18, 18, 0.92);
  overflow: visible;
}

.site-toolbar__inner {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  overflow: visible;
}

.site-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: center;
}

.site-toolbar__filters > a,
.drop__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ddd;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 8px 0;
  font: inherit;
  line-height: 1.2;
}

.drop__btn[aria-expanded="true"] {
  color: #fff;
}

.drop__btn .ui-icon:last-child {
  transition: transform 0.15s ease;
}

.drop__btn[aria-expanded="true"] .ui-icon:last-child {
  transform: rotate(180deg);
}

.drop {
  position: relative;
}

.drop__menu[hidden] {
  display: none !important;
}

.drop__menu {
  position: fixed;
  z-index: 80;
  min-width: 220px;
  max-width: min(420px, calc(100vw - 16px));
  max-height: min(320px, 60vh);
  overflow: auto;
  background: #16141c;
  border: 1px solid rgba(226, 177, 90, 0.28);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.drop__menu.is-open:not([hidden]) {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.drop__menu--genres {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.drop__menu--genres .drop__all {
  grid-column: 1 / -1;
}

.drop__menu--years {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  min-width: 280px;
}

.drop__menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #eee;
  text-align: left;
  text-decoration: none;
}

.drop__menu--years a {
  text-align: center;
  padding: 8px 4px;
}

.drop__menu a:hover,
.drop__menu a.is-active {
  background: rgba(226, 177, 90, 0.16);
  color: #fff;
}

.site-toolbar__filters > a.is-active {
  color: #fff;
}

.site-main.is-swap {
  opacity: 0.42;
  transition: opacity 0.18s ease;
}

.site-main {
  transition: opacity 0.18s ease;
}

.discover__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.discover__list li {
  flex: 0 0 92px;
  text-align: center;
}

.discover__avatar {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin-inline: auto;
  border: 2px solid rgba(229, 57, 53, 0.85);
}

.discover__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discover__name,
.discover__date {
  display: block;
  font-size: 0.75rem;
  margin-top: 6px;
  line-height: 1.25;
}

.discover__date {
  color: var(--velora-muted);
}

.shortcut-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.shortcut-pills a,
.shortcut-pills__btn {
  background: #2a2a2a;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.3;
}

.shortcut-pills a:hover,
.shortcut-pills__btn:hover,
.shortcut-pills__btn.is-active {
  background: var(--velora-accent);
}

.home-list.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

.film-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(520px, 72vh, 720px);
  overflow: hidden;
  background: #0b0b10;
}

.film-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.film-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(9, 9, 11, 0.97) 0%, rgba(9, 9, 11, 0.78) 42%, rgba(9, 9, 11, 0.35) 72%, rgba(9, 9, 11, 0.55) 100%),
    linear-gradient(180deg, rgba(9, 9, 11, 0.25) 0%, rgba(9, 9, 11, 0.92) 100%);
}

.film-hero__inner {
  position: relative;
  z-index: 2;
  padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 7vw, 88px);
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--velora-muted);
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.fact-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(244, 241, 234, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #ebe6dc;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge {
  display: inline-flex;
  align-items: center;
  background: rgba(229, 57, 53, 0.16);
  color: var(--velora-accent);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.86rem;
}

.badge--imdb {
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.22), rgba(226, 177, 90, 0.12));
  color: #f5c518;
  border: 1px solid rgba(245, 197, 24, 0.35);
}

.film-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.film-grid__ad {
  grid-column: 1 / -1;
}

.film-card a {
  display: block;
  color: inherit;
}

.film-card__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--velora-radius);
  overflow: hidden;
  background: var(--velora-card);
  box-shadow: var(--velora-shadow);
}

.film-card__img,
.film-hero__img,
.player__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.35s ease;
}

.film-card a:hover .film-card__img {
  transform: scale(1.05);
}

.film-card__rating {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  border-radius: 6px;
  padding: 3px 7px;
  font-weight: 700;
  font-size: 0.78rem;
}

.film-card__star {
  color: #f5c518;
}

.film-card__views {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 0.75rem;
}

.film-card__views svg {
  width: 12px;
  height: 12px;
}

.film-card__flags {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.film-card__flag {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
}

.film-card__hover {
  display: none;
}

.film-card__title {
  margin: 10px 0 4px;
  font-size: 0.98rem;
  line-height: 1.3;
}

.film-card__meta {
  margin: 0;
  color: var(--velora-muted);
  font-size: 0.85rem;
}

.film-hero__layout {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  align-items: end;
}

.film-hero__poster {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 2 / 3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 28px 70px rgba(0, 0, 0, 0.55);
}

.film-hero__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.film-hero__eyebrow,
.film-story__eyebrow {
  margin: 0 0 10px;
  color: #e2b15a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.film-hero__title {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.film-hero__original {
  margin: 10px 0 0;
  color: rgba(244, 241, 234, 0.62);
  font-size: 1.05rem;
  font-style: italic;
}

.film-hero__excerpt {
  margin: 0;
  max-width: 54ch;
  color: rgba(244, 241, 234, 0.86);
  font-size: 1.05rem;
  line-height: 1.7;
}

.film-hero__actions {
  margin-top: 8px;
}

.film-hero__actions .btn--lg {
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 36px rgba(229, 57, 53, 0.35);
}

.film-facts {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(244, 241, 234, 0.1);
  border-radius: 16px;
  background: rgba(9, 9, 11, 0.72);
}

.film-facts div {
  display: grid;
  gap: 4px;
  margin: 0;
  min-width: 0;
}

.film-facts dt {
  color: rgba(244, 241, 234, 0.5);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.film-facts dd {
  margin: 0;
  color: #f4f1ea;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
}

.genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.genre-pills a {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid rgba(244, 241, 234, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #ebe6dc;
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.genre-pills a:hover,
.genre-pills a:focus-visible {
  border-color: rgba(229, 57, 53, 0.55);
  background: rgba(229, 57, 53, 0.16);
  color: #fff;
}

.film-body {
  padding: 40px 0 72px;
}

.film-story {
  position: relative;
  margin: 40px 0 0;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 22px;
  border: 1px solid rgba(244, 241, 234, 0.1);
  background:
    linear-gradient(135deg, rgba(229, 57, 53, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(23, 23, 31, 0.95), rgba(14, 14, 18, 0.98));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.film-story__head {
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.1);
}

.film-story__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.film-story__body {
  max-width: none;
  color: rgba(244, 241, 234, 0.9);
  font-size: 1.05rem;
  line-height: 1.8;
}

.film-story__body > *:first-child {
  margin-top: 0;
}

.film-story__body > *:last-child {
  margin-bottom: 0;
}

.related-films {
  margin-top: 48px;
}

.related-films > h2 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.film-player {
  margin: 0 0 32px;
  scroll-margin-top: 104px;
  position: relative;
  z-index: 1;
}

.film-player.is-focus {
  outline: 1px solid rgba(229, 57, 53, 0.45);
  outline-offset: 6px;
  border-radius: 14px;
}

.player-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.lights-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 197, 24, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #f4f1ea;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lights-btn:hover,
.lights-btn:focus-visible {
  border-color: rgba(245, 197, 24, 0.55);
  background: rgba(245, 197, 24, 0.1);
}

.lights-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  line-height: 0;
}

.lights-btn__icon .ui-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
  color: #e2b15a;
  vertical-align: middle;
}

.lights-btn__label {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.lights-btn__icon--on {
  display: none;
}

body.lights-out .lights-btn {
  background: linear-gradient(135deg, #f6e3a8, #e2b15a 55%, #c4922a);
  border-color: transparent;
  color: #2a1c00;
  position: relative;
  z-index: 2;
}

body.lights-out .lights-btn .ui-icon {
  color: #2a1c00;
}

body.lights-out .lights-btn__icon--off {
  display: none;
}

body.lights-out .lights-btn__icon--on {
  display: inline-flex;
}

.lights-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: #000;
  cursor: pointer;
}

body.lights-out {
  overflow: hidden;
}

body.lights-out .site-header,
body.lights-out .site-toolbar,
body.lights-out .site-footer,
body.lights-out .discover-ai,
body.lights-out .film-hero,
body.lights-out .film-story,
body.lights-out .prose,
body.lights-out .related-films,
body.lights-out .ad-slot,
body.lights-out .sidebar,
body.lights-out .breadcrumbs,
body.lights-out .film-body > :not(.film-player):not(.film-player-placeholder) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.lights-out .film-player {
  position: fixed;
  inset: 0;
  z-index: 910;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(16px, 4vw, 40px);
  background: transparent;
  scroll-margin-top: 0;
  pointer-events: none;
}

body.lights-out .film-player > .ad-slot {
  display: none !important;
}

body.lights-out .player-toolbar {
  width: min(100%, 1120px);
  margin: 0 0 14px;
  z-index: 2;
  position: relative;
  pointer-events: auto;
}

body.lights-out .player {
  width: min(100%, 1120px);
  z-index: 2;
  position: relative;
  pointer-events: auto;
}

body.lights-out .player__frame,
body.lights-out .player__poster {
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.sidebar .widget,
.ad-slot {
  background: var(--velora-card);
  border: 1px solid var(--velora-line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.ad-slot:empty {
  display: none;
}

.ad-slot--banner {
  width: min(100% - 32px, var(--container));
  margin: 16px auto;
  text-align: center;
  overflow: hidden;
}

.ad-slot img,
.ad-slot iframe,
.ad-slot ins {
  max-width: 100%;
}

.player {
  position: relative;
}

.player__pane {
  display: none;
}

.player__pane.is-active {
  display: block;
}

.player__frame,
.player__poster {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
}

.player__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player__cta {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  background: var(--velora-accent);
  color: #16120a;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 800;
}

.source-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.source-tabs__btn {
  background: var(--velora-elev);
  border: 1px solid var(--velora-line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.source-tabs__btn.is-active {
  background: var(--velora-accent);
  color: #16120a;
  border-color: transparent;
}

.filters {
  display: grid;
  gap: 12px;
  margin: 20px 0 28px;
  background: var(--velora-elev);
  border: 1px solid var(--velora-line);
  border-radius: 16px;
  padding: 16px;
}

.filters label span {
  display: block;
  color: var(--velora-muted);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.filters select {
  width: 100%;
  background: var(--velora-bg);
  border: 1px solid var(--velora-line);
  border-radius: 10px;
  padding: 10px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  color: var(--velora-muted);
  font-size: 0.88rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  opacity: 0.5;
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.prose p {
  margin: 0 0 1.1em;
}

.empty-state,
.empty-note,
.error-404 {
  text-align: center;
}

.error-404__code {
  font-family: var(--font-display);
  font-size: 5rem;
  margin: 0;
  color: var(--velora-accent);
}

.site-footer,
.related-films,
.discover-ai {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding: 0 0 20px;
  border-top: 1px solid rgba(226, 177, 90, 0.35);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(226, 177, 90, 0.16), transparent 55%),
    linear-gradient(180deg, #12100c 0%, #09090b 100%);
}

.site-footer__glow {
  pointer-events: none;
  position: absolute;
  inset: 0 auto auto 50%;
  width: 70%;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #e2b15a, transparent);
  box-shadow: 0 0 24px rgba(226, 177, 90, 0.55);
}

.site-footer__cta {
  width: min(100% - 32px, var(--container));
  margin: 28px auto 8px;
}

.site-footer__cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  padding: 18px 20px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(226, 177, 90, 0.16), rgba(18, 16, 12, 0.9));
  border: 1px solid rgba(226, 177, 90, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.site-footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3a2800;
  background: linear-gradient(135deg, #fff1c2, #e2b15a 45%, #c4922a);
}

.site-footer__badge .ui-icon {
  width: 14px;
  height: 14px;
  color: #3a2800;
}

.site-footer__cta-copy {
  flex: 1 1 220px;
  display: grid;
  gap: 4px;
}

.site-footer__cta-copy strong {
  font-size: 1.15rem;
}

.site-footer__cta-copy span {
  color: #d7d0c4;
  font-size: 0.92rem;
}

.btn--gold {
  background: linear-gradient(135deg, #f6e3a8, #e2b15a 50%, #c4922a);
  color: #2a1c00;
}

.btn--gold:hover {
  filter: brightness(1.06);
}

.site-footer__grid {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  display: grid;
  gap: 28px;
  padding: 28px 0 8px;
}

.site-footer h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  margin: 0 0 14px;
  color: #f4f1ea;
}

.site-footer h2 .ui-icon {
  color: #e2b15a;
}

.site-footer__text {
  color: #bdb6aa;
  margin: 12px 0 0;
  max-width: 36ch;
}

.footer-links,
.footer-chips {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-chips a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cfc8bb;
  padding: 6px 0;
}

.footer-chips a {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(226, 177, 90, 0.08);
  border: 1px solid rgba(226, 177, 90, 0.22);
}

.footer-chips a .ui-icon,
.footer-links a .ui-icon {
  width: 13px;
  height: 13px;
  color: #e2b15a;
}

.footer-chips a:hover,
.footer-links a:hover {
  color: #fff;
  border-color: rgba(226, 177, 90, 0.55);
}

.site-footer__bar {
  width: min(100% - 32px, var(--container));
  margin: 12px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(226, 177, 90, 0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.site-footer__copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #9b968c;
  font-size: 0.85rem;
}

.site-footer__copy .ui-icon {
  color: #e2b15a;
}

.site-footer__top {
  color: #e2b15a;
  font-weight: 700;
  font-size: 0.85rem;
}

.social-icons ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.social-icon {
  --icon-size: 42px;
  width: var(--icon-size);
  height: var(--icon-size);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #f3d48a;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 230, 160, 0.28), transparent 52%),
    linear-gradient(165deg, #2a2418, #12100c);
  border: 1px solid rgba(226, 177, 90, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 10px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.social-icon:hover,
.social-icon:focus-visible {
  color: #2a1c00;
  background: linear-gradient(160deg, #fff1c2, #e2b15a 40%, #c4922a);
  border-color: #f6e3a8;
  transform: translateY(-2px) scale(1.04);
}

.social-icon__svg {
  width: 18px;
  height: 18px;
  display: block;
}

.social-icons--header {
  flex-shrink: 0;
}

.social-icons--header .social-icon {
  --icon-size: 40px;
}

.site-footer__social h2 {
  margin-bottom: 14px;
}

.pagination,
.nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.page-numbers {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--velora-line);
}

.page-numbers.current {
  background: var(--velora-accent);
  color: #fff;
  border-color: transparent;
}

@media (max-width: 639px) {
  .brand__badge {
    display: none;
  }
}

@media (min-width: 640px) {
  .film-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .featured-card {
    flex-basis: calc((100% - 12px) / 2);
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    align-items: end;
  }
}

@media (min-width: 1100px) {
  .film-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .nav-toggle,
  .nav-overlay {
    display: none !important;
  }

  .site-header__nav,
  body.nav-open .site-header__nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    position: static;
    background: transparent;
    padding: 0;
    flex: 1;
    overflow: visible;
  }

  .primary-nav .menu {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(245, 197, 24, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .primary-nav .menu > li > a {
    width: auto;
    min-height: 0;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .primary-nav .menu > li > a:hover {
    transform: translateY(-1px);
  }

  .primary-nav .menu-item-has-children > a::after {
    margin-left: 2px;
  }

  .primary-nav .sub-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    z-index: 60;
    width: min(420px, 70vw);
    margin: 0;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  }

  .primary-nav .menu-item-has-children:hover > .sub-menu,
  .primary-nav .menu-item-has-children:focus-within > .sub-menu,
  .primary-nav .menu-item-has-children.is-open > .sub-menu {
    display: grid;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .search-form {
    width: min(320px, 100%);
  }

  .film-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .film-hero__layout {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: center;
  }

  .film-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 24px;
    padding: 18px 20px;
  }

  .film-facts div + div {
    border-left: 1px solid rgba(244, 241, 234, 0.1);
    padding-left: 20px;
  }

  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  }

  .filters {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .film-card__img,
  .film-card__hover,
  .social-icon {
    transition: none;
  }
}

.discover-ai {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
}

.discover-ai__fab {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  cursor: pointer;
  color: #2a1c00;
  font: inherit;
  font-weight: 800;
  background: linear-gradient(135deg, #fff1c2, #e2b15a 50%, #c4922a);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(226, 177, 90, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.discover-ai.is-open .discover-ai__fab,
.discover-ai__fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(226, 177, 90, 0.5);
}

.discover-ai__avatar,
.discover-ai__face {
  width: 44px;
  height: 44px;
  display: block;
}

.discover-ai__label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.discover-ai__label .ui-icon {
  width: 14px;
  height: 14px;
  color: #3a2800;
}

.discover-ai__panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(400px, calc(100vw - 28px));
  max-height: min(640px, 78vh);
  overflow: auto;
  background:
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(226, 177, 90, 0.16), transparent 55%),
    linear-gradient(180deg, #1a1611 0%, #100e0c 100%);
  border: 1px solid rgba(226, 177, 90, 0.38);
  border-radius: 22px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
  padding: 16px;
}

.discover-ai__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.discover-ai__who strong,
.discover-ai__who em {
  display: block;
}

.discover-ai__who strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.discover-ai__who em {
  font-style: normal;
  color: #bdb6aa;
  font-size: 0.78rem;
}

.discover-ai__mini {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(226, 177, 90, 0.35);
}

.discover-ai__mini .discover-ai__face {
  width: 40px;
  height: 40px;
}

.discover-ai__close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.discover-ai__steps {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
}

.discover-ai__steps span {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.discover-ai__steps span.is-done {
  background: rgba(226, 177, 90, 0.45);
}

.discover-ai__steps span.is-on {
  background: linear-gradient(90deg, #f6e3a8, #e2b15a);
}

.discover-ai__bubble {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 16px 16px 16px 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(244, 241, 234, 0.08);
}

.discover-ai__msg {
  margin: 0;
  color: #f4f1ea;
  font-size: 0.94rem;
  line-height: 1.55;
}

.discover-ai__label-row {
  margin: 4px 0 8px;
  color: #bdb6aa;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.discover-ai__moods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.discover-ai__mood {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(226, 177, 90, 0.22);
  background: rgba(226, 177, 90, 0.06);
  color: #eee;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.discover-ai__mood strong,
.discover-ai__mood em {
  display: block;
}

.discover-ai__mood strong {
  font-size: 0.88rem;
  font-weight: 700;
}

.discover-ai__mood em {
  font-style: normal;
  color: #bdb6aa;
  font-size: 0.72rem;
  line-height: 1.35;
}

.discover-ai__mood:hover {
  transform: translateY(-1px);
  border-color: rgba(226, 177, 90, 0.45);
}

.discover-ai__mood.is-on {
  background: linear-gradient(145deg, rgba(246, 227, 168, 0.22), rgba(226, 177, 90, 0.12));
  border-color: #e2b15a;
  color: #fff;
}

.discover-ai__mood.is-on em {
  color: #e8d7a8;
}

.discover-ai__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.discover-ai__chip {
  border: 1px solid rgba(226, 177, 90, 0.28);
  background: rgba(226, 177, 90, 0.08);
  color: #eee;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.discover-ai__chip.is-on {
  background: linear-gradient(135deg, #f6e3a8, #e2b15a);
  color: #2a1c00;
  border-color: #e2b15a;
  font-weight: 700;
}

.discover-ai__actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.discover-ai__actions .btn {
  flex: 1;
  min-height: 44px;
}

.discover-ai__list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.discover-ai__card a {
  display: flex;
  gap: 12px;
  align-items: stretch;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(244, 241, 234, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.discover-ai__card a:hover {
  background: rgba(226, 177, 90, 0.08);
  border-color: rgba(226, 177, 90, 0.28);
  color: inherit;
}

.discover-ai__card.is-pick a {
  background: linear-gradient(135deg, rgba(226, 177, 90, 0.14), rgba(255, 255, 255, 0.03));
  border-color: rgba(226, 177, 90, 0.4);
}

.discover-ai__poster-wrap {
  position: relative;
  flex-shrink: 0;
}

.discover-ai__poster {
  width: 56px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.discover-ai__pick {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  padding: 3px 4px;
  border-radius: 5px;
  background: rgba(20, 14, 6, 0.88);
  color: #f6e3a8;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

.discover-ai__card-body {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

.discover-ai__card-body strong {
  font-size: 0.95rem;
  line-height: 1.3;
}

.discover-ai__card-body em {
  color: #bdb6aa;
  font-style: normal;
  font-size: 0.78rem;
}

.discover-ai__why {
  color: #e8d7a8;
  font-size: 0.78rem;
  line-height: 1.4;
}

.discover-ai__empty {
  color: #cfc8bb;
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.discover-ai__empty--loading {
  color: #e2b15a;
}

@media (max-width: 480px) {
  .discover-ai {
    right: 12px;
    bottom: 12px;
  }

  .discover-ai__moods {
    grid-template-columns: 1fr;
  }

  .discover-ai__panel {
    width: min(100vw - 24px, 400px);
  }
}

/* Below-the-fold paint deferral */
.site-footer,
.film-grid,
.related-films,
.film-story,
.section-block + .section-block,
.discover-ai__panel {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}
