:root {
  --orange: #f97316;
  --amber: #f59e0b;
  --yellow: #facc15;
  --ink: #1f2937;
  --muted: #6b7280;
  --paper: #fffaf0;
  --card: rgba(255, 255, 255, 0.92);
  --line: rgba(249, 115, 22, 0.18);
  --shadow: 0 20px 55px rgba(154, 52, 18, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #fef3c7 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--orange), var(--amber), var(--yellow));
  box-shadow: 0 12px 32px rgba(217, 119, 6, 0.24);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--orange);
  background: #ffffff;
  font-size: 18px;
  box-shadow: 0 12px 24px rgba(124, 45, 18, 0.22);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(8deg);
}

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

.brand-text em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.header-search {
  flex: 1 1 360px;
  max-width: 520px;
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input,
.large-search input,
.catalog-toolbar input,
.catalog-toolbar select {
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.62);
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937;
  border-radius: 999px;
  padding: 12px 116px 12px 18px;
  font-size: 15px;
  transition: border 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search input:focus,
.large-search input:focus,
.catalog-toolbar input:focus,
.catalog-toolbar select:focus {
  background: #ffffff;
  border-color: #fed7aa;
  box-shadow: 0 0 0 4px rgba(254, 215, 170, 0.4);
}

.header-search button,
.large-search button {
  position: absolute;
  right: 5px;
  border: 0;
  border-radius: 999px;
  padding: 9px 22px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, #ea580c, #f97316);
  font-weight: 700;
}

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

.main-nav a {
  color: #ffffff;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 9px 12px;
  font-size: 20px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  padding: 58px 0 44px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.76), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(253, 186, 116, 0.52), transparent 34%),
    linear-gradient(135deg, #fff7ed, #fde68a 48%, #fed7aa);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.18));
  backdrop-filter: blur(2px);
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 42px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-copy {
  padding: 38px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-kicker,
.page-hero span,
.section-heading span,
.side-feature > span,
.category-block-head span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 12px;
  color: #c2410c;
  background: #ffedd5;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #7c2d12;
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  color: #7c2d12;
  font-size: 18px;
}

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

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

.hero-tags span,
.detail-facts span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.92);
  color: #9a3412;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

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

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

.primary-button {
  min-height: 48px;
  padding: 0 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.28);
}

.ghost-button,
.section-link {
  min-height: 46px;
  padding: 0 22px;
  color: #c2410c;
  background: #ffffff;
  border: 1px solid #fed7aa;
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(154, 52, 18, 0.14);
}

.hero-art {
  position: relative;
  display: block;
  min-height: 500px;
  border-radius: 38px;
  overflow: hidden;
  background: linear-gradient(145deg, #fdba74, #fef3c7);
  box-shadow: 0 28px 70px rgba(154, 52, 18, 0.24);
}

.hero-art img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.hero-art::after,
.movie-poster::after,
.rank-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(124, 45, 18, 0.35));
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  left: 38px;
  bottom: 18px;
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 34px;
  height: 10px;
  overflow: hidden;
  color: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(194, 65, 12, 0.28);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 54px;
  background: #ea580c;
}

.quick-panel,
.content-section,
.detail-layout,
.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.quick-panel {
  margin-top: -28px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quick-panel a,
.category-tile,
.movie-card,
.rank-card,
.detail-card,
.player-card,
.sidebar-card,
.category-block,
.side-feature {
  background: var(--card);
  border: 1px solid rgba(255, 237, 213, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quick-panel a {
  display: block;
  padding: 22px;
  transition: transform 0.25s ease;
}

.quick-panel a:hover {
  transform: translateY(-4px);
}

.quick-panel strong {
  display: block;
  color: #9a3412;
  font-size: 21px;
}

.quick-panel span {
  color: var(--muted);
  font-size: 14px;
}

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

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

.section-heading h2,
.page-hero h1,
.side-feature h2,
.category-block-head h2,
.detail-title-block h1,
.detail-card h2,
.sidebar-card h2 {
  margin: 12px 0 8px;
  color: #7c2d12;
  line-height: 1.2;
}

.section-heading h2,
.page-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.section-heading p,
.page-hero p,
.category-block-head p,
.side-feature p,
.detail-title-block p,
.detail-card p {
  margin: 0;
  color: var(--muted);
}

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

.category-tile {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(154, 52, 18, 0.2);
}

.category-tile > a {
  display: block;
  min-height: 180px;
  padding: 20px;
  background: linear-gradient(145deg, rgba(255, 247, 237, 0.92), rgba(254, 243, 199, 0.9));
}

.category-tile span {
  color: #ea580c;
  font-weight: 900;
}

.category-tile h3 {
  margin: 14px 0 0;
  color: #7c2d12;
  font-size: 18px;
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 14px 20px 20px;
}

.category-samples a {
  color: #9a3412;
  font-size: 14px;
}

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

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

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

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 72px rgba(154, 52, 18, 0.22);
}

.movie-poster,
.rank-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(145deg, #fed7aa, #fef3c7);
}

.movie-poster {
  aspect-ratio: 2 / 3;
}

.movie-poster img,
.rank-thumb img,
.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-year,
.poster-score {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(234, 88, 12, 0.9);
}

.poster-year {
  left: 10px;
  top: 10px;
}

.poster-score {
  right: 10px;
  top: 10px;
  background: rgba(124, 45, 18, 0.82);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #c2410c;
  font-size: 13px;
  font-weight: 700;
}

.movie-card h3,
.rank-info h3 {
  margin: 10px 0 8px;
  color: #7c2d12;
  line-height: 1.35;
  font-size: 19px;
}

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

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(340px, 0.64fr);
  gap: 22px;
}

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

.compact-rank .rank-card {
  grid-template-columns: 54px 82px 1fr;
}

.rank-card {
  display: grid;
  grid-template-columns: 68px 110px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.rank-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.rank-thumb {
  height: 120px;
  border-radius: 18px;
}

.side-feature {
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 96px;
}

.mini-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  max-height: 840px;
  overflow: auto;
  padding-right: 6px;
}

.mini-grid .movie-card {
  display: grid;
  grid-template-columns: 98px 1fr;
}

.mini-grid .movie-poster {
  height: 148px;
  aspect-ratio: auto;
}

.page-hero {
  margin-top: 34px;
  padding: 46px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 80% 18%, rgba(253, 186, 116, 0.62), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 237, 213, 0.88));
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 24px;
  align-items: center;
}

.catalog-toolbar,
.large-search {
  position: relative;
  display: grid;
  gap: 12px;
}

.catalog-toolbar input,
.catalog-toolbar select {
  padding: 13px 18px;
  border-color: #fed7aa;
}

.catalog-toolbar select {
  appearance: none;
  cursor: pointer;
}

.category-overview {
  display: grid;
  gap: 24px;
}

.category-block {
  padding: 24px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding-top: 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #9a3412;
  font-weight: 700;
}

.player-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  background: #111827;
  aspect-ratio: 16 / 9;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.36), rgba(17, 24, 39, 0.76));
}

.play-cover[hidden] {
  display: none;
}

.play-symbol {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #f97316;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  font-size: 32px;
  padding-left: 5px;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(127, 29, 29, 0.86);
}

.detail-title-block,
.detail-card {
  padding: 24px;
}

.detail-title-block > span {
  color: #ea580c;
  font-weight: 900;
}

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

.related-section {
  width: 100%;
  padding-top: 28px;
}

.detail-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
  position: sticky;
  top: 96px;
}

.sidebar-card {
  padding: 18px;
  overflow: hidden;
}

.poster-card {
  padding: 0;
  position: relative;
}

.poster-card img {
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, #fed7aa, #fef3c7);
}

.poster-card div {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  color: #ffffff;
}

.poster-card strong {
  font-size: 42px;
  line-height: 1;
}

.sidebar-rank {
  display: grid;
  gap: 10px;
}

.sidebar-rank a {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  color: #7c2d12;
}

.sidebar-rank span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #ffffff;
  background: #f97316;
  font-size: 12px;
  font-weight: 900;
}

.large-search {
  align-self: center;
}

.search-status {
  margin-bottom: 20px;
  color: #9a3412;
  font-weight: 800;
}

.site-footer {
  margin-top: 72px;
  padding: 36px 0;
  color: #7c2d12;
  background: rgba(255, 237, 213, 0.74);
  border-top: 1px solid #fed7aa;
}

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

.footer-inner p {
  margin: 6px 0 0;
  color: #9a3412;
}

.footer-inner nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-weight: 800;
}

.is-hidden {
  display: none !important;
}

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

  .hero-slide,
  .page-hero,
  .detail-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    position: relative;
    display: none;
  }

  .hero-slide.is-active {
    display: grid;
  }

  .hero-slider {
    min-height: auto;
  }

  .hero-dots {
    position: static;
    margin-top: 18px;
  }

  .detail-sidebar,
  .side-feature {
    position: static;
  }

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

@media (max-width: 780px) {
  .header-inner {
    min-height: 68px;
  }

  .brand-text em {
    display: none;
  }

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

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: var(--shadow);
  }

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

  .hero-section {
    min-height: 0;
    padding-top: 28px;
  }

  .hero-copy,
  .page-hero {
    padding: 24px;
    border-radius: 26px;
  }

  .hero-art,
  .hero-art img {
    min-height: 360px;
  }

  .quick-panel,
  .category-grid,
  .movie-grid,
  .small-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .category-block-head,
  .footer-inner {
    align-items: start;
    flex-direction: column;
  }

  .rank-card,
  .compact-rank .rank-card {
    grid-template-columns: 46px 82px 1fr;
    gap: 10px;
  }

  .rank-thumb {
    height: 98px;
  }

  .mini-grid .movie-card {
    grid-template-columns: 92px 1fr;
  }
}

@media (max-width: 480px) {
  .quick-panel,
  .content-section,
  .detail-layout,
  .page-hero,
  .hero-shell,
  .footer-inner,
  .header-inner {
    width: min(100% - 22px, 1180px);
  }

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

  .rank-card,
  .compact-rank .rank-card {
    grid-template-columns: 42px 1fr;
  }

  .rank-thumb {
    display: none;
  }
}
