:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --cyan: #0891b2;
  --cyan-2: #06b6d4;
  --teal: #0f766e;
  --soft-cyan: #ecfeff;
  --radius: 22px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--cyan-2), var(--teal));
  box-shadow: 0 10px 28px rgba(6, 182, 212, 0.28);
  position: relative;
  flex: 0 0 auto;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 9px;
  border-left: 10px solid #ffffff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

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

.nav-link {
  position: relative;
  color: #334155;
  font-weight: 700;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  cursor: pointer;
  padding: 11px;
}

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

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 16px 16px;
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  color: #334155;
}

.mobile-link:hover,
.mobile-link.is-active {
  color: var(--cyan);
  background: var(--soft-cyan);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 145, 178, 0.11) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 145, 178, 0.10) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.20), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #ecfeff 52%, #f8fafc 100%);
  background-size: 22px 22px, 22px 22px, auto, auto;
}

.hero-inner {
  padding: 58px 0 44px;
}

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

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  gap: 34px;
  align-items: center;
  min-height: 560px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeIn 0.6s ease both;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan);
  font-weight: 800;
  margin-bottom: 20px;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.hero h1 span,
.hero h2 span {
  display: block;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 640px;
  color: #475569;
  font-size: 18px;
  margin: 0 0 26px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 16px;
  padding: 13px 20px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-2), var(--teal));
  box-shadow: 0 14px 28px rgba(6, 182, 212, 0.28);
}

.btn-soft {
  color: var(--cyan);
  background: #ffffff;
  border: 1px solid rgba(6, 182, 212, 0.18);
  box-shadow: var(--shadow-soft);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: #0e7490;
  background: #ecfeff;
  border: 1px solid #cffafe;
  font-size: 12px;
  font-weight: 800;
}

.hero-visual {
  position: relative;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.20);
  aspect-ratio: 3 / 4;
  background: #e2e8f0;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.7s ease;
}

.hero-slide.is-active .hero-card img {
  transform: scale(1.08);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.72));
}

.hero-card-info {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  color: #ffffff;
}

.hero-card-info strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-card-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.hero-floating {
  position: absolute;
  right: -18px;
  top: 34px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  color: var(--cyan);
  font-weight: 900;
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: #bae6fd;
  padding: 0;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid #cffafe;
  border-radius: 999px;
  background: #ffffff;
  color: var(--cyan);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  box-shadow: var(--shadow-soft);
}

.main-section {
  padding: 58px 0;
}

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

.section-head h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

.section-more {
  color: var(--cyan);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: #a5f3fc;
}

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

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.08);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.68));
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-radius: 10px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(8, 145, 178, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  left: 12px;
  right: auto;
  background: rgba(220, 38, 38, 0.94);
}

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

.meta-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.32;
}

.movie-card h3 a:hover {
  color: var(--cyan);
}

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

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

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

.category-tile {
  display: block;
  min-height: 178px;
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #dffafe;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-icon {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--cyan-2), var(--teal));
  margin-bottom: 16px;
}

.category-tile strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.category-tile p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.page-hero {
  padding: 54px 0 32px;
  background:
    radial-gradient(circle at 18% 10%, rgba(6, 182, 212, 0.18), transparent 26%),
    linear-gradient(180deg, #ffffff, #ecfeff);
}

.page-title {
  max-width: 860px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #64748b;
  margin-bottom: 18px;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--cyan);
  font-weight: 800;
}

.filter-panel {
  margin: 0 0 28px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.filter-title {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 900;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
}

.search-box,
.select-box {
  display: grid;
  gap: 8px;
  color: #475569;
  font-weight: 800;
}

.search-box input,
.select-box select {
  width: 100%;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 13px 15px;
  background: #ffffff;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus,
.select-box select:focus {
  border-color: var(--cyan-2);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 340px;
  gap: 30px;
  align-items: start;
}

.player-shell {
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.26);
  margin-bottom: 24px;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.68));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan-2), var(--teal));
  box-shadow: 0 16px 40px rgba(6, 182, 212, 0.45);
  cursor: pointer;
  position: relative;
}

.play-button::after {
  content: "";
  position: absolute;
  left: 37px;
  top: 29px;
  border-left: 24px solid #ffffff;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
}

.detail-panel,
.side-panel {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.detail-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
}

.detail-meta span {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 12px;
  color: #0e7490;
  background: #ecfeff;
  border: 1px solid #cffafe;
  font-size: 13px;
  font-weight: 900;
}

.detail-panel h2,
.side-panel h2 {
  margin: 26px 0 12px;
  font-size: 24px;
}

.detail-panel p {
  color: #475569;
  margin: 0 0 14px;
}

.side-poster {
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
  margin-bottom: 18px;
}

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

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

.related-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.related-thumb {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3 / 4;
  background: #e2e8f0;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-title {
  display: block;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 6px;
}

.related-meta {
  color: var(--muted);
  font-size: 13px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 64px 120px minmax(0, 1fr) 120px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.92);
}

.ranking-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-weight: 900;
}

.ranking-cover {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
  background: #e2e8f0;
}

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

.ranking-info h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-info p {
  margin: 0 0 10px;
  color: var(--muted);
}

.ranking-action {
  justify-self: end;
}

.site-footer {
  margin-top: 70px;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 32px;
  padding: 44px 0;
}

.footer-brand {
  font-size: 22px;
  margin-bottom: 12px;
}

.footer-text {
  color: #64748b;
  margin: 12px 0 0;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

.site-footer a {
  color: #475569;
}

.site-footer a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid #dbe4ee;
  color: #64748b;
  font-size: 14px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

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

  .menu-button {
    display: block;
  }

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

  .hero-slider {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 38px;
  }

  .hero-card {
    max-width: 460px;
    margin: 0 auto;
  }

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

  .ranking-row {
    grid-template-columns: 50px 86px minmax(0, 1fr);
  }

  .ranking-action {
    grid-column: 2 / -1;
    justify-self: start;
  }

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

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

  .brand {
    font-size: 21px;
  }

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

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

  .movie-card h3 {
    font-size: 16px;
  }

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

  .detail-panel,
  .side-panel,
  .filter-panel {
    padding: 18px;
  }

  .play-button {
    width: 74px;
    height: 74px;
  }

  .play-button::after {
    left: 31px;
    top: 23px;
    border-left-width: 20px;
    border-top-width: 14px;
    border-bottom-width: 14px;
  }

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