@font-face {
  font-family: system-ui;
  src: local("Arial");
}

:root {
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-300: #fcd34d;
  --yellow-200: #fef08a;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-100: #f1f5f9;
  --paper: #fffaf0;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(146, 64, 14, 0.18);
  --shadow: 0 22px 70px rgba(69, 26, 3, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 42%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

main {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(69, 26, 3, 0.97), rgba(120, 53, 15, 0.95), rgba(15, 23, 42, 0.97));
  color: #fffbeb;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: var(--yellow-200);
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--amber-950);
  background: linear-gradient(135deg, var(--yellow-200), var(--amber-500));
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.42);
}

.brand-text {
  font-size: 1.25rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.main-nav a {
  color: #fde68a;
  font-weight: 700;
  transition: color 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover {
  color: white;
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(253, 230, 138, 0.22);
  border-radius: 999px;
  background: rgba(255, 251, 235, 0.11);
}

.nav-search input {
  width: 190px;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  color: white;
  background: transparent;
}

.nav-search input::placeholder {
  color: rgba(253, 230, 138, 0.72);
}

.nav-search button,
.search-controls button,
.floating-search button {
  border: 0;
  color: var(--amber-950);
  font-weight: 800;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--yellow-200), var(--amber-500));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  color: white;
  font-size: 1.6rem;
  background: transparent;
}

.hero {
  position: relative;
  min-height: 680px;
  background: var(--slate-950);
  color: white;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.7s ease, transform 1s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(69, 26, 3, 0.78), rgba(15, 23, 42, 0.52)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.12);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 190px;
  background: linear-gradient(0deg, #fff7ed, rgba(255, 247, 237, 0));
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 28%, rgba(253, 224, 71, 0.34), transparent 28%), radial-gradient(circle at 78% 25%, rgba(245, 158, 11, 0.28), transparent 24%);
  mix-blend-mode: screen;
}

.hero-content,
.detail-layout {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 54px;
  margin: 0 auto;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy h2 {
  margin: 20px 0 12px;
  font-size: clamp(1.8rem, 4vw, 3.7rem);
  color: var(--yellow-200);
}

.hero-copy p,
.page-hero p,
.detail-info p {
  max-width: 760px;
  color: #fde68a;
  font-size: 1.06rem;
  line-height: 1.85;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber-300);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.hero-tags span,
.tag-row span {
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 999px;
  padding: 6px 11px;
  color: #92400e;
  background: rgba(255, 251, 235, 0.82);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero .hero-tags span,
.detail-hero .hero-tags span {
  color: #fef3c7;
  background: rgba(146, 64, 14, 0.52);
  border-color: rgba(253, 230, 138, 0.28);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-btn {
  color: var(--amber-950);
  background: linear-gradient(135deg, var(--yellow-200), var(--amber-500));
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.34);
}

.ghost-btn {
  color: #fef3c7;
  border: 1px solid rgba(253, 230, 138, 0.4);
  background: rgba(255, 251, 235, 0.1);
}

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

.hero-poster {
  position: relative;
  display: block;
  min-height: 460px;
  border: 1px solid rgba(253, 230, 138, 0.24);
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.38), rgba(15, 23, 42, 0.86));
  box-shadow: 0 40px 100px rgba(2, 6, 23, 0.55);
}

.hero-poster-image {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  opacity: 0.92;
  transition: transform 0.45s ease;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), transparent 58%);
}

.hero-poster:hover .hero-poster-image {
  transform: scale(1.06);
}

.hero-poster-title {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  color: white;
  font-size: 1.7rem;
  font-weight: 900;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 68px;
  z-index: 4;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 42px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  color: transparent;
  background: rgba(253, 230, 138, 0.38);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--yellow-200);
}

.floating-search {
  position: relative;
  z-index: 5;
  width: min(960px, calc(100% - 32px));
  margin: -42px auto 0;
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.floating-search form,
.search-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.floating-search input,
.search-controls input,
.search-controls select,
.local-filter input {
  width: 100%;
  border: 1px solid rgba(146, 64, 14, 0.18);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.floating-search button,
.search-controls button {
  border-radius: 16px;
  padding: 0 26px;
}

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

.muted-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.65), rgba(255, 255, 255, 0.52));
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.section-title p {
  margin: 0 0 6px;
  color: var(--amber-600);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.section-title h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.12;
}

.section-title a {
  color: var(--amber-700);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(146, 64, 14, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 45px rgba(69, 26, 3, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 58px rgba(69, 26, 3, 0.17);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-900), var(--slate-900));
}

.movie-card-compact .poster {
  aspect-ratio: 3 / 4;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.movie-card:hover .poster img,
.rank-card:hover img {
  transform: scale(1.06);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.78);
}

.card-body {
  padding: 18px;
}

.card-meta {
  margin: 0 0 8px;
  color: var(--amber-700);
  font-size: 0.82rem;
  font-weight: 900;
}

.card-body h2 {
  margin: 0 0 10px;
  display: -webkit-box;
  min-height: 2.7em;
  overflow: hidden;
  color: #111827;
  font-size: 1.08rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-line {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-ribbon a,
.category-tile {
  display: flex;
  min-height: 128px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(254, 243, 199, 0.75));
  box-shadow: 0 14px 38px rgba(69, 26, 3, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-ribbon a:hover,
.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.55);
}

.category-ribbon strong,
.category-tile strong {
  color: var(--amber-900);
  font-size: 1.26rem;
}

.category-ribbon span,
.category-tile span {
  color: var(--muted);
  line-height: 1.65;
}

.ranking-preview,
.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rank-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(146, 64, 14, 0.12);
  border-radius: 22px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 36px rgba(69, 26, 3, 0.08);
}

.rank-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--amber-800), var(--slate-900));
}

.rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rank-poster span {
  position: absolute;
  left: 8px;
  top: 8px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: var(--amber-950);
  font-weight: 900;
  background: var(--yellow-200);
}

.rank-card h2 {
  margin: 6px 0;
  font-size: 1.12rem;
}

.rank-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, var(--slate-950), var(--amber-900));
}

.slim-hero {
  padding: 96px max(16px, calc((100% - 1180px) / 2));
}

.slim-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(circle at 16% 26%, rgba(253, 224, 71, 0.32), transparent 24%), radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.22), transparent 26%);
}

.slim-hero > div {
  position: relative;
  z-index: 1;
}

.categories-wrap {
  display: grid;
  gap: 52px;
}

.category-block {
  scroll-margin-top: 96px;
}

.local-filter {
  margin-bottom: 24px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 34px;
}

.pagination a,
.pagination strong,
.pagination span {
  min-width: 42px;
  border-radius: 12px;
  padding: 10px 13px;
  text-align: center;
  background: white;
  box-shadow: 0 8px 24px rgba(69, 26, 3, 0.08);
}

.pagination strong {
  color: var(--amber-950);
  background: var(--amber-300);
}

.search-controls {
  grid-template-columns: 1fr 190px 150px auto;
  margin-bottom: 30px;
}

.detail-hero {
  min-height: 620px;
  display: grid;
  align-items: center;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(69, 26, 3, 0.76), rgba(15, 23, 42, 0.72)), var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: blur(1px) saturate(1.1);
  transform: scale(1.02);
}

.detail-cover {
  overflow: hidden;
  border: 1px solid rgba(253, 230, 138, 0.24);
  border-radius: 30px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--amber-800), var(--slate-900));
  box-shadow: 0 36px 100px rgba(2, 6, 23, 0.44);
}

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

.detail-main {
  padding-top: 64px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.28);
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--amber-950);
  font-size: 2rem;
  background: linear-gradient(135deg, var(--yellow-200), var(--amber-500));
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.4);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.player-shell.is-playing .play-button {
  opacity: 0;
  pointer-events: none;
}

.player-state {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  border-radius: 999px;
  padding: 8px 12px;
  color: #fef3c7;
  background: rgba(15, 23, 42, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  margin-top: 34px;
}

.story-card,
.side-card,
.related-links {
  border: 1px solid rgba(146, 64, 14, 0.12);
  border-radius: 24px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 40px rgba(69, 26, 3, 0.08);
}

.story-card h2,
.side-card h2,
.related-links h2 {
  margin: 0 0 14px;
  color: var(--amber-900);
  font-size: 1.45rem;
}

.story-card p {
  margin: 0 0 24px;
  color: #374151;
  line-height: 1.9;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin: 0;
}

.side-card dt {
  color: var(--amber-700);
  font-weight: 900;
}

.side-card dd {
  margin: 0;
  color: #374151;
}

.related-links {
  margin-top: 24px;
}

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

.related-links a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-radius: 14px;
  padding: 14px 16px;
  color: #111827;
  background: #fffbeb;
}

.related-links span {
  flex: none;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  color: #fde68a;
  background: linear-gradient(180deg, var(--slate-900), var(--amber-950), var(--slate-950));
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding: 52px 0 34px;
}

.site-footer p {
  color: #fcd34d;
  line-height: 1.7;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--yellow-200);
  font-size: 1.08rem;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 9px 0;
  color: #fde68a;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(253, 230, 138, 0.16);
  padding: 22px 0;
  color: #fcd34d;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1024px) {
  .nav-search {
    display: none;
  }

  .hero-content,
  .detail-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 860px;
  }

  .hero-poster {
    min-height: 360px;
  }

  .featured-grid,
  .movie-grid,
  .category-ribbon,
  .category-grid,
  .ranking-preview,
  .ranking-list,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-controls {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-wrap {
    min-height: 66px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 18px 20px;
    background: rgba(69, 26, 3, 0.98);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 12px 0;
  }

  .hero {
    min-height: 900px;
  }

  .hero-content,
  .detail-layout {
    gap: 28px;
  }

  .hero-poster {
    min-height: 280px;
  }

  .floating-search form,
  .search-controls,
  .featured-grid,
  .movie-grid,
  .category-ribbon,
  .category-grid,
  .ranking-preview,
  .ranking-list,
  .footer-grid,
  .related-links ul {
    grid-template-columns: 1fr;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-card {
    grid-template-columns: 96px 1fr;
  }

  .slim-hero {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}
