:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --dark: #111827;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --radius: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--dark);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.nav-shell {
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange-dark);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: #ffffff;
  font-size: 14px;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 999px;
  color: #374151;
  font-size: 15px;
  font-weight: 650;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange-dark);
  background: #fff7ed;
}

.nav-sub {
  color: #6b7280;
  font-size: 14px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--orange-dark);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 22px 18px;
  background: #ffffff;
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f9fafb;
  color: #374151;
  font-weight: 650;
}

.hero-slider {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 420px);
  align-items: center;
  gap: 46px;
  padding: 84px max(24px, calc((100vw - 1240px) / 2 + 24px)) 96px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.88);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.hero-desc {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
}

.hero-tags,
.tag-row,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.tag-pill,
.soft-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

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

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-button {
  background: #ffffff;
  color: var(--orange-dark);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
}

.primary-button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--orange-dark);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

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

.quick-panel {
  max-width: 1120px;
  margin: -54px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 22px;
}

.quick-panel div {
  padding: 24px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.quick-panel strong {
  display: block;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.quick-panel span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.section-block,
.page-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 22px 0;
}

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

.section-head h2,
.page-hero h1,
.content-card h2,
.ranking-side h2,
.category-overview-card h2 {
  margin: 0;
  color: #111827;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-head h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.slim-head h2 {
  font-size: clamp(24px, 2.6vw, 34px);
}

.light-head h2,
.light-link {
  color: #ffffff;
}

.text-link {
  min-height: 40px;
  color: var(--orange-dark);
  background: #fff7ed;
}

.text-link:hover {
  background: var(--orange);
  color: #ffffff;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

.movie-card-default .poster-link {
  aspect-ratio: 16 / 10;
}

.movie-card-rank .poster-link {
  aspect-ratio: 3 / 4;
}

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

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

.play-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.42);
  color: #ffffff;
  font-size: 46px;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
}

.rank-badge,
.mini-rank {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.28);
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
}

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

.movie-card-body h2 {
  margin: 0 0 9px;
  min-height: 2.6em;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
}

.movie-card-small .movie-card-body h2,
.movie-card-rank .movie-card-body h2 {
  font-size: 15px;
}

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

.movie-card-body p {
  margin: 0 0 14px;
  min-height: 3.3em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

.movie-meta span:last-child {
  color: var(--orange-dark);
}

.soft-badge {
  background: #f3f4f6;
  color: #4b5563;
}

.soft-badge.accent {
  background: #fff7ed;
  color: var(--orange-dark);
}

.ranking-band {
  margin-top: 72px;
  padding: 72px max(22px, calc((100vw - 1240px) / 2 + 22px));
  background: linear-gradient(135deg, #0f172a, #111827 48%, #431407);
}

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

.category-card {
  min-height: 138px;
  padding: 24px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.category-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.mini-stack {
  display: grid;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: 0.2s ease;
}

.mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

.mini-poster {
  position: relative;
  overflow: hidden;
  display: block;
  width: 78px;
  height: 92px;
  border-radius: 14px;
  background: #111827;
}

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

.mini-rank {
  top: 6px;
  left: 6px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  font-size: 12px;
}

.mini-info strong {
  display: block;
  color: #111827;
  font-size: 15px;
  line-height: 1.4;
}

.mini-info em {
  display: block;
  margin-top: 8px;
  color: var(--orange-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.page-main {
  padding-top: 32px;
}

.page-hero {
  margin: 20px 0 32px;
  padding: 46px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: #ffffff;
  box-shadow: var(--shadow);
}

.small-hero {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-hero {
  min-height: 240px;
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 56px);
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.category-cover {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

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

.category-cover span {
  position: absolute;
  inset: auto 16px 16px 16px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.76);
  color: #ffffff;
  font-weight: 900;
  text-align: center;
}

.category-overview-card > div {
  padding: 26px;
}

.category-overview-card h2 {
  font-size: 26px;
}

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

.category-overview-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.category-overview-card li a {
  color: #374151;
  font-weight: 700;
}

.category-overview-card li a:hover {
  color: var(--orange-dark);
}

.filter-panel {
  position: sticky;
  top: 84px;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 160px 180px auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.search-box {
  display: grid;
  gap: 6px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

.search-box input,
.filter-select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: #111827;
  padding: 0 14px;
  outline: none;
}

.search-box input:focus,
.filter-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.detail-main {
  padding-top: 28px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 28px;
  margin-top: 22px;
}

.player-card,
.detail-info-card,
.content-card,
.ranking-side {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  color: #ffffff;
  cursor: pointer;
}

.player-start span {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--orange-dark);
  font-size: 34px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
}

.player-start.is-hidden {
  display: none;
}

.detail-info-card {
  padding: 32px;
}

.detail-info-card h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin: 18px 0 24px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.detail-meta-grid div {
  padding: 14px;
  border-radius: 16px;
  background: #f9fafb;
}

.detail-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 5px;
  color: #111827;
}

.tag-pill {
  background: #fff7ed;
  color: var(--orange-dark);
}

.tag-pill:hover {
  background: var(--orange);
  color: #ffffff;
}

.content-layout {
  display: grid;
  gap: 24px;
  margin-top: 30px;
}

.content-card {
  padding: 30px;
}

.content-card h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 2;
}

.accent-card {
  border-left: 6px solid var(--orange);
  background: linear-gradient(90deg, #fff7ed, #ffffff 38%);
}

.related-section {
  padding-top: 48px;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.ranking-grid {
  align-content: start;
}

.ranking-side {
  position: sticky;
  top: 104px;
  align-self: start;
  padding: 22px;
}

.ranking-side h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

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

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 22px;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.footer-logo {
  color: #fb923c;
}

.footer-brand p,
.footer-list,
.footer-copy {
  color: #9ca3af;
}

.footer-brand p {
  max-width: 360px;
  line-height: 1.8;
}

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

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

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

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px;
  text-align: center;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

  .menu-button {
    display: block;
  }

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

  .hero-poster {
    min-height: 360px;
    max-width: 360px;
    transform: none;
  }

  .grid-6,
  .grid-4,
  .grid-3,
  .category-grid,
  .mini-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .filter-count {
    grid-column: 1 / -1;
  }

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

@media (max-width: 680px) {
  .nav-shell {
    height: 64px;
    padding: 0 16px;
  }

  .brand {
    font-size: 21px;
  }

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

  .hero-slide {
    padding: 46px 18px 84px;
    gap: 28px;
  }

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

  .hero-desc {
    font-size: 17px;
  }

  .quick-panel,
  .grid-6,
  .grid-4,
  .grid-3,
  .category-grid,
  .mini-grid,
  .category-overview-grid,
  .filter-panel,
  .detail-meta-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section-block,
  .page-main {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .category-cover {
    min-height: 220px;
  }

  .movie-card-body h2 {
    min-height: auto;
  }

  .movie-card-body p {
    min-height: auto;
  }
}
