:root {
  color-scheme: light;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #111827;
  --muted: #64748b;
  --soft: #f1f5f9;
  --line: #e5e7eb;
  --orange: #f97316;
  --red: #ef4444;
  --rose: #f43f5e;
  --blue: #2563eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red), var(--rose));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

.brand-name {
  font-size: 22px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ea580c, #dc2626);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

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

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

.header-search {
  width: 260px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
}

.header-search input,
.mobile-search input,
.big-search input,
.client-filter {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.header-search input {
  padding: 10px 4px 10px 16px;
}

.header-search button,
.mobile-search button,
.big-search button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  cursor: pointer;
  font-weight: 800;
}

.header-search button {
  align-self: stretch;
  padding: 0 16px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--soft);
  color: #334155;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.mobile-search {
  display: flex;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}

.mobile-search input {
  padding: 12px 16px;
}

.mobile-search button {
  padding: 0 18px;
}

.mobile-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mobile-links a {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 700;
}

main {
  min-height: 60vh;
}

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

.hero-stage {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.62fr);
  align-items: center;
  gap: 40px;
  padding: 92px max(32px, calc((100vw - 1180px) / 2)) 70px;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.68), rgba(17, 24, 39, 0.2)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-content {
  max-width: 760px;
  animation: rise 0.8s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

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

.hero-line {
  max-width: 680px;
  margin: 24px 0 10px;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
}

.hero-summary {
  max-width: 680px;
  margin: 0;
  color: #e2e8f0;
  font-size: 17px;
}

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

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 800;
}

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

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

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.34);
}

.primary-button.light {
  color: #ea580c;
  background: #fff;
}

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

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

.hero-poster {
  justify-self: end;
  width: min(420px, 100%);
  aspect-ratio: 3 / 4;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.hero-poster span,
.card-cover,
.compact-cover,
.rank-cover,
.detail-poster,
.category-tile,
.site-player {
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(249, 115, 22, 0.32)), var(--poster-image);
  background-size: cover;
  background-position: center;
}

.hero-poster span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 24px;
}

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

.hero-dot {
  width: 34px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 52px;
  background: #fff;
}

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

.soft-section {
  background: linear-gradient(180deg, #fff, #fff7ed);
}

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

.section-title span {
  display: inline-block;
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.section-title h2 {
  margin: 4px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-title a {
  color: var(--blue);
  font-weight: 900;
}

.inline-title {
  align-items: center;
  margin-bottom: 18px;
}

.category-strip {
  padding-bottom: 16px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-pill:hover {
  transform: translateY(-2px);
  background: #fed7aa;
}

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-cover::after,
.compact-cover::after,
.rank-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.28));
}

.play-chip,
.card-year {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.play-chip {
  left: 12px;
  top: 12px;
  background: rgba(249, 115, 22, 0.92);
}

.card-year {
  right: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.card-body {
  display: flex;
  min-height: 176px;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.card-body strong {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.3;
}

.card-body em,
.compact-card em,
.rank-info em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.card-desc {
  color: #475569;
  font-size: 14px;
}

.tag-row,
.detail-tags,
.genre-links,
.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row {
  margin-top: auto;
}

.tag-row span,
.detail-tags span,
.genre-links a,
.genre-links span,
.search-tags button {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #c2410c;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.wide-card {
  flex-direction: row;
}

.wide-card .card-cover {
  width: 42%;
  min-width: 190px;
  aspect-ratio: auto;
}

.wide-card .card-body {
  min-height: 160px;
  flex: 1;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 138px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.rank-index {
  font-size: 24px;
  font-weight: 950;
  color: #fb923c;
  text-align: center;
}

.rank-cover {
  position: relative;
  display: block;
  height: 86px;
  border-radius: 14px;
  overflow: hidden;
}

.rank-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-info strong {
  font-size: 18px;
}

.rank-info span {
  color: #475569;
  font-size: 14px;
}

.rank-badge {
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
  font-size: 13px;
}

.cta-band {
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red), var(--rose));
  box-shadow: 0 22px 55px rgba(249, 115, 22, 0.26);
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 38px);
}

.cta-band p {
  margin: 0;
  color: #fff7ed;
}

.page-hero {
  color: #fff;
  background: radial-gradient(circle at 12% 20%, rgba(249, 115, 22, 0.9), transparent 30%), linear-gradient(135deg, #111827, #7f1d1d 58%, #f97316);
}

.compact-hero {
  min-height: 310px;
  display: grid;
  align-items: center;
  padding: 76px max(32px, calc((100vw - 1180px) / 2));
}

.compact-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1;
  letter-spacing: -0.055em;
}

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

.filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.client-filter {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.filter-link {
  color: #fff;
  background: #0f172a;
}

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

.category-tile {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  padding: 22px;
  overflow: hidden;
  position: relative;
  border-radius: 24px;
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.category-tile::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.8));
}

.category-tile:hover {
  transform: translateY(-4px);
}

.category-tile span,
.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 1;
}

.category-tile span {
  color: #fed7aa;
  font-weight: 900;
}

.category-tile strong {
  font-size: 24px;
}

.category-tile em {
  color: #e2e8f0;
  font-style: normal;
  font-size: 14px;
}

.search-panel {
  padding-top: 42px;
}

.big-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
  padding: 12px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.big-search input {
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  background: #f8fafc;
}

.big-search button {
  border-radius: 18px;
}

.search-tags {
  margin: 22px 0 28px;
}

.search-tags button {
  border: 0;
  cursor: pointer;
}

.detail-hero {
  color: #fff;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.74), rgba(15, 23, 42, 0.38)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.detail-wrap {
  width: min(1180px, calc(100% - 32px));
  min-height: 470px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: center;
  gap: 38px;
  padding: 70px 0;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 12px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.38);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #fed7aa;
  font-size: 14px;
}

.detail-headline h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.detail-headline p {
  max-width: 800px;
  margin: 20px 0 0;
  color: #f8fafc;
  font-size: 20px;
  font-weight: 700;
}

.genre-links {
  margin-top: 20px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 26px;
}

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

.player-card,
.text-card,
.side-card {
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.player-card {
  padding: 12px;
}

.site-player {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  background-color: #0f172a;
}

.site-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050816;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.42);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

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

.site-player.is-playing .play-button {
  opacity: 0;
  pointer-events: none;
}

.text-card,
.side-card {
  padding: 24px;
}

.text-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.2;
}

.text-card p {
  margin: 0;
  color: #334155;
  font-size: 16px;
}

.detail-tags span {
  min-height: 32px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease;
}

.compact-card:hover {
  background: #ffedd5;
}

.compact-cover {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
}

.compact-card span:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.compact-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer {
  color: #cbd5e1;
  background: #111827;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(160px, 0.5fr));
  gap: 38px;
  padding: 48px 0;
}

.footer-logo .brand-name {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p {
  max-width: 520px;
  color: #94a3b8;
}

.footer-col {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-col h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
}

.footer-col a {
  color: #94a3b8;
}

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

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  text-align: center;
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding-top: 88px;
  }

  .hero-poster {
    display: none;
  }

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

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    order: 2;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

  .brand-name {
    font-size: 19px;
  }

  .hero-slider,
  .hero-stage {
    min-height: 590px;
  }

  .hero-slide {
    padding: 82px 20px 70px;
  }

  .hero-content h1,
  .detail-headline h1,
  .compact-hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-summary {
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px;
  }

  .primary-button,
  .ghost-button,
  .filter-link {
    min-height: 42px;
    padding: 0 16px;
  }

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

  .movie-grid,
  .movie-grid.two-col,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .wide-card {
    flex-direction: column;
  }

  .wide-card .card-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .rank-item {
    grid-template-columns: 44px 90px minmax(0, 1fr);
  }

  .rank-badge {
    display: none;
  }

  .rank-cover {
    height: 66px;
  }

  .cta-band,
  .filter-bar,
  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .big-search {
    grid-template-columns: 1fr;
  }

  .big-search button {
    min-height: 50px;
  }

  .detail-wrap {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 38px 0;
  }

  .detail-poster {
    width: min(240px, 80vw);
  }

  .detail-headline p {
    font-size: 17px;
  }

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

  .footer-inner {
    display: grid;
  }
}
