* {
  box-sizing: border-box;
}

:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: #0f172a;
  --line: rgba(148, 163, 184, 0.18);
  --text: #e5eefb;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --rose: #fb7185;
  --amber: #fbbf24;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 2%, rgba(34, 211, 238, 0.16), transparent 30rem),
    radial-gradient(circle at 85% 12%, rgba(251, 113, 133, 0.14), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.17);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.95), rgba(8, 145, 178, 0.75));
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.38);
}

.brand-mark span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #ffffff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  color: #ffffff;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

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

.nav-link {
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 230px;
  padding: 8px 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.86);
}

.header-search span {
  font-size: 13px;
  color: var(--cyan);
}

.header-search input,
.page-search input {
  min-width: 0;
  width: 100%;
  color: #e2e8f0;
  border: 0;
  outline: 0;
  background: transparent;
}

.header-search input::placeholder,
.page-search input::placeholder {
  color: #64748b;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-panel.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: #dbeafe;
  background: rgba(30, 41, 59, 0.75);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.78) 38%, rgba(0, 0, 0, 0.24) 100%),
    var(--cover-image);
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  display: block;
  animation: fadeIn 0.58s ease both;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.15), #020617 102%),
    radial-gradient(circle at 18% 50%, rgba(34, 211, 238, 0.16), transparent 28rem);
}

.hero-content {
  position: relative;
  width: min(720px, calc(100% - 32px));
  margin-left: max(16px, calc((100vw - 1180px) / 2));
  padding-top: 132px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px;
  color: #67e8f9;
  font-size: 14px;
  font-weight: 700;
  background: rgba(8, 145, 178, 0.13);
}

.hero h1,
.page-hero h1,
.detail-intro h1 {
  margin: 22px 0 18px;
  color: #ffffff;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 78px);
}

.hero-summary {
  max-width: 680px;
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(51, 65, 85, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 13px;
}

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

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

.primary-button {
  padding: 0 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.25);
}

.ghost-button {
  padding: 0 20px;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.64);
}

.text-button {
  color: #67e8f9;
}

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

.ghost-button:hover {
  border-color: rgba(34, 211, 238, 0.55);
}

.hero-shell {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-side {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 82px;
  width: min(430px, 36vw);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  pointer-events: auto;
}

.hero-mini-card {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(2, 6, 23, 0.10), rgba(2, 6, 23, 0.94)),
    var(--cover-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.hero-mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.45);
}

.hero-mini-card span {
  color: #67e8f9;
  font-size: 12px;
  font-weight: 800;
}

.hero-mini-card strong {
  color: #ffffff;
  font-size: 17px;
}

.hero-dots {
  position: absolute;
  left: max(16px, calc((100vw - 1180px) / 2));
  bottom: 54px;
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.36);
  cursor: pointer;
}

.hero-dot.active {
  background: linear-gradient(90deg, #22d3ee, #fb7185);
}

.quick-category-bar {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.72);
}

.quick-category-bar .container {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
}

.quick-category-bar span {
  color: #67e8f9;
  font-weight: 800;
  flex: 0 0 auto;
}

.quick-category-bar div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-category-bar a {
  padding: 8px 13px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

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

.band-section {
  background: rgba(15, 23, 42, 0.56);
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

.section-heading {
  display: flex;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.02em;
}

.section-heading p {
  max-width: 640px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.heading-line {
  height: 4px;
  flex: 1 1 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, #fb7185, rgba(251, 113, 133, 0));
}

.section-link {
  flex: 0 0 auto;
  color: #67e8f9;
  font-weight: 800;
}

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

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

.movie-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.94));
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  content-visibility: auto;
  contain-intrinsic-size: 380px;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.44);
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.36);
}

.poster-link,
.rank-thumb,
.detail-poster,
.category-card-cover {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.86)),
    var(--cover-image);
  background-size: cover;
  background-position: center;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  min-height: 260px;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 12%, rgba(34, 211, 238, 0.14), transparent 58%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

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

.poster-type,
.poster-year {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

.poster-type {
  left: 12px;
}

.poster-year {
  right: 12px;
  color: #fef3c7;
}

.movie-card-body {
  padding: 18px;
}

.movie-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.32;
}

.movie-card.compact h3 {
  font-size: 17px;
}

.movie-card h3 a:hover,
.ranking-row h3 a:hover,
.category-card h2 a:hover {
  color: var(--cyan);
}

.movie-card p {
  min-height: 52px;
  margin: 0 0 14px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.75;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.card-meta span:not(:last-child)::after {
  content: "";
}

.tag-row span {
  padding: 5px 8px;
  font-size: 12px;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.75), rgba(2, 6, 23, 0.42)),
    var(--cover-image);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.compact-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, #020617);
}

.page-hero .container {
  position: relative;
  z-index: 2;
  padding: 64px 0;
}

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

.page-hero p {
  max-width: 760px;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #94a3b8;
  font-size: 14px;
}

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

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

.category-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 220px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

.category-card-cover {
  min-height: 220px;
}

.category-card-body {
  padding: 24px;
}

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

.category-card p {
  margin: 0 0 16px;
  color: #cbd5e1;
  line-height: 1.75;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(30, 41, 59, 0.75);
  font-size: 13px;
}

.category-preview {
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.62);
}

.category-stack {
  display: grid;
  gap: 28px;
}

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

.category-preview-head h3 {
  margin: 0 0 8px;
  color: #67e8f9;
  font-size: 26px;
}

.category-preview-head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-preview-head a {
  color: #67e8f9;
  font-weight: 800;
  flex: 0 0 auto;
}

.tool-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.7);
}

.page-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.45);
}

.page-search span {
  color: #67e8f9;
  font-weight: 800;
  white-space: nowrap;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.74);
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(8, 145, 178, 0.44);
}

.empty-state {
  display: none;
  padding: 28px;
  color: #cbd5e1;
  text-align: center;
  border: 1px dashed rgba(148, 163, 184, 0.26);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.6);
}

.empty-state.show {
  display: block;
}

.movie-card.is-hidden,
.ranking-row.is-hidden {
  display: none;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 68px 82px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.42);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.92), rgba(8, 145, 178, 0.9));
}

.rank-thumb {
  width: 82px;
  height: 116px;
  border-radius: 16px;
}

.rank-info h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 20px;
}

.rank-info p {
  max-width: 880px;
  margin: 0 0 10px;
  color: #cbd5e1;
  line-height: 1.7;
}

.detail-main {
  min-height: 70vh;
}

.detail-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.32)),
    var(--cover-image);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 42%, rgba(34, 211, 238, 0.14), transparent 28rem),
    linear-gradient(180deg, transparent 60%, #020617 100%);
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 58px 0;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.detail-intro h1 {
  font-size: clamp(42px, 6vw, 74px);
}

.detail-one-line {
  max-width: 780px;
  margin: 0 0 20px;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.85;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.detail-article {
  display: grid;
  gap: 24px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 30px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.16), transparent 25rem),
    rgba(2, 6, 23, 0.58);
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-ring {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #fb7185);
  box-shadow: 0 0 44px rgba(34, 211, 238, 0.42);
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #ffffff;
}

.play-cover strong {
  max-width: 80%;
  text-align: center;
  font-size: 24px;
}

.text-panel,
.info-card {
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.76);
}

.text-panel h2,
.info-card h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 24px;
}

.text-panel p {
  margin: 0;
  color: #cbd5e1;
  line-height: 2;
  font-size: 16px;
}

.detail-sidebar {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 18px;
}

.info-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-card dl div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.info-card dt {
  color: #67e8f9;
  font-weight: 800;
}

.info-card dd {
  margin: 0;
  color: #dbeafe;
}

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

.side-links a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.64);
}

.side-links a:hover {
  color: #67e8f9;
}

.side-links small {
  color: #94a3b8;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.96));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: 34px;
  margin: 0 auto;
  padding: 42px 0;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #67e8f9;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1100px) {
  .main-nav {
    gap: 16px;
  }

  .header-search {
    min-width: 190px;
  }

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

  .hero-side {
    display: none;
  }

  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 860px) {
  .header-inner {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    padding: 10px 0;
    gap: 12px;
  }

  .main-nav,
  .header-search {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .brand-text strong {
    font-size: 21px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding-top: 96px;
  }

  .quick-category-bar .container,
  .section-heading,
  .category-preview-head,
  .tool-bar,
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .heading-line {
    width: 100%;
  }

  .filter-group,
  .footer-links {
    justify-content: flex-start;
  }

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

  .category-grid,
  .category-card,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .category-card-cover {
    min-height: 260px;
  }

  .detail-poster {
    width: min(320px, 100%);
  }

  .ranking-row {
    grid-template-columns: 54px 64px 1fr;
    gap: 12px;
  }

  .rank-thumb {
    width: 64px;
    height: 92px;
  }
}

@media (max-width: 540px) {
  .container,
  .header-inner,
  .footer-inner,
  .mobile-panel {
    width: min(100% - 22px, 1180px);
  }

  .hero h1,
  .page-hero h1,
  .detail-intro h1 {
    letter-spacing: -0.02em;
  }

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

  .hero-actions,
  .detail-actions {
    gap: 10px;
  }

  .primary-button,
  .ghost-button {
    min-height: 42px;
    padding: 0 16px;
  }

  .movie-grid,
  .small-grid {
    grid-template-columns: 1fr;
  }

  .poster-link {
    min-height: 330px;
  }

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

  .text-panel,
  .info-card,
  .category-preview {
    padding: 20px;
    border-radius: 22px;
  }

  .player-card {
    border-radius: 20px;
  }

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

  .rank-number,
  .rank-thumb {
    width: 100%;
  }

  .rank-thumb {
    height: 180px;
  }
}
