:root {
  --page-bg: #fff7ed;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fef3c7;
  --line: rgba(251, 146, 60, 0.22);
  --brand: #ea580c;
  --brand-strong: #c2410c;
  --brand-soft: #fed7aa;
  --shadow: 0 24px 60px rgba(154, 52, 18, 0.16);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 5%, rgba(251, 146, 60, 0.22), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(245, 158, 11, 0.20), transparent 24rem),
    linear-gradient(135deg, #fffbeb 0%, #fff7ed 48%, #fef3c7 100%);
  min-height: 100vh;
}

body.is-menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(251, 146, 60, 0.20);
  background: rgba(255, 247, 237, 0.82);
  backdrop-filter: blur(18px);
}

.header-shell {
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  border-radius: 15px;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 14px 34px rgba(234, 88, 12, 0.32);
}

.brand-text {
  font-size: 1.12rem;
}

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

.nav-link {
  padding: 10px 14px;
  color: #78350f;
  border-radius: 999px;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-strong);
  background: rgba(254, 215, 170, 0.7);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(320px, 28vw);
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.header-search input {
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  border: 0;
  outline: 0;
  background: transparent;
}

.header-search button,
.page-search button {
  flex-shrink: 0;
  margin: 4px;
  padding: 8px 14px;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(254, 215, 170, 0.72);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #9a3412;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
}

.mobile-nav a:hover {
  background: #ffedd5;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding: 32px 0 34px;
}

.hero-stage {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.7s ease, transform 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.74) 44%, rgba(17, 24, 39, 0.18) 100%),
    radial-gradient(circle at 70% 20%, rgba(251, 146, 60, 0.34), transparent 24rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: center;
  min-height: 580px;
  padding: 56px;
}

.hero-copy {
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 7px 12px;
  color: #9a3412;
  border-radius: 999px;
  background: #ffedd5;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .hero-kicker {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero h1,
.hero h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.25rem, 6vw, 4.9rem);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  line-height: 1.85;
}

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

.primary-button,
.ghost-button,
.section-action,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 900;
}

.primary-button {
  padding: 13px 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 16px 36px rgba(239, 68, 68, 0.28);
}

.ghost-button {
  padding: 12px 20px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-tags,
.tag-row,
.genre-pills,
.detail-tags,
.link-cloud,
.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.tag-row span,
.genre-pills span,
.detail-tags a,
.link-cloud a,
.hero-category-links a {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 0.84rem;
  font-weight: 800;
}

.hero-poster {
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.20);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.34);
  backdrop-filter: blur(14px);
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.7rem;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: #ffffff;
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.hero-search-card,
.topic-card,
.category-preview-card,
.category-card-large,
.detail-side-card,
.detail-article {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(154, 52, 18, 0.10);
  backdrop-filter: blur(16px);
}

.hero-search-card {
  padding: 20px;
}

.hero-search-card span {
  display: block;
  margin-bottom: 12px;
  color: #9a3412;
  font-weight: 950;
}

.hero-search-card form,
.page-search {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.hero-search-card input,
.page-search input {
  width: 100%;
  min-width: 0;
  padding: 13px 16px;
  border: 0;
  outline: 0;
  background: transparent;
}

.hero-category-links {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
}

.hero-category-links a,
.link-cloud a,
.detail-tags a {
  color: #9a3412;
  background: #ffedd5;
}

.hero-category-links a:hover,
.link-cloud a:hover,
.detail-tags a:hover {
  color: #ffffff;
  background: var(--brand);
}

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

.hero-mini-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  font-weight: 900;
}

.hero-mini-card img {
  width: 58px;
  height: 78px;
  border-radius: 13px;
  object-fit: cover;
}

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

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

.section-heading h2,
.page-hero h1,
.topic-card h2,
.detail-copy h1,
.detail-article h2,
.detail-side-card h2,
.link-cloud-section h2 {
  margin: 0;
  color: #1f2937;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 3vw, 2.7rem);
}

.section-heading p,
.topic-card p,
.page-hero p,
.detail-side-card p,
.detail-article p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-action,
.text-link {
  color: var(--brand-strong);
  font-weight: 950;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(154, 52, 18, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 46px rgba(154, 52, 18, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.04);
}

.poster-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 5px 9px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 15px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.8em;
  font-weight: 950;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover {
  color: var(--brand-strong);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 8px;
  color: #b45309;
  font-size: 0.8rem;
  font-weight: 800;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #fdba74;
}

.card-body p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.2em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  color: #9a3412;
  background: #ffedd5;
}

.movie-card.compact .card-body p,
.movie-card.compact .tag-row {
  display: none;
}

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

.small-grid .movie-card {
  border-radius: 16px;
}

.small-grid .card-body {
  padding: 10px;
}

.small-grid .card-meta {
  display: none;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 70px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.rank-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  font-weight: 950;
}

.rank-poster img {
  width: 70px;
  height: 94px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-copy a {
  display: inline-block;
  font-weight: 950;
}

.rank-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-copy span {
  color: #b45309;
  font-size: 0.82rem;
  font-weight: 800;
}

.topic-card {
  position: sticky;
  top: 92px;
  padding: 28px;
}

.topic-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #9a3412;
  font-weight: 950;
}

.topic-card h2 {
  font-size: 1.9rem;
  line-height: 1.1;
}

.topic-card .primary-button {
  margin-top: 20px;
}

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

.category-preview-card {
  padding: 18px;
}

.preview-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.preview-card-head span,
.category-card-large span {
  color: #9a3412;
  font-size: 1.1rem;
  font-weight: 950;
}

.preview-card-head p,
.category-card-large p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.preview-card-head a {
  flex-shrink: 0;
  color: var(--brand-strong);
  font-weight: 950;
}

.page-hero {
  margin-top: 32px;
  padding: clamp(34px, 6vw, 70px);
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 237, 213, 0.70)),
    radial-gradient(circle at 82% 16%, rgba(251, 146, 60, 0.25), transparent 18rem);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 760px;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 1;
}

.page-hero p {
  max-width: 760px;
  font-size: 1.05rem;
}

.page-search {
  width: min(680px, 100%);
  margin-top: 24px;
}

.hero-category-links.standalone {
  margin-top: 24px;
  padding: 0;
  background: transparent;
}

.category-card-large {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
}

.category-cover-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.category-cover-row img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 13px;
  object-fit: cover;
}

.category-card-large h2 {
  margin: 8px 0;
  font-size: 1.6rem;
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-toolbar button {
  padding: 9px 14px;
  color: #9a3412;
  border: 1px solid rgba(251, 146, 60, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font-weight: 900;
}

.filter-toolbar button.is-active,
.filter-toolbar button:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #fb923c, #ef4444);
}

.empty-state {
  display: none;
  margin-top: 20px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(251, 146, 60, 0.40);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.70);
}

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

.link-cloud-section {
  padding-top: 12px;
}

.link-cloud-section h2 {
  margin-bottom: 16px;
  font-size: 1.6rem;
}

.rank-page-section {
  max-width: 920px;
  margin: 0 auto;
}

.wide-rank-list .rank-item {
  grid-template-columns: 64px 88px minmax(0, 1fr);
}

.wide-rank-list .rank-poster img {
  width: 88px;
  height: 118px;
}

.detail-hero {
  margin-top: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #9a3412;
  font-size: 0.92rem;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.90), rgba(255, 237, 213, 0.72)),
    radial-gradient(circle at 100% 0%, rgba(251, 146, 60, 0.28), transparent 20rem);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: 0 28px 64px rgba(154, 52, 18, 0.22);
}

.detail-copy h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1;
}

.detail-one-line {
  margin: 20px 0 0;
  color: #4b5563;
  font-size: 1.14rem;
  line-height: 1.8;
}

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

.detail-meta-list span {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: #78350f;
  font-weight: 800;
}

.detail-meta-list a {
  color: var(--brand-strong);
}

.genre-pills {
  margin-top: 18px;
}

.genre-pills span {
  color: #9a3412;
  background: #ffedd5;
}

.detail-copy .primary-button {
  margin-top: 24px;
}

.player-section {
  padding-bottom: 18px;
}

.compact-heading {
  margin-bottom: 16px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #111827;
  box-shadow: var(--shadow);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 16px;
  width: 100%;
  color: #ffffff;
  border: 0;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.72), rgba(124, 45, 18, 0.58)),
    radial-gradient(circle at 50% 40%, rgba(251, 146, 60, 0.35), transparent 18rem);
  cursor: pointer;
}

.video-shell.is-playing .video-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 18px 44px rgba(239, 68, 68, 0.36);
  font-size: 2rem;
}

.video-overlay strong {
  font-size: clamp(1.1rem, 3vw, 2rem);
  text-align: center;
}

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

.detail-article {
  padding: clamp(24px, 4vw, 36px);
}

.detail-article h2 {
  margin-top: 0;
  font-size: 1.8rem;
}

.detail-article h2:not(:first-child) {
  margin-top: 28px;
}

.detail-article p {
  color: #374151;
  font-size: 1.02rem;
}

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

.detail-side-card {
  position: sticky;
  top: 92px;
  padding: 24px;
}

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

.site-footer {
  margin-top: 36px;
  border-top: 1px solid rgba(251, 146, 60, 0.22);
  background: rgba(255, 255, 255, 0.48);
}

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

.footer-brand {
  display: inline-block;
  margin-bottom: 8px;
  color: #9a3412;
  font-size: 1.25rem;
  font-weight: 950;
}

.footer-shell p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.footer-links a {
  padding: 8px 12px;
  color: #9a3412;
  border-radius: 999px;
  background: #ffedd5;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .hero,
  .split-section,
  .detail-text-section {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .topic-card,
  .detail-side-card {
    position: static;
  }

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

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

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

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

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

  .hero-stage,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 34px;
  }

  .hero-poster {
    display: none;
  }

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

  .category-card-large {
    grid-template-columns: 150px minmax(0, 1fr);
  }

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

@media (max-width: 580px) {
  main,
  .header-shell,
  .mobile-nav,
  .footer-shell {
    width: min(100% - 22px, 1180px);
  }

  .brand-text {
    font-size: 1rem;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-stage,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding: 24px;
  }

  .hero h1,
  .hero h2 {
    font-size: clamp(2.1rem, 14vw, 3.8rem);
  }

  .hero-controls {
    left: 16px;
    right: auto;
    bottom: 16px;
  }

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

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

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

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

  .rank-item,
  .wide-rank-list .rank-item {
    grid-template-columns: 44px 64px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-poster img,
  .wide-rank-list .rank-poster img {
    width: 64px;
    height: 86px;
  }

  .rank-copy p {
    display: none;
  }
}
