:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(245, 158, 11, 0.22);
  --amber: #d97706;
  --amber-strong: #b45309;
  --blue: #2563eb;
  --cyan: #0891b2;
  --red: #dc2626;
  --purple: #9333ea;
  --shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(251, 191, 36, 0.18), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(59, 130, 246, 0.18), transparent 28%),
    linear-gradient(180deg, #f9fafb 0%, #eff6ff 46%, #fff7ed 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.32), transparent 70%);
  z-index: -1;
}

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

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

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #2563eb);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.22);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #d97706, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.desktop-nav a {
  color: #374151;
  font-weight: 700;
  transition: color 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--amber);
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.nav-search input,
.mobile-panel input,
.search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.nav-search input {
  width: 170px;
  padding: 8px 4px 8px 12px;
}

.nav-search button,
.mobile-panel button,
.search-box button,
.primary-btn,
.secondary-btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.nav-search button,
.mobile-panel button,
.search-box button,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, #d97706, #2563eb);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
}

.nav-search button {
  padding: 8px 15px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

.secondary-btn {
  color: #1f2937;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.primary-btn:hover,
.secondary-btn:hover,
.nav-search button:hover,
.search-box button:hover {
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--text);
  background: rgba(245, 158, 11, 0.12);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 20px 18px;
  background: rgba(255, 255, 255, 0.92);
}

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

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  font-weight: 800;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
}

.mobile-panel input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
}

.mobile-panel button {
  padding: 10px 16px;
}

main,
.page-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  margin: 28px auto 54px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  transform: scale(1.02);
  background-position: center;
  background-size: cover;
  transition: opacity 0.65s ease, transform 0.85s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 22%, rgba(37, 99, 235, 0.36), transparent 34%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.62) 45%, rgba(15, 23, 42, 0.22) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.82), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  padding: 56px;
  color: #ffffff;
}

.eyebrow,
.page-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #78350f;
  background: rgba(251, 191, 36, 0.92);
  font-size: 14px;
  font-weight: 900;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-content p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-meta span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

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

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
  transition: background 0.25s ease, opacity 0.25s ease;
}

.hero-nav:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.section {
  margin-bottom: 58px;
}

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

.section-title,
.page-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  font-weight: 950;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #dc2626, #d97706, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-desc,
.page-desc {
  margin: 8px 0 0;
  max-width: 740px;
  color: var(--muted);
  line-height: 1.75;
}

.text-link {
  color: var(--amber);
  font-weight: 900;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 26px 58px rgba(15, 23, 42, 0.16);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(251, 191, 36, 0.45), transparent 32%),
    linear-gradient(135deg, #1e293b, #0f172a);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.74), transparent 52%);
}

.poster-year,
.poster-play {
  position: absolute;
  z-index: 2;
}

.poster-year {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #78350f;
  background: rgba(251, 191, 36, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #2563eb);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

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

.movie-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.28;
  font-weight: 950;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span,
.category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #92400e;
  background: rgba(251, 191, 36, 0.18);
  font-size: 12px;
  font-weight: 850;
}

.category-chip {
  min-height: 36px;
  color: #1e3a8a;
  background: rgba(219, 234, 254, 0.88);
}

.feature-card {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 0;
}

.feature-card .poster-frame {
  aspect-ratio: auto;
  min-height: 100%;
}

.feature-card .movie-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.rank-panel,
.callout,
.page-hero,
.player-panel,
.detail-panel,
.category-panel {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.rank-panel {
  padding: 26px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  transition: transform 0.22s ease, background 0.22s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: #ffffff;
}

.rank-no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  font-weight: 950;
}

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

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

.callout {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 42px;
  text-align: center;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.9), rgba(219, 234, 254, 0.88), rgba(243, 232, 255, 0.74));
}

.callout h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 950;
}

.callout p {
  margin: 0 auto 24px;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
}

.page-hero {
  margin: 28px 0 36px;
  padding: 42px;
  background:
    radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 251, 235, 0.82));
}

.category-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.category-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.category-panel {
  padding: 26px;
}

.category-panel h2 {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 950;
}

.catalog-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

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

.page-link {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 14px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(217, 119, 6, 0.18);
}

.page-link.is-active,
.page-link:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #2563eb);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(330px, 0.6fr);
  gap: 28px;
  margin: 28px 0 34px;
}

.player-panel {
  overflow: hidden;
  background: #020617;
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
  outline: 0;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-position: center;
  background-size: cover;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.22), transparent 40%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.48));
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  font-size: 34px;
  background: linear-gradient(135deg, #f59e0b, #2563eb);
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.36);
}

.player-status {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.detail-panel {
  padding: 28px;
}

.detail-panel h1 {
  margin: 10px 0 16px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #1e3a8a;
  background: rgba(219, 234, 254, 0.86);
  font-weight: 850;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.article-panel {
  padding: 30px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.article-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 950;
}

.article-panel p {
  margin: 0 0 20px;
  color: #374151;
  line-height: 1.9;
}

.side-panel {
  align-self: start;
  position: sticky;
  top: 94px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.2s ease, background 0.2s ease;
}

.related-card:hover {
  transform: translateX(4px);
  background: #ffffff;
}

.related-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

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

.related-card strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.35;
}

.related-card span {
  color: var(--muted);
  font-size: 13px;
}

.search-box {
  display: flex;
  max-width: 760px;
  margin-top: 24px;
  padding: 7px;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.search-box input {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
}

.search-box button {
  padding: 12px 24px;
}

.empty-state {
  padding: 52px;
  border-radius: var(--radius-xl);
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

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

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 36px;
}

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

.site-footer p {
  max-width: 420px;
  margin: 0;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer a {
  display: block;
  margin: 9px 0;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #f59e0b;
}

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

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

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

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

  .detail-hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 12px 16px;
  }

  main,
  .page-main {
    padding: 18px 14px 54px;
  }

  .hero-carousel {
    min-height: 520px;
    margin-top: 18px;
    border-radius: 24px;
  }

  .hero-content {
    padding: 34px 24px 68px;
  }

  .hero-nav {
    display: none;
  }

  .section-head,
  .catalog-topline {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .feature-card {
    grid-template-columns: 1fr;
  }

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

  .rank-info {
    grid-column: 2;
  }

  .page-hero,
  .article-panel,
  .detail-panel,
  .rank-panel,
  .category-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .brand-name {
    font-size: 17px;
  }

  .brand-sub {
    display: none;
  }

  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .movie-card p {
    min-height: auto;
  }

  .search-box {
    border-radius: 22px;
    flex-direction: column;
  }
}
