
:root {
  --bg: #f7f7fb;
  --panel: #ffffff;
  --text: #16181d;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #ef4444;
  --brand-dark: #dc2626;
  --brand-soft: #fff1f2;
  --orange: #f97316;
  --shadow: 0 18px 60px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

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

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--orange));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: #374151;
  font-weight: 650;
  transition: 0.2s ease;
}

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

.header-search,
.mobile-search,
.large-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.large-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  transition: 0.2s ease;
}

.header-search input {
  width: 220px;
  padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.header-search button,
.mobile-search button,
.large-search button,
.filter-panel button,
.btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
}

.header-search button,
.mobile-search button,
.large-search button,
.filter-panel button {
  padding: 10px 16px;
  background: var(--brand);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 14px;
  background: #f3f4f6;
}

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

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 16px;
}

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

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f9fafb;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  width: min(100% - 32px, 1280px);
  margin: 24px auto 0;
}

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

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

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

.hero-slide img,
.page-hero::before,
.detail-hero::before {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 12, 22, 0.92) 0%, rgba(8, 12, 22, 0.62) 44%, rgba(8, 12, 22, 0.22) 100%),
    linear-gradient(0deg, rgba(8, 12, 22, 0.52), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  padding: 82px 64px 120px;
  color: #ffffff;
}

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
}

.hero-label {
  background: rgba(255, 255, 255, 0.16);
  color: #fecaca;
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  margin: 20px 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  display: -webkit-box;
  margin: 0 0 24px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-tags,
.detail-meta,
.card-meta,
.card-kicker,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.hero-tags span,
.detail-meta span,
.tag-list span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--orange));
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(239, 68, 68, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(239, 68, 68, 0.34);
}

.btn-glass {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.btn-light {
  background: #ffffff;
  color: var(--text);
}

.hero-controls {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.hero-controls button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
}

.hero-controls > button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 26px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

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

.hero-side {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.hero-side-title,
.panel-title h2,
.section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.hero-mini {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 18px;
  transition: 0.2s ease;
}

.hero-mini:hover {
  background: #f9fafb;
  transform: translateX(3px);
}

.hero-mini img {
  width: 78px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
}

.hero-mini span {
  display: -webkit-box;
  color: #111827;
  font-weight: 750;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.soft-bg {
  background: linear-gradient(180deg, #ffffff, #fff7f7);
}

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

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more,
.text-link {
  color: var(--brand);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: 0.2s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 6px 11px;
  background: var(--brand);
}

.rank-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.55);
}

.card-body {
  padding: 15px;
}

.card-kicker {
  justify-content: space-between;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 3em;
  margin: 9px 0 6px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-meta {
  color: #6b7280;
  font-size: 12px;
}

.card-meta span {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #ffffff;
  background: #111827;
  box-shadow: var(--shadow-soft);
}

.category-tile img,
.category-tile-shade {
  position: absolute;
  inset: 0;
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile-shade {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.14), rgba(17, 24, 39, 0.88));
}

.category-tile strong,
.category-tile small {
  position: relative;
  z-index: 1;
}

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

.category-tile small {
  display: -webkit-box;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.86);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.ranking-panel,
.player-card,
.article-card,
.category-overview-card,
.ranking-table,
.filter-panel,
.podium-card {
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.panel-title a {
  color: var(--brand);
  font-weight: 800;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 36px 62px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 16px;
  transition: 0.2s ease;
}

.rank-row:hover {
  background: #f9fafb;
}

.rank-row span:first-child,
.table-rank {
  color: var(--brand);
  font-weight: 900;
}

.rank-row img {
  width: 62px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-row strong {
  display: -webkit-box;
  color: #111827;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.page-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image, linear-gradient(135deg, #111827, #7f1d1d));
  background-size: cover;
  background-position: center;
  opacity: 0.34;
  filter: saturate(1.1);
}

.page-hero-shade,
.detail-hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(239, 68, 68, 0.44), transparent 36%), linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.62));
}

.slim-hero {
  padding: 78px 0;
}

.page-hero .container,
.detail-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1,
.detail-info h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p,
.detail-one-line {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

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

.category-overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 18px;
}

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

.category-cover-stack img {
  width: 100%;
  height: 112px;
  border-radius: 16px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 8px 0;
  font-size: 28px;
}

.category-overview-card p {
  color: var(--muted);
}

.category-overview-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 14px 0;
  list-style: none;
}

.category-overview-card li a {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 14px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 12px 14px;
}

.filter-panel button {
  background: #111827;
}

.detail-hero {
  padding: 42px 0 64px;
}

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

.detail-poster {
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

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

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

.player-card {
  padding: 18px;
}

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

.player-heading h2 {
  margin: 10px 0 0;
  font-size: 28px;
}

.player-heading > span {
  color: var(--muted);
  font-weight: 700;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #050816;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050816;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(239, 68, 68, 0.24), rgba(5, 8, 22, 0.58));
  transition: 0.2s ease;
}

.play-overlay:hover {
  background: radial-gradient(circle at center, rgba(239, 68, 68, 0.34), rgba(5, 8, 22, 0.62));
}

.play-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--orange));
  box-shadow: 0 20px 45px rgba(239, 68, 68, 0.36);
  font-size: 32px;
  text-indent: 4px;
}

.video-shell.is-ready .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-status {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  text-align: center;
  pointer-events: none;
}

.video-shell.is-ready .player-status {
  display: none;
}

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

.article-card {
  padding: 24px;
}

.article-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

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

.tags-card {
  grid-column: 1 / -1;
}

.tags-card dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px 14px;
  margin: 0 0 18px;
}

.tags-card dt {
  color: var(--muted);
}

.tags-card dd {
  margin: 0;
  font-weight: 700;
}

.tag-list span {
  background: var(--brand-soft);
  color: var(--brand);
}

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

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

.podium-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.podium-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  object-fit: cover;
}

.podium-card strong {
  display: block;
  margin-top: 14px;
  font-size: 20px;
}

.podium-card small {
  color: var(--muted);
}

.podium-rank {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 900;
}

.ranking-table {
  overflow: hidden;
}

.ranking-table-row {
  display: grid;
  grid-template-columns: 70px 86px minmax(0, 1fr) 120px 90px 90px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  transition: 0.2s ease;
}

.ranking-table-row:last-child {
  border-bottom: 0;
}

.ranking-table-row:hover {
  background: #fff7f7;
}

.ranking-table-row img {
  width: 86px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-table-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-table-row em {
  color: var(--brand);
  font-style: normal;
  font-weight: 850;
}

.large-search {
  max-width: 760px;
  margin-top: 26px;
}

.large-search input {
  flex: 1;
  min-height: 54px;
  padding: 14px 20px;
}

.large-search button {
  min-height: 54px;
  padding: 14px 28px;
}

.site-footer {
  background: #111827;
  color: #d1d5db;
  padding-top: 48px;
}

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

.footer-logo {
  color: #ffffff;
  margin-bottom: 14px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: #cbd5e1;
}

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

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

.footer-bottom {
  margin-top: 38px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #94a3b8;
}

[data-card][hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .hero-carousel,
  .two-column-layout,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-side,
  .ranking-panel {
    position: static;
  }

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

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

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

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

  .hero-carousel {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

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

  .hero-content {
    padding: 54px 26px 110px;
  }

  .movie-grid,
  .compact-grid,
  .related-grid,
  .category-grid,
  .podium-grid,
  .detail-content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .ranking-table-row {
    grid-template-columns: 46px 72px minmax(0, 1fr);
  }

  .ranking-table-row span:nth-of-type(2),
  .ranking-table-row span:nth-of-type(3),
  .ranking-table-row em {
    display: none;
  }
}

@media (max-width: 560px) {
  .container,
  .hero-carousel {
    width: min(100% - 22px, var(--container));
  }

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

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

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

  .hero-content p {
    font-size: 16px;
    -webkit-line-clamp: 5;
  }

  .hero-controls {
    left: 18px;
    right: 18px;
    justify-content: space-between;
  }

  .movie-grid,
  .compact-grid,
  .related-grid,
  .category-grid,
  .podium-grid,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

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

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

  .detail-info h1,
  .page-hero h1 {
    font-size: 34px;
  }

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

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

  .footer-grid {
    gap: 24px;
  }
}
