:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --light: #ffffff;
  --line: rgba(148, 163, 184, 0.25);
  --amber: #f59e0b;
  --amber-deep: #d97706;
  --rose: #e11d48;
  --cyan: #06b6d4;
  --radius: 24px;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 55%, #f8fafc 100%);
  min-height: 100vh;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
  max-width: 1240px;
  height: 76px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--light);
  min-width: 210px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #1f2937;
  background: linear-gradient(135deg, #fbbf24, #fb7185);
  box-shadow: 0 16px 35px rgba(245, 158, 11, 0.35);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(8deg) scale(1.06);
}

.brand-text {
  display: grid;
  gap: 2px;
}

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

.brand-text small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

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

.main-nav a {
  color: rgba(255, 255, 255, 0.82);
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 280px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.header-search input,
.mobile-panel input,
.local-search input {
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  font: inherit;
}

.header-search input {
  color: #fff;
  background: transparent;
  padding: 8px 10px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.header-search button,
.mobile-panel button,
.local-search button,
.hero-button,
.section-action,
.play-overlay button,
.detail-action {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.header-search button {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #fb7185);
  color: #fff;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: #fff;
}

.mobile-panel {
  display: none;
  padding: 0 22px 20px;
  background: rgba(15, 23, 42, 0.96);
}

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

.mobile-panel a,
.mobile-panel .mobile-logo {
  color: #fff;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-panel .mobile-logo {
  font-weight: 800;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.34), rgba(251, 113, 133, 0.22));
}

.mobile-panel form {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
}

.mobile-panel input {
  padding: 8px 10px;
}

.mobile-panel button {
  border-radius: 14px;
  padding: 8px 14px;
  color: #fff;
  background: var(--amber);
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.62)),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.34), transparent 24rem),
    radial-gradient(circle at 25% 80%, rgba(6, 182, 212, 0.22), transparent 22rem),
    #0f172a;
  color: #fff;
  padding: 96px 22px 70px;
}

.hero-track {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 52px;
  min-height: 480px;
}

.hero-slide.active {
  display: grid;
  animation: fadeUp 0.55s ease both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.38);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

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

.hero-copy p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
}

.hero-tags span {
  color: #fde68a;
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #fb7185);
  box-shadow: 0 22px 42px rgba(245, 158, 11, 0.34);
}

.hero-button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-visual {
  position: relative;
}

.hero-poster {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.34), rgba(15, 23, 42, 0.88));
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.8));
}

.hero-poster-info {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
}

.hero-poster-info strong {
  display: block;
  font-size: 24px;
  margin-bottom: 6px;
}

.hero-poster-info small {
  color: rgba(255, 255, 255, 0.72);
}

.hero-nav {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

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

.hero-dot.active {
  background: #fbbf24;
}

.hero-categories {
  max-width: 1240px;
  margin: -34px auto 0;
  padding: 0 22px;
  position: relative;
  z-index: 5;
}

.hero-categories-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-categories a {
  display: grid;
  gap: 4px;
  border-radius: 20px;
  padding: 16px;
  background: var(--panel-soft);
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.hero-categories a:hover {
  transform: translateY(-4px);
  background: #fff7ed;
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.16);
}

.hero-categories strong {
  font-size: 16px;
}

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

.page-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 22px;
}

.content-section {
  margin-top: 58px;
}

.content-section:first-child {
  margin-top: 0;
}

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

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 760px;
}

.section-action {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 12px 18px;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.18;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(15, 23, 42, 0.92)),
    #111827;
}

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

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

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  color: #111827;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fbbf24;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

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

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

.movie-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.movie-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

.movie-card p {
  margin: 0 0 14px;
  color: #475569;
  line-height: 1.65;
  font-size: 14px;
}

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

.category-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 28px;
  color: #fff;
  min-height: 190px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.94), rgba(225, 29, 72, 0.82)),
    #0f172a;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.category-card:nth-child(even) {
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.92), rgba(79, 70, 229, 0.86)),
    #0f172a;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.category-card strong {
  font-size: 26px;
  position: relative;
  z-index: 2;
}

.category-card p {
  margin: 0;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.84);
  position: relative;
  z-index: 2;
}

.local-search {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  max-width: 680px;
  margin-bottom: 24px;
}

.local-search input {
  padding: 12px 14px;
}

.local-search button {
  padding: 12px 18px;
  border-radius: 16px;
  color: #fff;
  background: #0f172a;
  font-weight: 700;
}

.rank-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank-link {
  display: grid;
  grid-template-columns: 64px 78px 1fr 70px;
  align-items: center;
  gap: 16px;
  min-height: 102px;
  border-radius: 24px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-link:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.rank-num {
  font-size: 26px;
  font-weight: 900;
  color: var(--amber);
  text-align: center;
}

.rank-link img {
  height: 78px;
  object-fit: cover;
  border-radius: 16px;
  background: #0f172a;
}

.rank-info {
  display: grid;
  gap: 6px;
}

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

.rank-info small {
  color: var(--muted);
}

.rank-score {
  justify-self: end;
  min-width: 46px;
  text-align: center;
  border-radius: 999px;
  padding: 8px 10px;
  color: #111827;
  background: #fbbf24;
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #64748b;
  margin-bottom: 22px;
  font-size: 14px;
}

.breadcrumb a {
  color: #0f172a;
  font-weight: 700;
}

.breadcrumb em {
  color: #cbd5e1;
  font-style: normal;
}

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

.detail-main,
.detail-side,
.text-panel {
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.detail-main {
  overflow: hidden;
}

.player-card {
  position: relative;
  background: #000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.32), rgba(15, 23, 42, 0.82));
  pointer-events: auto;
}

.play-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay button {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #fb7185);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
  font-size: 30px;
  font-weight: 900;
}

.player-message {
  display: none;
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 4;
  color: #fff;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.78);
}

.player-message.show {
  display: block;
}

.detail-copy {
  padding: 28px;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #334155;
  background: #f1f5f9;
}

.detail-copy p {
  color: #334155;
  line-height: 1.9;
  font-size: 17px;
}

.detail-action {
  display: inline-flex;
  margin-top: 16px;
  border-radius: 999px;
  padding: 14px 20px;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
}

.detail-side {
  padding: 20px;
}

.detail-side h2,
.text-panel h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

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

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

.compact-card:hover {
  background: #fff7ed;
  transform: translateX(3px);
}

.compact-card img {
  height: 94px;
  object-fit: cover;
  border-radius: 14px;
  background: #0f172a;
}

.compact-card span {
  display: grid;
  gap: 6px;
}

.compact-card strong {
  line-height: 1.35;
}

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

.text-panel {
  margin-top: 26px;
  padding: 28px;
}

.text-panel p {
  color: #334155;
  line-height: 1.95;
}

.site-footer {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.2), transparent 28rem),
    #0f172a;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 22px 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 28px;
  margin-bottom: 12px;
}

.footer-brand p {
  margin: 0;
  line-height: 1.8;
  max-width: 520px;
}

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

.footer-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.copyright {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 22px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.empty-state {
  display: none;
  padding: 30px;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

.empty-state.show {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

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

  .hero-categories-inner {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

  .brand {
    min-width: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-poster {
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-categories-inner {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .category-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .header-inner {
    height: 66px;
    padding: 0 16px;
  }

  .brand-text small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero-copy p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-button {
    width: 100%;
  }

  .hero-categories {
    padding: 0 16px;
  }

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

  .page-main {
    padding: 46px 16px;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

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

  .rank-link {
    grid-template-columns: 48px 66px 1fr;
  }

  .rank-score {
    display: none;
  }

  .detail-copy,
  .text-panel {
    padding: 22px;
  }
}
