:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --yellow: #ca8a04;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --white: #ffffff;
  --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.09);
  --shadow-xl: 0 22px 50px rgba(15, 23, 42, 0.18);
  --radius-lg: 18px;
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
  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,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--orange-dark), #d97706, var(--yellow));
  box-shadow: 0 14px 34px rgba(194, 65, 12, 0.26);
}

.header-inner {
  width: min(100% - 32px, 1280px);
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
  font-size: 15px;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fef3c7;
  transform: translateY(-1px);
}

.header-search {
  position: relative;
  flex: 0 0 260px;
}

.header-search input,
.mobile-search input,
.local-search input,
.search-hero-form input {
  width: 100%;
  border: 0;
  outline: none;
}

.header-search input {
  height: 40px;
  padding: 0 46px 0 18px;
  color: var(--white);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

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

.header-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-50%);
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.mobile-panel {
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-panel a {
  display: block;
  padding: 11px 14px;
  color: var(--white);
  border-radius: 12px;
}

.mobile-panel a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 12px 0;
}

.mobile-search input {
  height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--orange-dark);
  background: var(--white);
  font-weight: 700;
}

.hero {
  position: relative;
  height: 560px;
  min-height: 500px;
  overflow: hidden;
  background: var(--slate-900);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(12px);
  transform: scale(1.12);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(124, 45, 18, 0.94), rgba(180, 83, 9, 0.82), rgba(202, 138, 4, 0.7));
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 50%, rgba(255, 255, 255, 0.16), transparent 34%), linear-gradient(0deg, rgba(15, 23, 42, 0.35), transparent 46%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  color: var(--white);
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}

.hero p {
  margin: 0 0 28px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2.3vw, 25px);
  line-height: 1.55;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange), var(--amber));
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.38);
}

.btn-light {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: rotate(2deg);
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-poster-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
}

.hero-poster-card strong {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

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

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

.main-space {
  padding: 56px 0 72px;
}

.section {
  margin-bottom: 68px;
}

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

.section-title-wrap h2,
.page-title h1,
.detail-copy h1 {
  margin: 0;
  color: var(--gray-800);
  font-weight: 850;
  letter-spacing: -0.03em;
}

.section-title-wrap h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-title-wrap p,
.page-title p {
  margin: 8px 0 0;
  color: var(--gray-600);
}

.text-link {
  color: var(--orange-dark);
  font-weight: 800;
}

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

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

.movie-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.movie-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.movie-poster {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
  aspect-ratio: 16 / 10;
}

.movie-grid.compact .movie-poster,
.category-preview .movie-poster {
  aspect-ratio: 3 / 4;
}

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

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

.movie-pill {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.66);
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(6px);
}

.top-left {
  left: 10px;
  top: 10px;
}

.bottom-right {
  right: 10px;
  bottom: 10px;
}

.hover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(249, 115, 22, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.movie-card-body h3 {
  margin: 0 0 8px;
  color: var(--gray-800);
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-body p {
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-card-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.movie-card-wide .movie-card-link {
  flex-direction: row;
}

.movie-card-wide .movie-poster {
  width: 220px;
  flex: 0 0 220px;
  aspect-ratio: 16 / 10;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(135deg, #fb923c, #f59e0b);
  box-shadow: 0 16px 34px rgba(234, 88, 12, 0.2);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-xl);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.category-card small {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.category-preview img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
}

.page-title h1 {
  font-size: clamp(34px, 5vw, 54px);
}

.search-hero-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  max-width: 760px;
  margin-top: 24px;
}

.search-hero-form input {
  height: 54px;
  border-radius: 999px;
  padding: 0 22px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.search-hero-form button {
  border: 0;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--gray-700);
  background: #f3f4f6;
  font-weight: 750;
}

.filter-chip.is-active {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange), var(--amber));
}

.select-wrap,
.local-search {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 750;
}

.select-wrap select,
.local-search input {
  height: 36px;
  border: 0;
  outline: none;
  border-radius: 999px;
  padding: 0 12px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px #e5e7eb;
}

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

.ranking-item {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.ranking-link {
  display: grid;
  grid-template-columns: 72px 118px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
}

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

.ranking-link img {
  width: 118px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ranking-info strong {
  color: var(--gray-800);
  font-size: 18px;
}

.ranking-info em {
  color: var(--orange-dark);
  font-style: normal;
  font-size: 13px;
  font-weight: 750;
}

.ranking-info small {
  color: var(--gray-600);
  font-size: 13px;
}

.ranking-heat {
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 800;
}

.detail-hero {
  min-height: 430px;
  color: var(--white);
  background: var(--slate-900);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(14px);
  transform: scale(1.12);
  opacity: 0.58;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(124, 45, 18, 0.78), rgba(234, 88, 12, 0.36));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-cover {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.detail-copy h1 {
  color: var(--white);
  font-size: clamp(34px, 5vw, 58px);
}

.detail-copy p {
  max-width: 860px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-weight: 750;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  padding: 48px 0 72px;
}

.player-section,
.content-card,
.side-card {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
  box-shadow: var(--shadow-xl);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.1));
  transition: opacity 0.2s ease;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.94);
  box-shadow: 0 18px 46px rgba(249, 115, 22, 0.42);
  font-size: 34px;
  transform: translateX(3px);
}

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

.player-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 42px 18px 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player-shell:hover .player-bar,
.player-shell:focus-within .player-bar {
  opacity: 1;
}

.player-bar button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.player-bar button:hover {
  background: rgba(249, 115, 22, 0.94);
}

.player-title {
  flex: 1;
  min-width: 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-state {
  position: absolute;
  left: 18px;
  top: 16px;
  margin: 0;
  color: #fed7aa;
  font-size: 14px;
}

.content-card,
.side-card {
  padding: 26px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: var(--gray-800);
  font-size: 24px;
}

.content-card p {
  margin: 0 0 22px;
  color: var(--gray-700);
  font-size: 16px;
}

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

.side-movie {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
}

.side-movie img {
  width: 86px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.side-movie strong {
  display: block;
  color: var(--gray-800);
  line-height: 1.35;
}

.side-movie span {
  color: var(--gray-500);
  font-size: 13px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
  padding: 48px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #fb923c;
  font-size: 20px;
}

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

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.empty-state {
  display: none;
  padding: 34px;
  border-radius: var(--radius-lg);
  color: var(--gray-600);
  background: var(--white);
  box-shadow: var(--shadow-md);
  text-align: center;
}

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

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-search {
    margin-left: auto;
  }

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

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

  .hero {
    height: 620px;
  }

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

  .hero-poster-card {
    display: none;
  }

  .movie-grid,
  .movie-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-link {
    grid-template-columns: 52px 92px 1fr;
  }

  .ranking-heat {
    display: none;
  }

  .detail-cover {
    max-width: 240px;
  }
}

@media (max-width: 640px) {
  .container,
  .header-inner,
  .mobile-panel {
    width: min(100% - 24px, 1280px);
  }

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

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

  .hero-inner {
    gap: 0;
  }

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

  .movie-grid,
  .movie-grid.compact,
  .movie-grid.two-col,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-wide .movie-card-link {
    flex-direction: column;
  }

  .movie-card-wide .movie-poster {
    width: 100%;
    flex-basis: auto;
  }

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

  .search-hero-form,
  .mobile-search {
    grid-template-columns: 1fr;
  }

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

  .ranking-link {
    grid-template-columns: 42px 78px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .ranking-number {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 16px;
  }

  .ranking-link img {
    width: 78px;
  }

  .detail-copy h1 {
    font-size: 34px;
  }

  .player-section,
  .content-card,
  .side-card {
    padding: 16px;
  }
}
