:root {
  color-scheme: dark;
  --bg: #030712;
  --bg-soft: #111827;
  --bg-card: #151f31;
  --bg-glass: rgba(17, 24, 39, 0.82);
  --line: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: #9ca3af;
  --soft-text: #d1d5db;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-soft: rgba(249, 115, 22, 0.14);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  --radius: 20px;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #030712 0%, #111827 45%, #030712 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(17, 24, 39, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #fbbf24);
  color: white;
  box-shadow: 0 12px 34px rgba(249, 115, 22, 0.34);
}

.brand-name {
  font-size: 1.28rem;
}

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

.nav-link {
  color: var(--soft-text);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

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

.nav-search input,
.mobile-panel input,
.large-search input,
.filter-panel input,
.filter-panel select {
  color: var(--text);
  background: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.12);
  outline: none;
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 210px;
  height: 40px;
  padding: 0 14px;
}

.nav-search input:focus,
.mobile-panel input:focus,
.large-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.nav-search button,
.mobile-panel button,
.large-search button {
  height: 40px;
  border: 0;
  padding: 0 16px;
  border-radius: 12px;
  color: white;
  background: var(--accent);
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-search button:hover,
.mobile-panel button:hover,
.large-search button:hover,
.primary-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 14px 20px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #111827;
}

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

.mobile-panel a {
  padding: 10px 12px;
  color: var(--soft-text);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.mobile-panel form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.mobile-panel input {
  min-width: 0;
  padding: 0 12px;
}

.hero-carousel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #030712;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.32) blur(8px);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 48%, rgba(249, 115, 22, 0.22), transparent 32%),
    linear-gradient(180deg, rgba(3, 7, 18, 0.3) 0%, rgba(17, 24, 39, 0.72) 48%, #030712 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 116px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 64px;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 24px 0 18px;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero-line {
  max-width: 720px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
}

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

.hero-tags span,
.tag-row span,
.detail-tags a,
.quick-links a {
  border-radius: 999px;
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  font-size: 0.82rem;
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 20px;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  color: white;
  background: var(--accent);
  box-shadow: 0 16px 38px rgba(249, 115, 22, 0.28);
}

.primary-btn.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.ghost-btn,
.text-link {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.ghost-btn:hover,
.text-link:hover {
  transform: translateY(-1px);
  border-color: rgba(249, 115, 22, 0.52);
  background: rgba(249, 115, 22, 0.14);
}

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

.hero-poster img {
  height: 540px;
  object-fit: cover;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 30px;
  background: var(--accent);
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: white;
  background: rgba(17, 24, 39, 0.56);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.home-search-panel {
  position: relative;
  z-index: 6;
  width: min(960px, calc(100% - 32px));
  margin: -48px auto 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.large-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.large-search input,
.large-search button {
  height: 52px;
  border-radius: 16px;
}

.large-search input {
  padding: 0 18px;
}

.home-search-panel .quick-links {
  margin-top: 16px;
}

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

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

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.1;
}

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

.section-heading > a {
  color: var(--accent);
  font-weight: 800;
}

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

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

.movie-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(17, 24, 39, 0.82);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.48);
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.34);
}

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

.poster-link img,
.detail-cover img,
.category-cover-stack img,
.ranking-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-link:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(3, 7, 18, 0.78) 100%);
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.34);
  transform: scale(0.92);
  transition: transform 0.2s ease;
}

.movie-card:hover .poster-play {
  transform: scale(1);
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: white;
  background: rgba(249, 115, 22, 0.92);
  font-weight: 900;
}

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

.movie-title {
  display: block;
  overflow: hidden;
  color: white;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-title:hover,
.ranking-title:hover {
  color: var(--accent);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.movie-card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--soft-text);
  font-size: 0.92rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row span {
  padding: 4px 9px;
  color: #fed7aa;
  font-size: 0.75rem;
}

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

.category-tile {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.24), transparent 34%),
    rgba(17, 24, 39, 0.82);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.5);
}

.category-tile span {
  color: white;
  font-size: 1.25rem;
  font-weight: 900;
}

.category-tile strong {
  color: var(--soft-text);
  font-size: 0.95rem;
}

.category-tile em {
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
}

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

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

.ranking-item {
  display: grid;
  grid-template-columns: 74px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.82);
}

.ranking-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

.ranking-number {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: white;
  background: var(--accent);
  font-weight: 900;
}

.ranking-title {
  color: white;
  font-size: 1.08rem;
  font-weight: 900;
}

.ranking-body p {
  margin: 6px 0;
  color: var(--soft-text);
}

.ranking-score {
  padding: 8px 10px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.14);
  font-weight: 900;
}

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

.page-hero {
  min-height: 320px;
  display: flex;
  align-items: end;
  margin-top: 24px;
  padding: 42px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 76% 24%, rgba(249, 115, 22, 0.26), transparent 38%),
    linear-gradient(135deg, rgba(31, 41, 55, 0.96), rgba(3, 7, 18, 0.94));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 850px;
  margin: 16px 0 12px;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--soft-text);
  font-size: 1.12rem;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background: rgba(17, 24, 39, 0.82);
}

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

.category-cover-stack img {
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  background: #111827;
}

.category-card-body h2 {
  margin: 12px 0 8px;
  font-size: 1.6rem;
}

.category-card-body p {
  color: var(--soft-text);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.82);
}

.search-filter {
  grid-template-columns: 1.5fr repeat(4, minmax(130px, 1fr));
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
}

.empty-state {
  display: none;
  padding: 38px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  color: var(--muted);
  background: rgba(17, 24, 39, 0.72);
  text-align: center;
}

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

.related-categories h2 {
  margin: 0 0 16px;
  font-size: 2rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

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

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: white;
  background:
    radial-gradient(circle at center, rgba(249, 115, 22, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(3, 7, 18, 0.34), rgba(3, 7, 18, 0.82));
  cursor: pointer;
  font-weight: 900;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-shell.is-playing .player-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-icon {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: var(--accent);
  box-shadow: 0 20px 50px rgba(249, 115, 22, 0.34);
  font-size: 2.4rem;
}

.detail-article,
.side-panel {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.82);
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.detail-title-row h1 {
  margin: 14px 0 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.08;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.14);
}

.lead-text {
  color: #fef3c7;
  font-size: 1.1rem;
}

.detail-article h2 {
  margin: 28px 0 10px;
  font-size: 1.45rem;
}

.detail-article p {
  color: var(--soft-text);
}

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

.detail-cover {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111827;
  box-shadow: var(--shadow);
}

.side-panel h2 {
  margin: 0 0 16px;
}

.side-panel dl {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.side-panel dt {
  color: var(--muted);
}

.side-panel dd {
  margin: 0;
  color: white;
}

.detail-related {
  width: 100%;
}

.site-footer {
  margin-top: 86px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #111827;
}

.footer-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
}

.footer-brand {
  margin-bottom: 16px;
  font-size: 1.16rem;
}

.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer p,
.site-footer a {
  display: block;
  color: var(--muted);
  margin: 0 0 9px;
}

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

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

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

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

  .hero-poster img {
    height: 440px;
  }

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

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

  .filter-panel,
  .search-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .menu-toggle {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: 104px;
  }

  .hero-poster {
    display: none;
  }

  .hero-copy h1 {
    letter-spacing: -0.04em;
  }

  .hero-arrow {
    display: none;
  }

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

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

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

  .category-grid,
  .category-overview-grid,
  .compact-ranking {
    grid-template-columns: 1fr;
  }

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

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

  .detail-side {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
  }

  .side-panel {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .header-inner {
    width: min(100% - 24px, var(--max));
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .hero-carousel,
  .hero-content {
    min-height: 760px;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .hero-actions {
    display: grid;
  }

  .home-search-panel,
  .content-section,
  .page-main,
  .detail-main,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, var(--max));
  }

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

  .filter-panel,
  .search-filter {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .ranking-number,
  .ranking-score {
    display: none;
  }

  .page-hero {
    min-height: 260px;
    padding: 28px;
    border-radius: 24px;
  }

  .detail-title-row {
    flex-direction: column;
  }

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