* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 48%, #ecfeff 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 52%, #14b8a6 100%);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.22);
}

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

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

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

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

.nav-link {
  color: #ffffff;
  font-weight: 650;
  opacity: 0.94;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fef08a;
  border-color: #fef08a;
  opacity: 1;
}

.search-form,
.mobile-search {
  display: flex;
  align-items: center;
}

.search-form input,
.mobile-search input {
  border: none;
  outline: none;
  height: 42px;
  min-width: 220px;
  padding: 0 14px;
  border-radius: 12px 0 0 12px;
  background: rgba(255, 255, 255, 0.96);
}

.search-form button,
.mobile-search button {
  height: 42px;
  border: none;
  border-radius: 0 12px 12px 0;
  padding: 0 16px;
  color: #1e3a8a;
  font-weight: 800;
  background: #facc15;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-form button:hover,
.mobile-search button:hover {
  background: #fde047;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
}

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

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

.mobile-search input {
  flex: 1;
  min-width: 0;
}

.mobile-link {
  display: block;
  color: #ffffff;
  padding: 12px 2px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-link.active {
  color: #fef08a;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  color: #ffffff;
  background: radial-gradient(circle at 18% 24%, rgba(34, 211, 238, 0.34), transparent 30%), linear-gradient(135deg, #0f172a 0%, #1e3a8a 48%, #0f766e 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.24), rgba(15, 118, 110, 0.5));
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.75s ease, transform 0.75s ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.5), rgba(14, 116, 144, 0.18));
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 48px;
  padding: 64px 0;
}

.hero-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.28);
  border: 1px solid rgba(207, 250, 254, 0.22);
  backdrop-filter: blur(8px);
  font-weight: 700;
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
  margin: 0 0 28px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
  background: #ccfbf1;
}

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

.btn-primary,
.btn-secondary,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #1e3a8a;
  background: #facc15;
  box-shadow: 0 14px 28px rgba(250, 204, 21, 0.24);
}

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

.btn-soft {
  color: #0f766e;
  background: #ecfeff;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-soft:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.36);
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.08);
}

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

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

.hero-control {
  position: absolute;
  z-index: 5;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.active {
  width: 34px;
  background: #facc15;
}

.section {
  padding: 68px 0 0;
}

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

.section-title {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
  color: #0f172a;
}

.section-desc {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.12);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(14, 116, 144, 0.17);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

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

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

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.58));
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #1e3a8a;
  font-weight: 900;
  background: #facc15;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.meta-row span {
  border-radius: 8px;
  padding: 4px 7px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.meta-row span:nth-child(2) {
  background: linear-gradient(90deg, #059669, #14b8a6);
}

.meta-row span:nth-child(3) {
  color: #0f172a;
  background: #fef08a;
}

.movie-card h2 {
  font-size: 16px;
  line-height: 1.35;
  min-height: 43px;
  margin: 0 0 8px;
  color: #0f172a;
}

.movie-card h2 a:hover {
  color: #0891b2;
}

.movie-card p {
  min-height: 44px;
  margin: 0 0 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 28px;
  padding: 22px;
  background: linear-gradient(135deg, #ffffff, #ecfeff);
  border: 1px solid rgba(6, 182, 212, 0.16);
  box-shadow: 0 18px 54px rgba(14, 116, 144, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 70px rgba(37, 99, 235, 0.15);
}

.category-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.category-stack img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.category-tile h2 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #0f172a;
}

.category-tile p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.page-hero {
  padding: 72px 0 46px;
  color: #ffffff;
  background: radial-gradient(circle at 15% 20%, rgba(250, 204, 21, 0.2), transparent 28%), linear-gradient(135deg, #1e3a8a, #0891b2 52%, #0f766e);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  line-height: 1.8;
  font-size: 17px;
}

.filter-box {
  margin: 30px 0 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.filter-box input {
  min-height: 48px;
  border: 1px solid #bae6fd;
  border-radius: 14px;
  padding: 0 16px;
  outline: none;
}

.filter-box a,
.filter-box button {
  min-height: 48px;
  border: none;
  border-radius: 14px;
  padding: 0 18px;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
  margin: 28px 0;
}

.breadcrumb a {
  color: #0891b2;
  font-weight: 700;
}

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

.detail-card,
.side-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.09);
  border: 1px solid rgba(14, 165, 233, 0.12);
  overflow: hidden;
}

.detail-body {
  padding: 26px;
}

.detail-title {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  color: #0f172a;
  line-height: 1.12;
}

.detail-lead {
  color: #475569;
  font-size: 17px;
  line-height: 1.85;
  margin: 0 0 22px;
}

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

.info-item {
  padding: 14px;
  border-radius: 16px;
  background: #f0f9ff;
}

.info-item span {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-bottom: 5px;
}

.info-item strong {
  color: #0f172a;
}

.watch-panel {
  margin: 24px 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 68px rgba(15, 23, 42, 0.22);
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.play-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.66), rgba(14, 116, 144, 0.54));
}

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

.play-icon,
.play-overlay strong {
  position: relative;
  z-index: 2;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #facc15;
  color: #1e3a8a;
  font-size: 34px;
  box-shadow: 0 18px 44px rgba(250, 204, 21, 0.34);
}

.play-overlay strong {
  font-size: 20px;
}

.article-section {
  margin: 28px 0 0;
}

.article-section h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 24px;
}

.article-section p {
  color: #475569;
  line-height: 1.9;
  margin: 0;
}

.side-card {
  padding: 20px;
  position: sticky;
  top: 96px;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.mini-list {
  display: grid;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

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

.mini-card strong {
  display: block;
  color: #0f172a;
  line-height: 1.35;
}

.mini-card em {
  display: block;
  color: #64748b;
  font-style: normal;
  font-size: 12px;
  margin-top: 4px;
}

.search-panel {
  padding: 26px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.09);
}

.search-panel form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-panel input {
  min-height: 54px;
  border: 1px solid #bae6fd;
  border-radius: 16px;
  padding: 0 16px;
  outline: none;
}

.search-panel button {
  min-height: 54px;
  border: none;
  border-radius: 16px;
  padding: 0 24px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  cursor: pointer;
}

.empty-state {
  padding: 42px;
  text-align: center;
  color: #64748b;
}

.site-footer {
  margin-top: 86px;
  color: #ffffff;
  background: linear-gradient(90deg, #1e293b 0%, #334155 52%, #1e293b 100%);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.site-footer h2 {
  color: #67e8f9;
  font-size: 20px;
  margin: 0 0 14px;
}

.site-footer p,
.site-footer li {
  color: #cbd5e1;
  line-height: 1.7;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  text-align: center;
  color: #cbd5e1;
}

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

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

  .hero-poster {
    display: none;
  }

  .side-card {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .header-inner {
    height: 64px;
  }

  .hero,
  .hero-content {
    min-height: 520px;
  }

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

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

@media (max-width: 560px) {
  .container,
  .header-inner,
  .mobile-panel,
  .footer-grid,
  .hero-content {
    width: min(100% - 24px, 1180px);
  }

  .logo {
    font-size: 20px;
  }

  .movie-grid,
  .category-grid,
  .footer-grid,
  .info-list,
  .filter-box,
  .search-panel form {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 38px;
  }

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

  .section {
    padding-top: 48px;
  }

  .detail-body {
    padding: 18px;
  }
}
