:root {
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --orange: #f97316;
  --red: #ef4444;
  --pink: #ec4899;
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 45%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.96), rgba(239, 68, 68, 0.96), rgba(236, 72, 153, 0.96));
  box-shadow: 0 18px 38px rgba(239, 68, 68, 0.22);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--orange);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.brand-text {
  font-size: 20px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.header-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.header-search input,
.mobile-search input {
  width: 190px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 10px 12px 10px 16px;
  transition: width 0.25s ease;
}

.header-search input:focus {
  width: 250px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.mobile-search button {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  padding: 10px 14px;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
}

.mobile-link.active {
  background: rgba(255, 255, 255, 0.24);
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #0f172a;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 5s ease;
}

.hero-slide.active .hero-image {
  transform: scale(1.12);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(249, 115, 22, 0.36), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.64) 44%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.7));
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 7px 13px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.28);
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.8;
}

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

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero-actions,
.cta-actions,
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 18px 38px rgba(239, 68, 68, 0.3);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.primary-button.light {
  color: var(--orange);
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.ghost-button.light {
  color: #ffffff;
}

.text-link {
  min-height: 38px;
  color: var(--orange);
  background: #fff7ed;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.56);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--orange);
}

.section-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 0;
}

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

.section-heading h2,
.ranking-card h2,
.sticky-rank h2,
.side-card h2,
.detail-content h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

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

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

.category-tile {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
}

.category-icon {
  font-size: 34px;
  line-height: 1;
}

.category-tile strong {
  font-size: 19px;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.tone-orange { background: linear-gradient(135deg, #fb923c, #ef4444); }
.tone-purple { background: linear-gradient(135deg, #a855f7, #6366f1); }
.tone-rose { background: linear-gradient(135deg, #fb7185, #ec4899); }
.tone-green { background: linear-gradient(135deg, #22c55e, #14b8a6); }
.tone-blue { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.tone-red { background: linear-gradient(135deg, #f43f5e, #dc2626); }
.tone-cyan { background: linear-gradient(135deg, #06b6d4, #0ea5e9); }
.tone-indigo { background: linear-gradient(135deg, #818cf8, #4f46e5); }
.tone-amber { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.tone-pink { background: linear-gradient(135deg, #f472b6, #db2777); }

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(249, 115, 22, 0.22);
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72));
  opacity: 0.8;
}

.play-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 16px 36px rgba(239, 68, 68, 0.35);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 900;
}

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

.card-meta,
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--orange);
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.card-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.card-foot strong {
  color: var(--orange);
  font-size: 18px;
}

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
}

.movie-card.horizontal .poster-link {
  aspect-ratio: auto;
  min-height: 260px;
}

.movie-card.horizontal .movie-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ranking-panel {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 24px;
}

.ranking-card,
.ranking-feature,
.sticky-rank,
.side-card,
.detail-content,
.poster-panel,
.player-card {
  border-radius: 32px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.ranking-card {
  padding: 30px;
}

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

.rank-line {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #f8fafc;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-line:hover {
  background: #fff7ed;
  transform: translateX(4px);
}

.rank-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-score {
  color: var(--orange);
  font-weight: 900;
  text-align: right;
}

.ranking-feature {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  color: #ffffff;
}

.ranking-feature img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.ranking-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 16%, rgba(0, 0, 0, 0.86));
}

.ranking-feature div {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 32px;
  z-index: 1;
}

.ranking-feature span {
  color: #fed7aa;
  font-weight: 900;
}

.ranking-feature h3 {
  margin: 8px 0 12px;
  font-size: 34px;
}

.ranking-feature p {
  max-width: 620px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.cta-band {
  margin-top: 72px;
  margin-bottom: 72px;
  padding: 60px 32px;
  border-radius: 36px;
  color: #ffffff;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(90deg, var(--orange), var(--red), var(--pink));
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.cta-actions {
  justify-content: center;
}

.page-hero {
  width: min(1200px, calc(100% - 32px));
  min-height: 320px;
  margin: 38px auto 0;
  display: flex;
  align-items: center;
  border-radius: 36px;
  padding: 52px;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.24), transparent 26%),
    linear-gradient(135deg, #fb923c, #ef4444, #db2777);
  box-shadow: var(--shadow);
}

.compact-hero {
  min-height: 280px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 7vw, 66px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.8;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 32px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.category-overview-cover {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
}

.category-overview-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.4s ease;
}

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

.category-overview-cover span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  font-size: 42px;
}

.category-overview-body {
  padding: 28px;
}

.category-overview-body h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.category-overview-body p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.mini-link-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.mini-link-list a {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-link-list a:hover {
  color: #ffffff;
}

.category-overview-body .text-link {
  color: var(--text);
  background: #ffffff;
}

.filter-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  background: #f8fafc;
  padding: 0 16px;
}

.filter-bar input {
  flex: 1 1 auto;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.empty-state {
  display: none;
  padding: 32px;
  border-radius: 26px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  box-shadow: var(--shadow);
}

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

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

.sticky-rank {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.rank-list.compact {
  max-height: 820px;
  overflow: auto;
  padding-right: 4px;
}

.detail-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 34px auto 0;
}

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

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

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

.player-card {
  overflow: hidden;
}

.video-frame {
  position: relative;
  background: #050505;
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.16), rgba(0, 0, 0, 0.52));
}

.player-mask span {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 20px 55px rgba(239, 68, 68, 0.36);
  font-size: 34px;
  transform: scale(0.96);
  transition: transform 0.2s ease;
}

.player-mask:hover span {
  transform: scale(1.06);
}

.player-mask.hidden {
  display: none;
}

.detail-content {
  border-radius: 0;
  box-shadow: none;
  padding: 34px;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.detail-title-row h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
}

.detail-score {
  min-width: 92px;
  border-radius: 24px;
  padding: 14px;
  text-align: center;
  color: var(--orange);
  background: #fff7ed;
}

.detail-score strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.detail-score span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.lead-text {
  margin: 22px 0;
  color: #374151;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  margin-bottom: 14px;
}

.detail-meta span {
  color: #7c2d12;
  background: #ffedd5;
}

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

.detail-content h2 {
  margin: 26px 0 12px;
  font-size: 24px;
}

.detail-content p {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.95;
}

.detail-side {
  display: grid;
  gap: 24px;
}

.poster-panel,
.side-card {
  padding: 18px;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 18px;
}

.poster-panel .primary-button {
  width: 100%;
}

.side-card h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

.side-links {
  display: grid;
  gap: 10px;
}

.side-links a {
  padding: 11px 12px;
  border-radius: 15px;
  background: #f8fafc;
  color: #374151;
  font-weight: 700;
}

.side-links a:hover {
  color: var(--orange);
  background: #fff7ed;
}

.site-footer {
  margin-top: 80px;
  color: #ffffff;
  background: #111827;
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.footer-logo {
  font-size: 22px;
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  color: rgba(255, 255, 255, 0.74);
}

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

.footer-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
}

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

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

  .menu-toggle {
    display: flex;
  }

  .mobile-search input {
    width: 100%;
    flex: 1 1 auto;
  }

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

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

  .sticky-rank {
    position: static;
  }

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

@media (max-width: 800px) {
  .hero-carousel {
    height: 560px;
  }

  .hero-content p {
    font-size: 17px;
  }

  .section-shell {
    padding-top: 52px;
  }

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

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

  .category-overview-card,
  .movie-card.horizontal {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal .poster-link {
    aspect-ratio: 3 / 4;
    min-height: 0;
  }

  .ranking-panel {
    gap: 18px;
  }

  .page-hero {
    padding: 34px 24px;
    border-radius: 28px;
  }

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

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

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

@media (max-width: 560px) {
  .header-inner,
  .mobile-panel,
  .section-shell,
  .detail-shell,
  .page-hero {
    width: min(100% - 22px, 1200px);
  }

  .brand-text {
    font-size: 18px;
  }

  .hero-carousel {
    height: 520px;
  }

  .hero-content {
    width: min(100% - 26px, 1200px);
  }

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

  .hero-content p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

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

  .detail-content {
    padding: 24px;
  }

  .player-mask span {
    width: 70px;
    height: 70px;
  }
}
