:root {
  --primary-50: #e6fffb;
  --primary-100: #b2f5ea;
  --primary-400: #1ab0b0;
  --primary-500: #009999;
  --primary-600: #007a7a;
  --primary-700: #005b5b;
  --secondary-50: #f0f4f8;
  --secondary-100: #d9e2ec;
  --secondary-200: #bcccdc;
  --secondary-400: #829ab1;
  --secondary-500: #627d98;
  --secondary-600: #486581;
  --secondary-700: #334e68;
  --secondary-800: #243b53;
  --secondary-900: #102a43;
  --white: #ffffff;
  --shadow-md: 0 12px 28px rgba(16, 42, 67, 0.12);
  --shadow-xl: 0 24px 60px rgba(16, 42, 67, 0.22);
  --radius-lg: 18px;
  --radius-xl: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--secondary-900);
  background: var(--secondary-50);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(188, 204, 220, 0.65);
  box-shadow: 0 6px 22px rgba(16, 42, 67, 0.08);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
  color: var(--white);
  box-shadow: 0 12px 28px rgba(0, 153, 153, 0.28);
  transition: transform 0.22s ease;
}

.brand-mark::before {
  content: "▶";
  margin-left: 3px;
  font-size: 18px;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(3deg);
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand small {
  color: var(--secondary-600);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--secondary-700);
  font-weight: 650;
}

.nav-link {
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-600);
}

.nav-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--secondary-50);
  color: var(--secondary-700);
  font-size: 24px;
}

.nav-icon:hover {
  background: var(--secondary-100);
  color: var(--primary-600);
}

.mobile-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--secondary-50);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: var(--secondary-700);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-top: 1px solid var(--secondary-100);
}

.mobile-panel a {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
  color: var(--secondary-700);
  font-weight: 650;
}

.mobile-panel a:hover {
  background: var(--secondary-100);
  color: var(--primary-600);
}

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

.hero-carousel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: var(--secondary-900);
}

.hero-track,
.hero-slide {
  min-height: 720px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 24%, rgba(0, 153, 153, 0.38), transparent 38%),
    linear-gradient(90deg, rgba(16, 42, 67, 0.96) 0%, rgba(16, 42, 67, 0.82) 42%, rgba(16, 42, 67, 0.2) 100%),
    linear-gradient(180deg, rgba(16, 42, 67, 0.1), rgba(16, 42, 67, 0.88));
}

.hero-content {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 52px;
  color: var(--white);
  padding-block: 72px;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-400);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3.5vw, 42px);
  line-height: 1.05;
}

.hero-copy p {
  width: min(650px, 100%);
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
  margin: 0 0 22px;
}

.hero-tags,
.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.mini-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 22px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--primary-500);
  color: var(--white);
  box-shadow: 0 14px 32px rgba(0, 153, 153, 0.28);
}

.btn-primary:hover {
  background: var(--primary-600);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-poster {
  position: relative;
  align-self: center;
  justify-self: end;
  width: min(360px, 100%);
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-600);
  font-size: 30px;
  padding-left: 4px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-controls button {
  pointer-events: auto;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 30px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-controls button:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-dots {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

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

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

.search-panel {
  margin-top: -46px;
  position: relative;
  z-index: 5;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.8fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
}

.search-panel h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 34px);
}

.search-panel p {
  margin: 8px 0 0;
  color: var(--secondary-600);
}

.inline-panel,
.sticky-search {
  margin-top: 0;
  box-shadow: var(--shadow-md);
}

.sticky-search {
  position: sticky;
  top: 92px;
  z-index: 20;
}

.search-box {
  display: flex;
  gap: 10px;
}

.search-box input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--secondary-200);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--secondary-900);
  outline: 0;
}

.search-box input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(0, 153, 153, 0.12);
}

.search-box button {
  min-width: 88px;
  border: 0;
  border-radius: 14px;
  background: var(--primary-500);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.search-box button:hover {
  background: var(--primary-600);
}

.section-block {
  padding: 70px 0 0;
}

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

.section-heading.slim {
  align-items: center;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
}

.section-heading a {
  color: var(--primary-600);
  font-weight: 800;
}

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

.category-chip {
  position: relative;
  min-height: 148px;
  padding: 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--white), #e8f7f7);
  border: 1px solid rgba(188, 204, 220, 0.65);
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-chip::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(0, 153, 153, 0.12);
}

.category-chip:hover {
  transform: translateY(-5px);
  border-color: var(--primary-500);
}

.category-chip strong {
  display: block;
  font-size: 22px;
  margin-bottom: 12px;
}

.category-chip small {
  color: var(--secondary-600);
  line-height: 1.65;
}

.category-chip > span {
  position: absolute;
  right: 18px;
  top: 18px;
  color: var(--primary-600);
  font-weight: 900;
}

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

.preview-grid,
.compact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(188, 204, 220, 0.72);
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--secondary-900);
}

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

.movie-card:hover .poster-frame img {
  transform: scale(1.07);
}

.badge {
  position: absolute;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--white);
}

.region-badge {
  left: 12px;
  top: 12px;
  background: var(--primary-500);
}

.year-badge {
  right: 12px;
  top: 12px;
  background: rgba(0, 0, 0, 0.68);
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%) scale(0.82);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-600);
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .play-float {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  min-height: 46px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.movie-card p {
  color: var(--secondary-600);
  font-size: 14px;
  line-height: 1.65;
  height: 46px;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--secondary-500);
  font-size: 13px;
  margin-bottom: 10px;
}

.movie-card .mini-tags span {
  background: var(--secondary-100);
  color: var(--secondary-600);
}

.ranking-band {
  margin-top: 78px;
  padding: 72px 0;
  background:
    radial-gradient(circle at 80% 12%, rgba(26, 176, 176, 0.28), transparent 34%),
    linear-gradient(135deg, var(--secondary-900), var(--secondary-800));
  color: var(--white);
}

.inner-band {
  margin-top: 0;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: center;
}

.ranking-copy h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin: 12px 0 14px;
}

.ranking-copy p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
  margin-bottom: 24px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: auto 58px 1fr;
  gap: 13px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(4px);
}

.compact-card img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
}

.compact-card strong {
  display: block;
  line-height: 1.35;
}

.compact-card small {
  color: rgba(255, 255, 255, 0.66);
}

.rank-num {
  color: var(--primary-400);
  font-weight: 900;
  font-size: 18px;
  min-width: 34px;
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  padding: 58px 0 24px;
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  margin: 14px 0 16px;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 780px;
  color: var(--secondary-600);
  font-size: 17px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary-600);
  font-size: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

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

.category-previews {
  display: grid;
  gap: 62px;
}

.category-preview {
  padding-top: 10px;
}

.detail-main {
  background: var(--secondary-50);
}

.detail-top {
  padding: 42px 0 18px;
}

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

.player-column h1 {
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.045em;
}

.detail-one-line {
  color: var(--secondary-600);
  font-size: 17px;
  line-height: 1.8;
  margin: 0 0 20px;
}

.player-shell {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #000000;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  align-content: center;
  border: 0;
  cursor: pointer;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.66)),
    rgba(16, 42, 67, 0.26);
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-600);
  font-size: 36px;
  padding-left: 5px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
}

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

.detail-info {
  display: grid;
  gap: 18px;
}

.detail-info > img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.info-card,
.story-card {
  background: var(--white);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(188, 204, 220, 0.72);
}

.info-card h2,
.story-card h2 {
  margin: 0 0 18px;
}

dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px 10px;
  margin: 0 0 18px;
}

dt {
  color: var(--secondary-500);
}

dd {
  margin: 0;
  color: var(--secondary-900);
  font-weight: 700;
}

.detail-tags span {
  background: var(--secondary-100);
  color: var(--secondary-600);
}

.story-section {
  display: grid;
  gap: 18px;
  padding-top: 26px;
}

.story-card p {
  color: var(--secondary-700);
  line-height: 1.9;
  font-size: 16px;
  margin: 0;
}

.site-footer {
  margin-top: 86px;
  background: var(--secondary-900);
  color: rgba(255, 255, 255, 0.86);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 0.8fr 0.8fr;
  gap: 44px;
  padding: 54px 0;
}

.footer-brand small {
  color: rgba(255, 255, 255, 0.56);
}

.footer-about p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: var(--white);
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  padding: 22px 16px;
  color: rgba(255, 255, 255, 0.56);
}

[data-search-item].is-hidden {
  display: none;
}

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

  .mobile-toggle {
    display: flex;
  }

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

  .hero-poster {
    display: none;
  }

  .search-panel,
  .ranking-layout,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero-carousel,
  .hero-track,
  .hero-slide,
  .hero-content {
    min-height: 640px;
  }

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

  .hero-controls {
    bottom: 18px;
  }

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

  .search-box {
    flex-direction: column;
  }

  .search-box button {
    min-height: 48px;
  }

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

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

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

  .movie-card h3 {
    font-size: 15px;
    min-height: 40px;
  }

  .movie-card p {
    font-size: 13px;
  }

  .detail-top {
    padding-top: 26px;
  }

  .detail-info {
    grid-template-columns: 120px 1fr;
    align-items: start;
  }

  .detail-info > img {
    border-radius: 16px;
  }

  .info-card {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .brand strong {
    font-size: 17px;
  }

  .brand small {
    display: none;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .category-grid,
  .movie-grid,
  .preview-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

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

  .compact-card {
    grid-template-columns: auto 52px 1fr;
  }
}
