:root {
  --ink-950: #04131a;
  --ink-900: #0b1f2a;
  --ink-800: #123040;
  --teal-800: #115e59;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-200: #99f6e4;
  --teal-100: #ccfbf1;
  --teal-50: #f0fdfa;
  --paper: #f4f8f8;
  --ink-text: #1a2e35;
  --muted: #5b7178;
  --line: #d7e4e6;
  --rose-700: #e11d48;
  --amber-950: #042f2e;
  --amber-900: #134e4a;
  --amber-800: #115e59;
  --amber-700: #0f766e;
  --amber-600: #0d9488;
  --amber-100: #ccfbf1;
  --slate-950: #04131a;
  --slate-900: #0b1f2a;
  --slate-800: #1a2e35;
  --slate-700: #334155;
  --slate-600: #5b7178;
  --slate-100: #e8f0f2;
  --indigo-900: #134e4a;
  --blue-950: #042f2e;
  --emerald-600: #0d9488;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--paper);
  color: var(--ink-text);
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select { font-family: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  padding: 8px 14px;
  background: #fff;
  color: var(--ink-900);
  font-weight: 800;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ===== Header ===== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink-950);
  color: #e8f4f5;
  border-bottom: 2px solid var(--teal-500);
}
.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  height: 68px;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.brand > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--teal-400);
  color: var(--ink-950);
  font-size: 14px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
}
.nav-links a {
  opacity: 0.86;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: 0.18s;
}
.nav-links a:hover {
  opacity: 1;
  color: var(--teal-200);
}
.nav-links a.is-active {
  opacity: 1;
  color: #fff;
  border-bottom-color: var(--teal-400);
}
.menu-button {
  display: none;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 8px;
  width: 44px;
  height: 42px;
  padding: 10px;
}
.menu-button span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 999px;
}
.menu-panel {
  display: none;
  background: var(--ink-900);
  border-top: 1px solid rgba(45, 212, 191, 0.16);
  padding: 12px 20px;
}
.menu-panel a {
  display: block;
  color: #e8f4f5;
  padding: 10px 0;
}
body.nav-open .menu-panel,
.menu-panel.is-open {
  display: block;
  position: fixed;
  left: 0;
  right: 0;
  top: 68px;
  max-height: calc(100vh - 68px);
  max-height: calc(100dvh - 68px);
  overflow-y: auto;
  z-index: 49;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 18px 38px rgba(4, 19, 26, 0.4);
}
.menu-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 18px;
  border-top: 1px solid rgba(45, 212, 191, 0.16);
  margin-top: 8px;
  padding-top: 8px;
}

/* ===== Home cover: two-column, aligned ===== */
.cover-section {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background:
    radial-gradient(circle at 18% 18%, rgba(45, 212, 191, 0.2), transparent 30%),
    linear-gradient(135deg, var(--ink-950), #0a3d42 52%, #134e4a);
  color: #fff;
}
.cover-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.7) 1px, transparent 0);
  background-size: 28px 28px;
  animation: drift 18s linear infinite;
}
.cover-inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  min-height: 620px;
  padding: 64px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-200);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 13px;
}
.cover-main h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  margin: 0 0 18px;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.cover-lead {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
  color: #c8e6e3;
  margin: 0 0 24px;
  max-width: 640px;
}
.cover-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 0;
}
.cover-actions a,
.page-actions a,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 800;
  background: #fff;
  color: var(--ink-900);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: 0.2s;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.cover-actions a:nth-child(2),
.page-actions a:nth-child(2) {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: none;
}
.cover-actions a:hover,
.page-actions a:hover,
.primary-link:hover {
  transform: translateY(-2px);
}
.cover-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.cover-cats a,
.pill-link {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.cover-stage {
  position: relative;
  min-height: 500px;
}
.cover-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 18px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateX(16px);
  pointer-events: none;
  transition: 0.5s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cover-slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.cover-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.cover-search {
  display: flex;
  gap: 8px;
  margin: 22px 0 0;
  max-width: 560px;
}
.cover-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
}
.cover-search input::-webkit-input-placeholder { color: #c8e6e3; }
.cover-search input::placeholder { color: #c8e6e3; }
.cover-search button {
  flex: 0 0 auto;
  height: 48px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  background: #fff;
  color: var(--ink-900);
  font-weight: 800;
  cursor: pointer;
}
.cover-copy h2,
.cover-copy .cover-title {
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 12px;
  font-weight: 900;
}
.cover-copy p {
  line-height: 1.7;
  color: #d5ecea;
  margin: 0 0 16px;
}
.cover-poster {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink-950), var(--teal-800));
  min-height: 300px;
}
.cover-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-dots {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.slide-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}
.slide-dots button.is-active {
  width: 28px;
  background: #fff;
}

/* ===== Sections ===== */
.section-block,
.filter-section,
.category-directory,
.category-preview,
.detail-content {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px 20px;
}
.soft-block {
  max-width: none;
  background: linear-gradient(90deg, #eef6f6, #f7fbfb);
  padding-left: max(20px, calc((100% - var(--wrap)) / 2));
  padding-right: max(20px, calc((100% - var(--wrap)) / 2));
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.section-heading h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
  margin: 0;
  font-weight: 900;
  color: var(--ink-text);
}
.section-heading span {
  font-size: 22px;
  line-height: 1;
  color: var(--teal-600);
}
.section-heading > a {
  margin-left: auto;
  color: var(--teal-700);
  font-weight: 800;
  white-space: nowrap;
}
.section-heading.invert h2,
.section-heading.invert a,
.section-heading.invert { color: #fff; }
.section-heading.invert span { color: var(--teal-300, var(--teal-200)); }

/* ===== Movie cards: poster + text below ===== */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.movie-grid.four-col,
.movie-grid.all-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.movie-grid.hot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.movie-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: 0.22s;
  border: 1px solid var(--line);
  height: 100%;
}
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}
.movie-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.poster-wrap {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink-900), var(--teal-800));
  flex-shrink: 0;
}
.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.45s;
}
.movie-card:hover .poster-wrap img { transform: scale(1.06); }
.rank-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--rose-700);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.movie-card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.movie-meta {
  color: var(--teal-700);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 6px;
}
.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--ink-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.movie-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.8em;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.tag-row span {
  font-size: 11px;
  font-weight: 800;
  color: var(--teal-800);
  background: var(--teal-50);
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: 4px 8px;
}
.light-tags span {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* ===== Category ===== */
.category-band {
  background: linear-gradient(135deg, var(--ink-950), #0a3d42 48%, var(--ink-900));
  padding: 64px max(20px, calc((100% - var(--wrap)) / 2)) 72px;
  color: #fff;
  position: relative;
  z-index: 1;
}
.category-band .section-heading { margin-bottom: 28px; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.category-tile { display: flex; min-height: 0; }
.category-tile-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 236px;
  padding: 20px;
  border-radius: 16px;
  transition: 0.2s;
}
.category-tile--band .category-tile-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.category-tile--band .category-tile-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.14);
}
.category-tile--directory .category-tile-card {
  background: #fff;
  color: var(--ink-text);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}
.category-tile--directory .category-tile-card:hover {
  transform: translateY(-3px);
  background: var(--teal-50);
}
.category-tile-head { display: block; flex: 1; }
.category-tile-head strong {
  display: block;
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 8px;
  font-weight: 900;
}
.category-tile-head p {
  margin: 0;
  opacity: 0.78;
  line-height: 1.6;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.category-tile-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 6px;
}
.category-tile--directory .category-tile-foot { border-top-color: var(--line); }
.category-tile-foot a {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.category-tile--band .category-tile-foot a { color: var(--teal-200); }
.category-tile--directory .category-tile-foot a { color: var(--teal-700); }
.category-tile-foot a:hover { opacity: 1; text-decoration: underline; }

/* ===== Inner pages ===== */
.page-hero {
  background: linear-gradient(135deg, var(--ink-950), #0a3d42 50%, #134e4a);
  color: #fff;
}
.page-hero > div {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px 20px;
}
.page-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  margin: 0 0 14px;
  font-weight: 900;
}
.page-hero p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
  max-width: 720px;
  color: #c8e6e3;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.filter-bar.compact { max-width: 420px; }
.filter-bar input,
.filter-bar select {
  flex: 1 1 160px;
  min-width: 0;
  width: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: var(--ink-text);
  outline: none;
}
.filter-bar input { flex: 2 1 240px; }
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.16);
}
.empty-state {
  display: none;
  text-align: center;
  padding: 40px;
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  border: 1px dashed var(--line);
}
.empty-state.is-active { display: block; }
.is-hidden { display: none !important; }
.category-preview { padding-top: 32px; }
.category-intro {
  margin: -8px 0 24px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 760px;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.related-categories h2 { font-size: 26px; margin: 0 0 16px; }
.related-categories .pill-link { background: var(--teal-700); }

/* ===== Rank ===== */
.rank-section { max-width: none; }
.rank-row {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: 0.18s;
}
.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}
.rank-row a {
  display: grid;
  grid-template-columns: 64px 140px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
}
.rank-index {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-600), #0a3d42);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
}
.rank-thumb {
  height: 104px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink-900), var(--teal-800));
}
.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rank-copy h2 {
  font-size: 22px;
  margin: 2px 0 6px;
  color: var(--ink-text);
}
.rank-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* ===== Detail / player ===== */
.detail-head {
  background:
    radial-gradient(circle at 80% 10%, rgba(45, 212, 191, 0.18), transparent 26%),
    linear-gradient(135deg, var(--ink-950), #0a3d42);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.detail-head-inner { max-width: var(--wrap); margin: 0 auto; }
.breadcrumbs {
  max-width: none;
  margin: 0;
  padding: 22px 20px 0;
  display: flex;
  gap: 8px;
  color: var(--teal-200);
  font-weight: 700;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs [aria-current="page"] { color: #fff; }
.detail-layout {
  max-width: none;
  margin: 0;
  padding: 36px 20px 56px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}
.detail-poster {
  height: 420px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink-900), var(--teal-800));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-copy h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  margin: 0 0 16px;
  font-weight: 900;
}
.lead-text {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
  color: #c8e6e3;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.detail-stats span {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--teal-200);
  font-size: 12px;
  font-weight: 800;
}
.detail-tags span {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.detail-play-btn { margin-top: 8px; }
.player-section {
  background: #061318;
  padding: 28px 20px 36px;
}
.player-section--top { padding-top: 22px; }
.player-shell { max-width: var(--wrap); margin: 0 auto; }
.breadcrumbs--player {
  padding: 0 0 16px;
  color: var(--teal-200);
  font-weight: 700;
}
.breadcrumbs--player a:hover { color: #fff; }
.player-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: #fff;
  flex-wrap: wrap;
}
.player-bar-label {
  margin: 0 0 6px;
  color: var(--teal-200);
  font-size: 13px;
  font-weight: 800;
}
.player-bar h1 {
  margin: 0;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  line-height: 1.2;
}
.player-bar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.player-bar-tags span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--teal-200);
  font-size: 12px;
  font-weight: 800;
}
.video-frame {
  max-width: none;
  margin: 0;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}
.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.content-main { display: grid; gap: 18px; }
.detail-block,
.content-side {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  padding: 24px 26px;
  border: 1px solid var(--line);
}
.detail-block h2,
.content-side h2 {
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--ink-text);
}
.detail-block p {
  font-size: 16px;
  line-height: 1.9;
  color: #3d545a;
  margin: 0;
}
.content-side { position: sticky; top: 84px; }
.detail-related { padding-top: 12px; }
.info-grid { display: grid; gap: 12px; margin: 0; }
.info-grid div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.info-grid dt {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}
.info-grid dd {
  margin: 4px 0 0;
  color: var(--ink-text);
  font-weight: 800;
  line-height: 1.5;
}
.info-grid a { color: var(--teal-700); }

/* ===== Footer ===== */
.site-footer {
  position: relative;
  z-index: 5;
  background: linear-gradient(180deg, var(--ink-900), var(--ink-950));
  color: #9cb8b8;
  border-top: 1px solid rgba(45, 212, 191, 0.16);
}
.footer-shell {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 20px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}
.footer-col h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.footer-col--brand { max-width: 320px; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 20px;
  margin-bottom: 12px;
}
.footer-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--teal-500);
  color: var(--ink-950);
  font-size: 13px;
  flex-shrink: 0;
}
.footer-about {
  margin: 0;
  line-height: 1.75;
  color: #7f9b9b;
  font-size: 14px;
}
.footer-links { display: grid; gap: 8px; }
.footer-links a {
  display: block;
  color: #9cb8b8;
  font-size: 14px;
  line-height: 1.5;
  transition: 0.18s;
}
.footer-links a:hover { color: var(--teal-400); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(45, 212, 191, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { margin: 0; color: #7f9b9b; font-size: 13px; }
.footer-bottom-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-contact-fly {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d5eceb;
  font-weight: 800;
  font-size: 13px;
  animation: footerFly 3s ease-in-out infinite;
}
.footer-tg-icon {
  width: 18px;
  height: 18px;
  color: #2dd4bf;
  flex-shrink: 0;
}
@keyframes footerFly {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-5px) rotate(3deg); }
}
.footer-top-btn {
  border: 0;
  border-radius: 10px;
  background: var(--teal-600);
  color: #fff;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.footer-top-btn:hover { background: var(--teal-500); }

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(28px, 28px, 0); }
}

.result-count { margin: 0 0 18px; color: var(--muted); font-weight: 800; }
.info-list { margin: 0 0 22px; padding-left: 20px; color: #3d545a; line-height: 1.8; }
.content-main pre {
  overflow: auto;
  padding: 14px;
  border-radius: 10px;
  background: var(--teal-50);
  color: #3d545a;
  font-size: 13px;
}
.player-error {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.28);
  color: #fecdd3;
  font-size: 14px;
  font-weight: 700;
}

@media (hover: none) {
  .movie-card:hover,
  .cover-actions a:hover,
  .page-actions a:hover,
  .primary-link:hover { transform: none; }
}

@media (max-width: 1050px) {
  .cover-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding: 40px 20px;
  }
  .cover-section,
  .cover-stage { min-height: 0; }
  .cover-slide {
    position: relative;
    display: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .cover-slide.is-active { display: grid; }
  .slide-dots {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 14px;
  }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .movie-grid.four-col,
  .movie-grid.all-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-bar input,
  .filter-bar select { flex: 1 1 calc(50% - 6px); }
  .detail-content { grid-template-columns: 1fr; }
  .content-side { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

@media (max-width: 760px) {
  .nav-inner {
    height: 56px;
    padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  }
  body.nav-open .menu-panel,
  .menu-panel.is-open {
    top: 56px;
    max-height: calc(100vh - 56px);
    max-height: calc(100dvh - 56px);
  }
  .nav-links { display: none; }
  .menu-button { display: block; }
  .brand { font-size: 15px; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }

  .cover-section,
  .cover-inner,
  .cover-stage { min-height: 0; }
  .cover-inner { padding: 28px 16px 32px; gap: 20px; }
  .cover-main h1 {
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: 0;
    margin-bottom: 12px;
  }
  .eyebrow { font-size: 12px; letter-spacing: 0.04em; }
  .cover-lead {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .cover-search { flex-direction: column; margin-top: 16px; max-width: none; }
  .cover-search input,
  .cover-search button { width: 100%; height: 46px; font-size: 16px; }
  .cover-actions { flex-direction: column; margin-top: 12px; }
  .cover-actions a,
  .cover-copy .primary-link { width: 100%; }
  .cover-slide {
    grid-template-columns: 1fr;
    padding: 14px;
    border-radius: 14px;
  }
  .cover-poster { min-height: 220px; max-height: 280px; order: -1; }
  .cover-copy h2,
  .cover-copy .cover-title { font-size: 20px; }

  .section-heading {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }
  .section-heading h2 {
    font-size: 18px;
    flex: 1 1 auto;
    min-width: 0;
  }
  .section-heading > a {
    margin-left: 0;
    width: 100%;
    white-space: normal;
    font-size: 13px;
  }
  .section-block,
  .filter-section,
  .category-directory,
  .category-preview,
  .detail-content { padding: 32px 16px; }
  .soft-block,
  .category-band {
    padding-left: 16px;
    padding-right: 16px;
  }
  .category-band { padding-top: 36px; padding-bottom: 40px; }

  .movie-grid,
  .movie-grid.four-col,
  .movie-grid.all-grid,
  .movie-grid.hot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .poster-wrap {
    height: auto;
    aspect-ratio: 2 / 3;
  }
  .movie-card-body { padding: 10px 10px 12px; }
  .movie-card h3 { font-size: 14px; min-height: 0; }
  .movie-card p { display: none; }
  .movie-meta { font-size: 11px; }

  .category-grid { grid-template-columns: 1fr; gap: 10px; }
  .category-tile-card { min-height: 0; padding: 14px; }
  .category-tile-head strong { font-size: 16px; }
  .category-tile-head p {
    -webkit-line-clamp: 2;
  }

  .filter-bar input,
  .filter-bar select { flex: 1 1 100%; font-size: 16px; }
  .rank-row a {
    grid-template-columns: 44px 78px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }
  .rank-thumb { height: 80px; }
  .rank-copy h2 { font-size: 17px; }
  .rank-copy p,
  .rank-copy .tag-row { display: none; }
  .page-hero > div { padding: 36px 16px; }
  .page-hero h1 { font-size: clamp(24px, 7vw, 32px); }
  .page-hero p { font-size: 15px; }
  .detail-layout { grid-template-columns: 1fr; padding-top: 24px; }
  .detail-poster { height: 340px; order: -1; }
  .detail-copy h1 { font-size: clamp(24px, 7vw, 32px); }
  .lead-text { font-size: 15px; -webkit-line-clamp: 4; }
  .player-section { padding: 18px 16px 24px; }
  .player-bar { align-items: flex-start; }
  .player-bar h1 { font-size: 20px; }
  .video-frame { border-radius: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-shell { padding: 36px 16px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
