:root {
  --mist-950: #071827;
  --mist-900: #102a43;
  --mist-850: #183a59;
  --mist-800: #243b53;
  --mist-700: #334e68;
  --mist-600: #486581;
  --mist-500: #627d98;
  --mist-400: #829ab1;
  --mist-300: #9fb3c8;
  --mist-200: #bcccdc;
  --swamp-700: #164e52;
  --swamp-600: #20656a;
  --swamp-500: #2d8285;
  --swamp-400: #52a0a3;
  --swamp-300: #7bb8ba;
  --gold: #facc15;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--mist-200);
  background:
    radial-gradient(circle at top left, rgba(45, 130, 133, 0.2), transparent 34rem),
    linear-gradient(180deg, var(--mist-900), var(--mist-950));
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(51, 78, 104, 0.9);
  background: rgba(16, 42, 67, 0.92);
  backdrop-filter: blur(14px);
}

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

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

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--swamp-500), var(--swamp-700));
  box-shadow: 0 10px 26px rgba(45, 130, 133, 0.32);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
}

.logo-subtitle {
  margin-top: 3px;
  font-size: 12px;
  color: var(--mist-400);
  white-space: nowrap;
}

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

.nav-link,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  padding: 22px 0;
  color: var(--mist-200);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-trigger:hover {
  color: var(--white);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 6px;
  width: 380px;
  padding: 12px;
  border: 1px solid rgba(51, 78, 104, 0.9);
  border-radius: 16px;
  background: rgba(36, 59, 83, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--mist-200);
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-panel a:hover {
  color: var(--white);
  background: rgba(51, 78, 104, 0.9);
}

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

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-form input,
.filter-form input,
.filter-form select {
  width: 250px;
  border: 1px solid var(--mist-700);
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--white);
  outline: none;
  background: rgba(36, 59, 83, 0.82);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-form input::placeholder,
.filter-form input::placeholder {
  color: var(--mist-400);
}

.search-form input:focus,
.filter-form input:focus,
.filter-form select:focus {
  border-color: var(--swamp-500);
  box-shadow: 0 0 0 3px rgba(45, 130, 133, 0.24);
}

.search-form button {
  position: absolute;
  right: 6px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  color: var(--white);
  background: var(--swamp-600);
  cursor: pointer;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--mist-700);
  border-radius: 12px;
  color: var(--white);
  background: rgba(36, 59, 83, 0.78);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--mist-700);
  background: rgba(16, 42, 67, 0.98);
}

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

.mobile-panel-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 22px;
}

.mobile-nav {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--mist-200);
  background: rgba(36, 59, 83, 0.48);
}

.hero-slider {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--mist-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 5s ease;
}

.hero-slide.is-active .hero-image {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 24, 39, 0.96), rgba(16, 42, 67, 0.62), rgba(16, 42, 67, 0.18)),
    linear-gradient(0deg, var(--mist-900), transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 72px;
}

.hero-card {
  max-width: 680px;
}

.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(82, 160, 163, 0.36);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--white);
  background: rgba(32, 101, 106, 0.78);
  backdrop-filter: blur(10px);
}

.hero-title {
  margin: 18px 0 14px;
  color: var(--white);
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-text {
  max-width: 620px;
  margin: 0 0 26px;
  color: var(--mist-200);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.hero-meta,
.card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--mist-300);
  font-size: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 11px 18px;
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--swamp-500), var(--swamp-700));
  box-shadow: 0 14px 32px rgba(45, 130, 133, 0.28);
}

.btn-ghost {
  border-color: rgba(188, 204, 220, 0.22);
  background: rgba(16, 42, 67, 0.58);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(188, 204, 220, 0.18);
  border-radius: 999px;
  color: var(--white);
  background: rgba(16, 42, 67, 0.58);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

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

.hero-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--mist-600);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--swamp-400);
}

.section {
  padding: 58px 0;
}

.section.alt {
  background: rgba(36, 59, 83, 0.26);
}

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

.section-title {
  margin: 0;
  color: var(--white);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.02em;
}

.section-desc {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--mist-300);
  line-height: 1.8;
}

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

.movie-card {
  display: block;
  min-width: 0;
}

.poster-box {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(51, 78, 104, 0.75);
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 20%, rgba(82, 160, 163, 0.24), transparent 36%),
    linear-gradient(135deg, var(--mist-800), var(--mist-900));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.poster-box img,
.wide-poster img,
.detail-poster img,
.hero-image,
.category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-card:hover .poster-box img,
.wide-card:hover .wide-poster img,
.rank-card:hover .poster-box img {
  transform: scale(1.06);
}

.poster-box img,
.wide-poster img {
  transition: transform 0.32s ease;
}

.poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.08));
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-overlay,
.wide-card:hover .poster-overlay,
.rank-card:hover .poster-overlay {
  opacity: 1;
}

.play-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(45, 130, 133, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.poster-year,
.poster-type,
.poster-score,
.rank-number {
  position: absolute;
  z-index: 2;
  border-radius: 9px;
  padding: 5px 8px;
  color: var(--white);
  font-size: 12px;
  background: rgba(16, 42, 67, 0.82);
  backdrop-filter: blur(8px);
}

.poster-year {
  top: 10px;
  left: 10px;
}

.poster-type,
.poster-score {
  top: 10px;
  right: 10px;
}

.poster-score {
  color: #ffe58a;
}

.card-title {
  margin: 12px 0 6px;
  color: var(--white);
  font-size: 16px;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover .card-title,
.wide-card:hover .card-title,
.rank-card:hover .card-title {
  color: var(--swamp-300);
}

.card-summary {
  margin: 8px 0 0;
  color: var(--mist-400);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.horizontal-wrap {
  position: relative;
}

.horizontal-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scrollbar-width: none;
}

.horizontal-row::-webkit-scrollbar {
  display: none;
}

.wide-card {
  flex: 0 0 300px;
}

.wide-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(51, 78, 104, 0.75);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--mist-800), var(--mist-900));
}

.row-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid var(--mist-700);
  border-radius: 999px;
  color: var(--white);
  background: var(--mist-800);
  cursor: pointer;
}

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

.category-card {
  position: relative;
  display: block;
  min-height: 168px;
  overflow: hidden;
  border: 1px solid rgba(51, 78, 104, 0.78);
  border-radius: 22px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(82, 160, 163, 0.22), transparent 55%),
    linear-gradient(135deg, rgba(36, 59, 83, 0.98), rgba(16, 42, 67, 0.96));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.category-card h3 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 21px;
}

.category-card p {
  margin: 0;
  color: var(--mist-300);
  line-height: 1.7;
}

.category-card span {
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: var(--swamp-300);
  font-weight: 700;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(51, 78, 104, 0.72);
  border-radius: 18px;
  padding: 12px;
  background: rgba(36, 59, 83, 0.52);
}

.rank-card .poster-box {
  border-radius: 14px;
}

.rank-number {
  top: -6px;
  left: -6px;
  color: var(--mist-950);
  font-weight: 900;
  background: var(--gold);
}

.rank-body h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 16px;
}

.filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px 140px;
  gap: 12px;
  margin: 22px 0 30px;
}

.filter-form input,
.filter-form select {
  width: 100%;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 54px;
  border-bottom: 1px solid rgba(51, 78, 104, 0.74);
  background:
    radial-gradient(circle at 20% 10%, rgba(82, 160, 163, 0.22), transparent 26rem),
    linear-gradient(135deg, rgba(36, 59, 83, 0.86), rgba(16, 42, 67, 0.96));
}

.page-hero h1 {
  max-width: 860px;
  margin: 14px 0 14px;
  color: var(--white);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 850px;
  margin: 0;
  color: var(--mist-200);
  font-size: 18px;
  line-height: 1.8;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-bottom: 1px solid rgba(51, 78, 104, 0.74);
  background: var(--mist-900);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.36;
}

.detail-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, var(--mist-950) 0%, rgba(16, 42, 67, 0.88) 38%, rgba(16, 42, 67, 0.3) 100%),
    linear-gradient(0deg, var(--mist-900), transparent 65%);
}

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

.detail-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0 64px;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(188, 204, 220, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--mist-800), var(--mist-900));
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--mist-300);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--swamp-300);
}

.detail-content h1 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
}

.detail-lead {
  margin: 20px 0 0;
  color: var(--mist-200);
  font-size: 18px;
  line-height: 1.8;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.tag-row span {
  border: 1px solid rgba(130, 154, 177, 0.24);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--mist-200);
  background: rgba(36, 59, 83, 0.62);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(82, 160, 163, 0.28);
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-button {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(45, 130, 133, 0.38), rgba(0, 0, 0, 0.5));
  cursor: pointer;
}

.player-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  padding-left: 5px;
  font-size: 32px;
  background: rgba(45, 130, 133, 0.95);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38);
}

.player-button.is-hidden {
  display: none;
}

.article-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.text-panel,
.side-panel {
  border: 1px solid rgba(51, 78, 104, 0.72);
  border-radius: 24px;
  padding: 26px;
  background: rgba(16, 42, 67, 0.56);
}

.text-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 24px;
}

.text-panel p {
  margin: 0 0 18px;
  color: var(--mist-200);
  line-height: 1.95;
}

.info-list {
  display: grid;
  gap: 13px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
}

.info-list dt {
  color: var(--mist-400);
}

.info-list dd {
  margin: 0;
  color: var(--white);
}

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

.related-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 8px;
  background: rgba(36, 59, 83, 0.45);
}

.related-item img {
  width: 62px;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  object-fit: cover;
  background: var(--mist-800);
}

.related-item strong {
  display: block;
  color: var(--white);
  line-height: 1.4;
}

.related-item span {
  display: block;
  margin-top: 5px;
  color: var(--mist-400);
  font-size: 12px;
}

.empty-state {
  display: none;
  border: 1px solid rgba(51, 78, 104, 0.72);
  border-radius: 18px;
  padding: 30px;
  color: var(--mist-300);
  text-align: center;
  background: rgba(36, 59, 83, 0.44);
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  border-top: 1px solid rgba(51, 78, 104, 0.8);
  background: rgba(7, 24, 39, 0.9);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
  padding: 42px 0;
}

.footer-title {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
}

.footer-text {
  margin: 0;
  color: var(--mist-400);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: var(--mist-400);
}

.footer-links a:hover {
  color: var(--swamp-300);
}

.footer-bottom {
  border-top: 1px solid rgba(51, 78, 104, 0.55);
  padding: 18px 0;
  color: var(--mist-500);
  text-align: center;
}

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

  .article-block,
  .detail-inner {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 300px;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .section-inner,
  .footer-inner,
  .hero-content,
  .detail-inner {
    width: min(100% - 24px, 1180px);
  }

  .logo-title {
    font-size: 18px;
  }

  .logo-subtitle {
    display: none;
  }

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

  .hero-arrow {
    display: none;
  }

  .hero-content {
    padding-bottom: 74px;
  }

  .section {
    padding: 42px 0;
  }

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

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

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

  .wide-card {
    flex-basis: 250px;
  }

  .rank-card {
    grid-template-columns: 74px 1fr;
  }

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

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