:root {
  --color-amber: #d97706;
  --color-amber-soft: #f59e0b;
  --color-orange: #ea580c;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --color-bg: #fff7ed;
  --shadow-card: 0 18px 45px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 10px 25px rgba(217, 119, 6, 0.14);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.88);
}

.nav-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--color-amber), var(--color-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-amber-soft), var(--color-orange));
  box-shadow: var(--shadow-soft);
  font-size: 15px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #374151;
  font-weight: 650;
}

.desktop-nav a,
.nav-dropdown button {
  border: 0;
  background: transparent;
  color: #374151;
  cursor: pointer;
  padding: 8px 0;
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.nav-dropdown button:hover {
  color: var(--color-amber);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 180ms ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
}

.nav-dropdown-menu a:hover {
  background: #fffbeb;
}

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

.nav-search input,
.large-search input,
.category-tools input {
  width: 240px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 10px 16px;
  outline: none;
  background: #ffffff;
  transition: 180ms ease;
}

.nav-search input:focus,
.large-search input:focus,
.category-tools input:focus {
  border-color: var(--color-amber-soft);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.nav-search button,
.large-search button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-amber-soft), var(--color-orange));
  color: #ffffff;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: #fff7ed;
  color: var(--color-amber);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 22px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-line);
  padding: 12px 16px 16px;
  background: #ffffff;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
}

.mobile-nav a:hover {
  color: var(--color-amber);
  background: #fffbeb;
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1000ms ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-overlay,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 32%, rgba(245, 158, 11, 0.25), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fbbf24;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
}

.hero-content h1 {
  margin: 12px 0 16px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 640px;
  color: #e5e7eb;
  font-size: 19px;
  margin: 0 0 22px;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta span,
.detail-meta span {
  color: #f3f4f6;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 12px;
}

.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.text-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: 180ms ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-amber-soft), var(--color-orange));
  padding: 13px 28px;
  box-shadow: var(--shadow-soft);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(234, 88, 12, 0.25);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  padding: 12px 24px;
  backdrop-filter: blur(12px);
}

.ghost-button.light {
  color: var(--color-amber);
  border-color: #fed7aa;
  background: #ffffff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 42px;
  line-height: 1;
  transition: 180ms ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: 180ms ease;
}

.hero-dots button.is-active {
  width: 32px;
  background: #ffffff;
}

.page-stack {
  padding: 72px 0;
}

.content-section {
  margin-bottom: 72px;
}

.tint-section {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff7ed, #eff6ff);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.ranking-section {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff1f2, #fff7ed);
}

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

.section-title-row h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-link,
.text-button {
  color: var(--color-amber);
}

.section-link:hover,
.text-button:hover {
  color: var(--color-orange);
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
  transition: 220ms ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f4f6;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease, filter 300ms ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
  filter: brightness(0.92);
}

.featured-card:first-child {
  grid-column: span 2;
}

.featured-card:first-child .poster-link {
  aspect-ratio: 16 / 8;
}

.card-body {
  padding: 18px;
}

.card-meta {
  color: var(--color-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: #cbd5e1;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.25;
}

.movie-card h3 a:hover {
  color: var(--color-amber);
}

.movie-card p {
  min-height: 48px;
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.rank-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.28);
}

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

.category-card {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius-md);
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 36%),
    linear-gradient(135deg, #92400e, #f59e0b 45%, #ea580c);
  box-shadow: var(--shadow-soft);
  transition: 220ms ease;
}

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

.category-card strong {
  font-size: 24px;
}

.category-card span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.inner-hero {
  padding: 86px 0 72px;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 22%, rgba(251, 191, 36, 0.35), transparent 28%),
    linear-gradient(135deg, #111827, #7c2d12 52%, #f59e0b);
}

.inner-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.inner-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

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

.category-tools,
.large-search {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.category-tools input,
.large-search input {
  width: min(540px, 100%);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
}

.category-cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
}

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

.category-overview-card h2 {
  margin: 4px 0 8px;
  font-size: 26px;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--color-muted);
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px) scale(1.06);
  opacity: 0.72;
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  padding: 58px 0 74px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info h1 {
  margin: 10px 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 780px;
  color: #e5e7eb;
  font-size: 20px;
  margin: 0 0 22px;
}

.player-section {
  margin-top: -44px;
  position: relative;
  z-index: 3;
  margin-bottom: 58px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #020617;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.32);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.38));
  cursor: pointer;
  transition: 180ms ease;
}

.video-shell.is-playing .player-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-amber-soft), var(--color-orange));
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.35);
  font-size: 34px;
}

.player-start strong {
  font-size: 18px;
}

.detail-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  margin-bottom: 72px;
}

.detail-article,
.detail-side-card {
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
}

.detail-article {
  padding: 34px;
}

.detail-article h2,
.detail-side-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.detail-article p {
  margin: 0 0 28px;
  color: #374151;
  font-size: 17px;
  white-space: pre-line;
}

.detail-side-card {
  height: fit-content;
  padding: 26px;
}

.detail-side-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.detail-side-card div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.detail-side-card dt {
  color: var(--color-muted);
}

.detail-side-card dd {
  margin: 0;
  font-weight: 700;
}

.detail-side-card a {
  color: var(--color-amber);
}

.compact-row {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.compact-row img {
  width: 92px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
}

.compact-row strong,
.compact-row em {
  display: block;
}

.compact-row em {
  color: var(--color-muted);
  font-style: normal;
  font-size: 13px;
}

.no-results {
  padding: 24px;
  border: 1px dashed #f59e0b;
  border-radius: var(--radius-md);
  color: #92400e;
  background: #fffbeb;
  text-align: center;
}

.site-footer {
  padding: 56px 0;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

.footer-logo {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-main p {
  max-width: 560px;
  color: #d1d5db;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fbbf24;
  font-size: 18px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a:hover {
  color: #fbbf24;
}

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

  .mobile-menu-button {
    display: inline-flex;
  }

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

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

  .detail-poster {
    max-width: 340px;
  }

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .site-logo {
    font-size: 20px;
  }

  .hero-slider {
    min-height: 620px;
  }

  .hero-content {
    padding: 0 14px;
  }

  .hero-content p,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-arrow {
    width: 42px;
    height: 42px;
    font-size: 34px;
  }

  .hero-prev {
    left: 12px;
  }

  .hero-next {
    right: 12px;
  }

  .featured-grid,
  .medium-grid,
  .ranking-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .featured-card:first-child {
    grid-column: auto;
  }

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

  .tint-section,
  .ranking-section,
  .detail-article {
    padding: 22px;
  }

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

  .detail-hero-content {
    padding-top: 36px;
  }

  .detail-poster {
    max-width: 260px;
  }

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