:root {
  --page: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffaf0;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.22);
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --brand-light: #f59e0b;
  --gold: #fbbf24;
  --danger: #ef4444;
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.16);
  --shadow-soft: 0 12px 28px rgba(124, 45, 18, 0.1);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.28), transparent 32rem),
    linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #fff7ed 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, #d97706 0%, #f97316 48%, #facc15 100%);
  box-shadow: 0 12px 28px rgba(180, 83, 9, 0.2);
}

.navbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

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

.nav-links a,
.nav-links button {
  color: #ffffff;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links button:hover {
  color: #fff7ed;
}

.nav-drop {
  position: relative;
}

.drop-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  width: 230px;
  padding: 10px;
  background: #ffffff;
  color: var(--text);
  border-radius: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
}

.nav-drop:hover .drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.drop-panel a {
  display: block;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
}

.drop-panel a:hover {
  color: var(--brand);
  background: #fff7ed;
}

.search-mini {
  position: relative;
  min-width: 250px;
}

.search-mini input,
.search-large input,
.filter-select {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  padding: 12px 48px 12px 18px;
  box-shadow: inset 0 0 0 2px transparent;
}

.search-mini input:focus,
.search-large input:focus,
.filter-select:focus {
  box-shadow: inset 0 0 0 2px rgba(251, 191, 36, 0.88);
}

.search-mini button,
.search-large button {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  transform: translateY(-50%);
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

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

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.main {
  min-height: 70vh;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: #7c2d12;
}

.hero-slide {
  display: none;
  min-height: 620px;
  background-size: cover;
  background-position: center;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(69, 26, 3, 0.92) 0%, rgba(124, 45, 18, 0.7) 42%, rgba(124, 45, 18, 0.25) 100%),
    radial-gradient(circle at 18% 22%, rgba(251, 191, 36, 0.5), transparent 18rem);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.62fr);
  align-items: center;
  gap: 52px;
  padding: 76px 0 92px;
}

.hero-kicker,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  color: #7c2d12;
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  font-size: 14px;
  font-weight: 900;
}

.hero-title {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.05em;
  text-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.hero-text {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.hero-meta span,
.detail-meta span,
.card-meta span,
.rank-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
}

.detail-meta span,
.card-meta span,
.rank-meta span {
  color: var(--muted);
  background: #fff7ed;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  padding: 12px 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(234, 88, 12, 0.34);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.hero-poster-wrap {
  position: relative;
}

.hero-poster {
  width: min(100%, 390px);
  margin-left: auto;
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

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

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

.section {
  padding: 54px 0;
}

.section-overlap {
  margin-top: -58px;
  position: relative;
  z-index: 6;
}

.panel {
  border-radius: var(--radius-xl);
  padding: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-soft {
  border-radius: var(--radius-xl);
  padding: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 237, 0.95));
  box-shadow: var(--shadow-soft);
}

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

.section-title {
  margin: 0;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.18;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-desc {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-grid.compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-cover {
  position: relative;
  overflow: hidden;
  background: #fed7aa;
}

.movie-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.movie-grid.compact .movie-cover img {
  aspect-ratio: 3 / 4;
}

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

.cover-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.44);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.movie-card:hover .cover-layer {
  opacity: 1;
}

.play-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.25);
  font-size: 23px;
}

.cover-tag,
.cover-duration,
.rank-number {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.cover-tag {
  left: 12px;
  background: linear-gradient(135deg, var(--brand), var(--gold));
}

.cover-duration {
  right: 12px;
}

.movie-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.movie-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

.movie-title.small {
  font-size: 15px;
}

.movie-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.tag-list span {
  border-radius: 999px;
  padding: 5px 8px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  padding: 22px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 23px;
  font-weight: 950;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  border-radius: 18px;
  padding: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.rank-cover {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

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

.rank-number {
  left: 10px;
  top: 10px;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.rank-body h3 {
  margin: 2px 0 8px;
  font-size: 20px;
  font-weight: 950;
}

.rank-body p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.page-hero {
  padding: 64px 0 36px;
}

.page-hero-card {
  border-radius: var(--radius-xl);
  padding: 38px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.42), transparent 20rem),
    linear-gradient(135deg, #92400e 0%, #f97316 55%, #facc15 100%);
  box-shadow: var(--shadow);
}

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

.page-hero-card p {
  max-width: 850px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.search-large {
  position: relative;
  max-width: 760px;
  margin-top: 22px;
}

.search-large input {
  min-height: 56px;
  padding-left: 22px;
  font-size: 18px;
}

.search-large button {
  width: 44px;
  height: 44px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 16px;
  margin-bottom: 24px;
}

.filter-select {
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.detail-main,
.detail-side {
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-main {
  overflow: hidden;
}

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

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.62), rgba(124, 45, 18, 0.5));
}

.player-cover .play-icon {
  position: relative;
  z-index: 2;
  width: 78px;
  height: 78px;
  font-size: 30px;
}

.player-shell.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-content {
  padding: 28px;
}

.detail-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 950;
}

.detail-section p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
}

.review-box {
  border-radius: 18px;
  padding: 20px;
  background: #fff7ed;
}

.detail-side {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.side-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 950;
}

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

.side-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 8px;
  transition: background 0.18s ease;
}

.side-card:hover {
  background: #fff7ed;
}

.side-card img {
  width: 112px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.side-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 900;
}

.side-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  display: none;
  border-radius: var(--radius-xl);
  padding: 52px 28px;
  text-align: center;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.site-footer {
  margin-top: 56px;
  color: #ffffff;
  background: linear-gradient(90deg, #7c2d12 0%, #c2410c 52%, #d97706 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 44px 0;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 950;
}

.footer-text,
.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 18px 0 24px;
  color: rgba(255, 255, 255, 0.76);
  text-align: center;
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-poster {
    margin: 0;
    width: min(100%, 320px);
    transform: rotate(0);
  }

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

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

  .detail-side {
    position: static;
  }
}

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

  .logo {
    font-size: 20px;
  }

  .hero,
  .hero-slide,
  .hero-inner {
    min-height: 590px;
  }

  .hero-inner {
    padding: 42px 0 76px;
    gap: 28px;
  }

  .hero-text,
  .page-hero-card p {
    font-size: 16px;
  }

  .panel,
  .panel-soft,
  .page-hero-card,
  .detail-content {
    padding: 22px;
    border-radius: 22px;
  }

  .section-head,
  .filter-bar {
    display: block;
  }

  .filter-select {
    margin-top: 12px;
  }

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

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

  .footer-grid {
    gap: 18px;
  }
}
