:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(103, 232, 249, 0.38);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft-text: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.14);
  --orange: #fb923c;
  --green: #4ade80;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.12), transparent 28rem),
    radial-gradient(circle at 85% 10%, rgba(251, 146, 60, 0.10), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 86%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #06111c;
  background: linear-gradient(135deg, var(--cyan), #67e8f9 52%, var(--orange));
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.35);
}

.logo-text {
  font-size: 20px;
  white-space: nowrap;
}

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

.nav-link,
.mobile-nav-link,
.quick-nav a,
.footer-links a,
.link-cloud a {
  color: var(--soft-text);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan);
  background: var(--cyan-soft);
}

.header-search {
  width: 292px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.wide-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(15, 23, 42, 0.82);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.header-search input,
.mobile-search input {
  padding: 10px 12px;
}

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}

.header-search button,
.mobile-search button,
.wide-search button,
.filter-panel button {
  border: 0;
  color: #06111c;
  background: var(--cyan);
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.header-search button {
  padding: 10px 14px;
}

.header-search button:hover,
.mobile-search button:hover,
.wide-search button:hover,
.filter-panel button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.quick-nav {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 0 12px;
}

.quick-nav a {
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.58);
}

.quick-nav a:hover {
  border-color: var(--line-strong);
  color: var(--cyan);
}

.mobile-toggle,
.mobile-nav {
  display: none;
}

.mobile-toggle {
  margin-left: auto;
  border: 0;
  color: var(--text);
  background: rgba(15, 23, 42, 0.88);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.mobile-nav {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-nav-link {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--cyan);
  background: rgba(15, 23, 42, 0.85);
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.mobile-search button {
  padding: 0 16px;
}

main {
  min-height: 70vh;
}

.hero {
  position: relative;
  height: 85vh;
  min-height: 680px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

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

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

.hero-bg,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.08);
}

.hero-shade,
.detail-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 34%, rgba(2, 6, 23, 0.34) 68%, rgba(2, 6, 23, 0.9) 100%),
    linear-gradient(0deg, #020617 0%, transparent 34%, rgba(2, 6, 23, 0.62) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 380px;
  align-items: center;
  gap: 52px;
  padding-bottom: 110px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(46px, 7vw, 86px);
  max-width: 900px;
}

.hero-desc,
.page-hero p,
.detail-one-line {
  color: var(--soft-text);
  font-size: 18px;
}

.hero-desc {
  max-width: 740px;
  margin: 22px 0 0;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.mini-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft-text);
  background: rgba(15, 23, 42, 0.68);
}

.hero-tags span,
.detail-tags span {
  padding: 7px 11px;
}

.mini-tags span {
  padding: 4px 8px;
  font-size: 12px;
}

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

.primary-button,
.ghost-button,
.text-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.primary-button {
  min-height: 46px;
  padding: 0 24px;
  color: #06111c;
  background: linear-gradient(135deg, var(--cyan), #67e8f9);
  box-shadow: 0 16px 38px rgba(34, 211, 238, 0.28);
}

.ghost-button {
  min-height: 46px;
  padding: 0 24px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid var(--line);
}

.ghost-button:hover,
.text-button:hover,
.section-more:hover {
  color: var(--cyan);
  border-color: var(--line-strong);
  background: rgba(34, 211, 238, 0.1);
}

.hero-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.32);
  box-shadow: var(--shadow), 0 0 52px rgba(34, 211, 238, 0.16);
  transform: rotate(2deg);
}

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

.hero-poster:hover img {
  transform: scale(1.08);
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  width: 76px;
  height: 76px;
  align-items: center;
  justify-content: center;
  color: #06111c;
  background: rgba(103, 232, 249, 0.9);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.hero-control {
  position: absolute;
  z-index: 5;
  top: 46%;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.68);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 28px;
}

.hero-next {
  right: 28px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.hero-dot.is-active {
  width: 30px;
  background: var(--cyan);
}

.hero-strip {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 5;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.search-panel,
.content-section,
.page-hero,
.detail-content,
.ranking-layout,
.category-overview-list {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.search-panel {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.2fr);
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(8, 47, 73, 0.42));
  box-shadow: var(--shadow);
}

.search-panel p,
.section-heading p {
  margin: 0 0 5px;
  color: var(--cyan);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.search-panel h2,
.section-heading h2,
.ranking-sidebar h2,
.story-card h2,
.story-meta h2 {
  margin: 0;
  line-height: 1.2;
}

.wide-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.wide-search input {
  min-height: 54px;
  padding: 0 18px;
}

.wide-search button {
  padding: 0 24px;
}

.content-section {
  padding: 58px 0 0;
}

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

.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-more,
.text-button {
  border: 1px solid var(--line);
  color: var(--soft-text);
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.64);
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: rgba(15, 23, 42, 0.94);
  box-shadow: var(--shadow);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .movie-poster img {
  transform: scale(1.08);
  filter: brightness(0.82);
}

.play-corner,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.play-corner {
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  color: #06111c;
  background: var(--cyan);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-corner {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  color: #06111c;
  background: linear-gradient(135deg, var(--orange), #fde68a);
}

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

.movie-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta-row a {
  color: var(--cyan);
}

.movie-card h2,
.side-card h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h2 a:hover,
.side-card h2 a:hover {
  color: var(--cyan);
}

.movie-card p {
  min-height: 52px;
  margin: 9px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.movie-card-compact h2 {
  font-size: 15px;
}

.movie-card-compact p {
  min-height: 44px;
  font-size: 13px;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.68);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-tile img,
.category-tile span {
  position: absolute;
  inset: 0;
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile span {
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.94));
}

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

.category-tile strong {
  font-size: 21px;
}

.category-tile p {
  margin: 8px 0 0;
  color: var(--soft-text);
  font-size: 13px;
}

.category-tile:hover img {
  opacity: 0.62;
  transform: scale(1.08);
}

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

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

.side-card {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.side-rank {
  position: absolute;
  z-index: 2;
  left: 4px;
  top: 4px;
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  color: #06111c;
  background: var(--cyan);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.side-thumb {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 2 / 3;
}

.side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  margin-top: 34px;
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(8, 47, 73, 0.42)),
    radial-gradient(circle at 85% 0%, rgba(34, 211, 238, 0.2), transparent 22rem);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(36px, 5vw, 64px);
}

.page-hero p:last-child {
  max-width: 780px;
  margin: 18px 0 0;
}

.category-overview-list {
  display: grid;
  gap: 20px;
  padding-top: 40px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.7);
}

.category-cover {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 240px;
}

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

.category-cover span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #06111c;
  background: var(--cyan);
  font-weight: 900;
}

.category-overview-body h2 {
  margin: 4px 0 10px;
  font-size: 30px;
}

.category-overview-body p {
  max-width: 800px;
  color: var(--soft-text);
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px auto;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.7);
}

.search-filter-panel {
  grid-template-columns: minmax(280px, 1fr) 180px 180px auto;
}

.filter-panel input,
.filter-panel select {
  min-height: 48px;
  padding: 0 14px;
}

.filter-panel button {
  padding: 0 18px;
}

.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-cloud a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.64);
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.ranking-layout .content-section {
  width: auto;
  margin: 0;
}

.ranking-sidebar {
  position: sticky;
  top: 104px;
  margin-top: 58px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.76);
}

.ranking-sidebar h2 {
  margin-bottom: 18px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}

.detail-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.78;
}

.detail-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: center;
}

.player-card,
.story-card,
.story-meta {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.player-card {
  padding: 12px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #06111c;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.62));
  cursor: pointer;
}

.play-overlay span {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.92);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
  font-size: 30px;
}

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

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

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

.detail-info {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(14px);
}

.detail-info h1 {
  font-size: clamp(34px, 4vw, 60px);
}

.detail-one-line {
  margin: 18px 0 0;
}

.detail-tags {
  margin-top: 20px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  padding-top: 42px;
}

.story-card,
.story-meta {
  padding: 24px;
}

.story-card p,
.story-meta dd {
  color: var(--soft-text);
}

.story-card p {
  margin: 14px 0 0;
  font-size: 17px;
}

.story-meta {
  grid-row: span 2;
}

.story-meta dl {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}

.story-meta div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.story-meta dt {
  color: var(--muted);
  font-size: 13px;
}

.story-meta dd {
  margin: 4px 0 0;
}

.story-meta a {
  color: var(--cyan);
}

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

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 28px;
}

.footer-logo {
  color: var(--text);
  font-size: 22px;
}

.site-footer p {
  max-width: 560px;
  color: var(--muted);
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

.footer-links,
.footer-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid var(--line);
  font-size: 13px;
}

.is-hidden-by-filter {
  display: none !important;
}

@media (max-width: 1180px) {
  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

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

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

  .ranking-sidebar {
    position: static;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-inner {
    height: 62px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 26px;
    padding: 74px 0 168px;
  }

  .hero-poster {
    width: min(240px, 70vw);
    transform: none;
  }

  .hero-strip {
    grid-template-columns: 1fr;
    bottom: 18px;
  }

  .hero-strip .side-card:nth-child(n+3) {
    display: none;
  }

  .hero-dots {
    bottom: 140px;
  }

  .hero-control {
    top: auto;
    bottom: 136px;
  }

  .search-panel,
  .detail-wrap,
  .detail-content,
  .category-overview-card,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .filter-panel,
  .search-filter-panel,
  .wide-search {
    grid-template-columns: 1fr;
  }

  .detail-content .story-meta {
    grid-row: auto;
  }
}

@media (max-width: 680px) {
  .movie-grid,
  .compact-grid,
  .category-grid,
  .side-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

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

  .side-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .page-hero {
    padding: 32px 22px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-desc,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

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

  .detail-hero {
    padding: 22px 0;
  }

  .detail-info {
    padding: 20px;
  }
}
