:root {
  --accent: #f97316;
  --accent-dark: #ea580c;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --paper: #ffffff;
  --bg: #f8fafc;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  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;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
  font-size: 14px;
}

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

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 650;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--accent-dark);
  background: #ffedd5;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  color: #374151;
  background: #f3f4f6;
  border-radius: 12px;
  cursor: pointer;
  font-size: 22px;
}

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

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

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

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

.hero-slide {
  position: relative;
  display: none;
  min-height: 620px;
  padding: 96px max(32px, calc((100vw - 1180px) / 2)) 84px;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
  gap: 42px;
  align-items: center;
  color: #fff;
}

.hero-slide.is-active {
  display: grid;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.48)), var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: saturate(1.04);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(0deg, var(--bg), rgba(248, 250, 252, 0));
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 12px;
  color: #fed7aa;
  background: rgba(255, 237, 213, 0.13);
  border: 1px solid rgba(254, 215, 170, 0.25);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 720px;
  margin: 22px 0;
  color: #e5e7eb;
  font-size: 18px;
}

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

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

.hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.primary-button,
.ghost-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, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.32);
}

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

.primary-button:hover,
.ghost-button:hover,
.category-tile:hover,
.movie-card:hover {
  transform: translateY(-3px);
}

.hero-poster {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  aspect-ratio: 3 / 4;
}

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

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

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

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

.quick-entry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: -28px;
  position: relative;
  z-index: 10;
}

.quick-entry a {
  padding: 20px;
  color: #111827;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: 22px;
  box-shadow: var(--shadow);
  font-weight: 800;
  text-align: center;
}

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

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3.6vw, 34px);
  letter-spacing: -0.04em;
}

.section-heading a {
  color: var(--accent-dark);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.13);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

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

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

.rating-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 4px 9px;
  color: #fff;
  background: rgba(234, 88, 12, 0.95);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

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

.movie-card h2,
.rank-row h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.movie-card h2 a:hover,
.rank-row h2 a:hover {
  color: var(--accent-dark);
}

.meta-line,
.card-desc,
.rank-row p {
  color: var(--muted);
  font-size: 14px;
}

.card-desc {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  color: #9a3412;
  background: #ffedd5;
}

.wide-band {
  padding: 54px 0;
  background: #fff;
}

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 24px;
  color: #fff;
  background: #111827;
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(234, 88, 12, 0.48)), var(--tile-image);
  background-position: center;
  background-size: cover;
  transition: transform 0.35s ease;
}

.category-tile:hover::before {
  transform: scale(1.05);
}

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

.category-tile span {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 850;
}

.category-tile p {
  margin: 0;
  color: #f3f4f6;
}

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.rank-card,
.story-card,
.player-card,
.search-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.rank-card {
  padding: 22px;
  position: sticky;
  top: 92px;
}

.section-heading.tight {
  margin-bottom: 12px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: #fff7ed;
  border-radius: 18px;
}

.rank-page-list .rank-row {
  grid-template-columns: auto 76px minmax(0, 1fr) auto;
  background: #fff;
  border: 1px solid var(--line);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-weight: 850;
}

.rank-cover {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  background: #111827;
}

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

.rank-row strong {
  color: var(--accent-dark);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0;
  color: #fff;
  background: #111827;
}

.page-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62)), var(--page-image, var(--detail-image));
  background-position: center;
  background-size: cover;
}

.page-hero .site-container,
.detail-layout {
  position: relative;
  z-index: 1;
}

.page-hero p {
  max-width: 760px;
  color: #e5e7eb;
  font-size: 18px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(150px, 0.45fr) minmax(150px, 0.55fr) auto;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
}

.search-panel label {
  display: grid;
  gap: 6px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  outline: none;
  background: #fff;
}

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

.search-panel button {
  align-self: end;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  color: #fff;
  background: #111827;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
}

.detail-hero {
  padding: 64px 0;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.38);
}

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

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

.detail-one-line {
  max-width: 860px;
  color: #e5e7eb;
  font-size: 18px;
}

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

.detail-meta span {
  color: #111827;
  background: #fff;
}

.detail-tags {
  margin-bottom: 26px;
}

.player-card {
  overflow: hidden;
  padding: 18px;
}

.player-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.player-topline h2 {
  margin: 0;
  font-size: 24px;
}

.player-topline span {
  color: var(--accent-dark);
  font-weight: 850;
}

.video-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
  border-radius: 20px;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding-left: 4px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(234, 88, 12, 0.38);
  font-size: 26px;
}

.play-overlay strong {
  font-size: 20px;
}

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

.story-card {
  padding: 26px;
}

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

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

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

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

.footer-brand {
  color: #fff;
}

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

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

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

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

.footer-bottom {
  padding: 20px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

[data-search-card].is-hidden {
  display: none;
}

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

  .two-columns,
  .content-block {
    grid-template-columns: 1fr;
  }

  .rank-card {
    position: static;
  }
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-slide {
    min-height: 700px;
    grid-template-columns: 1fr;
    padding: 82px 24px 86px;
  }

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

  .quick-entry,
  .featured-grid,
  .movie-grid,
  .movie-grid.small-grid,
  .category-grid,
  .category-grid.large,
  .footer-grid,
  .detail-layout,
  .search-panel {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

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

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

  .quick-entry,
  .featured-grid,
  .movie-grid,
  .movie-grid.small-grid,
  .category-grid,
  .category-grid.large,
  .footer-grid,
  .detail-layout,
  .content-block,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: 220px;
  }

  .rank-page-list .rank-row,
  .rank-row {
    grid-template-columns: auto 56px minmax(0, 1fr);
  }

  .rank-row strong {
    grid-column: 3;
  }
}
