:root {
  --page-bg: #fff7ed;
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.1);
  --card: rgba(255, 255, 255, 0.86);
  --amber: #d97706;
  --amber-dark: #92400e;
  --blue: #1d4ed8;
  --blue-soft: #dbeafe;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow: 0 22px 60px rgba(146, 64, 14, 0.15);
  --shadow-soft: 0 14px 36px rgba(17, 24, 39, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(251, 191, 36, 0.28), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.18), transparent 28rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 46%, #fff7ed 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 119, 6, 0.15);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706 50%, #1d4ed8);
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.28);
}

.brand-text {
  font-size: 22px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link,
.nav-pill {
  border-radius: 999px;
  padding: 10px 14px;
  color: #374151;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-dark);
  background: rgba(251, 191, 36, 0.18);
}

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

.nav-pill {
  font-size: 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(217, 119, 6, 0.12);
}

.nav-pill:hover {
  transform: translateY(-1px);
  background: #fff;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: var(--amber-dark);
  border-radius: 10px;
}

.hero {
  width: min(1240px, calc(100% - 32px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
}

.hero-slider {
  position: relative;
  min-height: 560px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: scale(1.02);
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.55) 46%, rgba(17, 24, 39, 0.15)),
    var(--hero-image) center / cover no-repeat;
}

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

.hero-backdrop {
  position: absolute;
  inset: auto 28px 28px auto;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.35);
  filter: blur(38px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(700px, 90%);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 62px;
  color: #fff;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: #fbbf24;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.hero-desc {
  margin: 22px 0 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.card-tags span,
.detail-tags span {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.card-tags span,
.detail-tags span {
  color: #92400e;
  background: #fffbeb;
  border-color: rgba(217, 119, 6, 0.16);
}

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

.primary-button,
.ghost-button,
.inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 18px 28px rgba(217, 119, 6, 0.32);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.hero-controls {
  position: absolute;
  left: 58px;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 34px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dot.is-active {
  background: #fbbf24;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-search,
.hot-entry,
.hero-categories,
.info-card,
.filter-panel,
.category-card,
.rank-list,
.detail-info,
.related-panel {
  border: 1px solid rgba(217, 119, 6, 0.15);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.hero-search {
  padding: 20px;
}

.hero-search label,
.filter-row label span {
  display: block;
  margin-bottom: 8px;
  color: var(--amber-dark);
  font-weight: 800;
}

.hero-search div {
  display: flex;
  gap: 8px;
}

.hero-search input,
.filter-row input,
.filter-row select {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 16px;
  background: #fff;
  padding: 0 14px;
  outline: none;
}

.hero-search button {
  border: 0;
  border-radius: 16px;
  padding: 0 16px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  background: var(--amber);
}

.hot-entry {
  padding: 18px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--amber-dark);
  font-weight: 900;
}

.panel-title a {
  color: var(--blue);
  font-size: 14px;
}

.hot-entry a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.hot-entry a:last-child {
  border-bottom: 0;
}

.hot-entry span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  font-weight: 900;
}

.hot-entry strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hot-entry em {
  color: var(--amber);
  font-style: normal;
  font-weight: 900;
}

.hero-categories {
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-categories a {
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--amber-dark);
  background: #fffbeb;
  border: 1px solid rgba(217, 119, 6, 0.15);
}

.content-section,
.page-hero,
.detail-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 46px auto 0;
}

.page-hero {
  border-radius: 34px;
  padding: 48px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 15%, rgba(251, 191, 36, 0.34), transparent 20rem),
    linear-gradient(135deg, #111827, #78350f 54%, #1e3a8a);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.8;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-heading > p {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 45px rgba(146, 64, 14, 0.18);
  border-color: rgba(217, 119, 6, 0.32);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 18%, rgba(251, 191, 36, 0.45), transparent 12rem),
    linear-gradient(135deg, #1f2937, #92400e);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.72));
}

.year-badge,
.heat-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  padding: 6px 9px;
  backdrop-filter: blur(12px);
}

.year-badge {
  left: 10px;
  top: 10px;
  background: rgba(29, 78, 216, 0.82);
}

.heat-badge {
  right: 10px;
  bottom: 10px;
  background: rgba(217, 119, 6, 0.86);
}

.card-body {
  padding: 15px;
}

.card-title {
  display: block;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -0.02em;
}

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

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

.card-desc {
  min-height: 44px;
  margin: 10px 0 12px;
  color: #374151;
  font-size: 14px;
  line-height: 1.55;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  padding: 24px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card strong {
  display: block;
  position: relative;
  z-index: 2;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.category-card p {
  position: relative;
  z-index: 2;
  margin: 12px 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.category-card em {
  position: relative;
  z-index: 2;
  font-style: normal;
  color: var(--amber-dark);
  font-weight: 800;
}

.category-glow {
  position: absolute;
  right: -42px;
  top: -42px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.3);
  filter: blur(10px);
}

.filter-panel {
  padding: 22px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 20px;
}

.filter-row label {
  display: block;
}

.rank-list {
  overflow: hidden;
}

.rank-row {
  display: grid;
  grid-template-columns: 70px 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-no {
  color: var(--amber);
  font-weight: 1000;
  font-size: 20px;
}

.rank-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #92400e);
}

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

.rank-main strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.rank-main p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.rank-score {
  min-width: 78px;
  border-radius: 16px;
  padding: 9px 10px;
  text-align: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.breadcrumb {
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-dark);
  font-weight: 800;
}

.detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 420px;
  gap: 24px;
  align-items: start;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(251, 191, 36, 0.16), transparent 20rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.66));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 32px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.45);
}

.detail-info,
.related-panel {
  padding: 26px;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 18px;
  color: var(--muted);
}

.detail-info h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.detail-info p {
  color: #374151;
  line-height: 1.9;
}

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

.related-panel h2 {
  margin: 0 0 18px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

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

.compact-card .card-desc {
  display: none;
}

.compact-card .card-body {
  padding: 12px;
}

.site-footer {
  margin-top: 64px;
  padding: 38px 0;
  border-top: 1px solid rgba(217, 119, 6, 0.13);
  background: rgba(255, 251, 235, 0.78);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
}

.footer-inner p {
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--amber-dark);
  background: #fff;
  border: 1px solid rgba(217, 119, 6, 0.12);
}

.inline-link {
  color: var(--amber-dark);
  background: #fffbeb;
  border: 1px solid rgba(217, 119, 6, 0.16);
}

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

@media (max-width: 1100px) {
  .hero,
  .detail-wrap {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }

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

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

  .nav-pills {
    display: none;
  }
}

@media (max-width: 820px) {
  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 251, 235, 0.97);
    box-shadow: var(--shadow-soft);
  }

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

  .nav-link {
    text-align: center;
  }

  .hero {
    margin-top: 18px;
  }

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

  .hero-copy {
    padding: 34px;
    width: 100%;
  }

  .hero-controls {
    left: 34px;
  }

  .hero-panel {
    display: flex;
  }

  .section-heading,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }

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

  .filter-row {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 48px 72px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
    justify-self: start;
  }

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

  .page-hero {
    padding: 34px;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .hero,
  .content-section,
  .page-hero,
  .detail-wrap,
  .breadcrumb,
  .footer-inner {
    width: min(100% - 22px, 1240px);
  }

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

  .hero-slider {
    min-height: 500px;
    border-radius: 26px;
  }

  .hero-copy {
    padding: 26px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-search div {
    flex-direction: column;
  }

  .movie-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 64px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .rank-main strong {
    font-size: 17px;
  }
}
