:root {
  --bg: #102a43;
  --surface: #243b53;
  --surface-soft: rgba(36, 59, 83, 0.82);
  --surface-strong: #334e68;
  --surface-deep: #0b1f33;
  --line: #334e68;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --muted-strong: #d1d5db;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --danger: #ef4444;
  --shadow: 0 18px 45px rgba(4, 18, 33, 0.38);
  --shadow-soft: 0 10px 30px rgba(16, 42, 67, 0.5);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.08), transparent 30%), var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.is-menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 42, 67, 0.92);
  border-bottom: 1px solid rgba(51, 78, 104, 0.9);
  backdrop-filter: blur(16px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #102a43;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25);
}

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

.nav-link {
  color: var(--muted-strong);
  font-size: 15px;
  transition: color 0.2s ease;
}

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

.header-search {
  width: 310px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(51, 78, 104, 0.92);
  border-radius: 999px;
  background: rgba(36, 59, 83, 0.9);
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 10px 14px;
}

.header-search button,
.btn-primary,
.btn-secondary,
.play-start,
.search-button,
.filter-button {
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
  align-self: stretch;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
}

.header-search button:hover,
.btn-primary:hover,
.play-start:hover,
.search-button:hover,
.filter-button:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.26);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 10px;
}

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

.mobile-panel {
  display: none;
  width: min(100% - 32px, var(--container));
  margin: 0 auto 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(36, 59, 83, 0.98);
}

.mobile-panel.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted-strong);
  background: rgba(16, 42, 67, 0.42);
}

.mobile-link:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #0b1f33;
}

.hero-slides,
.hero-slide,
.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 42, 67, 0.96) 0%, rgba(16, 42, 67, 0.76) 42%, rgba(16, 42, 67, 0.18) 100%),
    linear-gradient(0deg, rgba(16, 42, 67, 0.95), rgba(16, 42, 67, 0.2) 45%, rgba(16, 42, 67, 0.7));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--container));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 720px;
  animation: fadeIn 0.7s ease both;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #fbbf24;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.48);
}

.hero p {
  margin: 0;
  color: var(--muted-strong);
  font-size: clamp(17px, 2vw, 22px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
}

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

.hero-meta span,
.tag-row span,
.detail-tags span,
.category-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #fbd38d;
  font-size: 13px;
  padding: 5px 10px;
}

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

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

.btn-primary,
.play-start,
.search-button,
.filter-button {
  background: var(--accent);
}

.btn-secondary {
  border: 1px solid rgba(209, 213, 219, 0.22);
  background: rgba(51, 78, 104, 0.92);
}

.btn-secondary:hover {
  background: rgba(72, 101, 129, 0.96);
  transform: translateY(-1px);
}

.hero-side-card {
  position: absolute;
  right: max(32px, calc((100vw - var(--container)) / 2));
  bottom: 76px;
  z-index: 3;
  width: min(360px, 32vw);
  padding: 18px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 22px;
  background: rgba(36, 59, 83, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-side-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  object-fit: cover;
}

.hero-side-card h2 {
  margin: 14px 0 6px;
  font-size: 20px;
}

.hero-side-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--accent);
}

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

.page-section {
  padding: 64px 0 0;
}

.page-section:last-child {
  padding-bottom: 72px;
}

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

.section-title > div {
  min-width: 0;
}

.section-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-right: 12px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.16);
  color: var(--accent);
}

.section-title h1,
.section-title h2 {
  display: inline;
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
}

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

.section-more {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 14px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 24px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(51, 78, 104, 0.78);
  border-radius: var(--radius);
  background: rgba(36, 59, 83, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
}

.poster-link,
.poster-wrap {
  display: block;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(16, 42, 67, 0.8);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

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

.poster-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(0deg, rgba(16, 42, 67, 0.78), rgba(16, 42, 67, 0.18));
  transition: opacity 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  min-width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.95);
  color: #102a43;
  font-weight: 900;
}

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

.movie-card h3 {
  margin: 0 0 8px;
  overflow: hidden;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  min-height: 42px;
  margin-top: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
}

.feature-big {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-big img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.feature-big-content {
  position: absolute;
  inset: auto 0 0;
  padding: 34px;
  background: linear-gradient(0deg, rgba(16, 42, 67, 0.98), rgba(16, 42, 67, 0.08));
}

.feature-big-content h3 {
  margin: 0 0 10px;
  font-size: 32px;
}

.feature-big-content p {
  max-width: 760px;
  color: var(--muted-strong);
}

.feature-stack {
  display: grid;
  gap: 18px;
}

.mini-card,
.category-card,
.stat-card,
.search-panel,
.detail-panel,
.info-card,
.related-panel {
  border: 1px solid rgba(51, 78, 104, 0.82);
  border-radius: var(--radius);
  background: rgba(36, 59, 83, 0.86);
  box-shadow: var(--shadow-soft);
}

.mini-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
}

.mini-card img {
  width: 112px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
}

.mini-card h3 {
  margin: 4px 0 8px;
  font-size: 18px;
}

.mini-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

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

.category-card {
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.5);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.category-stats {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #fbbf24;
  font-weight: 700;
}

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

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

.list-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 30px;
  padding: 36px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(36, 59, 83, 0.96), rgba(16, 42, 67, 0.96)), radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.28), transparent 32%);
  box-shadow: var(--shadow);
}

.list-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
}

.list-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted-strong);
}

.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 24px;
}

.filter-bar input,
.search-panel input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: rgba(16, 42, 67, 0.8);
  color: var(--text);
  padding: 12px 14px;
}

.filter-button,
.search-button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 20px;
}

.hidden-by-filter {
  display: none !important;
}

.empty-state {
  display: none;
  padding: 28px;
  border: 1px dashed rgba(245, 158, 11, 0.38);
  border-radius: 18px;
  color: var(--muted-strong);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

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

.player-card {
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-shell video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.28));
  z-index: 2;
}

.player-cover.is-hidden {
  display: none;
}

.play-start {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 800;
}

.play-start::before {
  content: "▶";
  font-size: 20px;
}

.detail-panel {
  margin-top: 22px;
  padding: 26px;
}

.detail-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

.detail-lead {
  margin: 0 0 22px;
  color: var(--muted-strong);
  font-size: 18px;
}

.detail-text h2 {
  margin: 24px 0 10px;
  color: #ffffff;
  font-size: 22px;
}

.detail-text p {
  margin: 0;
  color: var(--muted-strong);
}

.info-card {
  padding: 22px;
}

.info-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 18px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(51, 78, 104, 0.68);
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row span:first-child {
  color: var(--muted);
}

.info-row span:last-child {
  color: #ffffff;
  text-align: right;
}

.related-panel {
  margin-top: 30px;
  padding: 26px;
}

.related-panel h2 {
  margin: 0 0 22px;
  font-size: 28px;
}

.search-panel {
  padding: 28px;
  margin-bottom: 28px;
}

.search-panel form {
  display: flex;
  gap: 12px;
}

.search-count {
  margin: 12px 0 0;
  color: var(--muted);
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(51, 78, 104, 0.88);
  background: rgba(11, 31, 51, 0.74);
}

.footer-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}

.footer-inner p,
.footer-links a {
  color: var(--muted);
}

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

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

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

  .header-inner {
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  .hero-side-card {
    display: none;
  }

  .feature-layout,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 560px;
  }

  .hero-inner {
    align-items: flex-end;
    padding-bottom: 88px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(16, 42, 67, 0.98) 0%, rgba(16, 42, 67, 0.68) 58%, rgba(16, 42, 67, 0.3) 100%);
  }

  .page-section {
    padding-top: 46px;
  }

  .section-title,
  .filter-bar,
  .search-panel form {
    align-items: stretch;
    flex-direction: column;
  }

  .section-title p {
    margin-left: 0;
  }

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

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

  .movie-desc,
  .tag-row {
    display: none;
  }

  .feature-big,
  .feature-big img {
    min-height: 360px;
  }

  .feature-big-content {
    padding: 22px;
  }

  .mini-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .mini-card img {
    width: 84px;
  }

  .list-hero {
    padding: 24px;
  }
}
