
:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-hover: rgba(30, 41, 59, 0.86);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius-lg: 24px;
  --radius: 16px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.container.narrow {
  width: min(860px, calc(100% - 32px));
  text-align: center;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  background: rgba(2, 6, 23, 0.94);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.24);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber), #f97316);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.22);
}

.brand-text {
  display: grid;
  gap: 0;
}

.brand-text strong {
  font-size: 18px;
  letter-spacing: 0.02em;
}

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

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

.nav-link {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--soft);
  font-size: 14px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(51, 65, 85, 0.58);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
}

.header-search input {
  width: 190px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 8px 8px 8px 12px;
}

.header-search button,
.mobile-search button {
  color: #fff;
  background: var(--amber);
  border-radius: 999px;
  padding: 8px 14px;
  transition: 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover {
  background: var(--amber-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.8);
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: #fff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 16px 18px;
  background: rgba(15, 23, 42, 0.96);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--soft);
}

.mobile-link:hover,
.mobile-link.active {
  color: #fff;
  background: rgba(51, 65, 85, 0.8);
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(2, 6, 23, 0.8);
  outline: 0;
}

.site-main {
  min-height: 70vh;
  padding-top: 68px;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.18), transparent 30%), var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transform: scale(1.02);
}

.hero-bg.image-missing,
.image-shell.image-missing {
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.28), transparent 32%),
    linear-gradient(135deg, #0f172a, #111827 52%, #020617);
}

.hero-gradient-right {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.16));
}

.hero-gradient-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg) 0%, transparent 55%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 680px) 320px;
  align-items: center;
  gap: 48px;
}

.hero-copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 28px;
  color: var(--soft);
  font-size: clamp(18px, 2.2vw, 22px);
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--amber);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-meta,
.detail-meta,
.card-meta,
.featured-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.hero-meta span:first-child,
.detail-meta span:first-child {
  background: var(--amber);
  color: #fff;
}

.hero-meta span,
.detail-meta span,
.featured-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--line);
}

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

.center-actions {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.22s ease;
}

.btn-primary {
  color: #fff;
  background: var(--amber);
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.28);
}

.btn-primary:hover {
  background: var(--amber-dark);
  transform: translateY(-1px) scale(1.02);
}

.btn-ghost {
  color: #fff;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.62);
}

.btn-ghost:hover {
  background: rgba(51, 65, 85, 0.72);
}

.hero-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-panel strong {
  display: block;
  color: var(--muted);
}

.hero-panel span {
  display: block;
  margin: 6px 0 10px;
  color: var(--amber);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.hero-panel p {
  margin: 0;
  color: var(--soft);
}

.content-section {
  padding: 70px 0;
  background: var(--bg);
}

.section-alt,
.category-preview:nth-of-type(even) {
  background: linear-gradient(180deg, var(--bg), #0b1120 50%, var(--bg-soft));
}

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

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.section-heading p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--amber);
  font-weight: 800;
}

.section-more:hover span {
  transform: translateX(3px);
}

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

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

.movie-card {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.48);
  transition: 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
  background: var(--bg-card-hover);
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.08);
  transform: translateY(-2px);
}

.card-link {
  display: grid;
  height: 100%;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

.image-shell {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #111827);
}

.image-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .image-shell img,
.featured-card:hover .image-shell img,
.ranking-card:hover .image-shell img {
  transform: scale(1.08);
}

.type-badge,
.duration-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.type-badge {
  top: 10px;
  left: 10px;
  color: #fff;
  background: rgba(245, 158, 11, 0.92);
}

.duration-badge {
  right: 10px;
  bottom: 10px;
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
}

.rank-badge {
  top: 10px;
  right: 10px;
  color: #fff;
  background: rgba(220, 38, 38, 0.9);
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--amber);
}

.card-body p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  gap: 8px;
  font-size: 12px;
}

.card-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 22px;
}

.featured-card {
  position: relative;
  grid-row: span 2;
  min-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

.featured-link,
.featured-image {
  display: block;
  height: 100%;
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent 65%);
}

.featured-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px;
}

.featured-content h3 {
  margin: 10px 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
}

.featured-content p {
  color: var(--soft);
}

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

.movie-card-horizontal .card-link,
.side-list .movie-card .card-link {
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: stretch;
}

.movie-card-horizontal .card-media,
.side-list .movie-card .card-media {
  height: 100%;
  aspect-ratio: auto;
  min-height: 126px;
}

.movie-card-horizontal .card-body p,
.side-list .movie-card .card-body p {
  min-height: auto;
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto 64px;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.55);
  transition: 0.2s ease;
}

.ranking-row:hover {
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(30, 41, 59, 0.75);
}

.ranking-number {
  color: var(--amber);
  font-weight: 900;
}

.ranking-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.ranking-info {
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  padding: 72px 0 44px;
  background:
    radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.18), transparent 28%),
    linear-gradient(180deg, #0f172a, var(--bg));
}

.compact-hero h1 {
  margin: 10px 0;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.08;
}

.compact-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--soft);
  font-size: 18px;
}

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

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

.filter-bar {
  margin-top: 24px;
}

.filter-bar input,
.search-page-form input {
  width: min(620px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  padding: 15px 18px;
  color: #fff;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.filter-bar input:focus,
.search-page-form input:focus,
.header-search input:focus,
.mobile-search input:focus {
  border-color: rgba(245, 158, 11, 0.58);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

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

.category-card a {
  display: block;
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.16), transparent 32%),
    rgba(15, 23, 42, 0.72);
  transition: 0.22s ease;
}

.category-card a:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.category-card h2 {
  margin: 10px 0 12px;
  font-size: 28px;
}

.category-card p,
.category-card small {
  color: var(--muted);
}

.category-card small {
  display: block;
  margin-top: 18px;
}

.narrow-ranking {
  width: min(960px, calc(100% - 32px));
}

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

.ranking-card a {
  display: grid;
  grid-template-columns: 64px 160px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.62);
  transition: 0.22s ease;
}

.ranking-card a:hover {
  border-color: rgba(245, 158, 11, 0.4);
  background: var(--bg-card-hover);
}

.ranking-number.large {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.12);
  font-size: 20px;
}

.ranking-card .image-shell {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
}

.ranking-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ranking-card p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.search-page-form {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.search-summary {
  margin-bottom: 22px;
  color: var(--soft);
}

.empty-state {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
  background: rgba(15, 23, 42, 0.5);
}

.detail-page {
  padding: 36px 0 76px;
  background: var(--bg);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.95fr);
  gap: 28px;
}

.detail-main,
.side-card,
.detail-info {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.detail-main {
  overflow: hidden;
}

.player-card {
  background: #000;
}

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

.player-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.92);
}

.player-toolbar span {
  color: var(--muted);
  font-size: 14px;
}

.detail-info {
  border: 0;
  border-radius: 0;
  padding: 28px;
  box-shadow: none;
  background: transparent;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
}

.detail-title-row h1 {
  margin: 8px 0 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
}

.copy-link {
  min-width: max-content;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(51, 65, 85, 0.72);
  transition: 0.2s ease;
}

.copy-link:hover {
  color: #fff;
  background: rgba(71, 85, 105, 0.92);
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 26px;
}

.tag-list span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(51, 65, 85, 0.55);
}

.text-block {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.text-block + .text-block {
  margin-top: 24px;
}

.text-block h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.text-block p {
  color: var(--soft);
  text-align: justify;
}

.lead-text {
  margin-bottom: 12px;
  color: #fff !important;
  font-size: 18px;
}

.review-block {
  padding: 22px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: var(--radius);
  background: rgba(245, 158, 11, 0.06);
}

.side-card {
  padding: 20px;
}

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

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

.side-list .movie-card {
  border-radius: 12px;
}

.side-list .movie-card .card-link {
  grid-template-columns: 116px minmax(0, 1fr);
}

.side-list .movie-card .card-media {
  min-height: 86px;
}

.side-list .movie-card .card-body {
  padding: 10px;
}

.side-list .movie-card .card-body h3 {
  font-size: 14px;
}

.side-list .movie-card .card-body p {
  display: none;
}

.side-list .type-badge,
.side-list .duration-badge {
  display: none;
}

.cta-section {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.cta-section h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 46px);
}

.cta-section p {
  margin: 0 auto;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg), #020617);
}

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

.footer-brand p,
.site-footer a,
.site-footer li {
  color: var(--muted);
}

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

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: var(--amber);
}

@media (max-width: 1120px) {
  .header-search {
    display: none;
  }

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

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

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
  }

  .hero-panel {
    max-width: 380px;
  }

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

  .featured-grid,
  .horizontal-grid,
  .category-grid,
  .detail-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .featured-card {
    min-height: 440px;
  }

  .ranking-card a {
    grid-template-columns: 48px 120px minmax(0, 1fr);
  }

  .ranking-card a > strong {
    grid-column: 3;
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: calc(100% - 24px);
  }

  .brand-text small {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 560px;
  }

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

  .hero-panel {
    display: none;
  }

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

  .section-heading {
    display: block;
  }

  .section-more {
    margin-top: 12px;
  }

  .movie-grid,
  .dense-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-row {
    grid-template-columns: 42px minmax(0, 1fr) 46px;
  }

  .ranking-info {
    display: none;
  }

  .ranking-card a {
    grid-template-columns: 44px 96px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-card h2 {
    font-size: 16px;
  }

  .ranking-card p {
    display: none;
  }

  .detail-info {
    padding: 20px;
  }

  .detail-title-row {
    display: block;
  }

  .copy-link {
    margin-top: 14px;
  }

  .player-toolbar,
  .search-page-form {
    flex-direction: column;
    align-items: stretch;
  }
}
