:root {
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --red: #dc2626;
  --amber: #f97316;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --card: #ffffff;
  --bg: #f8fafc;
  --shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 10px 30px rgba(194, 65, 12, 0.28);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

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

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

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: #ffedd5;
  opacity: 1;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.mobile-nav a {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

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

.hero-content {
  position: absolute;
  left: max(32px, calc((100vw - 1200px) / 2));
  top: 50%;
  width: min(640px, calc(100% - 64px));
  transform: translateY(-52%);
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-kicker {
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.35);
}

.hero-content h1,
.hero-content h2 {
  margin: 20px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-content p {
  width: min(600px, 100%);
  margin: 0;
  color: #fef3c7;
  font-size: 18px;
}

.hero-tags,
.movie-meta,
.tag-row,
.hero-actions,
.detail-tags,
.prev-next {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  padding: 7px 11px;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

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

.hero-actions {
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  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(90deg, var(--orange), var(--red));
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.26);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.btn-ghost.light {
  color: var(--orange-dark);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #fed7aa;
}

.hero-panel {
  position: relative;
  z-index: 5;
  padding-top: 500px;
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 18px;
  align-items: center;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.hero-search input,
.filter-grid input,
.filter-grid select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  outline: 0;
  background: #ffffff;
}

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

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

.hero-links a {
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  right: max(28px, calc((100vw - 1200px) / 2));
  bottom: 34px;
  z-index: 6;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

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

.section {
  padding: 64px 0;
}

.section-warm {
  background: linear-gradient(180deg, #fff7ed, #ffffff);
}

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

.section-header h2,
.page-hero h1,
.ranking-panel h2,
.detail-hero h1,
.detail-content h2,
.info-card h2,
.filter-panel h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-header p,
.page-hero p,
.filter-panel p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
}

.poster-badge {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(234, 88, 12, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--orange);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

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

.movie-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 900;
}

.movie-card h3,
.rank-card h2 {
  margin: 8px 0 8px;
  font-size: 19px;
  line-height: 1.28;
}

.movie-card h3 a:hover,
.rank-card h2 a:hover {
  color: var(--orange-dark);
}

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

.movie-meta {
  margin-top: 12px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: #d1d5db;
}

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

.tag-row span {
  padding: 5px 8px;
  font-size: 12px;
}

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

.category-tile,
.category-overview-card,
.ranking-panel,
.filter-panel,
.info-card,
.detail-content article,
.prev-next {
  border: 1px solid rgba(254, 215, 170, 0.8);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.07);
}

.category-tile {
  padding: 20px;
}

.category-tile span {
  display: block;
  margin-bottom: 8px;
  color: var(--orange-dark);
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  display: block;
  color: #374151;
  font-size: 14px;
}

.category-tile div {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.category-tile div a:hover {
  color: var(--orange-dark);
}

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

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff7ed;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.compact-card img {
  width: 78px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #fed7aa, #7f1d1d);
}

.compact-content {
  display: grid;
  gap: 4px;
}

.compact-content strong {
  line-height: 1.25;
}

.compact-content em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.rank-index {
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.page-main {
  padding-bottom: 64px;
}

.page-hero {
  margin-top: 38px;
  padding: 54px;
  border-radius: 30px;
  color: #ffffff;
  background: radial-gradient(circle at top right, rgba(251, 146, 60, 0.72), transparent 40%), linear-gradient(135deg, #7f1d1d, #ea580c 55%, #111827);
  box-shadow: var(--shadow);
}

.page-hero p {
  color: #ffedd5;
  font-size: 18px;
}

.category-hero .hero-actions {
  margin-top: 24px;
}

.filter-panel {
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
  gap: 24px;
  align-items: end;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.7fr;
  gap: 12px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  padding: 26px;
  align-items: center;
}

.category-overview-card h2 {
  margin: 10px 0;
  font-size: 32px;
}

.category-overview-card p {
  color: var(--muted);
}

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

.mini-list .compact-card {
  grid-template-columns: 1fr;
}

.mini-list .compact-card img {
  width: 100%;
  height: 150px;
}

.rank-list {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.rank-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.rank-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fed7aa, #7f1d1d);
}

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

.rank-cover span {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--red);
  font-weight: 900;
}

.detail-main {
  padding: 24px 0 64px;
}

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

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

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

.watch-column {
  min-width: 0;
}

.watch-column > p {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
}

.player-card {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.22));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.play-layer span {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--orange);
  background: #ffffff;
  font-size: 32px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.play-layer strong {
  font-size: 18px;
}

.player-card.is-playing .play-layer {
  opacity: 0;
  pointer-events: none;
}

.info-column {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.detail-poster {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #fed7aa, #7f1d1d);
  box-shadow: var(--shadow);
}

.info-card {
  padding: 22px;
}

.info-card dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.info-card dl div {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 12px;
  align-items: start;
}

.info-card dt {
  color: var(--muted);
  font-weight: 800;
}

.info-card dd {
  margin: 0;
  font-weight: 800;
}

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

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.detail-content article {
  padding: 30px;
}

.detail-content article h2:not(:first-child) {
  margin-top: 30px;
}

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

.prev-next {
  justify-content: space-between;
  padding: 18px 22px;
  font-weight: 900;
}

.prev-next a:hover {
  color: var(--orange-dark);
}

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

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding: 46px 0;
}

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

.site-footer p {
  max-width: 360px;
  color: #9ca3af;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

.site-footer a,
.site-footer span {
  display: block;
  margin: 8px 0;
  color: #9ca3af;
}

.site-footer a:hover {
  color: #fb923c;
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #9ca3af;
}

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

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

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

  .split-section,
  .detail-hero,
  .filter-panel,
  .category-overview-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .info-column {
    position: static;
  }

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1200px);
  }

  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

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

  .brand {
    font-size: 20px;
  }

  .hero-carousel {
    min-height: 720px;
  }

  .hero-content {
    left: 20px;
    top: 44%;
    width: calc(100% - 40px);
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-panel {
    padding-top: 520px;
    grid-template-columns: 1fr;
  }

  .hero-search,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .hero-controls {
    left: 20px;
    right: auto;
    bottom: 18px;
  }

  .section {
    padding: 42px 0;
  }

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

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

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

  .movie-card h3 {
    font-size: 17px;
  }

  .movie-card p {
    min-height: 0;
  }

  .page-hero {
    margin-top: 20px;
    padding: 32px 22px;
    border-radius: 24px;
  }

  .filter-panel {
    padding: 18px;
  }

  .rank-card {
    grid-template-columns: 110px 1fr;
    gap: 14px;
  }

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

  .prev-next {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .compact-grid,
  .category-grid,
  .related-grid,
  .mini-list {
    grid-template-columns: 1fr;
  }

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

  .compact-card {
    grid-template-columns: 70px 1fr;
  }

  .compact-card img {
    width: 70px;
    height: 88px;
  }
}
