:root {
  --bg: #f8fafc;
  --bg-soft: #eef2ff;
  --text: #0f172a;
  --muted: #64748b;
  --panel: #ffffff;
  --line: rgba(15, 23, 42, 0.1);
  --dark: #020617;
  --dark-2: #0f172a;
  --blue: #1d4ed8;
  --yellow: #facc15;
  --orange: #f97316;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 45%, #f8fafc 100%);
  color: var(--text);
  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,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 52%, #0f172a 100%);
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 74px;
}

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

.brand-mark,
.footer-brand span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.38);
}

.brand-text {
  font-size: 26px;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link,
.nav-more-button {
  color: rgba(255, 255, 255, 0.88);
  border: 0;
  background: transparent;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-more-button:hover {
  color: var(--yellow);
}

.nav-more {
  position: relative;
}

.nav-more-panel {
  position: absolute;
  right: 0;
  top: 34px;
  display: grid;
  gap: 8px;
  min-width: 160px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.25s ease;
}

.nav-more:hover .nav-more-panel,
.nav-more:focus-within .nav-more-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-more-panel a {
  padding: 8px 10px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.86);
}

.nav-more-panel a:hover {
  color: var(--yellow);
  background: rgba(255, 255, 255, 0.08);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.header-search input {
  width: 210px;
  color: #ffffff;
  border: 0;
  outline: 0;
  padding: 8px 10px;
  background: transparent;
}

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

.header-search button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, #eab308, #f97316);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.32);
}

.primary-button:hover,
.header-search button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.42);
}

.secondary-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.mobile-menu-button,
.mobile-nav {
  display: none;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  min-height: 620px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(250, 204, 21, 0.16), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.76) 46%, rgba(15, 23, 42, 0.16) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 720px;
  padding: 80px 0;
}

.eyebrow,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 13px;
  border-radius: 999px;
  color: #0f172a;
  background: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-tags,
.detail-facts,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-tags span,
.detail-facts span,
.movie-tags span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

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

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

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

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

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

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

.section-heading h2,
.watch-main h2,
.watch-side h2,
.content-panel h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

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

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

.category-card {
  display: grid;
  min-height: 160px;
  align-content: space-between;
  padding: 24px;
  border-radius: var(--radius);
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 10%, rgba(250, 204, 21, 0.25), transparent 28%),
    linear-gradient(135deg, #0f172a, #1d4ed8 62%, #7c2d12);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.2);
}

.category-card span {
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 10px 0 16px;
  color: rgba(255, 255, 255, 0.78);
}

.category-card strong {
  color: var(--yellow);
}

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

.horizontal-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scrollbar-width: none;
}

.horizontal-list::-webkit-scrollbar {
  display: none;
}

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.18);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #111827, #1e3a8a);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.82) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card-link:hover .poster-shade {
  opacity: 1;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.4);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #0f172a;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.movie-card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.movie-card-body strong {
  display: -webkit-box;
  overflow: hidden;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.movie-one-line {
  color: var(--muted);
  font-size: 13px;
}

.movie-one-line {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-tags {
  margin-top: 2px;
}

.movie-tags span {
  min-height: 24px;
  color: #475569;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

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

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 0 14px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.filter-panel button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: #0f172a;
  font-weight: 800;
}

.empty-state {
  margin-bottom: 22px;
  padding: 20px;
  border-radius: 18px;
  color: #475569;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.split-showcase {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
}

.showcase-panel {
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.dark-panel {
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 10%, rgba(250, 204, 21, 0.2), transparent 28%),
    linear-gradient(135deg, #020617, #1e3a8a 58%, #7c2d12);
}

.showcase-panel h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.showcase-panel p {
  color: rgba(255, 255, 255, 0.75);
}

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

.page-hero,
.detail-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 16%, rgba(250, 204, 21, 0.18), transparent 24%),
    linear-gradient(135deg, #020617, #1e3a8a 55%, #0f172a);
}

.page-hero .container {
  padding: 86px 0;
}

.compact-page-hero .container,
.category-page-hero .container,
.ranking-page-hero .container,
.search-page-hero .container {
  padding: 70px 0;
}

.breadcrumb {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

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

.detail-hero-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 44px 0 54px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.42);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-copy h1 {
  color: #ffffff;
}

.detail-tags a {
  color: #ffffff;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.watch-main,
.watch-side,
.content-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.watch-main {
  padding: 22px;
}

.watch-main h2 {
  margin-bottom: 18px;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 14px;
  place-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.76));
  font-size: 20px;
  font-weight: 900;
}

.play-circle {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  margin: 0 auto;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.45);
}

.video-shell.is-playing .play-overlay {
  display: none;
}

.watch-side {
  padding: 24px;
}

.watch-side dl {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.watch-side dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.watch-side dt {
  color: var(--muted);
  font-weight: 800;
}

.watch-side dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.watch-side a {
  color: var(--blue);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 0 0 20px;
}

.content-panel {
  padding: 28px;
}

.content-panel p {
  margin: 16px 0 0;
  color: #334155;
  font-size: 17px;
}

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

.site-footer {
  margin-top: 54px;
  color: #ffffff;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px;
  padding: 54px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 24px;
}

.site-footer p {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--yellow);
  font-size: 18px;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-bottom {
  padding: 18px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.56);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

@media (max-width: 860px) {
  .header-inner {
    min-height: 66px;
  }

  .main-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
  }

  .mobile-nav {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
  }

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

  .mobile-nav a {
    padding: 11px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
  }

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

  .category-grid,
  .large-category-grid,
  .movie-grid,
  .spotlight-ranking,
  .showcase-grid,
  .footer-grid,
  .detail-content-grid,
  .watch-layout,
  .detail-hero-grid,
  .split-showcase {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 260px;
  }

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

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

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

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

  .hero-copy {
    padding: 60px 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

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

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

  .movie-card-body strong {
    font-size: 14px;
  }

  .movie-one-line,
  .movie-tags {
    display: none;
  }

  .watch-main,
  .watch-side,
  .content-panel {
    border-radius: 20px;
    padding: 16px;
  }
}
