:root {
  --bg: #fff7ed;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --primary: #ea580c;
  --primary-dark: #c2410c;
  --danger: #dc2626;
  --gold: #f59e0b;
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.13);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.26), transparent 32rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

img.img-hidden {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(251, 146, 60, 0.22);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--primary), var(--danger));
  -webkit-background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--danger));
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

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

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

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

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

.header-search input,
.big-search input,
.filter-bar input,
.search-panel input,
.filter-bar select,
.search-panel select {
  border: 1px solid #fed7aa;
  outline: none;
  border-radius: 999px;
  padding: 12px 16px;
  background: #ffffff;
  color: var(--text);
  min-width: 0;
  box-shadow: 0 10px 24px rgba(251, 146, 60, 0.08);
}

.header-search input:focus,
.big-search input:focus,
.filter-bar input:focus,
.search-panel input:focus,
.filter-bar select:focus,
.search-panel select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.header-search button,
.big-search button,
.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.btn.primary,
.big-search button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--danger));
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.28);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.btn.soft {
  color: var(--primary-dark);
  background: #ffedd5;
}

.btn.full {
  display: block;
  text-align: center;
  margin-top: 18px;
}

.header-search button:hover,
.big-search button:hover,
.btn:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: #fff7ed;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-size: 24px;
  color: var(--primary-dark);
}

.mobile-nav {
  display: none;
  padding: 10px 24px 18px;
  border-top: 1px solid #ffedd5;
  background: #ffffff;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mobile-nav a {
  padding: 12px;
  border-radius: 14px;
  background: #fff7ed;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  max-width: 1280px;
  min-height: 580px;
  margin: 28px auto 0;
  padding: 0 24px;
}

.hero-track {
  position: relative;
  min-height: 580px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, #7c2d12, #111827);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 390px;
  align-items: center;
  gap: 42px;
  padding: 56px;
  color: #ffffff;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: scale(1.02);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(124, 45, 18, 0.72), rgba(17, 24, 39, 0.58)),
    var(--hero-image) center / cover no-repeat;
  filter: saturate(1.1);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(251, 146, 60, 0.5), transparent 20rem),
    radial-gradient(circle at 75% 72%, rgba(220, 38, 38, 0.35), transparent 22rem);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fb923c;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.detail-copy .lead {
  margin: 0;
  max-width: 720px;
  font-size: 19px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

.hero-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.hero-content .tag,
.detail-copy .tag {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-poster {
  display: block;
  height: 500px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c, #dc2626);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

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

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  font-size: 28px;
}

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

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

.hero-dots button.active {
  width: 30px;
  background: #ffffff;
}

.quick-panel,
.content-section,
.page-main,
.site-footer .footer-inner {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.quick-panel {
  margin-top: 24px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.big-search,
.search-panel,
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
}

.big-search input {
  width: min(640px, 100%);
  padding: 16px 20px;
  font-size: 16px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a {
  padding: 12px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #9a3412;
  font-weight: 800;
  border: 1px solid #ffedd5;
  box-shadow: 0 10px 20px rgba(251, 146, 60, 0.08);
}

.content-section {
  padding: 54px 24px 0;
}

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

.section-head h2,
.rank-box h2,
.article-section h2,
.player-section h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.section-head p,
.rank-box p,
.article-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.category-card {
  min-height: 178px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 9rem),
    linear-gradient(135deg, #f97316, #dc2626);
  box-shadow: 0 16px 32px rgba(234, 88, 12, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:nth-child(2n) {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 9rem),
    linear-gradient(135deg, #fb923c, #c2410c);
}

.category-card:nth-child(3n) {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 9rem),
    linear-gradient(135deg, #f59e0b, #ea580c);
}

.category-card:hover,
.movie-card:hover,
.compact-card:hover,
.rank-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgba(124, 45, 18, 0.18);
}

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

.category-card p {
  margin: 0 0 15px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

.category-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.category-card span {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(254, 215, 170, 0.82);
  box-shadow: 0 14px 30px rgba(124, 45, 18, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-wrap,
.rank-cover,
.detail-poster,
.player-box video {
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.35), transparent 8rem),
    linear-gradient(135deg, #fdba74, #dc2626);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
}

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.52));
}

.corner-mark {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  font-size: 12px;
  font-weight: 900;
}

.movie-info {
  padding: 15px;
}

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-info h3 {
  margin: 10px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card.wide {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
}

.movie-card.wide .poster-wrap {
  aspect-ratio: auto;
  height: 100%;
  min-height: 210px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.rank-box {
  position: sticky;
  top: 92px;
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid #fed7aa;
  box-shadow: var(--shadow);
}

.compact-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.compact-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-num {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--danger));
  font-weight: 900;
}

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

.compact-extra {
  color: var(--muted);
  font-size: 13px;
}

.page-main {
  padding: 28px 24px 70px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 54px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(251, 146, 60, 0.5), transparent 18rem),
    linear-gradient(135deg, #111827, #7c2d12 60%, #dc2626);
  box-shadow: var(--shadow);
}

.page-hero p {
  max-width: 820px;
}

.category-preview {
  padding-left: 0;
  padding-right: 0;
}

.filter-bar,
.search-panel {
  margin-bottom: 22px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #fed7aa;
  box-shadow: 0 12px 28px rgba(124, 45, 18, 0.08);
}

.filter-bar input,
.search-panel input {
  flex: 1;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 80px 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 18px 12px 12px;
}

.rank-cover {
  display: block;
  width: 80px;
  height: 108px;
  border-radius: 16px;
  overflow: hidden;
}

.rank-index {
  font-size: 24px;
  font-weight: 950;
  color: var(--primary);
}

.rank-main h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.breadcrumb a {
  color: var(--primary-dark);
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4.15;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
}

.detail-copy .lead {
  color: rgba(255, 255, 255, 0.86);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.detail-meta span {
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.14);
}

.player-section,
.article-section {
  margin-top: 34px;
  padding: 28px;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid #fed7aa;
  box-shadow: var(--shadow);
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 16 / 9;
  background: #111827;
}

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

.player-shade {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(251, 146, 60, 0.34), transparent 18rem),
    rgba(0, 0, 0, 0.5);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

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

.play-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.article-section p {
  font-size: 17px;
  color: #374151;
}

.site-footer {
  margin-top: 70px;
  background: #111827;
  color: #ffffff;
}

.footer-inner {
  padding: 36px 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 720px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-content: start;
}

.footer-links a {
  color: #fed7aa;
  font-weight: 800;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1120px) {
  .category-grid,
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .hero-poster {
    display: none;
  }

  .rank-box {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-carousel,
  .page-main,
  .content-section,
  .quick-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-track,
  .hero-carousel {
    min-height: 560px;
  }

  .hero-slide,
  .page-hero,
  .detail-hero {
    padding: 34px 24px;
    border-radius: 26px;
  }

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

  .quick-panel,
  .big-search,
  .search-panel,
  .filter-bar,
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .movie-card.wide {
    display: block;
  }

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

  .rank-index,
  .rank-row .btn {
    display: none;
  }

  .rank-cover {
    width: 70px;
    height: 96px;
  }

  .detail-hero {
    gap: 24px;
  }

  .detail-poster {
    max-width: 260px;
  }
}

@media (max-width: 520px) {
  .category-grid,
  .movie-grid,
  .small-grid,
  .wide-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .detail-meta {
    display: grid;
  }

  .btn,
  .header-search button,
  .big-search button {
    text-align: center;
  }
}
