:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-100: #ffedd5;
  --ink: #1f2937;
  --muted: #6b7280;
  --paper: #ffffff;
  --line: rgba(146, 64, 14, 0.14);
  --shadow: 0 22px 60px rgba(120, 53, 15, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber-600), #eab308);
  box-shadow: 0 16px 40px rgba(146, 64, 14, 0.24);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: var(--amber-700);
  background: #ffffff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.18);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.brand-text span {
  margin-top: 4px;
  color: var(--amber-100);
  font-size: 12px;
}

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

.nav-link,
.nav-more > button {
  border: 0;
  color: #ffffff;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-more:hover > button {
  color: var(--amber-100);
  transform: translateY(-1px);
}

.nav-more {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  display: grid;
  min-width: 180px;
  padding: 10px;
  color: var(--ink);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-more:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

.nav-dropdown a:hover {
  color: var(--amber-800);
  background: var(--amber-50);
}

.site-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 270px;
  height: 42px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.site-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 0 12px;
}

.site-search input::placeholder {
  color: var(--amber-100);
}

.site-search button {
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--amber-700);
  background: #ffffff;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  padding: 10px;
}

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

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

.mobile-search {
  width: 100%;
  max-width: none;
  flex-basis: auto;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-200), #fef9c3 46%, var(--orange-100));
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.58;
}

.hero::before {
  width: 360px;
  height: 360px;
  right: -80px;
  top: -100px;
  background: rgba(245, 158, 11, 0.38);
}

.hero::after {
  width: 280px;
  height: 280px;
  left: -80px;
  bottom: -90px;
  background: rgba(251, 146, 60, 0.3);
}

.hero-slider {
  position: relative;
  min-height: 600px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: center;
  gap: 54px;
  min-height: 600px;
  padding: 54px 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--amber-900);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(146, 64, 14, 0.16);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: var(--amber-900);
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero h2 {
  margin: 16px 0 14px;
  color: var(--amber-800);
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.08;
}

.hero p {
  max-width: 650px;
  color: var(--amber-900);
  font-size: 19px;
}

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

.btn-primary,
.btn-secondary,
.section-link,
.category-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: var(--amber-600);
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.28);
}

.btn-primary:hover,
.section-link:hover,
.category-link:hover {
  transform: translateY(-2px);
  background: var(--amber-700);
}

.btn-secondary {
  color: var(--amber-700);
  background: #ffffff;
  border: 2px solid rgba(217, 119, 6, 0.5);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(146, 64, 14, 0.18);
}

.hero-poster-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero-poster {
  width: min(100%, 390px);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 10px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  box-shadow: 0 34px 70px rgba(120, 53, 15, 0.28);
  transition: transform 0.45s ease;
}

.hero-poster:hover {
  transform: scale(1.035) rotate(1deg);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--amber-900);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.18);
  transform: translateY(-50%);
  cursor: pointer;
}

.hero-control:hover {
  background: #ffffff;
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

.hero-dots button.is-active {
  width: 34px;
  background: var(--amber-600);
}

main {
  min-height: 55vh;
}

.section {
  padding: 72px 0;
}

.section.compact {
  padding: 44px 0;
}

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

.section-heading h2 {
  margin: 0 0 8px;
  color: var(--amber-900);
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--amber-700);
}

.section-link,
.category-link {
  min-height: 42px;
  color: #ffffff;
  background: var(--amber-600);
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(120, 53, 15, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 54px rgba(120, 53, 15, 0.18);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
}

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

.movie-card:hover .movie-poster img {
  transform: scale(1.08);
}

.score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(185, 28, 28, 0.92);
  padding: 4px 9px;
  font-weight: 900;
  font-size: 13px;
}

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

.movie-meta-line {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

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

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  color: var(--amber-900);
  background: var(--amber-100);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  display: grid;
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, #ffffff, var(--amber-50));
  box-shadow: 0 18px 44px rgba(120, 53, 15, 0.1);
}

.category-card strong {
  color: var(--amber-900);
  font-size: 24px;
}

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

.category-card .category-link {
  align-self: end;
  justify-self: start;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
  gap: 26px;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 48px 66px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.08);
}

.rank-item:hover {
  transform: translateX(4px);
}

.rank-number {
  color: var(--amber-600);
  font-size: 24px;
  font-weight: 900;
}

.rank-item img {
  width: 66px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-content strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
}

.rank-content em {
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item b {
  color: #b91c1c;
}

.page-hero {
  padding: 72px 0 42px;
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.28), transparent 32%), linear-gradient(135deg, var(--amber-100), #ffffff);
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--amber-800);
  font-size: 18px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 32px rgba(120, 53, 15, 0.08);
}

.filter-bar input {
  width: 100%;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 999px;
  outline: 0;
  padding: 12px 16px;
  background: #ffffff;
}

.filter-bar a {
  flex: 0 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 26px 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--amber-700);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.8fr);
  gap: 34px;
  margin-bottom: 68px;
}

.player-card,
.story-card,
.side-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.video-player {
  position: relative;
  overflow: hidden;
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

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

.player-overlay span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: var(--amber-600);
  background: rgba(255, 255, 255, 0.92);
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 10px;
  padding: 18px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-player:hover .player-controls,
.video-player.is-paused .player-controls {
  opacity: 1;
}

.progress {
  width: 100%;
  accent-color: var(--amber-500);
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.control-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-row button {
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.story-card {
  margin-top: 24px;
  padding: 30px;
}

.story-card h2,
.side-card h2 {
  margin: 0 0 16px;
  color: var(--amber-900);
  font-size: 26px;
}

.story-card p {
  margin: 0 0 16px;
  color: #374151;
  font-size: 17px;
}

.side-card {
  padding: 22px;
}

.detail-cover {
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 22px;
}

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

.side-card h1 {
  margin: 12px 0;
  color: #111827;
  font-size: 28px;
  line-height: 1.25;
}

.detail-score {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 18px;
  color: #b91c1c;
  font-size: 22px;
  font-weight: 900;
}

.detail-info {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.detail-info div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
}

.detail-info span {
  color: var(--muted);
}

.detail-info strong {
  text-align: right;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.site-footer {
  color: var(--amber-50);
  background: linear-gradient(180deg, var(--amber-800), var(--amber-900));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 34px;
  padding: 54px 0;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-brand .brand-mark {
  width: 38px;
  height: 38px;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.site-footer p,
.site-footer a {
  color: var(--amber-100);
}

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

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

.footer-bottom {
  padding: 18px 16px 24px;
  color: var(--amber-100);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.result-empty {
  padding: 46px;
  color: var(--amber-800);
  text-align: center;
  border: 1px dashed rgba(217, 119, 6, 0.36);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.7);
}

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

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

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

  .hero-poster-wrap {
    display: none;
  }

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

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

  .header-inner {
    min-height: 68px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .hero,
  .hero-slider,
  .hero-grid {
    min-height: 560px;
  }

  .hero-grid {
    padding: 42px 0 74px;
  }

  .hero-control {
    display: none;
  }

  .section-heading,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .movie-card h2 {
    font-size: 16px;
  }

  .rank-item {
    grid-template-columns: 38px 56px minmax(0, 1fr);
  }

  .rank-item b {
    display: none;
  }

  .story-card,
  .side-card {
    border-radius: 24px;
    padding: 20px;
  }
}

@media (max-width: 440px) {
  .movie-grid,
  .movie-grid.dense,
  .category-grid {
    grid-template-columns: 1fr;
  }
}
