:root {
  color-scheme: dark;
  --bg: #090b12;
  --bg-soft: #111827;
  --panel: rgba(17, 24, 39, 0.78);
  --panel-strong: #1f2937;
  --line: rgba(255, 255, 255, 0.10);
  --text: #f9fafb;
  --muted: #9ca3af;
  --muted-2: #6b7280;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --orange: #f97316;
  --yellow: #facc15;
  --blue: #60a5fa;
  --green: #34d399;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(220, 38, 38, 0.22), transparent 32rem),
    radial-gradient(circle at 85% 12%, rgba(249, 115, 22, 0.16), transparent 28rem),
    linear-gradient(180deg, #111827 0%, #05060a 48%, #111827 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(31, 41, 55, 0.96), rgba(17, 24, 39, 0.96));
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(16px);
}

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

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

.logo-text {
  font-size: 25px;
  background: linear-gradient(90deg, #ef4444, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  position: relative;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.36);
}

.logo-mark::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 9px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid white;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link,
.mobile-link {
  color: #d1d5db;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: white;
}

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

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

.header-search input,
.mobile-search input,
.intro-search input,
.search-panel input,
.search-panel select {
  color: white;
  background: rgba(31, 41, 55, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  outline: none;
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  width: 230px;
  padding: 10px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.intro-search input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(239, 68, 68, 0.9);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.20);
}

.header-search button,
.mobile-search button,
.intro-search button,
.btn,
.filter-chip {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 750;
}

.header-search button,
.mobile-search button,
.intro-search button,
.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 14px 34px rgba(220, 38, 38, 0.28);
}

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

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(31, 41, 55, 0.9);
  padding: 10px;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: white;
  border-radius: 2px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(17, 24, 39, 0.98);
  padding: 18px 20px 24px;
}

.mobile-panel.open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 10px 14px;
}

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

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #030712;
}

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

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

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

.hero-cover {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.62) 38%, rgba(0, 0, 0, 0.26) 72%, rgba(0, 0, 0, 0.58) 100%),
    linear-gradient(0deg, #05060a 0%, transparent 46%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 72px;
  width: min(680px, calc(100% - 48px));
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  margin-bottom: 16px;
  color: white;
  background: rgba(220, 38, 38, 0.92);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-title-block h1 {
  margin: 0 0 16px;
  color: white;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 82px);
  max-width: 12ch;
}

.hero p,
.page-hero p,
.detail-title-block p {
  max-width: 760px;
  margin: 0 0 18px;
  color: #d1d5db;
  font-size: 18px;
}

.hero-meta,
.rank-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #d1d5db;
}

.hero-meta span,
.rank-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta span:not(:last-child)::after,
.rank-meta span:not(:last-child)::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
}

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

.hero-tags {
  margin: 18px 0 24px;
}

.hero-tags span,
.tag-row span {
  color: #fee2e2;
  background: rgba(127, 29, 29, 0.46);
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-radius: 999px;
  font-size: 13px;
}

.hero-tags span {
  padding: 7px 12px;
}

.tag-row span {
  padding: 4px 9px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.08);
}

.btn.ghost {
  color: white;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 38px;
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.home-intro {
  position: relative;
  z-index: 2;
  margin-top: -28px;
  padding: 0 16px;
}

.intro-inner,
.search-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 24, 39, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 24px;
}

.intro-inner h2 {
  margin: 0 0 8px;
  color: white;
  font-size: clamp(24px, 3vw, 34px);
}

.intro-inner p {
  margin: 0;
  color: var(--muted);
}

.intro-search {
  display: flex;
  gap: 10px;
}

.intro-search input {
  min-width: 0;
  flex: 1;
  padding: 13px 18px;
}

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 80px;
}

.home-shell {
  padding-top: 70px;
}

.content-section {
  margin-bottom: 70px;
}

.content-section:last-child {
  margin-bottom: 0;
}

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

.section-head h2,
.related-panel h2,
.detail-content h2 {
  margin: 0;
  color: white;
  letter-spacing: -0.03em;
}

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

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-more {
  color: #fca5a5;
  font-weight: 750;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  background: rgba(31, 41, 55, 0.72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(248, 113, 113, 0.40);
  background: rgba(31, 41, 55, 0.92);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

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

.movie-card:hover .poster-link img,
.rank-row:hover img,
.category-tile:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 55%);
}

.poster-year,
.rank-badge {
  position: absolute;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.poster-year {
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
  left: 10px;
  top: 10px;
  padding: 5px 10px;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  color: white;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.card-title:hover,
.rank-title:hover {
  color: #f87171;
}

.card-meta,
.card-desc {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  margin-top: 13px;
}

.compact {
  width: 260px;
  flex: 0 0 auto;
}

.compact .poster-link {
  aspect-ratio: 16 / 9;
}

.compact .card-desc {
  display: none;
}

.scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

.glow-panel,
.warm-panel {
  border-radius: 26px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.glow-panel {
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.24), rgba(88, 28, 135, 0.18));
}

.warm-panel {
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.26), rgba(154, 52, 18, 0.18));
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: auto 128px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  background: rgba(31, 41, 55, 0.66);
  transition: background 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  background: rgba(31, 41, 55, 0.92);
  border-color: rgba(248, 113, 113, 0.30);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  color: white;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 14px;
  font-size: 20px;
  font-weight: 900;
}

.rank-thumb {
  display: block;
  height: 78px;
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.rank-title {
  color: white;
  font-size: 17px;
  font-weight: 850;
}

.rank-info p {
  display: -webkit-box;
  overflow: hidden;
  margin: 5px 0 6px;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

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

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

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  background: rgba(31, 41, 55, 0.76);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

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

.category-tile:hover img {
  opacity: 0.58;
}

.category-tile > div {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent);
}

.category-tile h3 {
  margin: 0 0 8px;
  color: white;
  font-size: 22px;
}

.category-tile p {
  margin: 0 0 12px;
  color: #d1d5db;
  font-size: 14px;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-links a {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 9px;
  overflow: hidden;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.46);
  border-radius: 999px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: #030712;
}

.page-hero {
  min-height: 340px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(220, 38, 38, 0.32), transparent 24rem),
    radial-gradient(circle at 70% 30%, rgba(249, 115, 22, 0.18), transparent 24rem),
    linear-gradient(135deg, #111827, #030712);
}

.page-hero > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.page-hero span {
  display: inline-block;
  margin-bottom: 12px;
  color: #fca5a5;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-hero h1 {
  font-size: clamp(40px, 7vw, 72px);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-chip {
  padding: 9px 15px;
  color: #d1d5db;
  background: rgba(31, 41, 55, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.filter-chip.active,
.filter-chip:hover {
  color: white;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 210px 180px;
  gap: 14px;
  padding: 22px;
  margin-top: -48px;
  margin-bottom: 38px;
  border-radius: 24px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  padding: 13px 16px;
}

.detail-hero {
  min-height: 620px;
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
  filter: blur(3px) saturate(1.08);
  transform: scale(1.04);
}

.detail-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.90), rgba(0, 0, 0, 0.54)),
    linear-gradient(0deg, #05060a 0%, transparent 54%);
}

.detail-hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 40px;
  color: #d1d5db;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #f87171;
}

.detail-head {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: end;
  gap: 38px;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: #111827;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-title-block h1 {
  font-size: clamp(36px, 5vw, 68px);
}

.detail-shell {
  padding-top: 0;
}

.player-section {
  margin-top: -84px;
  margin-bottom: 46px;
}

.video-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: black;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-box video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: black;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 8px;
  color: white;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  position: relative;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 46px rgba(220, 38, 38, 0.40);
}

.play-circle::after {
  content: "";
  position: absolute;
  left: 33px;
  top: 25px;
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 23px solid white;
}

.player-cover strong {
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: -0.02em;
}

.player-cover em {
  color: #fecaca;
  font-style: normal;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 34px;
  align-items: start;
}

.detail-content,
.related-panel {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  background: rgba(31, 41, 55, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.detail-content {
  padding: 30px;
}

.detail-content section + section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.detail-content h2,
.related-panel h2 {
  font-size: 26px;
}

.detail-content p {
  margin: 14px 0 0;
  color: #d1d5db;
  font-size: 16px;
  line-height: 1.9;
}

.related-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.related-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.related-list .movie-card {
  width: 100%;
}

.related-list .compact {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: stretch;
}

.related-list .compact .poster-link {
  aspect-ratio: auto;
  height: 100%;
}

.related-list .compact .card-body {
  padding: 12px;
}

.related-list .compact .tag-row,
.related-list .compact .card-meta {
  display: none;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  background: #080a10;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 520px);
  gap: 32px;
}

.footer-logo {
  margin-bottom: 10px;
  font-size: 22px;
  background: linear-gradient(90deg, #ef4444, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer p,
.footer-bottom {
  color: var(--muted-2);
}

.site-footer p {
  margin: 0;
  max-width: 520px;
}

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

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

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

  .mobile-menu-button {
    display: block;
  }

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

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

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

  .related-panel {
    position: static;
  }
}

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

  .hero-content {
    bottom: 86px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-dots {
    left: 24px;
    right: auto;
  }

  .intro-inner,
  .search-panel,
  .footer-inner,
  .detail-head {
    grid-template-columns: 1fr;
  }

  .intro-search,
  .mobile-search {
    flex-direction: column;
  }

  .movie-grid,
  .featured-grid,
  .all-grid,
  .rank-grid,
  .category-grid,
  .category-grid.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .glow-panel,
  .warm-panel {
    padding: 22px;
  }

  .rank-row {
    grid-template-columns: auto 96px minmax(0, 1fr);
  }

  .detail-poster {
    width: min(260px, 72vw);
  }

  .player-section {
    margin-top: -44px;
  }

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

@media (max-width: 560px) {
  .header-inner,
  .page-shell,
  .detail-hero-inner,
  .footer-inner,
  .footer-bottom,
  .page-hero > div {
    width: min(100% - 24px, 1180px);
  }

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

  .hero {
    min-height: 560px;
  }

  .hero-content {
    left: 16px;
    width: calc(100% - 32px);
  }

  .hero p,
  .page-hero p,
  .detail-title-block p {
    font-size: 16px;
  }

  .movie-grid,
  .featured-grid,
  .all-grid,
  .category-grid,
  .category-grid.wide {
    grid-template-columns: 1fr;
  }

  .compact {
    width: 235px;
  }

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

  .rank-num {
    width: 40px;
    height: 40px;
  }

  .rank-thumb {
    width: 100%;
    height: 150px;
  }

  .detail-content {
    padding: 22px;
  }

  .related-list .compact {
    grid-template-columns: 104px minmax(0, 1fr);
  }
}
