:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --panel: #171717;
  --panel-2: #202020;
  --border: #2a2a2a;
  --text: #f8fafc;
  --muted: #a3a3a3;
  --muted-2: #737373;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-soft: rgba(245, 158, 11, 0.15);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --shell: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.08), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.05), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", 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: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(17, 17, 17, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: var(--shell);
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #facc15);
  color: #141414;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.25);
}

.brand-mark.small {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.brand-mark svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.08em;
}

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

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

.nav-link,
.mobile-link {
  border-radius: 12px;
  color: #d4d4d4;
  font-size: 14px;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.mobile-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-link.is-active,
.mobile-link.is-active {
  background: var(--accent);
  color: #171717;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: var(--shell);
  margin: 0 auto 14px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(17, 17, 17, 0.98);
}

.mobile-link {
  display: block;
  padding: 13px 14px;
}

main {
  min-height: 70vh;
}

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

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

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

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.62) 42%, rgba(0, 0, 0, 0.12)),
    linear-gradient(0deg, var(--bg), transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--shell);
  height: 100%;
  margin: 0 auto;
  padding-top: 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 52px;
}

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

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

.hero-tags span,
.detail-tags span,
.movie-tags span {
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  color: #1c1917;
  font-size: 13px;
  font-weight: 750;
  padding: 6px 11px;
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 34px;
  color: #d4d4d4;
  font-size: 19px;
}

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

.primary-button,
.secondary-button,
.ghost-button,
.section-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 13px;
  padding: 0 20px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 750;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  background: var(--accent);
  color: #171717;
}

.primary-button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.secondary-button,
.ghost-button,
.section-action {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  backdrop-filter: blur(14px);
}

.secondary-button:hover,
.ghost-button:hover,
.section-action:hover {
  border-color: rgba(245, 158, 11, 0.5);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}

.hero-poster img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-2px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.stats-strip {
  width: var(--shell);
  margin: -44px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stats-strip div {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(23, 23, 23, 0.88);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.stats-strip strong {
  display: block;
  font-size: 30px;
  color: var(--accent);
  line-height: 1;
}

.stats-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.page-section {
  width: var(--shell);
  margin: 0 auto;
  padding: 76px 0 0;
}

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

.section-heading span,
.panel-title span,
.inner-hero span,
.text-card span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2,
.panel-title h2,
.text-card h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.03em;
}

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

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

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
  border-color: rgba(245, 158, 11, 0.82);
  transform: translateY(-5px);
  box-shadow: 0 24px 70px rgba(245, 158, 11, 0.12);
}

.movie-card-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.movie-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111111;
}

.movie-card-featured .movie-thumb {
  aspect-ratio: 16 / 11;
}

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

.movie-card-link:hover .movie-thumb img {
  transform: scale(1.08);
}

.movie-thumb-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.72));
  opacity: 0.75;
}

.movie-tags {
  position: absolute;
  top: 12px;
  left: 12px;
}

.movie-tags span {
  border-radius: 7px;
  background: rgba(10, 10, 10, 0.85);
  color: var(--accent);
  font-size: 11px;
  padding: 4px 7px;
}

.movie-type {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
}

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

.movie-card h3 {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-featured h3 {
  font-size: 24px;
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--panel);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  border-color: rgba(245, 158, 11, 0.75);
  transform: translateY(-5px);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img {
  transform: scale(1.07);
}

.category-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.86));
}

.category-card-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.category-card-copy span,
.category-overview-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.category-card-copy h3 {
  margin: 6px 0;
  font-size: 24px;
}

.category-card-copy p {
  margin: 0;
  color: #d4d4d4;
  font-size: 13px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(23, 23, 23, 0.78);
  backdrop-filter: blur(16px);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 36px 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: rgba(245, 158, 11, 0.12);
  transform: translateX(3px);
}

.rank-item strong {
  color: var(--accent);
}

.rank-item img {
  width: 58px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-item b,
.rank-item small {
  display: block;
}

.rank-item b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item small {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-panel {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(23, 23, 23, 0.78);
}

.filter-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.filter-title span {
  color: #ffffff;
  font-weight: 750;
}

.filter-title strong {
  color: var(--accent);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(130px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.filter-controls label {
  display: grid;
  gap: 6px;
}

.filter-controls label span {
  color: var(--muted);
  font-size: 12px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  outline: none;
  padding: 0 13px;
}

.filter-controls select option {
  background: #171717;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: rgba(245, 158, 11, 0.75);
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 28px;
  border: 1px dashed rgba(245, 158, 11, 0.45);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.inner-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 132px 0 54px;
}

.inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(245, 158, 11, 0.18), transparent 28rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  pointer-events: none;
}

.inner-hero > div {
  position: relative;
  width: var(--shell);
  margin: 0 auto;
}

.inner-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.inner-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.compact-hero {
  padding-bottom: 32px;
}

.category-overview-grid {
  display: grid;
  gap: 18px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--panel);
}

.category-overview-thumb {
  overflow: hidden;
  border-radius: 18px;
}

.category-overview-thumb img {
  width: 100%;
  height: 142px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 4px 0 8px;
}

.category-overview-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

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

.mini-links a {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d4d4d4;
  font-size: 12px;
}

.mini-links a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.ranking-table {
  display: grid;
  gap: 10px;
}

.ranking-row a {
  display: grid;
  grid-template-columns: 68px 86px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-row a:hover {
  border-color: rgba(245, 158, 11, 0.75);
  transform: translateY(-2px);
}

.ranking-row strong {
  color: var(--accent);
  font-size: 20px;
}

.ranking-row img {
  width: 86px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-row-main {
  min-width: 0;
}

.ranking-row-main b,
.ranking-row-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row-main small,
.ranking-row-meta {
  color: var(--muted);
  font-size: 13px;
}

.detail-hero {
  min-height: 680px;
  padding-top: 112px;
}

.detail-bg-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.2)),
    linear-gradient(0deg, var(--bg), transparent 42%);
}

.detail-shell {
  position: relative;
  width: var(--shell);
  margin: 0 auto;
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

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

.detail-poster img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.detail-main h1 {
  max-width: 820px;
  margin: 18px 0 14px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 760px;
  margin: 0 0 24px;
  color: #d4d4d4;
  font-size: 19px;
}

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

.detail-meta div {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
}

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

.detail-meta dd {
  margin: 5px 0 0;
  font-weight: 750;
}

.detail-content-section {
  padding-top: 48px;
}

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

.player-panel,
.watch-info,
.text-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(23, 23, 23, 0.86);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.player-panel {
  padding: 12px;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  background: #050505;
}

.video-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.76));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #171717;
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.28);
}

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

.player-overlay small {
  color: #d4d4d4;
}

.player-message {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  margin: 0;
  color: #fcd34d;
  font-size: 13px;
  text-align: center;
  pointer-events: none;
}

.watch-info {
  padding: 24px;
}

.watch-info h2 {
  margin: 0 0 16px;
}

.watch-info p {
  margin: 10px 0;
  color: var(--muted);
}

.watch-info a {
  color: var(--accent);
}

.article-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.text-card {
  padding: 26px;
}

.text-card p {
  margin: 14px 0 0;
  color: #d4d4d4;
  white-space: pre-wrap;
}

.site-footer {
  margin-top: 84px;
  border-top: 1px solid var(--border);
  background: #111111;
}

.footer-shell {
  width: var(--shell);
  margin: 0 auto;
  padding: 42px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

.footer-grid p,
.footer-bottom {
  color: var(--muted);
  font-size: 14px;
}

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

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

.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

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

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

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

  .ranking-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 96px;
    padding-bottom: 70px;
  }

  .hero-poster {
    display: none;
  }

  .hero-arrow {
    display: none;
  }

  .stats-strip,
  .category-grid,
  .footer-grid,
  .article-section,
  .detail-layout,
  .detail-meta {
    grid-template-columns: 1fr 1fr;
  }

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

  .movie-card-featured {
    grid-column: span 2;
  }

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

  .ranking-row a {
    grid-template-columns: 48px 68px minmax(0, 1fr);
  }

  .ranking-row-meta {
    grid-column: 3;
  }

  .detail-poster img {
    height: 380px;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(100vw - 22px, 1180px);
  }

  .nav-shell {
    height: 64px;
  }

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

  .brand-text small {
    display: none;
  }

  .hero {
    height: auto;
    min-height: 690px;
  }

  .hero h1,
  .detail-main h1,
  .inner-hero h1 {
    letter-spacing: -0.02em;
  }

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

  .stats-strip,
  .category-grid,
  .footer-grid,
  .article-section,
  .detail-layout,
  .detail-content-grid,
  .detail-meta,
  .movie-grid,
  .featured-grid,
  .compact-grid,
  .all-grid,
  .filter-controls,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .movie-card-featured {
    grid-column: span 1;
    grid-row: span 1;
  }

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

  .category-overview-thumb img {
    height: 190px;
  }

  .ranking-row a {
    grid-template-columns: 42px 64px minmax(0, 1fr);
    gap: 10px;
  }

  .ranking-row img {
    width: 64px;
    height: 50px;
  }

  .ranking-row-meta {
    font-size: 12px;
  }

  .detail-hero {
    padding-top: 92px;
  }

  .detail-poster {
    display: none;
  }

  .play-icon {
    width: 62px;
    height: 62px;
    font-size: 28px;
  }

  .footer-bottom {
    display: grid;
  }
}
