* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: #e5e7eb;
  background: #020617;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.18));
  backdrop-filter: blur(12px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-solid {
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.32);
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.mobile-category {
  padding: 9px 10px;
  color: #cbd5e1;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.65);
  font-size: 13px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.9s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 72vh;
  margin: 0 auto;
  padding: 130px 0 68px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 36px;
  align-items: end;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(103, 232, 249, 0.32);
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.12);
  font-size: 13px;
  font-weight: 700;
}

.hero-text h1 {
  margin: 18px 0 18px;
  color: #ffffff;
  font-size: clamp(36px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-text p {
  max-width: 760px;
  margin: 0;
  color: #d1d5db;
  font-size: clamp(16px, 2vw, 20px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #ffffff;
  background: rgba(15, 23, 42, 0.62);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 232, 249, 0.5);
  background: rgba(30, 41, 59, 0.86);
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 34px rgba(6, 182, 212, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
}

.hero-panel {
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.hero-panel h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 20px;
}

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

.hero-mini {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.66);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-mini:hover {
  transform: translateX(4px);
  background: rgba(51, 65, 85, 0.82);
}

.hero-mini img {
  width: 56px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.hero-mini strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
}

.hero-mini span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  margin-top: 2px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 99px;
  background: rgba(226, 232, 240, 0.48);
  padding: 0;
}

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

.page-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0 72px;
}

.home-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.section-block {
  margin-top: 64px;
}

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

.section-title h1,
.section-title h2 {
  margin: 12px 0 8px;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-title p {
  max-width: 760px;
  margin: 0;
  color: #94a3b8;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 28px 70px rgba(6, 182, 212, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.large-card .poster-link img {
  aspect-ratio: 16 / 10;
}

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

.play-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: #94a3b8;
  font-size: 12px;
}

.card-meta a {
  color: #67e8f9;
}

.card-body h2,
.card-body h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.3;
}

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: #94a3b8;
  font-size: 14px;
}

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

.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.88);
  font-size: 12px;
}

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

.category-card {
  min-height: 170px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 26px;
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.24), transparent 38%), linear-gradient(135deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.92));
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(103, 232, 249, 0.38);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 21px;
}

.category-card p {
  margin: 0 0 18px;
  color: #a1a1aa;
  font-size: 14px;
}

.rank-panel {
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.78));
}

.rank-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}

.rank-item a {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 6px 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.38);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item a:hover {
  transform: translateX(4px);
  background: rgba(6, 182, 212, 0.12);
}

.rank-number {
  grid-row: span 2;
  color: #22d3ee;
  font-size: 22px;
  font-weight: 900;
}

.rank-title {
  color: #ffffff;
  font-weight: 700;
}

.rank-desc {
  color: #94a3b8;
  font-size: 13px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  margin: 26px 0 32px;
}

.search-box input,
.search-box select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 0 16px;
  color: #ffffff;
  outline: none;
  background: rgba(15, 23, 42, 0.82);
}

.search-box input:focus,
.search-box select:focus {
  border-color: rgba(34, 211, 238, 0.62);
}

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

.player-card,
.detail-card,
.side-card {
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
}

.player-card {
  overflow: hidden;
}

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

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
  cursor: pointer;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  z-index: 3;
}

.play-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.2));
}

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

.play-button {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 22px 55px rgba(6, 182, 212, 0.35);
  font-size: 34px;
  padding-left: 6px;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.78);
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 13px;
}

.player-message:empty {
  display: none;
}

.detail-card {
  padding: 28px;
  margin-top: 22px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a {
  color: #67e8f9;
}

.detail-card h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.detail-section {
  margin-top: 26px;
}

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

.detail-section p {
  margin: 0;
  color: #cbd5e1;
}

.side-card {
  padding: 20px;
}

.side-card h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 21px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.56);
}

.related-item img {
  width: 68px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.related-item strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
}

.related-item span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  margin-top: 4px;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(to bottom, #0f172a, #020617);
  padding: 54px 0 28px;
}

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

.footer-brand {
  margin-bottom: 14px;
}

.site-footer p,
.site-footer li {
  color: #94a3b8;
  font-size: 14px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.empty-state {
  display: none;
  padding: 36px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.75);
  text-align: center;
}

@media (max-width: 1024px) {
  .movie-grid,
  .movie-grid.large-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-panel {
    display: none;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

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

  .mobile-nav .nav-link {
    display: flex;
  }

  .hero-content {
    padding-top: 118px;
    align-items: center;
  }

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

  .movie-grid,
  .movie-grid.large-grid,
  .category-grid,
  .rank-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .search-box {
    grid-template-columns: 1fr;
  }

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