* {
  box-sizing: border-box;
}

:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #111827;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --white: #ffffff;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #dc2626;
  --blue: #3b82f6;
  --panel: rgba(30, 41, 59, 0.62);
  --panel-strong: rgba(15, 23, 42, 0.82);
  --border: rgba(148, 163, 184, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-300);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.16), transparent 32rem),
    linear-gradient(180deg, var(--slate-900), var(--slate-800));
}

body.no-scroll {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(14px);
}

.site-nav {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.32);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08);
}

.brand-text,
.footer-logo span:last-child {
  font-size: 22px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fb923c, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-nav-link {
  border-radius: 12px;
  color: var(--slate-300);
  transition: all 0.22s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--white);
  background: var(--orange);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  display: none;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.9);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid rgba(51, 65, 85, 0.7);
}

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

.mobile-nav-link {
  padding: 12px 14px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.16)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.16));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 84px;
  max-width: 1180px;
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 18px;
  color: var(--white);
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 22px;
  color: var(--slate-300);
  font-size: 18px;
  line-height: 1.75;
}

.hero-kicker,
.page-hero span,
.section-heading span {
  display: inline-flex;
  width: max-content;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange);
  font-size: 14px;
  font-weight: 700;
}

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

.hero-meta span,
.detail-meta span,
.hero-tags span,
.tag-row span,
.category-chips a {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  color: var(--white);
  background: rgba(30, 41, 59, 0.78);
}

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  font-size: 14px;
}

.hero-tags {
  margin: 18px 0 0;
}

.hero-tags span,
.tag-row span {
  padding: 5px 10px;
  font-size: 12px;
}

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

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

.primary-button {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.28);
}

.primary-button:hover {
  background: var(--orange-dark);
  transform: translateY(-2px) scale(1.02);
}

.ghost-button {
  border: 1px solid var(--border);
  color: var(--white);
  background: rgba(15, 23, 42, 0.68);
}

.ghost-button:hover {
  border-color: rgba(249, 115, 22, 0.72);
  color: #fed7aa;
}

.ghost-button.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.5);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.22s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 18px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
}

.hero-dot.active {
  width: 38px;
  background: var(--orange);
}

.search-band,
.content-section,
.page-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.search-band {
  margin-top: -44px;
  position: relative;
  z-index: 6;
}

.search-panel,
.panel-block,
.category-overview-card,
.search-page-panel {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  padding: 28px;
}

.search-panel h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-article h2,
.category-overview-head h2 {
  margin: 0;
  color: var(--white);
}

.search-panel h2 {
  font-size: clamp(24px, 3vw, 36px);
}

.search-panel p,
.page-hero p,
.category-overview-head p,
.footer-brand p {
  color: var(--slate-400);
  line-height: 1.7;
}

.search-box {
  align-self: center;
  display: grid;
  gap: 8px;
}

.search-box span {
  color: #fdba74;
  font-size: 13px;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  outline: none;
  color: var(--white);
  background: rgba(15, 23, 42, 0.92);
  padding: 0 16px;
  font-size: 16px;
}

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

.category-chips {
  grid-column: 1 / -1;
}

.category-chips a {
  padding: 8px 12px;
  color: var(--slate-300);
}

.category-chips a:hover {
  color: var(--white);
  background: var(--orange);
}

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

.section-heading,
.category-overview-head,
.list-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin-top: 10px;
  font-size: clamp(26px, 3vw, 38px);
}

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

.section-heading.compact {
  align-items: center;
}

.section-heading.compact h2 {
  font-size: 24px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.52);
  transition: transform 0.26s ease, border 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
  border-color: rgba(249, 115, 22, 0.7);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  transform: translateY(-5px);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(51, 65, 85, 0.9);
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 65%);
  transition: opacity 0.24s ease;
}

.movie-card:hover .poster-wrap::after {
  opacity: 1;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  opacity: 0;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange);
  font-size: 12px;
  font-weight: 800;
  transform: translateY(6px);
  transition: all 0.22s ease;
}

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

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

.movie-title {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-title:hover {
  color: #fdba74;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0;
  color: var(--slate-400);
  font-size: 12px;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 58px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--slate-400);
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tag-row {
  gap: 6px;
}

.tag-row span {
  color: var(--slate-300);
  background: rgba(15, 23, 42, 0.62);
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.panel-block {
  padding: 24px;
}

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

.rank-list.wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rank-item {
  display: grid;
  grid-template-columns: auto 54px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.54);
  transition: background 0.22s ease, transform 0.22s ease;
}

.rank-item:hover {
  background: rgba(249, 115, 22, 0.16);
  transform: translateX(3px);
}

.rank-number {
  width: 32px;
  color: #fb923c;
  font-weight: 900;
}

.rank-item img {
  width: 54px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-title {
  color: var(--white);
  font-weight: 800;
}

.rank-meta {
  color: var(--slate-400);
  font-size: 13px;
}

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

.category-card {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(59, 130, 246, 0.11));
  transition: all 0.22s ease;
}

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

.category-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 18px;
}

.category-card span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-400);
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.page-hero {
  padding: 46px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 70% 20%, rgba(249, 115, 22, 0.2), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.72));
  box-shadow: var(--shadow);
}

.page-hero.slim {
  min-height: 240px;
}

.page-hero h1 {
  margin-top: 16px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  font-size: 17px;
}

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

.category-overview-card {
  padding: 24px;
  transition: transform 0.22s ease, border 0.22s ease;
}

.category-overview-head {
  align-items: start;
}

.overview-preview {
  display: grid;
  gap: 10px;
}

.list-toolbar {
  align-items: center;
}

.search-box.inline {
  width: min(520px, 100%);
}

.search-box.full {
  width: 100%;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--slate-400);
  font-size: 14px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.14), transparent 30rem),
    rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
}

.detail-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.detail-info h1 {
  margin-top: 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 760px;
  color: var(--slate-300);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  margin: 0 0 14px;
}

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

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

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-button {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 90px;
  height: 90px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(249, 115, 22, 0.94);
  box-shadow: 0 20px 50px rgba(249, 115, 22, 0.35);
  cursor: pointer;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.play-button span {
  display: block;
  margin-left: 6px;
  font-size: 38px;
}

.play-button:hover {
  transform: scale(1.08);
}

.play-button.is-hidden {
  opacity: 0;
  pointer-events: none;
}

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

.detail-article {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
}

.detail-article h2 {
  margin-top: 0;
  font-size: 26px;
}

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

.detail-article p {
  color: var(--slate-300);
  font-size: 16px;
  line-height: 1.9;
}

.search-page-panel {
  padding: 28px;
}

.search-page-panel .movie-grid {
  margin-top: 28px;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid rgba(30, 41, 59, 0.95);
  background: rgba(15, 23, 42, 0.92);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  margin-top: 16px;
}

.footer-column h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 18px;
}

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

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

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

.movie-card.is-hidden {
  display: none;
}

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

  .detail-hero {
    grid-template-columns: 260px 1fr;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero {
    height: auto;
    min-height: 640px;
  }

  .hero-content {
    padding-bottom: 96px;
  }

  .hero-arrow {
    display: none;
  }

  .search-panel,
  .two-column-section,
  .category-overview-grid,
  .detail-hero,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .category-chips {
    grid-column: auto;
  }

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

  .rank-list.wide {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .site-nav,
  .mobile-nav,
  .search-band,
  .content-section,
  .page-main,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

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

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

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

  .search-panel,
  .panel-block,
  .category-overview-card,
  .detail-hero,
  .detail-article,
  .page-hero,
  .search-page-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .section-heading,
  .category-overview-head,
  .list-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-item {
    grid-template-columns: auto 48px 1fr;
  }

  .rank-item .rank-meta {
    grid-column: 3;
  }

  .play-button {
    width: 72px;
    height: 72px;
  }

  .play-button span {
    font-size: 30px;
  }
}
