:root {
  color-scheme: light;
  --bg: #fff8ed;
  --bg-soft: #fffbf4;
  --card: #ffffff;
  --card-strong: #fff3dc;
  --text: #3b2412;
  --muted: #8a6848;
  --line: #f4d7aa;
  --brand: #d97706;
  --brand-dark: #b45309;
  --brand-soft: #fff0c7;
  --accent: #ef4444;
  --shadow: 0 18px 50px rgba(146, 84, 15, 0.13);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(251, 191, 36, 0.18), transparent 34rem),
    radial-gradient(circle at 90% 20%, rgba(239, 68, 68, 0.12), transparent 28rem),
    linear-gradient(180deg, #fff7e7 0%, #fffaf2 42%, #ffffff 100%);
}

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

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

button,
input {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 237, 0.92);
  border-bottom: 1px solid rgba(217, 119, 6, 0.18);
  box-shadow: 0 12px 36px rgba(120, 53, 15, 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: 22px;
}

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

.brand-mark {
  width: 46px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: white;
  font-size: 14px;
  letter-spacing: -0.04em;
  border-radius: 13px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.22);
}

.brand-name {
  font-size: 20px;
  letter-spacing: -0.03em;
}

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

.nav-link {
  padding: 9px 12px;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.header-search {
  margin-left: auto;
  width: min(360px, 34vw);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.header-search input {
  min-width: 0;
  flex: 1;
  padding: 8px 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.header-search button,
.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.25);
}

.header-search button {
  padding: 8px 15px;
}

.primary-button {
  padding: 12px 20px;
}

.primary-button.small {
  padding: 10px 16px;
  font-size: 14px;
}

.ghost-button,
.section-more {
  color: var(--brand-dark);
  background: #fff7e6;
  border: 1px solid var(--line);
}

.ghost-button,
.section-more {
  padding: 11px 18px;
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.header-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(217, 119, 6, 0.24);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
}

.mobile-panel {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.mobile-panel nav,
.mobile-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-category-links {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.mobile-category-links a {
  padding: 8px 11px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
  font-size: 14px;
}

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

.hero-slider {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 26px auto 0;
  overflow: hidden;
  border-radius: 34px;
  background: #241407;
  box-shadow: 0 30px 80px rgba(120, 53, 15, 0.22);
}

.hero-stage {
  position: relative;
  min-height: 590px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 34px;
  align-items: center;
  padding: clamp(28px, 5vw, 70px);
  color: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: scale(1.02);
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(35, 18, 4, 0.92), rgba(35, 18, 4, 0.58) 48%, rgba(35, 18, 4, 0.28)),
    var(--hero-image) center / cover no-repeat;
  filter: saturate(1.08);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 20%, rgba(245, 158, 11, 0.28), transparent 22rem);
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #fde68a;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 8vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-summary {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.tag-row span {
  color: var(--brand-dark);
  background: #fff5df;
}

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

.hero-poster {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
}

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

.hero-controls {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 12px;
  align-items: center;
  padding: 0 28px 28px;
}

.hero-arrow {
  width: 52px;
  height: 52px;
  color: white;
  font-size: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

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

.hero-dot {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
  cursor: pointer;
}

.hero-dot.is-active {
  color: white;
  border-color: rgba(251, 191, 36, 0.7);
  background: rgba(245, 158, 11, 0.26);
}

.hero-dot img {
  width: 42px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}

.hero-dot span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-search-panel,
.filter-panel,
.page-hero,
.detail-hero,
.player-section,
.detail-content,
.category-detail-card,
.ranking-panel {
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.home-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: center;
  margin-top: 32px;
  padding: clamp(24px, 4vw, 42px);
}

.home-search-panel h2,
.section-heading h2,
.page-hero h1,
.filter-panel h2,
.detail-info h1,
.detail-content h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.home-search-panel h2,
.section-heading h2 {
  font-size: clamp(26px, 4vw, 40px);
}

.home-search-panel p,
.section-heading p,
.filter-panel p,
.page-hero p,
.category-detail-head p,
.detail-content p {
  color: var(--muted);
  line-height: 1.8;
}

.large-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
}

.large-search input {
  min-width: 0;
  flex: 1;
  padding: 14px 16px;
  border: 0;
  outline: 0;
  background: transparent;
}

.large-search button {
  padding: 12px 20px;
  color: white;
  font-weight: 900;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  cursor: pointer;
}

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

.no-top-padding {
  padding-top: 22px;
}

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

.section-heading.compact {
  align-items: center;
  margin-bottom: 16px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 45px rgba(120, 53, 15, 0.16);
}

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

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

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

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 1;
  top: 10px;
  padding: 6px 9px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.type-badge {
  right: 10px;
}

.rank-badge {
  left: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.86);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

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

.movie-card-body h3 a:hover {
  color: var(--brand-dark);
}

.movie-meta,
.movie-one-line {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.movie-meta {
  font-size: 13px;
}

.movie-one-line {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.category-card {
  position: relative;
  min-height: 176px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at right top, rgba(245, 158, 11, 0.24), transparent 12rem),
    white;
  box-shadow: 0 14px 34px rgba(120, 53, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(120, 53, 15, 0.14);
}

.category-card h3 {
  margin: 20px 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-count {
  display: inline-flex;
  padding: 7px 10px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  border-radius: 999px;
  background: var(--brand-soft);
}

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

.split-section .content-section {
  padding-top: 54px;
}

.ranking-panel {
  position: sticky;
  top: 92px;
  margin-top: 54px;
  padding: 22px;
}

.ranking-panel .section-heading a {
  color: var(--brand-dark);
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 30px 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff8ec;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.rank-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: white;
  font-size: 13px;
  font-weight: 900;
  border-radius: 10px;
  background: var(--brand);
}

.rank-item img {
  width: 56px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-main {
  padding-top: 28px;
}

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

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

.page-hero {
  padding: clamp(28px, 5vw, 54px);
  background:
    radial-gradient(circle at 85% 10%, rgba(245, 158, 11, 0.28), transparent 22rem),
    rgba(255, 255, 255, 0.88);
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.04;
}

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

.filter-panel {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
  padding: 22px;
}

.filter-panel input {
  width: min(360px, 70vw);
  padding: 13px 16px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  background: white;
}

.category-detail-list {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.category-detail-card {
  padding: 24px;
}

.category-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.category-detail-head h2 {
  margin: 0;
  font-size: 32px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  padding: clamp(22px, 4vw, 40px);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(120, 53, 15, 0.16);
}

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

.detail-info h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
}

.detail-one-line {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-meta div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff8ec;
}

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

.detail-meta dd {
  margin: 6px 0 0;
  font-weight: 900;
}

.large-tags {
  margin-bottom: 24px;
}

.player-section,
.detail-content {
  margin-top: 26px;
  padding: clamp(22px, 4vw, 32px);
}

.hls-player {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #120b04;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.2);
}

.video-element {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #120b04;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: white;
  border: 0;
  background:
    linear-gradient(180deg, rgba(18, 11, 4, 0.26), rgba(18, 11, 4, 0.72)),
    rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.hls-player.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: white;
  font-size: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 18px 40px rgba(239, 68, 68, 0.28);
}

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

.player-overlay small {
  color: rgba(255, 255, 255, 0.72);
}

.player-message {
  position: absolute;
  left: 16px;
  bottom: 16px;
  margin: 0;
  padding: 8px 12px;
  color: white;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
}

.player-message:empty {
  display: none;
}

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

.detail-content section {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.detail-content section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-content h2 {
  font-size: 28px;
}

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

.related-section {
  padding-bottom: 42px;
}

.empty-state {
  margin: 24px 0;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: #fff8ec;
}

.site-footer {
  margin-top: 70px;
  padding: 44px 0 20px;
  color: #7c4a16;
  background: linear-gradient(180deg, rgba(255, 248, 237, 0), #fff0cf);
  border-top: 1px solid rgba(217, 119, 6, 0.14);
}

.footer-inner,
.footer-bottom {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 30px;
}

.footer-brand p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.footer-links a {
  padding: 8px 11px;
  color: var(--brand-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(217, 119, 6, 0.16);
  font-size: 14px;
}

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

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

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

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

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

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

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

  .ranking-panel {
    position: static;
    margin-top: 10px;
  }

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

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

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

  main,
  .page-main,
  .hero-slider,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, var(--max));
  }

  .hero-stage {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 22px;
    align-content: center;
    padding: 26px;
  }

  .hero-poster {
    width: min(230px, 70vw);
    margin: 0 auto;
  }

  .hero-controls {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    padding: 0 16px 18px;
  }

  .hero-dots {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-dot {
    min-width: 130px;
  }

  .home-search-panel,
  .filter-panel,
  .category-detail-head,
  .footer-inner,
  .footer-bottom,
  .detail-hero {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .home-search-panel,
  .filter-panel {
    display: grid;
  }

  .large-search {
    flex-direction: column;
    border-radius: 22px;
  }

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

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

  .detail-poster {
    max-width: 280px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid.small-grid,
  .ranking-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 760px;
  }

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

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