:root {
  --color-bg: #fff8ed;
  --color-panel: #ffffff;
  --color-text: #2f2416;
  --color-muted: #7c5f42;
  --color-soft: #fef3c7;
  --color-amber: #d97706;
  --color-orange: #ea580c;
  --color-deep: #140c05;
  --shadow-soft: 0 18px 45px rgba(120, 53, 15, 0.16);
  --shadow-card: 0 16px 35px rgba(146, 64, 14, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #fffbeb 42%, #fff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

img,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.95), rgba(255, 237, 213, 0.95));
  border-bottom: 1px solid rgba(217, 119, 6, 0.16);
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.10);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(100% - 32px, var(--container));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #78350f;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.30);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.mobile-link {
  color: #7c2d12;
  font-weight: 700;
  border-radius: 999px;
  transition: 0.22s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.22);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: rgba(217, 119, 6, 0.10);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #7c2d12;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(100% - 32px, var(--container));
  margin: 0 auto 14px;
  padding: 10px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.mobile-link {
  display: block;
  padding: 12px 16px;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--color-deep);
}

.hero-track,
.hero-slide {
  min-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease, transform 1.2s ease;
  transform: scale(1.02);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-content {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  padding: 120px 0 220px;
  color: #fff7ed;
}

.hero-kicker,
.page-hero span,
.section-heading span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 16px;
  padding: 8px 14px;
  color: #78350f;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-copy h1 {
  max-width: 780px;
  margin: 0;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-content h1,
.hero-content h2 {
  color: #ffffff;
  font-size: clamp(42px, 7vw, 86px);
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  max-width: 680px;
  margin: 22px 0 0;
  color: #fdebd3;
  font-size: 18px;
  line-height: 1.9;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  color: #92400e;
  background: #ffedd5;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.24s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
  box-shadow: 0 16px 36px rgba(234, 88, 12, 0.32);
}

.ghost-button {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.hero-panel {
  position: absolute;
  left: 50%;
  bottom: 42px;
  z-index: 3;
  width: min(100% - 40px, var(--container));
  transform: translateX(-50%);
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(18px);
}

.hero-search input,
.filter-input,
.filter-select,
.type-select {
  width: 100%;
  border: 1px solid rgba(217, 119, 6, 0.20);
  outline: none;
  color: var(--color-text);
  background: #ffffff;
  border-radius: 999px;
}

.hero-search input {
  min-height: 48px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.94);
}

.hero-search button {
  min-width: 104px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
  border-radius: 999px;
  font-weight: 900;
}

.hero-dots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.hero-dot {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  color: #fff7ed;
  text-align: left;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  transition: 0.22s ease;
}

.hero-dot.active,
.hero-dot:hover {
  background: rgba(255, 237, 213, 0.22);
  transform: translateY(-2px);
}

.hero-dot img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-dot span {
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-block {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 72px 0;
}

.amber-section {
  width: 100%;
  max-width: none;
  padding: 72px max(16px, calc((100% - var(--container)) / 2));
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.76), rgba(255, 237, 213, 0.76));
}

.section-heading {
  margin-bottom: 32px;
  text-align: center;
}

.section-heading span {
  margin-left: auto;
  margin-right: auto;
}

.section-heading h2 {
  margin: 0;
  color: #2f2416;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 700px;
  margin: 12px auto 0;
  color: var(--color-muted);
  line-height: 1.8;
}

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

.small-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.catalog-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.movie-card {
  overflow: hidden;
  background: var(--color-panel);
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(146, 64, 14, 0.20);
}

.poster-link,
.rank-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fed7aa;
}

.poster-link img,
.rank-cover img,
.overview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.poster-link {
  aspect-ratio: 2 / 3;
}

.movie-card:hover img,
.overview-card:hover img {
  transform: scale(1.05);
}

.score-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 6px 9px;
  color: #78350f;
  background: #fef3c7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.movie-card-body {
  padding: 16px;
}

.movie-card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #a16207;
  font-size: 12px;
  font-weight: 850;
}

.movie-card h3 {
  margin: 8px 0 8px;
  color: #27180b;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.35;
}

.small-grid .movie-card h3,
.catalog-grid .movie-card h3 {
  font-size: 16px;
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  transition: 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card span,
.category-card em {
  font-style: normal;
  font-weight: 850;
  opacity: 0.86;
}

.category-card strong {
  margin: 8px 0 4px;
  font-size: 26px;
  font-weight: 950;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.compact-ranking {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: 92px 56px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px;
}

.rank-cover {
  width: 92px;
  height: 126px;
  border-radius: 14px;
}

.rank-number {
  color: #d97706;
  font-size: 26px;
  font-weight: 950;
}

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 950;
}

.rank-info p {
  min-height: auto;
  margin-bottom: 10px;
}

.center-action {
  margin-top: 30px;
  text-align: center;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff7ed;
  background-color: var(--color-deep);
  background-size: cover;
  background-position: center;
}

.page-hero {
  min-height: 370px;
  display: flex;
  align-items: center;
  padding: 90px max(16px, calc((100% - var(--container)) / 2));
}

.slim-hero {
  background-image:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.32), transparent 30rem),
    linear-gradient(135deg, #1f1308, #92400e);
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(38px, 5vw, 64px);
}

.page-hero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.9;
}

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

.overview-card {
  overflow: hidden;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.overview-card a {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 210px;
}

.overview-card div {
  padding: 28px;
}

.overview-card span {
  color: var(--color-amber);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.overview-card h2 {
  margin: 12px 0;
  font-size: 30px;
  font-weight: 950;
}

.overview-card p {
  color: var(--color-muted);
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.wide-filter {
  grid-template-columns: 1fr 180px 180px;
}

.filter-input,
.filter-select,
.type-select {
  height: 48px;
  padding: 0 16px;
}

.detail-hero {
  min-height: 720px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.detail-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 86px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: #fed7aa;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 36px;
}

.player-card {
  padding: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(16px);
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 22px;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 16px;
  width: 100%;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.68));
  border: 0;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover.is-hidden {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.play-circle {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(234, 88, 12, 0.42);
  font-size: 32px;
}

.player-cover strong {
  max-width: 82%;
  font-size: 24px;
  font-weight: 950;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.detail-copy h1 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 62px);
}

.one-line {
  margin: 20px 0 0;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.9;
}

.detail-meta {
  margin: 24px 0 18px;
  color: #fed7aa;
  font-size: 14px;
}

.detail-tags span {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff7ed;
}

.detail-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.content-card {
  padding: 32px;
  background: #ffffff;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.content-card h2 {
  margin: 0 0 16px;
  color: #2f2416;
  font-size: 28px;
  font-weight: 950;
}

.content-card p {
  margin: 0;
  color: #5f452b;
  font-size: 17px;
  line-height: 2;
}

.review-card {
  background: linear-gradient(135deg, #ffffff, #fff7ed);
}

.site-footer {
  margin-top: 36px;
  color: #ffedd5;
  background: linear-gradient(135deg, #27180b, #7c2d12);
}

.footer-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.footer-brand {
  color: #ffffff;
}

.footer-inner p {
  max-width: 560px;
  margin: 12px 0 0;
  color: #fed7aa;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  font-weight: 850;
}

.footer-bottom {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #fed7aa;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.movie-card.is-hidden,
.rank-item.is-hidden {
  display: none;
}

@media (max-width: 1120px) {
  .movie-grid,
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .small-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-dots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .compact-ranking {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 66px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav.open {
    display: block;
  }

  .hero-carousel,
  .hero-track,
  .hero-slide {
    min-height: 760px;
  }

  .hero-content {
    padding: 92px 0 310px;
  }

  .hero-search,
  .filter-bar,
  .wide-filter {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .hero-search button {
    min-height: 46px;
  }

  .hero-dots {
    grid-template-columns: 1fr;
    max-height: 250px;
    overflow: auto;
  }

  .movie-grid,
  .small-grid,
  .catalog-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .overview-card a {
    grid-template-columns: 1fr;
  }

  .overview-card img {
    height: 210px;
  }

  .rank-item {
    grid-template-columns: 76px 42px 1fr;
    gap: 12px;
  }

  .rank-cover {
    width: 76px;
    height: 106px;
  }

  .rank-number {
    font-size: 20px;
  }

  .page-hero {
    min-height: 300px;
  }

  .content-card {
    padding: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 18px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 40px;
  }

  .movie-grid,
  .small-grid,
  .catalog-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 180px;
  }

  .detail-inner {
    padding-top: 58px;
  }

  .player-card {
    padding: 8px;
    border-radius: 22px;
  }

  .video-shell {
    border-radius: 16px;
  }
}
