:root {
  --bg: #f8fafc;
  --bg-soft: #fff7ed;
  --panel: #ffffff;
  --panel-strong: rgba(255, 255, 255, 0.92);
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.08);
  --primary: #e11d48;
  --primary-dark: #be123c;
  --orange: #f97316;
  --gold: #f59e0b;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 113, 133, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 30rem),
    linear-gradient(180deg, #f9fafb 0%, #ffffff 40%, #f8fafc 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--orange));
  box-shadow: 0 16px 34px rgba(225, 29, 72, 0.25);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.nav-link,
.mobile-link {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 18px;
  border-radius: 999px;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--orange));
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
}

.mobile-nav.open {
  display: grid;
  gap: 10px;
}

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

.mobile-link.active,
.mobile-link:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--orange));
}

.hero {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.58fr);
  gap: 28px;
}

.hero-stage {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #111827;
  box-shadow: var(--shadow);
}

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

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

.hero-image,
.hero-image img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image img {
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.74) 36%, rgba(15, 23, 42, 0.18) 100%),
    radial-gradient(circle at 18% 18%, rgba(225, 29, 72, 0.42), transparent 24rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  min-height: 70vh;
  padding: clamp(32px, 6vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.hero-kicker,
.page-hero span,
.section-heading span,
.panel-title span,
.category-card span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 16px 0 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.94;
  letter-spacing: -0.08em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.75;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.tag-row span {
  color: #9f1239;
  background: #fff1f2;
}

.tag-row.large span {
  min-height: 36px;
  padding: 8px 14px;
}

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

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

.primary-button,
.hero-search button {
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--orange));
  box-shadow: 0 18px 38px rgba(225, 29, 72, 0.28);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(16px);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-control.prev {
  left: 22px;
}

.hero-control.next {
  right: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.hero-search-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px);
}

.hero-search-card h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.hero-search-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.hero-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 12px;
  color: var(--text);
}

.hero-mini-grid {
  display: grid;
  gap: 14px;
}

.content-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 42px 28px;
}

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

.section-heading h2,
.panel-title h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.06em;
}

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

.section-more {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #9f1239;
  font-weight: 900;
  background: #ffffff;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(225, 29, 72, 0.28);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.13);
}

.movie-card.compact {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: stretch;
  border-radius: 20px;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #9f1239);
}

.movie-card.compact .poster {
  aspect-ratio: auto;
  min-height: 126px;
}

.poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease, filter 0.28s ease;
}

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.play-chip {
  right: 10px;
  bottom: 10px;
  min-height: 30px;
  padding: 0 12px;
  background: rgba(225, 29, 72, 0.88);
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-height: 30px;
  padding: 0 10px;
  background: rgba(15, 23, 42, 0.72);
}

.card-body {
  padding: 16px;
}

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

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f3f4f6;
}

.card-body h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.movie-card.compact .card-body h3 {
  margin: 8px 0 6px;
  font-size: 15px;
}

.card-body h3 a:hover {
  color: var(--primary);
}

.card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  min-height: 4.7em;
  overflow: hidden;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.movie-card.compact .card-body p {
  -webkit-line-clamp: 2;
  min-height: auto;
  font-size: 12px;
}

.category-grid,
.category-card-grid {
  display: grid;
  gap: 20px;
}

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

.category-tile {
  min-height: 158px;
  padding: 24px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.3), transparent 12rem),
    linear-gradient(135deg, #be123c, #f97316);
  box-shadow: 0 18px 44px rgba(225, 29, 72, 0.18);
  transition: transform 0.22s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-5px);
}

.category-tile span {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.category-tile strong {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.7;
}

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

.ranking-panel,
.article-card,
.filter-panel,
.category-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px);
}

.ranking-panel {
  position: sticky;
  top: 94px;
  padding: 22px;
}

.panel-title {
  margin-bottom: 18px;
}

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

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

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

.rank-item > span {
  color: var(--primary);
  font-weight: 900;
  font-size: 18px;
}

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

.rank-item strong,
.rank-item em {
  display: block;
}

.rank-item strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.page-hero {
  max-width: 1440px;
  margin: 28px auto 0;
  padding: 70px clamp(24px, 7vw, 90px);
  border-radius: var(--radius-xl);
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.44), transparent 22rem),
    linear-gradient(135deg, #111827, #9f1239 62%, #f97316);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.07em;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.75;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.filter-panel {
  margin-bottom: 24px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(160px, 220px));
  gap: 14px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  padding: 0 14px;
  color: var(--text);
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(225, 29, 72, 0.45);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.08);
}

.empty-state {
  display: none;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(107, 114, 128, 0.36);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
}

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

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

.category-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 38% minmax(0, 1fr);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card img {
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

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

.category-card h2 {
  margin: 10px 0 12px;
  font-size: 28px;
  letter-spacing: -0.05em;
}

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

.detail-hero {
  min-height: 640px;
  color: #ffffff;
  background: #111827;
}

.detail-backdrop,
.detail-backdrop img,
.detail-backdrop::after {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  height: 100%;
  object-fit: cover;
  filter: blur(12px) saturate(1.12) brightness(0.65);
  transform: scale(1.04);
}

.detail-backdrop::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.62)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.12), #111827 100%);
}

.detail-layout {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  min-height: 640px;
  margin: 0 auto;
  padding: 72px 28px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.detail-poster img {
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.detail-info h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.one-line {
  max-width: 850px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.75;
}

.detail-info .detail-meta {
  margin-bottom: 18px;
}

.detail-info .detail-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.detail-info .primary-button {
  margin-top: 28px;
}

.player-section {
  max-width: 1180px;
  margin: -86px auto 0;
  padding: 0 28px 34px;
  position: relative;
  z-index: 3;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  background: #050505;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.36);
}

.movie-player,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-player {
  z-index: 1;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.52);
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-cover img {
  object-fit: cover;
  opacity: 0.56;
}

.player-button {
  position: relative;
  z-index: 3;
  width: 94px;
  height: 94px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--orange));
  box-shadow: 0 20px 60px rgba(225, 29, 72, 0.38);
  font-size: 34px;
  transition: transform 0.18s ease;
}

.player-button:hover {
  transform: scale(1.07);
}

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

.article-card {
  padding: 28px;
}

.article-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.article-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.95;
}

.site-footer {
  margin-top: 42px;
  color: #e5e7eb;
  background:
    radial-gradient(circle at top left, rgba(225, 29, 72, 0.38), transparent 24rem),
    #111827;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 46px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 28px;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.footer-inner p {
  max-width: 620px;
  margin: 0;
  color: rgba(229, 231, 235, 0.76);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.footer-links a {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  padding: 18px 28px 28px;
  color: rgba(229, 231, 235, 0.62);
  text-align: center;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-stage,
  .hero-content {
    min-height: 640px;
  }

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

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

  .ranking-panel {
    position: static;
  }

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

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

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

  .menu-button {
    display: inline-flex;
  }

  .header-inner,
  .hero,
  .content-section,
  .player-section,
  .footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-stage,
  .hero-content {
    min-height: 570px;
  }

  .hero-content {
    padding: 42px 24px;
  }

  .hero-control {
    display: none;
  }

  .featured-grid,
  .all-grid,
  .ranking-grid,
  .movie-grid,
  .slim-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .page-hero {
    margin: 18px 18px 0;
    padding: 56px 24px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    padding: 44px 18px 130px;
  }

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

  .player-section {
    margin-top: -110px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-text {
    font-size: 18px;
  }

  .hero,
  .content-section {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .hero-content h1,
  .detail-info h1 {
    letter-spacing: -0.06em;
  }

  .hero-search,
  .hero-actions,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search {
    border-radius: 24px;
  }

  .hero-search input {
    min-height: 44px;
  }

  .category-grid,
  .category-card-grid,
  .featured-grid,
  .all-grid,
  .ranking-grid,
  .movie-grid,
  .slim-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .category-card img {
    min-height: 220px;
  }

  .movie-card.compact {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .detail-hero,
  .detail-layout {
    min-height: auto;
  }

  .detail-meta span {
    max-width: 100%;
  }

  .player-button {
    width: 72px;
    height: 72px;
    font-size: 26px;
  }

  .article-card {
    padding: 22px;
  }
}
