:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --amber: #f59e0b;
  --orange: #ea580c;
  --rose: #f43f5e;
  --blue: #38bdf8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(244, 63, 94, 0.12), transparent 26rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 34px rgba(245, 158, 11, 0.35);
}

.brand-text {
  font-size: 1.24rem;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link,
.mobile-nav-link {
  border-radius: 12px;
  color: #e2e8f0;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #fbbf24;
  background: rgba(30, 41, 59, 0.72);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.75);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #f8fafc;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

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

.hero-slider {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #020617;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 1.2s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.68) 42%, transparent 100%),
    linear-gradient(0deg, #020617 0%, transparent 36%, rgba(2, 6, 23, 0.36) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 56px;
  padding-bottom: 86px;
}

.hero-copy {
  max-width: 680px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fbbf24;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-kicker::before,
.section-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  box-shadow: 0 0 22px rgba(251, 191, 36, 0.8);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 620px;
  margin: 24px 0 0;
  color: #cbd5e1;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-meta span,
.movie-meta span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  color: #cbd5e1;
  font-size: 0.82rem;
}

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: white;
  box-shadow: 0 16px 42px rgba(245, 158, 11, 0.34);
}

.ghost-button,
.section-more {
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.64);
  color: #f8fafc;
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot,
.hero-arrow {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.6);
  color: white;
  backdrop-filter: blur(12px);
}

.hero-dot {
  width: 36px;
  height: 5px;
  border-radius: 999px;
  opacity: 0.54;
}

.hero-dot.is-active {
  width: 58px;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  opacity: 1;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
}

.quick-search-panel,
.category-strip,
.content-section,
.page-main {
  position: relative;
  z-index: 5;
}

.quick-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 24px;
  align-items: center;
  margin-top: -34px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-panel h2,
.section-heading h2,
.page-hero h1,
.movie-title-block h1 {
  margin: 0;
  color: white;
  letter-spacing: -0.03em;
}

.quick-search-panel h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.search-box {
  display: block;
  width: 100%;
}

.search-box input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  outline: none;
  background: rgba(2, 6, 23, 0.58);
  color: #f8fafc;
}

.search-box input:focus {
  border-color: rgba(251, 191, 36, 0.76);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.12);
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(30, 41, 59, 0.58));
  border-radius: var(--radius-lg);
}

.category-tile {
  min-height: 142px;
  padding: 20px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-card:hover,
.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.46);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
}

.category-tile span,
.category-card-main span {
  color: #fbbf24;
  font-size: 0.86rem;
  font-weight: 700;
}

.category-tile strong,
.category-card-main h2 {
  display: block;
  margin-top: 10px;
  color: white;
  font-size: 1.15rem;
}

.category-tile em,
.category-card-main p {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.65;
}

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

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

.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.62);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

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

.movie-card:hover .movie-cover img {
  transform: scale(1.08);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  color: white;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rating-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.68);
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.movie-card-body h3 {
  margin: 0;
  overflow: hidden;
  color: white;
  font-size: 1rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card-body h3 a:hover,
.ranking-info h2 a:hover,
.movie-neighbor-links a:hover {
  color: #fbbf24;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

.feature-block,
.page-hero,
.detail-card,
.watch-layout,
.ranking-row {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.48));
  box-shadow: var(--shadow);
}

.feature-block {
  padding: 34px;
  border-radius: var(--radius-xl);
}

.two-column-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

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

.site-footer {
  margin-top: 82px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.68), #020617);
}

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

.site-footer h3 {
  margin: 0 0 14px;
  color: white;
  font-size: 1rem;
}

.site-footer p,
.site-footer li,
.footer-bottom {
  color: var(--muted);
  line-height: 1.7;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 18px 0 28px;
  text-align: center;
}

.page-main {
  padding-top: 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 36px;
  padding: clamp(30px, 5vw, 56px);
  border-radius: var(--radius-xl);
}

.compact-hero h1,
.category-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #cbd5e1;
  line-height: 1.8;
}

.inline-search {
  max-width: 520px;
  margin-top: 24px;
}

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

.category-card {
  padding: 24px;
}

.category-card-main h2 {
  margin: 12px 0 0;
  font-size: 1.6rem;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.46);
  color: #cbd5e1;
  font-size: 0.86rem;
}

.category-samples a:hover {
  color: #fbbf24;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 86px 58px minmax(0, 1fr) 120px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
}

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

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

.ranking-number {
  color: #fbbf24;
  font-size: 2rem;
  font-weight: 900;
}

.ranking-info h2 {
  margin: 0 0 8px;
  color: white;
  font-size: 1.16rem;
}

.ranking-info p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}

.ranking-score {
  text-align: right;
}

.ranking-score strong {
  display: block;
  color: #fbbf24;
  font-size: 1.5rem;
}

.ranking-score span {
  color: var(--muted);
  font-size: 0.86rem;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 26px;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.68));
  color: white;
  cursor: pointer;
}

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

.play-circle {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 56px rgba(245, 158, 11, 0.38);
  font-size: 2rem;
}

.video-message {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 4;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(127, 29, 29, 0.88);
  color: white;
}

.movie-title-block {
  margin-top: 24px;
}

.movie-title-block h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.movie-title-block p {
  margin: 16px 0 0;
  color: #cbd5e1;
  line-height: 1.8;
}

.watch-side {
  display: grid;
  align-content: start;
  gap: 16px;
}

.watch-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  object-fit: cover;
}

.watch-side-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.48);
  color: var(--muted-strong);
}

.watch-side-meta strong {
  color: #fbbf24;
}

.detail-panels {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 24px;
  margin-top: 28px;
}

.detail-card {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.detail-card h2 {
  margin: 0 0 16px;
  color: white;
  font-size: 1.38rem;
}

.detail-card h2:not(:first-child) {
  margin-top: 26px;
}

.detail-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.9;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.info-list dt {
  color: var(--muted);
}

.info-list dd {
  margin: 0;
  color: #f8fafc;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.movie-neighbor-links {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
}

.movie-neighbor-links a {
  min-width: 0;
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.56);
  color: #cbd5e1;
}

.related-section {
  margin-top: 44px;
}

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

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

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

  .two-column-sections {
    grid-template-columns: 1fr;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .quick-search-panel,
  .watch-layout,
  .detail-panels,
  .footer-grid,
  .category-page-grid {
    grid-template-columns: 1fr;
  }

  .watch-side {
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: start;
  }

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

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

  .ranking-score {
    grid-column: 3;
    text-align: left;
  }
}

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

  .hero-slider {
    min-height: 76vh;
  }

  .hero-copy h1 {
    font-size: 2.7rem;
  }

  .hero-controls {
    bottom: 18px;
  }

  .hero-arrow {
    width: 36px;
    height: 36px;
  }

  .quick-search-panel {
    margin-top: -20px;
    padding: 20px;
  }

  .category-strip,
  .movie-grid,
  .two-column-sections .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .feature-block,
  .watch-layout,
  .detail-card {
    padding: 18px;
  }

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

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

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .watch-side {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .movie-neighbor-links {
    flex-direction: column;
  }
}
