
:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.72);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --line: rgba(148, 163, 184, 0.18);
  --blue: #2563eb;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.28), transparent 34%),
    radial-gradient(circle at 80% 12%, rgba(34, 211, 238, 0.18), transparent 30%),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(59, 130, 246, 0.24);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.92), rgba(15, 23, 42, 0.96));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.header-main {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: var(--max);
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-logo {
  font-size: 24px;
  background: linear-gradient(90deg, #60a5fa, #67e8f9, #bfdbfe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.26);
}

.header-search {
  display: flex;
  flex: 1 1 360px;
  min-width: 240px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
}

.header-search input,
.mobile-search input,
.hero-search input,
.search-large input,
.filter-search input,
.filter-controls select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.header-search input,
.mobile-search input,
.hero-search input,
.search-large input,
.filter-search input {
  padding: 12px 16px;
}

.header-search button,
.mobile-search button,
.hero-search button,
.search-large button,
.filter-controls button {
  border: 0;
  color: white;
  background: linear-gradient(90deg, var(--blue), #06b6d4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-search button {
  padding: 0 20px;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.search-large button:hover,
.filter-controls button:hover,
.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted-strong);
  font-size: 15px;
}

.desktop-nav a,
.category-strip a,
.mobile-panel a {
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.category-strip a:hover,
.mobile-panel a:hover {
  color: var(--cyan);
}

.category-strip {
  display: flex;
  gap: 8px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 12px;
  overflow-x: auto;
}

.category-strip a {
  flex: 0 0 auto;
  padding: 7px 15px;
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.42);
}

.category-strip a:hover {
  background: rgba(37, 99, 235, 0.22);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.65);
}

.mobile-panel {
  display: none;
  padding: 16px 20px 22px;
  border-top: 1px solid var(--line);
  background: #020617;
}

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
}

.mobile-search {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
}

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

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.08) contrast(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.78) 38%, rgba(2, 6, 23, 0.2) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.1) 45%, rgba(2, 6, 23, 0.32) 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92%, var(--max));
  transform: translate(-50%, -48%);
}

.hero-label,
.section-kicker,
.detail-label,
.page-hero span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.78);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.22);
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.movie-tags span,
.detail-tags a {
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(15, 23, 42, 0.62);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 25px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), #06b6d4);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(12px);
}

.hero-control {
  position: absolute;
  top: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.54);
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 108px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #ffffff;
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 32px;
  display: flex;
  width: min(720px, calc(100% - 32px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

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

.content-section,
.page-shell {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

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

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

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

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

.section-heading > a,
.panel-heading a {
  color: var(--cyan);
  white-space: nowrap;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(30, 41, 59, 0.84);
  box-shadow: 0 24px 70px rgba(8, 47, 73, 0.22);
  transform: translateY(-5px);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.32), rgba(34, 211, 238, 0.12));
}

.movie-poster img,
.overview-cover img,
.category-card img,
.ranking-thumb img,
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.movie-card:hover .movie-poster img,
.category-card:hover img,
.overview-card:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.78));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #06b6d4);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.88);
}

.movie-info {
  padding: 17px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

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

.movie-info h3,
.ranking-body h2 {
  margin: 0;
  line-height: 1.3;
}

.movie-info h3 {
  font-size: 18px;
}

.movie-info h3 a:hover,
.ranking-body h2 a:hover,
.overview-card h2 a:hover {
  color: var(--cyan);
}

.movie-info p {
  min-height: 44px;
  margin: 9px 0 13px;
  color: var(--muted);
  font-size: 14px;
}

.movie-tags {
  font-size: 12px;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

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

.category-card img {
  z-index: 0;
}

.category-card span {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.88)),
    linear-gradient(90deg, rgba(37, 99, 235, 0.5), transparent);
}

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

.category-card strong {
  display: block;
  margin-top: 52px;
  font-size: 22px;
}

.category-card em {
  display: block;
  margin: 6px 0 16px;
  color: #bae6fd;
  font-style: normal;
}

.category-card p {
  margin: 0;
  color: #dbeafe;
  font-size: 14px;
}

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

.ranking-panel {
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.74);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-weight: 700;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-number,
.ranking-index {
  color: #67e8f9;
  font-weight: 800;
}

.rank-row img {
  width: 64px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(37, 99, 235, 0.16);
}

.rank-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.rank-title strong,
.rank-title small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-title small {
  color: var(--muted);
}

.rank-score {
  padding: 4px 8px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.25);
}

.page-shell {
  padding-top: 32px;
}

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

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

.page-hero {
  overflow: hidden;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 10%, rgba(34, 211, 238, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 58, 138, 0.64));
  box-shadow: var(--shadow);
}

.small-hero {
  margin-bottom: 16px;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 18px;
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-bottom: 22px;
}

.filter-search,
.filter-controls select {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-controls {
  display: flex;
  gap: 10px;
}

.filter-controls select {
  min-width: 130px;
  padding: 0 14px;
}

.filter-controls button {
  padding: 0 16px;
  border-radius: 16px;
}

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

.overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.overview-cover {
  overflow: hidden;
  min-height: 220px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.14);
}

.overview-card span {
  color: var(--cyan);
}

.overview-card h2 {
  margin: 6px 0;
}

.overview-card p,
.overview-card li {
  color: var(--muted-strong);
}

.overview-card ul {
  padding-left: 18px;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 72px 130px minmax(0, 1fr) 118px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
}

.ranking-thumb {
  overflow: hidden;
  height: 78px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.14);
}

.ranking-body p {
  margin: 8px 0 0;
  color: var(--muted);
}

.ranking-score {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: var(--muted);
}

.ranking-score strong {
  color: #67e8f9;
  font-size: 24px;
}

.search-large {
  display: flex;
  width: min(100%, 720px);
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.44);
}

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

.search-status {
  margin-bottom: 20px;
  color: var(--muted-strong);
}

.detail-page {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding-top: 32px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 30px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 88% 10%, rgba(34, 211, 238, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 58, 138, 0.56));
  box-shadow: var(--shadow);
}

.detail-cover {
  overflow: hidden;
  min-height: 430px;
  border-radius: 24px;
  background: rgba(37, 99, 235, 0.14);
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-info > p {
  max-width: 740px;
  margin: 0 0 22px;
  color: var(--muted-strong);
  font-size: 19px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.detail-meta div {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.32);
}

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

.detail-meta dd {
  margin: 4px 0 0;
  color: #e0f2fe;
}

.player-section,
.detail-content,
.detail-navigation,
.related-section {
  margin-top: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 45%, rgba(37, 99, 235, 0.26), transparent 34%),
    rgba(0, 0, 0, 0.48);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-overlay span {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #06b6d4);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.38);
}

.player-overlay strong {
  font-size: 22px;
}

.player-overlay em {
  color: #cbd5e1;
  font-style: normal;
}

.player-message {
  position: absolute;
  right: 16px;
  bottom: 16px;
  max-width: min(480px, calc(100% - 32px));
  padding: 8px 12px;
  border-radius: 12px;
  color: #dbeafe;
  background: rgba(2, 6, 23, 0.72);
}

.player-message:empty {
  display: none;
}

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

.detail-content article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.detail-content h2 {
  margin: 0 0 12px;
}

.detail-content p {
  margin: 0;
  color: var(--muted-strong);
}

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

.detail-navigation a {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.66);
}

.detail-navigation a:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.38);
}

.movie-card-compact .movie-info p {
  min-height: 0;
}

.sitemap-section h2 {
  margin-top: 34px;
}

.sitemap-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 0;
  list-style: none;
}

.sitemap-links a {
  color: var(--muted-strong);
}

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

.movie-sitemap {
  max-height: none;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 46px 0;
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.footer-grid p,
.footer-grid li,
.footer-bottom {
  color: var(--muted);
}

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

.footer-grid a:hover,
.footer-bottom a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

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

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

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

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

  .ranking-panel {
    order: -1;
  }

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

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

  .mobile-menu-button {
    display: grid;
    place-items: center;
  }

  .header-main {
    justify-content: space-between;
  }

  .hero-slider {
    min-height: 680px;
  }

  .hero-control {
    display: none;
  }

  .hero-content {
    top: 44%;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 24px;
  }

  .hero-search button {
    min-height: 46px;
  }

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

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

  .movie-grid,
  .category-grid,
  .overview-grid,
  .footer-grid,
  .detail-hero,
  .ranking-card {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    min-height: 300px;
  }

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

  .filter-controls {
    flex-wrap: wrap;
  }

  .filter-controls select,
  .filter-controls button {
    min-height: 44px;
  }

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

  .overview-cover {
    min-height: 180px;
  }

  .ranking-card {
    align-items: start;
  }

  .ranking-thumb {
    height: 180px;
  }

  .ranking-score {
    justify-items: start;
  }

  .detail-meta,
  .detail-navigation,
  .sitemap-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-logo {
    font-size: 20px;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
  }

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

  .hero-tags span,
  .movie-tags span,
  .detail-tags a {
    font-size: 12px;
  }

  .page-hero,
  .detail-hero {
    padding: 24px;
    border-radius: 24px;
  }

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