:root {
  --amber: #f59e0b;
  --orange: #f97316;
  --gold: #fbbf24;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --card: #ffffff;
  --shadow: 0 18px 48px rgba(146, 64, 14, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.24);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 24px;
  line-height: 1.05;
}

.brand-text em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  color: #334155;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #d97706;
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.top-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 286px;
  padding: 4px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.08);
}

.top-search input,
.search-panel input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.top-search input {
  padding: 9px 12px;
}

.top-search button,
.search-panel button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 22px rgba(234, 88, 12, 0.18);
}

.top-search button {
  padding: 9px 16px;
}

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

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #92400e;
}

.mobile-panel {
  display: none;
  padding: 10px 18px 20px;
  border-top: 1px solid #fed7aa;
  background: #ffffff;
}

.mobile-panel a {
  display: block;
  padding: 10px 0;
  color: #475569;
  font-weight: 700;
}

.mobile-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 14px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #9a3412;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.88), rgba(249, 115, 22, 0.7)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.02));
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 64px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #f59e0b;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.detail-hero .eyebrow {
  color: #ffedd5;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 18px 0 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
}

.hero-copy p,
.page-hero p,
.detail-line {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.85;
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span,
.detail-meta span,
.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

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

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 460px;
  border: 8px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.2), rgba(251, 146, 60, 0.24));
  box-shadow: 0 28px 70px rgba(67, 20, 7, 0.34);
}

.hero-poster img,
.detail-cover img,
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.hero-poster:hover img,
.movie-card:hover .poster img,
.detail-cover:hover img {
  transform: scale(1.06);
}

img.is-hidden {
  opacity: 0;
}

.hero-poster span,
.detail-cover span,
.poster-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.section-block {
  padding: 58px 0;
}

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

.section-title.inline {
  align-items: center;
  margin-bottom: 22px;
}

.section-title h2,
.content-card h2,
.side-panel h2,
.footer-grid h2 {
  margin: 0;
  color: #1f2937;
}

.section-title h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-title a,
.text-link,
.content-card a,
.side-panel a {
  color: #d97706;
  font-weight: 900;
}

.intro-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 18px;
}

.intro-card,
.category-card,
.movie-card,
.ranking-panel,
.rank-list,
.content-card,
.side-panel {
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.intro-card {
  min-height: 170px;
  padding: 28px;
}

.intro-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 26px;
}

.intro-card p,
.intro-card span {
  color: var(--muted);
  line-height: 1.8;
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent), transparent 84%), transparent);
}

.category-card:hover,
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 62px rgba(146, 64, 14, 0.18);
}

.category-card > * {
  position: relative;
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 18px;
  border-radius: 20px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  background: var(--accent);
}

.category-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
}

.category-card em,
.category-card small {
  display: block;
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.category-card small {
  margin-top: 14px;
  color: #d97706;
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
}

.movie-info {
  padding: 18px;
}

.movie-info h2 {
  min-height: 52px;
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.movie-info h2 a:hover {
  color: #d97706;
}

.meta,
.line {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.meta {
  margin: 8px 0 0;
}

.line {
  min-height: 48px;
  margin: 10px 0 0;
}

.tag-row {
  margin-top: 14px;
}

.tag-row span {
  color: #92400e;
  background: #ffedd5;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 28px;
}

.ranking-panel,
.rank-list {
  padding: 28px;
}

.ranking-panel {
  color: #ffffff;
  background: linear-gradient(135deg, #92400e, #f97316);
}

.ranking-panel h2,
.ranking-panel .eyebrow {
  color: #ffffff;
}

.ranking-panel p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
}

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

.rank-list.small {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #fff7ed;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.rank-title {
  overflow: hidden;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-meta {
  color: var(--muted);
  font-size: 13px;
}

.sub-page {
  min-height: 60vh;
}

.page-hero {
  padding: 78px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(135deg, #d97706, #f97316);
}

.category-hero {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.24), transparent 23%),
    linear-gradient(135deg, var(--accent), #f97316);
}

.ranking-hero {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(135deg, #7c2d12, #f59e0b);
}

.search-hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 25%),
    linear-gradient(135deg, #0f766e, #f59e0b);
}

.search-panel {
  display: flex;
  align-items: center;
  width: min(660px, 100%);
  margin-top: 26px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.search-panel input {
  padding: 14px 18px;
  font-size: 16px;
}

.search-panel button {
  padding: 14px 28px;
}

.empty-state {
  display: none;
  margin: 30px 0 0;
  padding: 30px;
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

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

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

.side-panel {
  position: sticky;
  top: 104px;
  padding: 24px;
}

.side-panel dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.side-panel dt {
  color: var(--muted);
  font-size: 13px;
}

.side-panel dd {
  margin: -6px 0 8px;
  font-weight: 800;
  line-height: 1.6;
}

.detail-hero {
  position: relative;
  padding: 62px 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(67, 20, 7, 0.9), rgba(249, 115, 22, 0.74)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 24%);
}

.detail-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: center;
  gap: 36px;
}

.detail-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 7px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 58px rgba(67, 20, 7, 0.35);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

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

.detail-meta {
  margin-top: 22px;
}

.detail-tags {
  margin-top: 18px;
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.video-shell {
  position: relative;
  background: #000000;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.28), rgba(0, 0, 0, 0.58));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  padding-left: 5px;
  border-radius: 999px;
  font-size: 34px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.35);
}

.play-cover strong {
  font-size: 20px;
}

.content-card {
  padding: 28px;
}

.content-card p {
  margin: 14px 0 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.95;
}

.detail-side {
  display: grid;
  gap: 24px;
}

.site-footer {
  padding: 58px 0 24px;
  color: #cbd5e1;
  background: #111827;
}

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

.footer-grid h2,
.footer-brand strong {
  color: #ffffff;
}

.footer-grid p {
  max-width: 520px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-grid a {
  display: block;
  margin-top: 10px;
  color: #cbd5e1;
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 38px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}

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

  .hero-content,
  .detail-layout,
  .category-layout,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .hero,
  .hero-track,
  .hero-slide {
    min-height: 640px;
  }

  .hero-content {
    padding: 76px 0 120px;
  }

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

  .detail-cover {
    width: min(260px, 76vw);
  }

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

  .side-panel {
    position: static;
  }
}

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

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

  .brand-text em {
    display: none;
  }

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

  .section-block {
    padding: 40px 0;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .hero-copy h2 {
    font-size: 26px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-line {
    font-size: 16px;
  }

  .movie-grid,
  .movie-grid.compact-grid,
  .movie-grid.ranking-grid,
  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

  .search-panel {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
  }

  .search-panel button {
    margin-top: 8px;
  }

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

  .rank-meta {
    grid-column: 2;
  }
}
