:root {
  --mist-950: #071a2c;
  --mist-900: #102a43;
  --mist-850: #18344f;
  --mist-800: #243b53;
  --mist-700: #334e68;
  --mist-600: #486581;
  --mist-500: #627d98;
  --mist-400: #829ab1;
  --mist-300: #9fb3c8;
  --mist-200: #bcccdc;
  --mist-100: #d9e2ec;
  --swamp-700: #164b51;
  --swamp-600: #20656a;
  --swamp-500: #2d8285;
  --swamp-400: #3d9b9d;
  --swamp-300: #7bb8ba;
  --gold: #facc15;
  --danger: #f87171;
  --shadow: 0 22px 70px rgba(2, 12, 23, 0.36);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::selection {
  background: var(--swamp-500);
  color: #ffffff;
}

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: rgba(16, 42, 67, 0.95);
  border-bottom: 1px solid rgba(130, 154, 177, 0.18);
  backdrop-filter: blur(14px);
}

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

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--swamp-400), var(--swamp-700));
  border-radius: 13px;
  box-shadow: 0 12px 28px rgba(45, 130, 133, 0.3);
  font-size: 15px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.desktop-nav > a,
.nav-dropdown > a {
  color: var(--mist-200);
  font-size: 15px;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav .is-active {
  color: #ffffff;
}

.nav-dropdown {
  position: relative;
  padding: 22px 0;
}

.dropdown-panel {
  position: absolute;
  top: 62px;
  left: -18px;
  width: 190px;
  display: grid;
  padding: 10px;
  background: rgba(36, 59, 83, 0.98);
  border: 1px solid rgba(130, 154, 177, 0.16);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

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

.dropdown-panel a {
  padding: 10px 12px;
  color: var(--mist-200);
  border-radius: 10px;
  font-size: 14px;
}

.dropdown-panel a:hover {
  background: var(--mist-700);
  color: #ffffff;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.search-form input,
.mobile-search input,
.filter-bar input {
  width: 250px;
  border: 1px solid rgba(130, 154, 177, 0.22);
  background: rgba(36, 59, 83, 0.82);
  color: #ffffff;
  border-radius: 14px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.mobile-search input:focus,
.filter-bar input:focus {
  border-color: var(--swamp-400);
  box-shadow: 0 0 0 3px rgba(45, 130, 133, 0.2);
}

.search-form button,
.mobile-search button,
.filter-bar a,
.inline-more,
.side-more,
.section-more {
  border: 0;
  border-radius: 14px;
  padding: 11px 16px;
  color: #ffffff;
  background: var(--swamp-600);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-form button:hover,
.mobile-search button:hover,
.filter-bar a:hover,
.inline-more:hover,
.side-more:hover,
.section-more:hover {
  background: var(--swamp-500);
  transform: translateY(-1px);
}

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

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(130, 154, 177, 0.16);
  background: rgba(36, 59, 83, 0.98);
  padding: 16px;
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin: 0 auto 14px;
  width: min(100%, 560px);
}

.mobile-search input {
  width: 100%;
}

.mobile-panel nav {
  display: grid;
  width: min(100%, 560px);
  margin: 0 auto;
  gap: 4px;
}

.mobile-panel nav a {
  padding: 12px 10px;
  color: var(--mist-200);
  border-radius: 10px;
}

.mobile-panel nav a:hover {
  background: var(--mist-700);
  color: #ffffff;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 42, 67, 0.95) 0%, rgba(16, 42, 67, 0.7) 45%, rgba(16, 42, 67, 0.2) 100%),
    linear-gradient(0deg, var(--mist-900) 0%, rgba(16, 42, 67, 0.24) 46%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0 auto;
  padding-bottom: 86px;
  max-width: 1180px;
}

.hero-pill,
.category-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(45, 130, 133, 0.84);
  border: 1px solid rgba(123, 184, 186, 0.3);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  width: min(720px, 100%);
  margin: 18px 0 16px;
  color: #ffffff;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  width: min(680px, 100%);
  margin: 0 0 22px;
  color: var(--mist-200);
  font-size: 19px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.hero-meta span,
.detail-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
}

.hero-meta span + span::before,
.detail-meta span + span::before,
.card-meta span + span::before {
  content: "·";
  margin-right: 10px;
  color: var(--mist-500);
}

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

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

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

.btn-primary {
  background: var(--swamp-500);
  box-shadow: 0 16px 34px rgba(45, 130, 133, 0.34);
}

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

.btn-ghost {
  background: rgba(36, 59, 83, 0.65);
  border: 1px solid rgba(188, 204, 220, 0.2);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(51, 78, 104, 0.9);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(16, 42, 67, 0.56);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(16, 42, 67, 0.85);
  transform: translateY(-1px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  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: 72px 0;
}

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

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

.section-head h2,
.detail-side h2,
.text-panel h2,
.site-footer h2 {
  margin: 0;
  color: #ffffff;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--mist-400);
  line-height: 1.7;
}

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

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

.movie-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  color: inherit;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--mist-800);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 42px rgba(2, 12, 23, 0.22);
}

.movie-card-wide .poster {
  aspect-ratio: 16 / 9;
}

.poster img,
.category-tile img,
.feature-main img,
.rank-thumb img,
.full-rank-img img,
.category-overview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.poster-shade,
.feature-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08) 55%, transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover img,
.category-tile:hover img,
.feature-main:hover img,
.rank-item:hover img,
.full-rank-item:hover img,
.category-overview-card:hover img {
  transform: scale(1.055);
}

.movie-card:hover .poster-shade,
.feature-main:hover .feature-gradient {
  opacity: 1;
}

.badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  padding: 5px 8px;
  color: #ffffff;
  background: rgba(16, 42, 67, 0.82);
  border-radius: 9px;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.badge-left {
  left: 10px;
}

.badge-right {
  right: 10px;
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: #ffffff;
  background: rgba(45, 130, 133, 0.88);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-card-body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.movie-card-body strong {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover strong,
.rank-item:hover strong,
.full-rank-item:hover strong,
.category-overview-card:hover h2 a {
  color: var(--swamp-300);
}

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

.card-meta {
  font-size: 12px;
  color: var(--mist-500);
  white-space: nowrap;
  overflow: hidden;
}

.horizontal-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

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

.horizontal-row .movie-card {
  flex: 0 0 320px;
}

.scroll-actions {
  display: flex;
  gap: 8px;
}

.scroll-actions button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--mist-700);
  cursor: pointer;
  font-size: 26px;
}

.scroll-actions button:hover {
  background: var(--mist-600);
}

.feature-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 26px;
}

.feature-main {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--mist-800);
  box-shadow: var(--shadow);
}

.feature-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 12px;
  padding: 32px;
}

.feature-copy strong {
  color: #ffffff;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
}

.feature-copy span,
.feature-copy em {
  color: var(--mist-200);
  line-height: 1.6;
  font-style: normal;
}

.feature-side,
.side-list {
  display: grid;
  gap: 14px;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: auto 120px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(36, 59, 83, 0.64);
  border: 1px solid rgba(130, 154, 177, 0.12);
  border-radius: var(--radius-md);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover,
.full-rank-item:hover,
.category-overview-card:hover {
  background: rgba(51, 78, 104, 0.76);
  transform: translateY(-2px);
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: var(--swamp-600);
  border-radius: 12px;
  font-weight: 800;
}

.rank-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--mist-800);
  border-radius: 12px;
}

.rank-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.rank-copy strong {
  color: #ffffff;
  line-height: 1.4;
}

.rank-copy span,
.rank-copy em {
  color: var(--mist-400);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--mist-800);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 42, 67, 0.94), rgba(16, 42, 67, 0.28));
}

.category-tile span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.category-tile strong {
  color: #ffffff;
  font-size: 20px;
}

.category-tile em {
  color: var(--mist-200);
  font-size: 13px;
  line-height: 1.5;
  font-style: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 20%, rgba(45, 130, 133, 0.33), transparent 28rem),
    linear-gradient(135deg, var(--mist-900), var(--mist-800));
}

.compact-hero {
  padding: 64px 0 52px;
}

.page-hero h1 {
  width: min(860px, 100%);
  margin: 18px 0 12px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.page-hero p {
  width: min(760px, 100%);
  margin: 0;
  color: var(--mist-200);
  line-height: 1.8;
  font-size: 18px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--mist-400);
  font-size: 14px;
}

.crumbs a:hover {
  color: #ffffff;
}

.crumbs strong {
  color: var(--mist-200);
  font-weight: 600;
}

.category-overview-list {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px;
  background: rgba(36, 59, 83, 0.56);
  border: 1px solid rgba(130, 154, 177, 0.12);
  border-radius: var(--radius-lg);
  transition: background 0.2s ease, transform 0.2s ease;
}

.category-overview-img {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--mist-800);
}

.category-overview-card h2 {
  margin: 0 0 10px;
  color: #ffffff;
}

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

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.sample-links a {
  padding: 7px 10px;
  color: var(--mist-200);
  background: rgba(16, 42, 67, 0.55);
  border-radius: 999px;
  font-size: 13px;
}

.sample-links a:hover {
  color: #ffffff;
  background: var(--swamp-600);
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  padding: 16px;
  background: rgba(36, 59, 83, 0.52);
  border: 1px solid rgba(130, 154, 177, 0.12);
  border-radius: var(--radius-md);
}

.filter-bar input {
  flex: 1;
  width: 100%;
}

.empty-state {
  padding: 34px;
  text-align: center;
  color: var(--mist-300);
  background: rgba(36, 59, 83, 0.52);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.full-rank-list {
  display: grid;
  gap: 14px;
}

.full-rank-item {
  display: grid;
  grid-template-columns: 58px 160px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  background: rgba(36, 59, 83, 0.55);
  border: 1px solid rgba(130, 154, 177, 0.12);
  border-radius: var(--radius-md);
  transition: background 0.2s ease, transform 0.2s ease;
}

.full-rank-num {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--mist-700);
  border-radius: 14px;
  font-weight: 800;
}

.full-rank-img {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: var(--mist-800);
}

.full-rank-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.full-rank-copy strong {
  color: #ffffff;
  font-size: 17px;
}

.full-rank-copy em,
.full-rank-copy span {
  color: var(--mist-400);
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.full-rank-tag {
  padding: 7px 10px;
  color: #ffffff;
  background: rgba(45, 130, 133, 0.72);
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.detail-wrap {
  padding: 36px 0 74px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.78fr);
  gap: 30px;
}

.detail-main,
.detail-side {
  min-width: 0;
}

.player-card,
.detail-info,
.detail-side {
  background: rgba(36, 59, 83, 0.55);
  border: 1px solid rgba(130, 154, 177, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(2, 12, 23, 0.2);
}

.player-card {
  padding: 12px;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
  border-radius: 18px;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(45, 130, 133, 0.35), rgba(16, 42, 67, 0.78));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover[hidden] {
  display: none;
}

.player-cover:hover .big-play {
  transform: scale(1.08);
}

.big-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  background: rgba(45, 130, 133, 0.92);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(45, 130, 133, 0.34);
  transition: transform 0.2s ease;
}

.player-status {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 4;
  color: var(--mist-200);
  font-size: 13px;
  pointer-events: none;
}

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

.detail-info h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.detail-meta {
  margin-bottom: 18px;
  font-size: 14px;
}

.lead-text {
  margin: 0 0 22px;
  padding: 16px 18px;
  color: var(--mist-200);
  background: rgba(16, 42, 67, 0.42);
  border-left: 4px solid var(--swamp-500);
  border-radius: 0 14px 14px 0;
  line-height: 1.8;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
}

.tag-row a,
.tag-row span {
  padding: 7px 10px;
  color: var(--mist-200);
  background: rgba(51, 78, 104, 0.78);
  border-radius: 999px;
  font-size: 13px;
}

.tag-row a {
  color: #ffffff;
  background: rgba(45, 130, 133, 0.82);
}

.text-panel {
  padding: 22px;
  background: rgba(16, 42, 67, 0.38);
  border-radius: var(--radius-md);
}

.text-panel + .text-panel {
  margin-top: 18px;
}

.text-panel h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

.text-panel p {
  margin: 0;
  color: var(--mist-200);
  line-height: 1.9;
  white-space: pre-line;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 92px;
  padding: 22px;
}

.detail-side h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

.detail-side .rank-item {
  grid-template-columns: 112px minmax(0, 1fr);
}

.detail-side .rank-num {
  display: none;
}

.side-more {
  display: block;
  margin-top: 18px;
  text-align: center;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(130, 154, 177, 0.14);
  background: rgba(7, 26, 44, 0.72);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 32px;
  padding: 50px 0 32px;
}

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

.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--mist-400);
  line-height: 1.7;
}

.site-footer h2 {
  margin-bottom: 14px;
  font-size: 16px;
}

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(130, 154, 177, 0.12);
  color: var(--mist-500);
  text-align: center;
  font-size: 13px;
}

[hidden],
.is-hidden {
  display: none !important;
}

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

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

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

  .wide-grid,
  .ranking-grid,
  .feature-layout,
  .detail-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner,
  .container,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .brand-title {
    font-size: 17px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    height: 540px;
  }

  .hero-content {
    width: min(100% - 24px, 1180px);
    padding-bottom: 70px;
  }

  .hero p {
    font-size: 16px;
    -webkit-line-clamp: 3;
  }

  .hero-arrow {
    display: none;
  }

  .section {
    padding: 48px 0;
  }

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

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

  .horizontal-row .movie-card {
    flex-basis: 250px;
  }

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

  .rank-item,
  .detail-side .rank-item {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .rank-num {
    display: none;
  }

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .full-rank-item {
    grid-template-columns: 48px 96px minmax(0, 1fr);
  }

  .full-rank-tag {
    display: none;
  }

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

  .text-panel {
    padding: 18px;
  }

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

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

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

  .full-rank-item {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .full-rank-num {
    display: none;
  }
}
