:root {
  --amber: #d97706;
  --amber-light: #f59e0b;
  --orange: #ea580c;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-light), var(--orange));
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #374151;
  font-size: 15px;
  font-weight: 600;
}

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

.nav-search {
  margin-left: auto;
}

.nav-search input,
.mobile-nav input,
.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-search input {
  width: 220px;
  padding: 10px 16px;
}

.nav-search input:focus,
.mobile-nav input:focus,
.search-box input:focus {
  border-color: var(--amber-light);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  color: var(--amber);
  font-size: 22px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.mobile-nav a {
  font-weight: 700;
}

.mobile-nav input {
  padding: 11px 16px;
}

.hero {
  position: relative;
  height: 680px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.55), rgba(17, 24, 39, 0.2)),
    linear-gradient(0deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0) 30%);
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100vw - 1180px) / 2));
  top: 50%;
  width: min(660px, calc(100% - 64px));
  transform: translateY(-45%);
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--amber-light);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.03;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

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

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.ghost-button {
  padding: 11px 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

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

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

.hero-dots button {
  width: 34px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

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

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

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: -42px auto 46px;
  position: relative;
  z-index: 5;
}

.stat-card {
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--amber);
  font-size: 30px;
  font-weight: 950;
}

.stat-card span {
  color: var(--muted);
  font-weight: 700;
}

.content-section {
  padding: 44px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1,
.detail-main h2,
.detail-side h2 {
  margin: 0;
  color: var(--text);
  font-weight: 950;
  line-height: 1.1;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-head p,
.page-hero p,
.detail-copy p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-link {
  padding: 10px 18px;
  color: var(--amber);
  background: #fff7ed;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s, box-shadow 0.24s;
}

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

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

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

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

.type-pill,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.type-pill {
  left: 12px;
  padding: 6px 11px;
  background: rgba(217, 119, 6, 0.92);
}

.rank-badge {
  right: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.82);
}

.movie-info {
  padding: 18px;
}

.movie-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

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

.movie-info p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row span {
  padding: 5px 9px;
  color: var(--amber);
  background: #fff7ed;
}

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

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

.category-card {
  display: grid;
  gap: 9px;
  min-height: 132px;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-light), var(--orange));
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.22);
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #111827, #374151);
}

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

.category-card strong {
  font-size: 23px;
  font-weight: 950;
}

.category-card span,
.category-card em {
  color: rgba(255, 255, 255, 0.84);
  font-style: normal;
}

.category-card small {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-card small span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: auto 78px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.compact-card:hover strong {
  color: var(--amber);
}

.compact-card img {
  width: 78px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: #f3f4f6;
}

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

.compact-card strong {
  font-weight: 900;
}

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

.list-rank {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--amber);
  font-weight: 950;
}

.page-hero {
  padding: 90px 0 64px;
  background:
    radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.24), transparent 32%),
    linear-gradient(135deg, #fff7ed, #ffffff);
}

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

.page-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.browse-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin: 34px 0 16px;
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.search-box input {
  padding: 13px 18px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 900;
}

.filter-tabs button.active,
.filter-tabs button:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-light), var(--orange));
}

.empty-state {
  display: none;
  margin: 20px 0;
  padding: 22px;
  border-radius: 18px;
  background: #fff7ed;
  color: var(--amber);
  font-weight: 900;
  text-align: center;
}

.empty-state.show {
  display: block;
}

.detail-top {
  padding: 48px 0 36px;
  background: linear-gradient(135deg, #111827, #43280f);
  color: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 700;
}

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

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 42px;
  align-items: center;
}

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

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

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

.player-section {
  margin: 38px 0;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
}

.player-overlay.hidden {
  display: none;
}

.play-icon {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-light), var(--orange));
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.34);
  font-size: 32px;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 3;
  margin: 0;
  color: #ffffff;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.detail-main,
.detail-side {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-main h2,
.detail-side h2 {
  margin-bottom: 14px;
  font-size: 26px;
}

.detail-main p {
  margin: 0 0 24px;
  color: #374151;
  font-size: 16px;
}

.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

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

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

.side-button {
  width: 100%;
  margin-top: 22px;
}

.site-footer {
  margin-top: 70px;
  padding: 42px 0 28px;
  background: #111827;
  color: #ffffff;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 40px;
}

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

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

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

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

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

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

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

  .brand {
    font-size: 17px;
  }

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

  .hero {
    height: 620px;
  }

  .hero-content {
    left: 22px;
    width: calc(100% - 44px);
  }

  .hero-actions {
    gap: 10px;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .stat-grid,
  .movie-grid,
  .category-grid,
  .category-grid-wide,
  .ranking-list,
  .browse-tools {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .content-section {
    padding: 34px 0;
  }

  .page-hero {
    padding: 62px 0 42px;
  }

  .compact-card {
    grid-template-columns: auto 72px 1fr;
  }

  .detail-main,
  .detail-side {
    padding: 22px;
  }

  .play-icon {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}
