:root {
  color-scheme: dark;
  --page-bg: #020617;
  --panel-bg: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.78);
  --panel-line: rgba(148, 163, 184, 0.16);
  --text-main: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #38bdf8;
  --orange: #fb923c;
  --red: #fb7185;
  --green: #34d399;
  --violet: #a78bfa;
  --pink: #f472b6;
  --amber: #f59e0b;
  --teal: #2dd4bf;
  --shadow-cyan: 0 24px 80px rgba(34, 211, 238, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top left,
      rgba(34, 211, 238, 0.14),
      transparent 28rem
    ),
    radial-gradient(
      circle at 80% 12%,
      rgba(59, 130, 246, 0.12),
      transparent 32rem
    ),
    var(--page-bg);
  color: var(--text-main);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  box-shadow: 0 0 38px rgba(34, 211, 238, 0.38);
}

.logo-text {
  font-size: 1.18rem;
  background: linear-gradient(90deg, var(--cyan), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex: 1;
  min-width: 0;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: white;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 22rem;
}

.nav-search input,
.filter-panel input,
.filter-panel select,
.home-search-strip input {
  width: 100%;
  border: 1px solid var(--panel-line);
  border-radius: 0.85rem;
  outline: none;
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.86);
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.nav-search input {
  padding: 0.72rem 0.9rem;
}

.nav-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.home-search-strip input:focus {
  border-color: rgba(34, 211, 238, 0.68);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
  background: rgba(15, 23, 42, 0.96);
}

.nav-search button,
.home-search-strip button {
  border: 0;
  border-radius: 0.85rem;
  padding: 0.72rem 1rem;
  color: white;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  cursor: pointer;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.32rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.9);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0 auto;
  background: white;
}

.mobile-nav {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  padding: 0 1.25rem 1.25rem;
}

.mobile-nav a {
  border: 1px solid var(--panel-line);
  border-radius: 0.85rem;
  padding: 0.86rem 1rem;
  color: var(--text-soft);
  background: rgba(15, 23, 42, 0.92);
}

.hero {
  position: relative;
  height: min(72vh, 650px);
  min-height: 520px;
  overflow: hidden;
  background: #0f172a;
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 6s ease;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(2, 6, 23, 0.96),
      rgba(2, 6, 23, 0.72) 46%,
      rgba(2, 6, 23, 0.18)
    ),
    linear-gradient(0deg, rgba(2, 6, 23, 1), transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 1280px);
  height: 100%;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  max-width: 1280px;
}

.hero-content > * {
  max-width: 720px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  color: var(--cyan);
  font-size: 0.94rem;
}

.hero-meta span:first-child {
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  padding: 0.35rem 0.78rem;
  color: #cffafe;
  background: rgba(34, 211, 238, 0.18);
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 1.2rem 0 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 1.3rem 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border-radius: 0.88rem;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    border 0.2s ease,
    background 0.2s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: var(--shadow-cyan);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.primary-button.full {
  width: 100%;
}

.ghost-button,
.section-link {
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.7);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  font-size: 2.2rem;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 1.2rem;
}

.hero-next {
  right: 1.2rem;
}

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

.hero-dots button {
  width: 0.7rem;
  height: 0.7rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition:
    width 0.2s ease,
    background 0.2s ease;
}

.hero-dots button.is-active {
  width: 2.2rem;
  background: var(--cyan);
}

.home-search-strip,
.content-section,
.page-hero,
.detail-layout,
.category-overview-grid {
  width: min(100% - 2rem, 1280px);
  margin: 0 auto;
}

.home-search-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 1.2rem;
  align-items: center;
  margin-top: 2rem;
  border: 1px solid var(--panel-line);
  border-radius: 1.6rem;
  padding: 1.25rem;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.92),
    rgba(30, 41, 59, 0.74)
  );
}

.home-search-strip h2,
.home-search-strip p {
  margin: 0;
}

.home-search-strip p {
  margin-top: 0.45rem;
  color: var(--text-muted);
}

.home-search-strip form {
  display: flex;
  gap: 0.6rem;
}

.home-search-strip input {
  padding: 0.9rem 1rem;
}

.content-section {
  padding: 4rem 0 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-heading p,
.section-heading h2 {
  margin: 0;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.section-bar {
  width: 0.32rem;
  height: 2.6rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.accent-orange .section-bar,
.accent-orange .logo-mark {
  background: linear-gradient(180deg, var(--orange), #ef4444);
}

.accent-red .section-bar,
.accent-red .logo-mark {
  background: linear-gradient(180deg, var(--red), #ef4444);
}

.accent-green .section-bar,
.accent-green .logo-mark {
  background: linear-gradient(180deg, var(--green), #10b981);
}

.accent-blue .section-bar,
.accent-blue .logo-mark {
  background: linear-gradient(180deg, var(--blue), #2563eb);
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.2rem;
}

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

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.11);
  border-radius: 1rem;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.28);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border 0.28s ease;
}

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(2, 6, 23, 0.95),
    rgba(15, 23, 42, 0.28),
    rgba(15, 23, 42, 0.04)
  );
}

.movie-card:hover .poster-wrap {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 22px 70px rgba(34, 211, 238, 0.14);
  transform: translateY(-0.35rem) scale(1.015);
}

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

.poster-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.55rem;
  padding: 0.28rem 0.5rem;
  color: white;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  font-weight: 700;
}

.poster-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: white;
  font-size: 2.8rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster-play::before {
  content: "";
  position: absolute;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.78);
  backdrop-filter: blur(10px);
}

.poster-play {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.poster-play::after {
  content: "";
}

.movie-card:hover .poster-play {
  opacity: 1;
}

.poster-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 1rem;
}

.poster-info h3 {
  display: -webkit-box;
  min-height: 2.8em;
  margin: 0 0 0.45rem;
  overflow: hidden;
  color: white;
  font-size: 1rem;
  line-height: 1.38;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.poster-info p {
  display: -webkit-box;
  margin: 0.16rem 0 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.feature-panel {
  border: 1px solid var(--panel-line);
  border-radius: 1.8rem;
  padding: 2rem;
  margin-top: 4rem;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.94),
    rgba(30, 41, 59, 0.72)
  );
}

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

.category-tile {
  position: relative;
  min-height: 13rem;
  overflow: hidden;
  border: 1px solid var(--panel-line);
  border-radius: 1.3rem;
  padding: 1.2rem;
  background: rgba(15, 23, 42, 0.86);
  transition:
    transform 0.22s ease,
    border 0.22s ease;
}

.category-tile:hover {
  border-color: rgba(34, 211, 238, 0.34);
  transform: translateY(-4px);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(2, 6, 23, 0.94),
    rgba(15, 23, 42, 0.32)
  );
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span {
  display: block;
  margin-top: 5.5rem;
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
}

.category-tile p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.ranking-list,
.compact-list {
  display: grid;
  gap: 1rem;
}

.ranking-item,
.compact-card {
  display: grid;
  align-items: center;
  border: 1px solid var(--panel-line);
  border-radius: 1rem;
  color: inherit;
  background: rgba(15, 23, 42, 0.68);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border 0.2s ease;
}

.ranking-item:hover,
.compact-card:hover {
  border-color: rgba(34, 211, 238, 0.28);
  background: rgba(30, 41, 59, 0.9);
  transform: translateY(-2px);
}

.ranking-item {
  grid-template-columns: 3.2rem 5rem minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.75rem;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  color: white;
  background: linear-gradient(135deg, #fb7185, #ef4444);
  font-weight: 900;
}

.ranking-item img,
.compact-card img {
  width: 5rem;
  height: 5rem;
  border-radius: 0.75rem;
  object-fit: cover;
}

.ranking-copy,
.compact-card div {
  min-width: 0;
}

.ranking-copy h3,
.compact-card h3 {
  margin: 0 0 0.35rem;
  color: white;
  font-size: 1rem;
}

.ranking-copy p,
.compact-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ranking-copy span,
.compact-card span {
  display: block;
  margin-top: 0.45rem;
  color: #64748b;
  font-size: 0.76rem;
}

.compact-card {
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 0.95rem;
  padding: 0.75rem;
}

.section-link {
  margin-top: 1rem;
}

.page-hero {
  margin-top: 2rem;
  border: 1px solid var(--panel-line);
  border-radius: 1.8rem;
  padding: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(
      circle at 16% 10%,
      rgba(34, 211, 238, 0.18),
      transparent 22rem
    ),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.72));
}

.page-hero p,
.page-hero h1,
.page-hero span {
  margin: 0;
}

.page-hero p {
  color: var(--cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.page-hero h1 {
  margin-top: 0.8rem;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  letter-spacing: -0.05em;
}

.page-hero span {
  display: block;
  max-width: 760px;
  margin-top: 1rem;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
  border: 1px solid var(--panel-line);
  border-radius: 1.25rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.72);
}

.filter-panel label {
  display: grid;
  gap: 0.42rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.filter-panel input,
.filter-panel select {
  min-height: 2.9rem;
  padding: 0.72rem 0.8rem;
}

.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.filter-selects label {
  min-width: 9.5rem;
}

.empty-state {
  display: none;
  border: 1px solid var(--panel-line);
  border-radius: 1.2rem;
  padding: 3rem 1rem;
  color: var(--text-muted);
  text-align: center;
  background: rgba(15, 23, 42, 0.7);
}

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

.category-overview-grid {
  display: grid;
  gap: 1.2rem;
  padding: 2rem 0 4rem;
}

.category-overview-card {
  border: 1px solid var(--panel-line);
  border-radius: 1.5rem;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.72);
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.category-overview-head p,
.category-overview-head h2,
.category-overview-head span {
  margin: 0;
}

.category-overview-head p {
  color: var(--cyan);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.category-overview-head h2 {
  margin-top: 0.35rem;
  font-size: 1.55rem;
}

.category-overview-head span {
  display: block;
  margin-top: 0.4rem;
  color: var(--text-muted);
}

.category-overview-head a {
  align-self: flex-start;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 0.85rem;
  padding: 0.65rem 0.9rem;
  color: #cffafe;
  background: rgba(34, 211, 238, 0.08);
}

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

.ranking-page {
  padding-bottom: 4rem;
}

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

.detail-hero {
  width: min(100% - 2rem, 1280px);
  margin: 1.6rem auto 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.detail-title-block {
  margin-top: 1rem;
  border: 1px solid var(--panel-line);
  border-radius: 1.6rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(
      circle at 10% 15%,
      rgba(34, 211, 238, 0.18),
      transparent 26rem
    ),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.72));
}

.detail-title-block p,
.detail-title-block h1,
.detail-title-block span {
  margin: 0;
}

.detail-title-block p {
  color: var(--cyan);
}

.detail-title-block h1 {
  margin-top: 0.8rem;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-title-block span {
  display: block;
  max-width: 820px;
  margin-top: 1rem;
  color: var(--text-soft);
  line-height: 1.8;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.4rem;
  padding: 1.4rem 0 4rem;
}

.detail-main,
.detail-sidebar {
  display: grid;
  align-content: start;
  gap: 1.2rem;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 1.2rem;
  background: black;
  box-shadow: var(--shadow-cyan);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.2));
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

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

.player-overlay strong {
  margin-top: 5.8rem;
  font-size: 1.05rem;
}

.play-circle {
  position: absolute;
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  padding-left: 0.25rem;
  color: white;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.42);
  font-size: 2rem;
}

.detail-panel,
.cover-panel,
.info-panel {
  border: 1px solid var(--panel-line);
  border-radius: 1.2rem;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.76);
}

.detail-panel h2,
.info-panel h2 {
  margin: 0 0 0.9rem;
  font-size: 1.28rem;
}

.detail-panel p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.9;
}

.detail-panel p + p {
  margin-top: 0.8rem;
}

.lead-text {
  color: #e2e8f0 !important;
}

.cover-panel {
  display: grid;
  gap: 1rem;
}

.cover-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 1rem;
  object-fit: cover;
}

.info-panel dl {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.6rem 0.8rem;
  margin: 0;
}

.info-panel dt {
  color: var(--text-muted);
}

.info-panel dd {
  margin: 0;
  color: var(--text-main);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag-cloud span {
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.08);
  font-size: 0.82rem;
}

.sidebar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.sidebar-grid .poster-info {
  padding: 0.7rem;
}

.sidebar-grid .poster-info h3 {
  font-size: 0.84rem;
}

.sidebar-grid .poster-info p {
  font-size: 0.68rem;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--panel-line);
  background: rgba(2, 6, 23, 0.74);
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: 2rem;
  width: min(100% - 2rem, 1280px);
  margin: 0 auto;
  padding: 3rem 0;
}

.footer-brand p {
  max-width: 560px;
  margin: 1rem 0 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-column h3 {
  margin: 0 0 0.8rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--text-muted);
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  width: min(100% - 2rem, 1280px);
  margin: 0 auto;
  border-top: 1px solid var(--panel-line);
  padding: 1.3rem 0;
  color: #64748b;
  font-size: 0.9rem;
}

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

  .nav-search {
    margin-left: auto;
  }

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

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

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

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

@media (max-width: 900px) {
  .hero {
    min-height: 560px;
  }

  .home-search-strip,
  .split-layout,
  .detail-layout,
  .footer-shell,
  .filter-panel,
  .ranking-list.full {
    grid-template-columns: 1fr;
  }

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

  .compact-list.mini {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    grid-row: auto;
  }
}

@media (max-width: 680px) {
  .nav-shell {
    gap: 0.7rem;
  }

  .logo-text {
    font-size: 1rem;
  }

  .nav-search {
    display: none;
  }

  .mobile-nav.is-open {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 520px;
    height: 74vh;
  }

  .hero-content {
    padding-top: 3rem;
  }

  .hero-arrow {
    display: none;
  }

  .home-search-strip form {
    flex-direction: column;
  }

  .poster-grid,
  .poster-grid.grid-four,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .poster-info {
    padding: 0.78rem;
  }

  .poster-info h3 {
    font-size: 0.9rem;
  }

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

  .category-overview-head {
    display: grid;
  }

  .ranking-item {
    grid-template-columns: 2.8rem 4.2rem minmax(0, 1fr);
  }

  .ranking-item img,
  .compact-card img {
    width: 4.2rem;
    height: 4.2rem;
  }

  .compact-card {
    grid-template-columns: 4.2rem minmax(0, 1fr);
  }

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