:root {
  --site-orange: #ea580c;
  --site-red: #dc2626;
  --site-amber: #f97316;
  --site-dark: #111827;
  --site-muted: #6b7280;
  --site-soft: #fff7ed;
  --site-line: #fed7aa;
  --shadow-soft: 0 18px 45px rgba(17, 24, 39, 0.12);
  --shadow-card: 0 12px 30px rgba(17, 24, 39, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
}

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.95);
  border-bottom: 1px solid rgba(254, 215, 170, 0.8);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(124, 45, 18, 0.08);
}

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

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

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  font-size: 15px;
  background: linear-gradient(135deg, #fb923c, #dc2626);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.26);
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(90deg, #ea580c, #dc2626);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  color: #4b5563;
}

.nav-link {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--site-orange);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--site-orange), var(--site-red));
}

.nav-link-sub {
  display: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #7c2d12;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 8px 22px 18px;
  border-top: 1px solid #fed7aa;
  background: #ffffff;
}

.mobile-panel.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7ed;
  color: #7c2d12;
}

.mobile-link.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-orange), var(--site-red));
}

.page-main {
  min-height: 70vh;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.62fr);
  align-items: center;
  gap: 48px;
  padding: 96px max(24px, calc((100vw - 1240px) / 2 + 24px)) 76px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(124, 45, 18, 0.70), rgba(220, 38, 38, 0.42)),
    var(--hero-image),
    linear-gradient(135deg, #111827, #ea580c);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% -10%;
  height: 54%;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.42), rgba(17, 24, 39, 0) 68%);
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fdba74;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 16px 0;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-info p {
  max-width: 680px;
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.86);
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

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

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

.primary-btn,
.ghost-btn,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #dc2626);
  box-shadow: 0 16px 32px rgba(220, 38, 38, 0.28);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.more-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  display: block;
  width: min(360px, 100%);
  aspect-ratio: 3 / 4;
  justify-self: center;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c, #dc2626);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

.hero-poster img.image-missing,
.poster-img.image-missing,
.detail-poster img.image-missing {
  opacity: 0;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
}

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

.hero-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.16);
}

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

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

.hero-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: #ffffff;
}

.section-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 24px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.inline-heading {
  margin-bottom: 22px;
}

.section-heading h2,
.rank-heading h2,
.detail-article h2,
.detail-side h2 {
  margin: 8px 0 10px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.1;
  color: #111827;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 220px 180px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid #fed7aa;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
}

.filter-bar label {
  display: grid;
  gap: 7px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 46px;
  border: 1px solid #fdba74;
  border-radius: 14px;
  padding: 0 14px;
  color: #1f2937;
  background: #ffffff;
  outline: none;
}

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

.empty-state {
  margin: 20px 0 0;
  padding: 18px;
  border-radius: 18px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
}

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

.category-tile,
.category-card-large {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #dc2626);
  box-shadow: var(--shadow-card);
  isolation: isolate;
}

.category-tile::after,
.category-card-large::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -48px;
  bottom: -58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  z-index: -1;
}

.category-tile span,
.category-card-title {
  display: block;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p,
.category-card-large p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(254, 215, 170, 0.92);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(124, 45, 18, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fb923c;
  box-shadow: var(--shadow-soft);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5, #fb923c 45%, #dc2626);
}

.poster-shade {
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(17, 24, 39, 0.68));
}

.card-badge,
.card-play {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.card-badge {
  top: 10px;
  left: 10px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  background: rgba(220, 38, 38, 0.92);
}

.card-play {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ea580c;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--site-muted);
  font-size: 12px;
  font-weight: 800;
}

.card-title {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.35;
  color: #111827;
}

.card-title a:hover {
  color: var(--site-orange);
}

.card-body p {
  margin: 0 0 12px;
  min-height: 64px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.7;
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  border: 1px solid #fed7aa;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
  color: #431407;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  transform: translateX(3px);
  background: #ffedd5;
}

.rank-no {
  color: #dc2626;
  font-weight: 900;
}

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

.rank-year {
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}

.more-link {
  margin-top: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  isolation: isolate;
}

.compact-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  padding: 92px max(24px, calc((100vw - 1240px) / 2 + 24px)) 64px;
}

.page-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(124, 45, 18, 0.62), rgba(220, 38, 38, 0.38)),
    var(--hero-image),
    linear-gradient(135deg, #111827, #ea580c);
  background-size: cover;
  background-position: center;
}

.page-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -50% -20%;
  height: 70%;
  z-index: -1;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.36), rgba(17, 24, 39, 0) 66%);
}

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

.category-card-large {
  min-height: 230px;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.rank-table-wrap {
  padding-bottom: 30px;
}

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

.wide-rank-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 120px 80px 140px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(124, 45, 18, 0.06);
}

.wide-rank-row:hover {
  border-color: #fb923c;
}

.wide-rank-no,
.wide-rank-name {
  font-weight: 900;
}

.wide-rank-no {
  color: #dc2626;
}

.wide-rank-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.heat-bar {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #ffedd5;
}

.heat-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f97316, #dc2626);
}

.detail-hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: center;
  gap: 46px;
  padding: 96px max(24px, calc((100vw - 1240px) / 2 + 24px)) 70px;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 32px;
  background: linear-gradient(135deg, #fb923c, #dc2626);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fdba74;
}

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

.player-section {
  padding-top: 58px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  background: #111827;
  box-shadow: var(--shadow-soft);
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.video-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  font-weight: 900;
  font-size: 18px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.26), rgba(17, 24, 39, 0.76));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-start-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ea580c;
  background: #ffffff;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.35);
}

.video-shell.is-playing .video-start,
.video-shell.is-ready .video-start.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.detail-article,
.detail-side {
  padding: 28px;
  border: 1px solid #fed7aa;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.detail-article p {
  margin: 0 0 24px;
  color: #374151;
  line-height: 2;
  font-size: 16px;
}

.detail-side dl,
.detail-side div {
  margin: 0;
}

.detail-side dl {
  display: grid;
  gap: 12px;
}

.detail-side div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #ffedd5;
}

.detail-side dt {
  color: #9a3412;
  font-weight: 900;
}

.detail-side dd {
  margin: 0;
  color: #374151;
}

.related-grid {
  padding-bottom: 54px;
}

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

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 46px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
  gap: 32px;
}

.brand-footer .brand-text {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p {
  max-width: 420px;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-column h2 {
  margin: 0 0 14px;
  color: #fb923c;
  font-size: 18px;
}

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

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

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 14px;
}

[hidden],
.movie-card.is-hidden,
.wide-rank-row.is-hidden {
  display: none !important;
}

@media (min-width: 1080px) {
  .nav-link-sub {
    display: inline-flex;
  }
}

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

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

  .layout-with-rank,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

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

  .nav-toggle {
    display: inline-block;
  }

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

  .hero-slide {
    min-height: 760px;
    padding-top: 86px;
  }

  .hero-poster,
  .detail-poster {
    width: min(300px, 78vw);
    justify-self: start;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .category-large-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 620px) {
  .top-nav {
    height: 62px;
    padding: 0 16px;
  }

  .brand-text {
    font-size: 20px;
  }

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

  .hero-slide,
  .compact-hero,
  .detail-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 42px;
  }

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

  .card-body {
    padding: 13px;
  }

  .card-title {
    font-size: 15px;
  }

  .card-body p {
    min-height: 72px;
    font-size: 12px;
  }

  .section-wrap {
    padding: 48px 16px 0;
  }

  .detail-article,
  .detail-side {
    padding: 20px;
    border-radius: 22px;
  }
}
