:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #ef4444;
  --slate: #0f172a;
  --dark: #111827;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #f3f4f6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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: 50;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand {
  font-size: 21px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--orange);
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 650;
}

.main-nav a {
  opacity: 0.96;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: #fff7ed;
  opacity: 1;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 999px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  background: var(--slate);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: 54px;
  padding: 72px max(32px, calc((100vw - 1180px) / 2)) 88px;
  color: #ffffff;
  background-position: center;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

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

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

.eyebrow {
  margin: 0 0 12px;
  color: #fed7aa;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1,
.compact-hero h1,
.detail-intro h1 {
  margin: 0;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero-content h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 82px);
}

.hero-summary {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

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

.hero-tags span,
.movie-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  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(--orange), var(--red));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.34);
}

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

.btn-ghost {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-search {
  display: flex;
  width: min(620px, 100%);
  margin-top: 32px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.18);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  color: #111827;
  border: 0;
  outline: 0;
  background: transparent;
}

.hero-search button {
  padding: 0 20px;
  color: #ffffff;
  font-weight: 800;
  border: 0;
  border-radius: 14px;
  background: var(--orange);
  cursor: pointer;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  background: linear-gradient(135deg, #fb923c, #111827);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

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

.hero-poster-play,
.play-circle,
.player-play-button {
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.hero-poster-play {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 60px;
  height: 60px;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.94);
  font-size: 22px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

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

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

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

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

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

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

.quick-cats {
  color: #ffffff;
  background: #111827;
}

.quick-cats-inner {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 18px 0;
}

.quick-cats a {
  flex: 0 0 auto;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-weight: 750;
}

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

.muted-section {
  background: #ffffff;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--dark);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 900;
}

.section-heading p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  flex: 0 0 auto;
  color: var(--orange-dark);
  font-weight: 800;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link,
.poster-frame {
  position: relative;
  display: block;
}

.poster-frame {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fed7aa, #111827);
}

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

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

.poster-shadow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.62));
  opacity: 0.86;
}

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-circle {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.score-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 8px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

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

.movie-card h2 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
}

.movie-meta,
.movie-desc {
  margin: 0;
}

.movie-meta {
  margin-top: 6px;
  color: #6b7280;
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  margin-top: 8px;
  color: #4b5563;
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-tags {
  margin-top: 12px;
}

.movie-tags span,
.detail-tags span {
  color: #9a3412;
  background: #ffedd5;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
}

.rank-panel,
.side-card,
.detail-text-card,
.player-card,
.search-panel,
.wide-rank-list {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.rank-panel {
  position: sticky;
  top: 88px;
  padding: 22px;
}

.rank-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.rank-panel h2,
.side-card h2,
.player-card h2,
.detail-text-card h2 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.rank-panel-head a {
  color: var(--orange-dark);
  font-weight: 800;
}

.rank-list,
.side-rank {
  display: grid;
  gap: 10px;
}

.rank-row,
.wide-rank-row {
  display: grid;
  align-items: center;
  gap: 12px;
  color: #374151;
  border-radius: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.rank-row {
  grid-template-columns: 42px minmax(0, 1fr) 44px;
  padding: 9px 10px;
}

.rank-row:hover,
.wide-rank-row:hover {
  color: var(--orange-dark);
  background: #fff7ed;
}

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

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

.rank-info {
  text-align: right;
  color: var(--orange-dark);
  font-weight: 900;
}

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

.category-card,
.category-overview-card {
  overflow: hidden;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.category-card > a,
.category-overview-main {
  display: grid;
  gap: 10px;
  padding: 24px;
  min-height: 150px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444 58%, #111827);
}

.category-name,
.category-overview-main span {
  font-size: 25px;
  font-weight: 950;
}

.category-desc,
.category-overview-main strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 600;
}

.category-mini-links,
.category-overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
}

.category-mini-links a,
.category-overview-links a,
.side-rank a {
  padding: 7px 10px;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at 15% 10%, rgba(249, 115, 22, 0.38), transparent 30%), linear-gradient(135deg, #111827, #1f2937);
}

.compact-hero {
  padding: 72px 0;
}

.compact-hero h1 {
  max-width: 920px;
  font-size: clamp(38px, 6vw, 64px);
}

.compact-hero p:last-child {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.filter-bar,
.search-panel {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.filter-bar input,
.filter-bar select,
.search-panel input,
.search-panel select {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: #ffffff;
}

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

.search-panel {
  padding: 16px;
}

.wide-rank-list {
  overflow: hidden;
  padding: 8px;
}

.wide-rank-row {
  grid-template-columns: 54px minmax(0, 1fr) 80px 120px 60px;
  padding: 12px 14px;
}

.detail-hero {
  padding: 54px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1f2937 55%, #7c2d12);
}

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

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fed7aa, #111827);
  border-radius: 26px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.34);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #fed7aa;
  font-weight: 750;
}

.detail-intro h1 {
  font-size: clamp(34px, 5vw, 62px);
}

.detail-one-line {
  max-width: 860px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-meta span {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-weight: 750;
}

.detail-tags {
  margin: 20px 0 28px;
}

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

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

.player-card,
.detail-text-card,
.side-card {
  padding: 22px;
}

.video-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-top: 18px;
  background: #000000;
  border-radius: 18px;
}

.video-player video,
.player-cover,
.player-cover-img,
.player-shade {
  position: absolute;
  inset: 0;
}

.video-player video,
.player-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-cover {
  display: block;
  padding: 0;
  color: #ffffff;
  border: 0;
  background: #000000;
  cursor: pointer;
  z-index: 2;
}

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

.player-shade {
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.26), rgba(0, 0, 0, 0.74));
}

.player-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.94);
  font-size: 30px;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.detail-text-card p {
  margin: 14px 0 0;
  color: #374151;
  font-size: 17px;
}

.side-card {
  margin-bottom: 22px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 16px 0 0;
}

.side-card dt {
  color: #6b7280;
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: #111827;
  font-weight: 750;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
  padding: 44px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
  gap: 30px;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  max-width: 520px;
  margin: 12px 0 0;
}

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

.site-footer a:not(.footer-brand) {
  display: block;
  margin-top: 8px;
  color: #d1d5db;
}

.no-results {
  grid-column: 1 / -1;
  padding: 34px;
  text-align: center;
  color: #6b7280;
  background: #ffffff;
  border-radius: 20px;
}

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

  .two-column,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

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

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    color: #111827;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .main-nav a:hover {
    color: var(--orange-dark);
    background: #fff7ed;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 48px 24px 100px;
  }

  .hero-poster {
    width: min(260px, 75vw);
    margin: 0 auto;
  }

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

  .detail-poster {
    width: min(260px, 70vw);
  }

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

  .wide-rank-row span:nth-child(3),
  .wide-rank-row span:nth-child(4) {
    display: none;
  }
}

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

  .brand {
    font-size: 18px;
  }

  .hero-content h1,
  .compact-hero h1,
  .detail-intro h1 {
    font-size: 36px;
  }

  .hero-search,
  .filter-bar,
  .search-panel {
    flex-direction: column;
  }

  .hero-search button {
    min-height: 44px;
  }

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

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

  .movie-desc {
    min-height: 38px;
  }

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

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .compact-hero,
  .detail-hero {
    padding: 46px 0;
  }

  .player-card,
  .detail-text-card,
  .side-card {
    padding: 16px;
    border-radius: 18px;
  }
}
