:root {
  --site-primary: #006494;
  --site-primary-dark: #00324a;
  --site-secondary: #147494;
  --site-accent: #c49c0c;
  --site-bg: #f8f9fa;
  --site-card: #ffffff;
  --site-text: #212529;
  --site-muted: #6c757d;
  --site-border: #e9ecef;
  --site-shadow: 0 18px 50px rgba(0, 50, 74, 0.12);
  --site-shadow-soft: 0 10px 30px rgba(0, 50, 74, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--site-bg);
  color: var(--site-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--site-border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-primary), var(--site-secondary));
  box-shadow: 0 12px 24px rgba(0, 100, 148, 0.24);
  font-weight: 800;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  margin-top: 3px;
  font-size: 12px;
  color: var(--site-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 650;
  color: #374151;
}

.main-nav a,
.mobile-panel a,
.footer-links a {
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--site-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-form {
  width: min(280px, 28vw);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 50, 74, 0.05);
}

.search-form input {
  width: 100%;
  outline: 0;
  color: var(--site-text);
  font-size: 14px;
  background: transparent;
}

.search-form button {
  border: 0;
  color: var(--site-primary);
  cursor: pointer;
  font-weight: 750;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--site-border);
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  border-top: 1px solid var(--site-border);
  background: #ffffff;
}

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

.mobile-panel nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px 20px;
  display: grid;
  gap: 8px;
}

.mobile-panel a {
  padding: 11px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
}

.mobile-panel a:hover {
  background: #f1f3f5;
  color: var(--site-primary);
}

.mobile-panel .search-form {
  width: 100%;
  max-width: none;
}

.main-content {
  flex: 1;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-primary-dark), var(--site-primary) 52%, var(--site-secondary));
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.20), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(196, 156, 12, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.05));
}

.hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 78px 20px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero-eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.hero-eyebrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-title {
  margin: 18px 0 18px;
  max-width: 780px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.hero-description {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 13px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--site-primary-dark);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  background: #e6f2f8;
}

.btn-ghost {
  color: #ffffff;
  background: rgba(0, 50, 74, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.btn-accent {
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-primary), var(--site-secondary));
  box-shadow: 0 14px 26px rgba(0, 100, 148, 0.22);
}

.btn-muted {
  color: var(--site-primary);
  background: #e6f2f8;
}

.hero-categories {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-categories a,
.tag,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  white-space: nowrap;
}

.hero-categories a {
  padding: 8px 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-categories a:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-slider {
  position: relative;
  min-height: 440px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 18px;
  align-items: stretch;
  opacity: 0;
  transform: translateX(24px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
}

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

.hero-slide:hover .hero-poster img {
  transform: scale(1.045);
}

.hero-movie {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  border-radius: 28px;
  background: rgba(0, 50, 74, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.hero-movie h2 {
  margin: 10px 0 10px;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.1;
  font-weight: 900;
}

.hero-movie p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.78;
}

.hero-meta,
.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-meta span,
.detail-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
}

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

.page-shell,
.section-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 20px;
}

.section-shell.narrow {
  max-width: 980px;
}

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

.section-title-wrap h1,
.section-title-wrap h2 {
  margin-top: 8px;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-title-wrap p {
  margin-top: 10px;
  max-width: 760px;
  color: var(--site-muted);
  line-height: 1.72;
}

.section-eyebrow {
  color: var(--site-primary);
  background: #e6f2f8;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--site-card);
  box-shadow: var(--site-shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-card-link {
  display: block;
  height: 100%;
}

.movie-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #e6f2f8);
}

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

.movie-card:hover .movie-cover img,
.ranking-row:hover img,
.related-card:hover img {
  transform: scale(1.06);
}

.badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.badge-left {
  top: 10px;
  left: 10px;
  background: var(--site-primary);
}

.badge-score {
  top: 10px;
  right: 10px;
  background: var(--site-accent);
}

.badge-time {
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.72);
}

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

.movie-card h3 {
  color: #111827;
  font-size: 17px;
  line-height: 1.36;
  font-weight: 800;
  transition: color 0.18s ease;
}

.movie-card:hover h3 {
  color: var(--site-primary);
}

.movie-card p {
  margin-top: 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.6;
}

.movie-meta {
  margin-top: 12px;
  justify-content: space-between;
  color: #6b7280;
  font-size: 12px;
  font-weight: 650;
}

.category-band {
  background: linear-gradient(90deg, #fef9e7, #e6f2f8);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--site-shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -50px;
  bottom: -52px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 100, 148, 0.16), rgba(196, 156, 12, 0.22));
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--site-shadow);
}

.category-card strong {
  position: relative;
  z-index: 1;
  font-size: 22px;
  font-weight: 900;
  color: #111827;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  color: var(--site-muted);
  line-height: 1.7;
  font-size: 14px;
}

.category-card span {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  color: var(--site-primary);
  font-weight: 850;
}

.filter-panel {
  margin: 22px 0 30px;
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--site-border);
  border-radius: 14px;
  background: #ffffff;
  outline: 0;
  box-shadow: 0 8px 24px rgba(0, 50, 74, 0.04);
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-form:focus-within {
  border-color: rgba(0, 100, 148, 0.42);
  box-shadow: 0 10px 28px rgba(0, 100, 148, 0.12);
}

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

.ranking-row {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--site-shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ranking-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--site-shadow);
}

.ranking-row a {
  display: grid;
  grid-template-columns: 70px 160px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-primary), var(--site-secondary));
  font-weight: 950;
}

.ranking-row img {
  width: 160px;
  height: 90px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.28s ease;
}

.ranking-info h3 {
  font-size: 18px;
  font-weight: 850;
  color: #111827;
}

.ranking-info p {
  margin-top: 6px;
  color: var(--site-muted);
  line-height: 1.55;
}

.ranking-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.tag {
  padding: 5px 9px;
  color: var(--site-primary);
  background: #e6f2f8;
  font-size: 12px;
  font-weight: 750;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-primary-dark), var(--site-primary) 58%, var(--site-secondary));
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 76% 30%, rgba(255, 255, 255, 0.16), transparent 32%);
}

.detail-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  aspect-ratio: 16 / 10;
}

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

.breadcrumb {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.detail-info h1 {
  max-width: 850px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 920;
  letter-spacing: -0.04em;
}

.detail-info .lead {
  margin-top: 18px;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.82;
}

.detail-meta {
  margin-top: 20px;
}

.player-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 20px 0;
}

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #0b1220;
  box-shadow: 0 24px 60px rgba(11, 18, 32, 0.22);
}

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

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.64));
}

.play-overlay.hidden {
  display: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--site-primary-dark);
  background: #ffffff;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.35);
  font-size: 30px;
  padding-left: 5px;
}

.play-title {
  font-size: 20px;
  font-weight: 850;
}

.detail-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 20px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.content-card,
.side-card {
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--site-shadow-soft);
}

.content-card + .content-card {
  margin-top: 20px;
}

.content-card h2,
.side-card h2 {
  color: #111827;
  font-size: 24px;
  font-weight: 900;
}

.content-card p {
  margin-top: 14px;
  color: #374151;
  line-height: 1.88;
  font-size: 16px;
}

.side-stack {
  display: grid;
  gap: 16px;
}

.related-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: center;
}

.related-card img {
  width: 100px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.25s ease;
}

.related-card h3 {
  color: #111827;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 820;
}

.related-card p {
  margin-top: 4px;
  color: var(--site-muted);
  font-size: 12px;
}

.site-footer {
  margin-top: auto;
  color: #cbd5e1;
  background: #212529;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 20px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
}

.footer-title {
  color: #ffffff;
  font-size: 22px;
  font-weight: 880;
}

.footer-desc {
  margin-top: 12px;
  max-width: 620px;
  color: #adb5bd;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  color: #adb5bd;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #868e96;
  font-size: 14px;
}

.empty-state {
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  color: var(--site-muted);
  background: #ffffff;
  box-shadow: var(--site-shadow-soft);
}

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

  .mobile-toggle {
    display: block;
  }

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

  .hero-slider {
    min-height: 480px;
  }

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

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

  .brand-name {
    font-size: 19px;
  }

  .hero-inner {
    padding: 52px 16px 58px;
    gap: 34px;
  }

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

  .hero-slider,
  .hero-poster,
  .hero-movie {
    min-height: 0;
  }

  .hero-poster {
    aspect-ratio: 16 / 10;
  }

  .hero-movie {
    padding: 20px;
  }

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

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

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

  .ranking-row a {
    grid-template-columns: 46px 92px 1fr;
    gap: 12px;
  }

  .ranking-row img {
    width: 92px;
    height: 58px;
  }

  .ranking-tags {
    grid-column: 2 / 4;
    justify-content: flex-start;
  }

  .rank-number {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .detail-inner,
  .player-section,
  .detail-content,
  .page-shell,
  .section-shell,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .detail-poster {
    aspect-ratio: 16 / 9;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .category-list {
    grid-template-columns: 1fr;
  }

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

  .content-card,
  .side-card {
    padding: 18px;
    border-radius: 18px;
  }
}
