:root {
  --orange: #ea580c;
  --orange-deep: #c2410c;
  --red: #dc2626;
  --gold: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --line: #fed7aa;
  --paper: #ffffff;
  --soft: #fff7ed;
  --shadow: 0 22px 55px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.header-inner,
.footer-grid,
.content-section,
.search-band,
.detail-page,
.page-hero .inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #dc2626);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

.brand-name {
  font-size: 20px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #374151;
  font-weight: 650;
}

.desktop-nav a {
  position: relative;
  padding: 23px 0;
  transition: color 0.2s ease;
}

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

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

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

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #374151;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  background: #fff;
  border-top: 1px solid #f3f4f6;
}

.mobile-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
}

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

main {
  padding-top: 68px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(124, 45, 18, 0.84) 48%, rgba(17, 24, 39, 0.48) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  filter: saturate(1.1);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 54px;
  padding: 56px 0;
}

.hero-copy {
  color: #fff;
}

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

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  max-width: 900px;
}

.hero-copy h2 {
  margin: 0 0 14px;
  color: #ffedd5;
  font-size: clamp(24px, 3vw, 40px);
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 24px;
  color: #fff7ed;
  font-size: 18px;
  line-height: 1.8;
}

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

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

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

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

.primary-button,
.search-band button {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #fb923c, #dc2626);
  box-shadow: 0 18px 28px rgba(220, 38, 38, 0.28);
}

.primary-button:hover,
.search-band button:hover,
.section-more:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0) translateY(-6px);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

.hero-dots button {
  width: 42px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #fff;
}

.search-band {
  margin-top: -42px;
  position: relative;
  z-index: 4;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.search-band form {
  flex: 1;
}

.search-band input,
.filter-panel input {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  color: #111827;
  background: #fff7ed;
  outline: none;
}

.search-band input:focus,
.filter-panel input:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.18);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--orange);
  font-weight: 800;
}

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

.soft-panel {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, #fff7ed, #ffffff);
}

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

.section-heading > div {
  min-width: 0;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 16px;
  background: #ffedd5;
}

.section-more,
.text-link {
  color: var(--orange);
  background: #fff7ed;
  box-shadow: 0 10px 22px rgba(234, 88, 12, 0.08);
}

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

.category-tile,
.category-card-large,
.filter-panel,
.text-card,
.detail-title-card,
.detail-poster-card,
.player-card {
  border: 1px solid #ffedd5;
  background: #fff;
  box-shadow: var(--shadow);
}

.category-tile {
  min-height: 152px;
  padding: 24px;
  border-radius: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.small-card:hover,
.category-card-large:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 62px rgba(17, 24, 39, 0.16);
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 15px 36px rgba(15, 23, 42, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card[hidden] {
  display: none;
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.48));
}

.poster-category,
.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(234, 88, 12, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: auto;
  right: 12px;
  background: rgba(17, 24, 39, 0.82);
}

.movie-info {
  padding: 18px;
}

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

.movie-info h3 a:hover {
  color: var(--orange);
}

.movie-line {
  margin: 0 0 14px;
  color: #4b5563;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 12px;
}

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

.tag-row span,
.detail-tags span {
  color: #c2410c;
  background: #ffedd5;
}

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

.small-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.small-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.small-card strong,
.small-card span:not(.small-rank) {
  display: block;
  padding: 0 14px;
}

.small-card strong {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.4;
}

.small-card span:not(.small-rank) {
  padding-bottom: 14px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.small-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  font-weight: 900;
}

.page-hero {
  color: #fff;
  background: linear-gradient(135deg, #ea580c, #dc2626 58%, #7f1d1d);
}

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

.page-hero > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.compact-hero h1 {
  max-width: 840px;
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.compact-hero p:last-child {
  max-width: 760px;
  margin: 0;
  color: #ffedd5;
  line-height: 1.8;
  font-size: 18px;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 22px;
  border-radius: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
}

.category-card-large h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.category-card-large p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  flex-direction: column;
  align-items: stretch;
}

.filter-chips button {
  border: 0;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 15px;
  cursor: pointer;
  color: #374151;
  background: #f3f4f6;
  font-weight: 800;
}

.filter-chips button.is-active,
.filter-chips button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.breadcrumb {
  margin: 34px 0 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

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

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

.detail-poster-card,
.detail-title-card,
.player-card,
.text-card {
  border-radius: 26px;
  overflow: hidden;
}

.detail-poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-facts {
  padding: 20px;
}

.detail-facts p {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid #ffedd5;
}

.detail-facts p:last-child {
  border-bottom: 0;
}

.detail-facts span {
  color: var(--muted);
}

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

.detail-title-card,
.text-card {
  padding: 26px;
}

.detail-title-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.lead-text {
  margin: 0 0 18px;
  color: #374151;
  font-size: 18px;
  line-height: 1.8;
}

.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.player-head h2 {
  margin: 0;
  font-size: 22px;
}

.player-head span {
  color: #ffedd5;
  font-weight: 700;
}

.player-frame {
  position: relative;
  background: #020617;
}

.player-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(234, 88, 12, 0.92);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 2;
}

.player-start span {
  margin-left: 6px;
  font-size: 38px;
  line-height: 1;
}

.player-start:hover {
  transform: scale(1.06);
}

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

.player-message {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  color: #fff;
  background: rgba(17, 24, 39, 0.78);
  text-align: center;
}

.text-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.text-card h2:not(:first-child) {
  margin-top: 26px;
}

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

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

.site-footer {
  margin-top: 40px;
  padding: 52px 0 28px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 52%, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  color: #fff;
  font-size: 20px;
}

.site-footer p {
  color: #9ca3af;
  line-height: 1.8;
}

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

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: #fdba74;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

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

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

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }
}

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

  .menu-button {
    display: block;
  }

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

  .brand-name {
    max-width: 62vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-carousel,
  .hero-content {
    min-height: 620px;
  }

  .search-band {
    flex-direction: column;
    align-items: stretch;
  }

  .search-band form {
    flex-direction: column;
  }

  .category-grid,
  .category-list-grid,
  .movie-grid,
  .dense-grid,
  .small-grid,
  .footer-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

  .category-cover-stack {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .player-start {
    width: 74px;
    height: 74px;
  }

  .player-start span {
    font-size: 30px;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .footer-grid,
  .content-section,
  .search-band,
  .detail-page,
  .page-hero > div,
  .hero-content {
    width: min(100% - 24px, 1180px);
  }

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

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

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

  .compact-hero {
    padding: 58px 0 50px;
  }
}
