* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-soft: #141414;
  --surface: #1f1f1f;
  --surface-strong: #292929;
  --border: #333333;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --muted-strong: #737373;
  --accent: #f97316;
  --accent-strong: #ea580c;
  --accent-soft: rgba(249, 115, 22, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius-lg: 28px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 30%), var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 20, 20, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #fb923c);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.32);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.logo-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  color: #d4d4d4;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fb923c;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--border);
  background: rgba(20, 20, 20, 0.98);
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  color: #d4d4d4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #080808;
}

.hero-track {
  position: relative;
  min-height: 600px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.01);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.1) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.98) 0%, rgba(10, 10, 10, 0.76) 44%, rgba(10, 10, 10, 0.3) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 24%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 64px;
  min-height: 600px;
  padding: 76px 0 88px;
}

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

.hero-kicker,
.page-hero span,
.section-heading span,
.cta-panel span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fb923c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 640px;
  margin: 24px 0 0;
  color: #d4d4d4;
  font-size: 19px;
  line-height: 1.8;
}

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

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

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

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.26);
}

.button-primary:hover {
  background: #fb923c;
}

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

.hero-cover {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.hero-cover span {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.35);
}

.hero-nav-row {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  margin-top: -54px;
  padding-bottom: 40px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.3);
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--accent);
}

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

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(31, 31, 31, 0.72);
  color: var(--text);
  text-align: left;
  backdrop-filter: blur(12px);
}

.hero-thumb.is-active {
  border-color: rgba(249, 115, 22, 0.72);
  background: rgba(249, 115, 22, 0.14);
}

.hero-thumb img {
  width: 42px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
}

.hero-thumb span {
  overflow: hidden;
  color: #e5e5e5;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

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

.section-heading a {
  color: #fb923c;
  font-weight: 800;
}

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

.compact-grid {
  gap: 18px;
}

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.58);
  background: var(--surface-strong);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #262626, #111111);
}

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

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

.play-dot,
.rank-label {
  position: absolute;
  z-index: 2;
}

.play-dot {
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.94);
  color: #ffffff;
  font-size: 13px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: translateY(0);
}

.rank-label {
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
  color: #a3a3a3;
  font-size: 12px;
}

.movie-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #fb923c;
}

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #fed7aa;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card,
.category-overview-card {
  display: block;
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(31, 31, 31, 0.96), rgba(20, 20, 20, 0.96));
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.56);
}

.category-card span,
.category-overview-card span {
  color: #fb923c;
  font-weight: 900;
}

.category-card h3,
.category-overview-card h2 {
  margin: 14px 0 10px;
  font-size: 24px;
}

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

.category-card div,
.mini-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-card div a,
.mini-link-row a {
  color: #d4d4d4;
  font-size: 13px;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.45fr);
  gap: 22px;
}

.rank-list,
.ranking-grid {
  display: grid;
  gap: 14px;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
}

.movie-card-horizontal .movie-poster img {
  height: 100%;
  min-height: 168px;
}

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

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 64px;
  padding: 34px;
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.17), rgba(31, 31, 31, 0.96));
}

.cta-panel h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(25px, 4vw, 40px);
  letter-spacing: -0.04em;
}

.cta-panel p {
  max-width: 760px;
  margin: 14px 0 0;
  color: #d4d4d4;
  line-height: 1.8;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.22), transparent 28%), linear-gradient(135deg, #181818, #0a0a0a);
}

.slim-hero .container {
  padding: 76px 0 64px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 66px);
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: #d4d4d4;
  font-size: 18px;
  line-height: 1.8;
}

.page-filter,
.search-panel {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.page-filter label,
.search-panel label {
  display: grid;
  gap: 8px;
  color: #d4d4d4;
  font-weight: 800;
}

.page-filter input,
.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #111111;
  color: var(--text);
  outline: none;
  padding: 0 14px;
}

.page-filter input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(249, 115, 22, 0.75);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr)) auto;
  align-items: end;
  gap: 14px;
}

.search-status {
  min-height: 28px;
  margin-bottom: 22px;
  color: var(--muted);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  display: grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: #d4d4d4;
  font-weight: 800;
}

.pagination a:hover,
.pagination .is-current {
  border-color: rgba(249, 115, 22, 0.7);
  background: var(--accent);
  color: #ffffff;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background: #090909;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  filter: blur(12px);
  transform: scale(1.08);
}

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

.detail-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.98), rgba(10, 10, 10, 0.72)), linear-gradient(0deg, #0a0a0a, transparent 36%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 34px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: #a3a3a3;
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 38px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

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

.detail-meta span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #e5e5e5;
  font-size: 13px;
  font-weight: 800;
}

.detail-copy p {
  max-width: 850px;
  color: #d4d4d4;
  font-size: 18px;
  line-height: 1.8;
}

.player-section {
  padding: 42px 0 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--shadow);
}

.main-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.78));
  color: #ffffff;
  text-align: center;
}

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

.player-play-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 20px 60px rgba(249, 115, 22, 0.38);
}

.player-overlay strong {
  max-width: 80%;
  font-size: clamp(22px, 4vw, 40px);
}

.player-overlay small {
  color: #d4d4d4;
  font-size: 15px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  padding: 22px 0 48px;
}

.content-card,
.info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
}

.content-stack .content-card + .content-card {
  margin-top: 22px;
}

.content-card h2,
.info-card h2 {
  margin: 0 0 15px;
  font-size: 25px;
}

.content-card p {
  margin: 0;
  color: #d4d4d4;
  font-size: 16px;
  line-height: 1.95;
}

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

.info-card div {
  display: grid;
  gap: 5px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.info-card dt {
  color: var(--muted-strong);
  font-size: 13px;
}

.info-card dd {
  margin: 0;
  color: #f5f5f5;
  line-height: 1.6;
}

.info-card a {
  color: #fb923c;
}

.site-footer {
  margin-top: 36px;
  border-top: 1px solid var(--border);
  background: #111111;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding: 46px 0;
}

.footer-brand {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

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

.footer-links a {
  color: var(--muted);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
  font-size: 13px;
}

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

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

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

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

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

  .menu-button {
    display: inline-block;
  }

  .hero {
    min-height: auto;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 760px;
    padding: 52px 0 120px;
  }

  .hero-cover {
    max-width: 260px;
  }

  .hero-nav-row {
    display: block;
    margin-top: -98px;
  }

  .hero-thumbs {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .hero-thumb:not(.is-active) {
    display: none;
  }

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

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

  .detail-layout {
    align-items: start;
  }

  .detail-poster {
    max-width: 240px;
  }

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

  .footer-bottom,
  .cta-panel {
    display: grid;
  }
}

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

  .logo-text small {
    display: none;
  }

  .hero-track {
    min-height: 700px;
  }

  .hero-content {
    min-height: 700px;
    padding-top: 42px;
  }

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

  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .search-panel {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .search-panel label:first-child,
  .search-panel .button {
    grid-column: 1 / -1;
  }

  .movie-card-horizontal {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .movie-card-horizontal .movie-poster img {
    min-height: 138px;
  }

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

  .movie-card p {
    display: none;
  }

  .detail-content {
    padding-top: 10px;
  }

  .content-card,
  .info-card,
  .cta-panel {
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .movie-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .cta-actions {
    display: grid;
  }
}
