:root {
  --bg: #fffaf0;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f1d6b1;
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-soft: #fef3c7;
  --blue: #2563eb;
  --indigo: #4f46e5;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.14);
  --shadow-soft: 0 10px 30px rgba(31, 41, 55, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(245, 158, 11, 0.16);
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark,
.footer-brand span {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.brand-text strong {
  display: block;
  font-size: 21px;
  line-height: 1.1;
}

.brand-text small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

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

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.site-search input,
.mobile-nav input,
.page-search input {
  width: 245px;
  border: 1px solid #f1c27d;
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: #ffffff;
  color: var(--text);
}

.site-search input:focus,
.mobile-nav input:focus,
.page-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.site-search button,
.mobile-nav button,
.page-search button,
.primary-btn,
.secondary-btn,
.ghost-link,
.play-detail-link {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-search button:hover,
.mobile-nav button:hover,
.page-search button:hover,
.primary-btn:hover,
.ghost-link:hover,
.play-detail-link:hover {
  transform: translateY(-2px);
  background: var(--brand-dark);
  box-shadow: 0 16px 30px rgba(146, 64, 14, 0.28);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.58);
  box-shadow: none;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.32);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  cursor: pointer;
  padding: 11px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--brand-dark);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 18px;
  border-top: 1px solid rgba(245, 158, 11, 0.18);
}

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

.mobile-nav form {
  display: grid;
  gap: 10px;
}

.mobile-nav input {
  width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: linear-gradient(135deg, #b45309 0%, #f59e0b 48%, #f97316 100%);
  color: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.24), transparent 24%), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 28%), linear-gradient(120deg, rgba(0, 0, 0, 0.15), transparent 46%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  background: linear-gradient(0deg, #fff7ed, rgba(255, 247, 237, 0));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  min-height: 620px;
  margin: 0 auto;
  padding: 72px 20px 100px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.78fr);
  gap: 42px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffedd5;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.hero-lead {
  margin: 22px 0 0;
  max-width: 650px;
  font-size: clamp(18px, 2.6vw, 27px);
  color: #fffbeb;
}

.hero-summary {
  margin: 24px 0 0;
  max-width: 690px;
  color: #fff7ed;
  font-size: 17px;
}

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

.hero-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags a,
.tag-row span,
.detail-tags span,
.meta-pill,
.category-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
}

.hero-stage {
  position: relative;
  min-height: 455px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-card {
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(85, 38, 2, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(18px);
}

.hero-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.hero-card-body {
  padding: 22px 24px 26px;
  background: linear-gradient(180deg, rgba(69, 26, 3, 0.18), rgba(69, 26, 3, 0.42));
}

.hero-card-body h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.hero-card-body p {
  margin: 0;
  color: #ffedd5;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  right: 26px;
  bottom: 24px;
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 28px;
  background: #ffffff;
}

.main-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px;
}

.content-section {
  margin: 0 0 66px;
}

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

.section-heading h1,
.section-heading h2,
.page-title h1 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-title p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

.section-more {
  color: var(--brand-dark);
  font-weight: 900;
}

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

.feature-item,
.category-card,
.info-panel,
.detail-panel {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(245, 158, 11, 0.14);
}

.feature-item {
  padding: 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-item strong {
  display: block;
  color: var(--brand-dark);
  font-size: 25px;
}

.feature-item span {
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(245, 158, 11, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #f59e0b);
}

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

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

.card-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(217, 119, 6, 0.95);
  color: #ffffff;
  font-weight: 900;
  font-size: 12px;
}

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

.card-meta,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta span,
.rank-meta span,
.detail-meta span {
  border-radius: 999px;
  background: #fff7ed;
  padding: 4px 9px;
}

.movie-card h2 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.28;
}

.movie-card h2 a:hover,
.rank-info h2 a:hover {
  color: var(--brand);
}

.movie-card p,
.rank-info p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tag-row,
.detail-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.detail-tags span,
.meta-pill,
.category-pill {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

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

.category-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 178px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card-img {
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #f97316);
}

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

.category-card-body {
  padding: 24px;
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

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

.page-hero {
  background: linear-gradient(135deg, #92400e, #f59e0b);
  color: #ffffff;
  padding: 72px 20px;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #ffedd5;
  font-size: 18px;
}

.page-search {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 28px;
}

.page-search input {
  width: min(620px, 100%);
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--muted);
  box-shadow: var(--shadow-soft);
}

.empty-state.is-visible {
  display: block;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 64px 128px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(245, 158, 11, 0.12);
}

.rank-no {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), #f97316);
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.rank-poster {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  background: #fef3c7;
}

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

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.detail-hero {
  background: radial-gradient(circle at 72% 16%, rgba(245, 158, 11, 0.28), transparent 30%), linear-gradient(135deg, #111827, #451a03 60%, #92400e);
  color: #ffffff;
  padding: 48px 20px 64px;
}

.detail-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 34px;
  align-items: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #fed7aa;
  font-size: 14px;
  margin-bottom: 18px;
}

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

.detail-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.detail-hero p {
  margin: 16px 0 0;
  color: #ffedd5;
  font-size: 18px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.26);
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f59e0b, #b45309);
}

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

.player-section {
  max-width: 1200px;
  margin: -36px auto 56px;
  padding: 0 20px;
  position: relative;
  z-index: 3;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
  aspect-ratio: 16 / 9;
}

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.76));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-dark);
  font-size: 28px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.26);
}

.player-title {
  margin-top: 18px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.detail-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.detail-panel {
  padding: 30px;
  margin-bottom: 24px;
}

.detail-panel h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.detail-panel p {
  color: #4b5563;
  margin: 0 0 16px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.side-item img {
  width: 82px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
  background: #fef3c7;
}

.side-item strong {
  display: block;
  line-height: 1.25;
}

.side-item span {
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 54px 20px 28px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 22px;
}

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

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  text-align: center;
}

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

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

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

  .hero-stage {
    min-height: 500px;
  }

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

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

@media (max-width: 760px) {
  .nav-wrap {
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-text small {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 48px 16px 86px;
  }

  .hero-stage {
    min-height: 430px;
  }

  .hero-card img {
    height: 260px;
  }

  .main-wrap {
    padding: 42px 16px;
  }

  .section-heading,
  .page-search {
    align-items: stretch;
    flex-direction: column;
  }

  .feature-strip,
  .movie-grid,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .category-card-img {
    height: 190px;
  }

  .rank-card {
    grid-template-columns: 52px 96px minmax(0, 1fr);
  }

  .rank-card .ghost-link {
    grid-column: 2 / -1;
    text-align: center;
  }

  .player-section {
    margin-top: -24px;
  }

  .detail-panel {
    padding: 22px;
  }
}
