:root {
  --warm-50: #fdf8f6;
  --warm-100: #f2e8e5;
  --warm-200: #eaded7;
  --warm-300: #e0cec7;
  --warm-400: #d2bab0;
  --warm-600: #a18072;
  --warm-700: #977669;
  --warm-800: #846358;
  --warm-900: #43302b;
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --sky-800: #075985;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --white: #ffffff;
  --black: #101014;
  --shadow-soft: 0 18px 45px rgba(67, 48, 43, 0.12);
  --shadow-card: 0 10px 28px rgba(67, 48, 43, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--warm-50);
  color: var(--warm-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.narrow-container {
  width: min(980px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 246, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(234, 221, 215, 0.9);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-600), var(--sky-800));
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.24);
  font-size: 15px;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link,
.mobile-nav-link {
  font-weight: 700;
  color: var(--warm-700);
  transition: color 0.2s ease;
}

.nav-link:hover,
.mobile-nav-link:hover,
.nav-link.is-active,
.mobile-nav-link.is-active {
  color: var(--sky-600);
}

.header-search {
  margin-left: auto;
  width: min(320px, 34vw);
}

.header-search input,
.mobile-nav input,
.hero-search-card input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(151, 118, 105, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: var(--warm-900);
  border-radius: 999px;
  padding: 12px 18px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.mobile-nav input:focus,
.hero-search-card input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(2, 132, 199, 0.5);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
  background: var(--white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--warm-900);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  gap: 12px;
  flex-direction: column;
}

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

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--warm-900);
}

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

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

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

.hero-slide > img,
.ranking-hero > img,
.detail-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide > img {
  opacity: 0.46;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(67, 48, 43, 0.95) 0%, rgba(67, 48, 43, 0.72) 46%, rgba(67, 48, 43, 0.14) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--white);
  max-width: 1180px;
}

.hero-content h1,
.page-hero h1,
.ranking-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.hero-content p,
.page-hero p,
.ranking-hero p,
.detail-copy p {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--warm-100);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--amber-500);
  color: var(--white);
  padding: 6px 13px;
  font-size: 14px;
  font-weight: 800;
}

.eyebrow {
  background: rgba(2, 132, 199, 0.12);
  color: var(--sky-700);
}

.hero-meta,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta {
  margin: 22px 0 0;
}

.hero-meta span,
.detail-meta span,
.movie-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.13);
  color: inherit;
  font-size: 13px;
}

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

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

.primary-button,
.small-button,
.panel-more {
  background: linear-gradient(135deg, var(--sky-600), var(--sky-800));
  color: var(--white);
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.24);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.small-button:hover,
.panel-more:hover {
  transform: translateY(-2px);
}

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

.hero-dots button {
  width: 46px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--sky-600);
}

.hero-search-card {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 82px;
  z-index: 5;
  width: min(360px, calc(100% - 32px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.hero-search-card span {
  display: block;
  margin: 0 0 10px;
  color: var(--white);
  font-weight: 800;
}

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

.soft-section {
  background: linear-gradient(135deg, var(--sky-50), var(--warm-50));
}

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

.section-heading span,
.panel-heading span {
  display: block;
  color: var(--amber-600);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2,
.panel-heading h2,
.player-section h2,
.story-panel h2,
.detail-side-panel h2 {
  margin: 4px 0 0;
  color: var(--warm-900);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 55px rgba(67, 48, 43, 0.16);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--warm-100);
}

.movie-poster img,
.horizontal-cover img,
.ranking-thumb img,
.detail-cover img,
.category-cover-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .movie-poster img,
.horizontal-card:hover .horizontal-cover img,
.ranking-row:hover .ranking-thumb img {
  transform: scale(1.08);
}

.movie-type {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--amber-500);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(2, 132, 199, 0.86);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

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

.movie-card-body h3,
.horizontal-info h3,
.ranking-info h2 {
  margin: 0;
  color: var(--warm-900);
  font-size: 18px;
  line-height: 1.32;
  font-weight: 900;
}

.compact-card .movie-card-body h3 {
  font-size: 16px;
}

.movie-card-body h3 a:hover,
.horizontal-info h3 a:hover,
.ranking-info h2 a:hover {
  color: var(--sky-600);
}

.movie-card-body p,
.horizontal-info p,
.ranking-info p,
.category-overview-body p,
.category-tile em,
.story-panel p,
.detail-side-panel dd,
.footer-inner p {
  color: var(--warm-700);
}

.movie-card-body p {
  display: -webkit-box;
  margin: 10px 0 12px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 52px;
}

.movie-meta {
  margin: 0 0 12px;
  color: var(--warm-700);
}

.movie-meta span {
  background: var(--warm-100);
}

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

.movie-tags span,
.detail-tags span {
  border-radius: 999px;
  background: var(--sky-50);
  color: var(--sky-700);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile,
.category-overview-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile {
  padding: 24px;
}

.category-tile:hover,
.category-overview-card a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.category-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--sky-600), var(--sky-800));
  color: var(--white);
  margin-bottom: 16px;
}

.category-tile strong,
.category-overview-body h2 {
  color: var(--warm-900);
  font-size: 21px;
  font-weight: 900;
}

.category-tile em {
  margin: 10px 0 16px;
  font-style: normal;
  flex: 1;
}

.category-tile small {
  color: var(--sky-700);
  font-weight: 800;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.7fr);
  gap: 36px;
  align-items: start;
}

.horizontal-list {
  display: grid;
  gap: 18px;
}

.horizontal-card,
.ranking-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.horizontal-cover {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--warm-100);
}

.horizontal-info,
.ranking-info {
  padding: 20px 22px 20px 0;
}

.eyebrow,
.horizontal-info .eyebrow {
  margin-bottom: 8px;
}

.ranking-panel,
.story-panel,
.detail-side-panel {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 28px;
}

.rank-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0;
  list-style: none;
}

.rank-list a {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--warm-50);
  align-items: center;
}

.rank-no {
  color: var(--amber-600);
  font-weight: 900;
}

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

.rank-meta {
  grid-column: 2;
  color: var(--warm-700);
  font-size: 13px;
}

.page-hero,
.ranking-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--warm-900), var(--sky-800));
}

.page-hero {
  padding: 90px 0 82px;
}

.compact-hero {
  padding: 76px 0;
}

.page-hero .eyebrow {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

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

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--warm-100);
}

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

.category-overview-body span {
  color: var(--amber-600);
  font-weight: 900;
}

.category-overview-body strong {
  display: inline-flex;
  margin-top: 16px;
  color: var(--sky-700);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.ranking-hero {
  height: 56vh;
  min-height: 430px;
}

.ranking-hero > img,
.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.42;
}

.ranking-hero-layer,
.detail-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(67, 48, 43, 0.94), rgba(67, 48, 43, 0.52), rgba(7, 89, 133, 0.4));
}

.ranking-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

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

.ranking-row {
  grid-template-columns: 82px 128px minmax(0, 1fr) 92px;
  align-items: center;
  padding: 14px;
}

.ranking-number {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  font-weight: 900;
}

.ranking-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: var(--warm-100);
}

.ranking-info {
  padding: 0;
}

.ranking-info p {
  margin: 8px 0 12px;
}

.detail-hero {
  padding: 58px 0 68px;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
}

.detail-intro {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  background: var(--warm-100);
}

.detail-copy {
  padding-bottom: 14px;
}

.detail-meta {
  margin: 22px 0 16px;
  color: var(--white);
}

.detail-tags {
  margin: 0 0 28px;
}

.detail-tags span {
  background: rgba(255, 255, 255, 0.13);
  color: var(--white);
}

.player-section {
  padding-top: 48px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-top: 18px;
  border-radius: var(--radius-xl);
  background: #08090c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050508;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(2, 132, 199, 0.4), rgba(0, 0, 0, 0.68));
  cursor: pointer;
  z-index: 3;
}

.video-overlay.is-hidden {
  display: none;
}

.video-overlay span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding-left: 6px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-600), var(--sky-800));
  box-shadow: 0 18px 48px rgba(2, 132, 199, 0.34);
  font-size: 34px;
}

.video-overlay strong {
  font-size: 20px;
}

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

.story-panel,
.detail-side-panel {
  padding: 30px;
}

.story-panel h2:not(:first-child) {
  margin-top: 30px;
}

.story-panel p {
  margin: 14px 0 0;
  font-size: 17px;
}

.detail-side-panel dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.detail-side-panel dt {
  color: var(--warm-900);
  font-weight: 900;
}

.detail-side-panel dd {
  margin: -10px 0 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--warm-100);
}

.site-footer {
  background: var(--warm-900);
  color: var(--warm-100);
  padding: 48px 0;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.footer-brand {
  color: var(--white);
  font-size: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--warm-100);
  font-weight: 800;
}

.search-popover {
  position: fixed;
  z-index: 200;
  width: min(520px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 120px));
  overflow: auto;
  border: 1px solid rgba(151, 118, 105, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(67, 48, 43, 0.22);
  backdrop-filter: blur(14px);
  padding: 10px;
}

.search-popover[hidden] {
  display: none;
}

.search-result {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
}

.search-result:hover {
  background: var(--warm-50);
}

.search-result img {
  width: 58px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--warm-100);
}

.search-result strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-result span,
.search-result p {
  display: block;
  margin: 3px 0 0;
  color: var(--warm-700);
  font-size: 13px;
}

.no-results {
  padding: 18px;
  color: var(--warm-700);
  text-align: center;
}

.is-filter-hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .movie-grid-large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .header-inner {
    height: 64px;
  }

  .main-nav,
  .header-search {
    display: none;
  }

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

  .hero-carousel {
    min-height: 76vh;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 154px;
  }

  .hero-search-card {
    left: 16px;
    right: 16px;
    bottom: 72px;
    width: auto;
  }

  .hero-dots {
    bottom: 32px;
  }

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

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

  .horizontal-info {
    padding: 16px 16px 16px 0;
  }

  .ranking-row {
    grid-template-columns: 58px 88px minmax(0, 1fr);
  }

  .ranking-row .small-button {
    grid-column: 3;
    width: fit-content;
  }

  .detail-intro {
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
  }

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

@media (max-width: 560px) {
  .container,
  .header-inner,
  .mobile-nav,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-content h1,
  .page-hero h1,
  .ranking-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

  .hero-actions,
  .detail-meta,
  .hero-meta {
    gap: 8px;
  }

  .primary-button,
  .ghost-button,
  .small-button,
  .panel-more {
    min-height: 42px;
    padding: 0 16px;
  }

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

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

  .movie-grid-large,
  .movie-grid-six,
  .category-grid,
  .category-overview-grid {
    gap: 14px;
  }

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

  .movie-card-body p,
  .movie-tags {
    display: none;
  }

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

  .horizontal-cover {
    aspect-ratio: 16 / 9;
  }

  .horizontal-info {
    padding: 16px;
  }

  .ranking-row {
    grid-template-columns: 52px 76px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .ranking-number {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 13px;
  }

  .ranking-info p,
  .ranking-info .movie-meta {
    display: none;
  }

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

  .detail-cover {
    width: min(220px, 68vw);
  }

  .story-panel,
  .detail-side-panel,
  .ranking-panel {
    padding: 22px;
  }

  .video-overlay span {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }
}
