:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --rose: #f43f5e;
  --bg: #fff7ed;
  --radius-xl: 24px;
  --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(249, 115, 22, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--slate-900);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 36rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.14), transparent 32rem),
    linear-gradient(135deg, #fff7ed 0%, #fdf2f8 48%, #fff1f2 100%);
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.96), rgba(236, 72, 153, 0.96), rgba(244, 63, 94, 0.96));
  color: #fff;
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.2);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  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.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--orange);
  background: #fff;
  box-shadow: 0 10px 26px rgba(255, 255, 255, 0.24);
}

.brand-text {
  font-size: 1.35rem;
}

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

.main-nav a {
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--orange);
  background: #fff;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 42px 0 28px;
}

.hero-title-block {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 20px;
  text-align: center;
}

.hero-title-block p,
.page-hero p,
.section-head p {
  margin: 0 0 8px;
  color: var(--orange-dark);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title-block h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.95;
  color: transparent;
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-slider {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 520px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 36px;
  background: var(--slate-950);
  box-shadow: var(--shadow-soft);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 520px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
  transform: scale(1.02);
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.78) 42%, rgba(15, 23, 42, 0.16) 100%),
    radial-gradient(circle at 22% 24%, rgba(249, 115, 22, 0.34), transparent 28rem),
    radial-gradient(circle at 68% 70%, rgba(236, 72, 153, 0.28), transparent 24rem);
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  transform: scale(1.04);
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 72px;
  color: #fff;
  max-width: 700px;
}

.hero-kicker {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero-content h2 {
  margin: 18px 0 16px;
  font-size: clamp(2.3rem, 6vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-content p:not(.hero-kicker) {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

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

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

.hero-tags span,
.detail-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(249, 115, 22, 0.32);
}

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

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

.primary-btn {
  min-height: 46px;
  padding: 0 22px;
  color: var(--orange-dark);
  background: #fff;
  box-shadow: 0 14px 34px rgba(255, 255, 255, 0.24);
}

.primary-btn:hover,
.ghost-btn:hover,
.soft-button:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  min-height: 46px;
  padding: 0 20px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.hero-controls {
  position: absolute;
  left: 72px;
  right: 72px;
  bottom: 30px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

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

.hero-dots button {
  width: 36px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #fff;
}

.home-search {
  padding: 28px 0 10px;
}

.glass-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.glass-search h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.glass-search p {
  margin: 0;
  color: var(--slate-600);
}

.glass-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  color: var(--slate-900);
  background: #fff;
  outline: 0;
}

.glass-search input {
  max-width: 420px;
  padding: 0 18px;
}

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

.soft-block {
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.74), rgba(252, 231, 243, 0.72), rgba(255, 228, 230, 0.7));
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.section-link {
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.22);
}

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

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

.movie-card {
  min-width: 0;
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
  box-shadow: var(--shadow-card);
}

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

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

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.82));
  opacity: 0.9;
}

.movie-badge,
.movie-duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.movie-badge {
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(249, 115, 22, 0.9);
}

.movie-duration {
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  background: rgba(2, 6, 23, 0.62);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.play-chip {
  position: absolute;
  z-index: 3;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: scale(1);
}

.movie-info {
  padding: 14px 4px 0;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-info h3 a:hover,
.rank-content h3 a:hover,
.overview-title:hover {
  color: var(--orange-dark);
}

.movie-info p {
  min-height: 3.2em;
  margin: 0 0 10px;
  color: var(--slate-600);
  font-size: 0.93rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--slate-500);
  font-size: 0.82rem;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--orange-dark);
  background: rgba(255, 237, 213, 0.9);
  font-size: 0.76rem;
  font-weight: 800;
}

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

.category-card,
.overview-card {
  display: block;
  min-height: 148px;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(236, 72, 153, 0.18);
}

.category-card span,
.overview-title {
  display: block;
  margin-bottom: 10px;
  color: transparent;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 1.25rem;
  font-weight: 900;
}

.category-card p,
.overview-card p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.7;
}

.overview-links {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: var(--slate-700);
  font-weight: 700;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 120px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  background: #fff7ed;
}

.rank-num {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-weight: 950;
  font-size: 1.2rem;
}

.rank-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: var(--slate-800);
}

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

.rank-content h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.rank-content p {
  margin: 0 0 8px;
  color: var(--slate-600);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-content div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--slate-500);
  font-size: 0.82rem;
}

.cta-section {
  padding: 28px 0 72px;
}

.cta-card,
.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 26rem),
    linear-gradient(90deg, var(--orange), var(--pink), var(--rose));
  box-shadow: var(--shadow-soft);
}

.cta-card {
  padding: 54px 30px;
  text-align: center;
}

.cta-card h2,
.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
}

.cta-card p,
.page-hero h2 {
  margin: 0 auto 24px;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.7;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 54px 0;
}

.page-hero .container {
  width: min(1000px, calc(100% - 48px));
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.filter-bar {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.filter-bar label {
  display: grid;
  gap: 7px;
  color: var(--slate-500);
  font-size: 0.82rem;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  padding: 0 14px;
}

.empty-message {
  display: none;
  margin: 28px 0 0;
  padding: 18px;
  border-radius: 18px;
  color: var(--slate-600);
  background: #fff;
  text-align: center;
}

.search-scope.is-empty .empty-message {
  display: block;
}

.detail-section {
  padding: 34px 0 64px;
}

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

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

.breadcrumb a {
  color: var(--orange-dark);
  font-weight: 800;
}

.watch-panel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow-soft);
}

.watch-panel video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.player-button {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 3;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 20px 50px rgba(249, 115, 22, 0.38);
  cursor: pointer;
  font-size: 2rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.watch-panel.is-playing .player-button {
  opacity: 0;
  pointer-events: none;
}

.player-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 35%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), transparent);
  pointer-events: none;
}

.detail-card,
.related-panel {
  margin-top: 22px;
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
}

.detail-card h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.detail-card h2,
.related-panel h2 {
  margin: 26px 0 12px;
  font-size: 1.25rem;
}

.detail-card p {
  margin: 0 0 14px;
  color: var(--slate-700);
  line-height: 1.88;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--slate-600);
  font-size: 0.92rem;
}

.detail-meta span,
.soft-button {
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--slate-100);
}

.detail-actions {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--slate-200);
}

.soft-button {
  color: var(--slate-700);
}

.soft-button.is-active {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.fact-grid div {
  padding: 16px;
  border-radius: 18px;
  background: var(--slate-100);
}

.fact-grid span {
  display: block;
  color: var(--slate-500);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.fact-grid strong {
  display: block;
  line-height: 1.5;
}

.review-box {
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.review-box p {
  margin: 0;
}

.related-panel {
  position: sticky;
  top: 96px;
  align-self: start;
}

.related-panel h2 {
  margin-top: 0;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  align-items: start;
}

.compact-card .movie-cover {
  border-radius: 16px;
  aspect-ratio: 16 / 10;
}

.compact-card .movie-info {
  padding-top: 0;
}

.compact-card .movie-info p,
.compact-card .tag-row {
  display: none;
}

.compact-card .play-chip {
  width: 42px;
  height: 42px;
  opacity: 1;
  transform: none;
}

.site-footer {
  color: #fff;
  background: linear-gradient(135deg, var(--slate-950), var(--slate-900));
  padding: 48px 0 24px;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer h2 {
  color: transparent;
  background: linear-gradient(90deg, #fdba74, #f9a8d4);
  -webkit-background-clip: text;
  background-clip: text;
}

.site-footer p {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.footer-links {
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 84px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.98), rgba(236, 72, 153, 0.98));
    box-shadow: var(--shadow-soft);
  }

  body.nav-open .main-nav {
    display: flex;
  }

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

  .hero-slider,
  .hero-slide {
    min-height: 620px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 56px 30px 92px;
  }

  .hero-controls {
    left: 30px;
    right: 30px;
  }

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

  .home-rank-list,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .related-panel {
    position: static;
  }

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

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

  .brand-text {
    font-size: 1.05rem;
  }

  .hero-section {
    padding-top: 26px;
  }

  .hero-title-block h1 {
    font-size: clamp(2.1rem, 14vw, 3.4rem);
  }

  .hero-slider,
  .hero-slide {
    min-height: 590px;
    border-radius: 26px;
  }

  .hero-content h2 {
    font-size: 2.35rem;
  }

  .glass-search,
  .section-head {
    display: grid;
  }

  .glass-search input {
    max-width: none;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .overview-grid,
  .filter-bar,
  .fact-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 44px 94px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .rank-content p {
    -webkit-line-clamp: 1;
  }

  .compact-card {
    grid-template-columns: 104px 1fr;
  }

  .detail-card,
  .related-panel {
    padding: 18px;
  }

  .player-button {
    width: 68px;
    height: 68px;
  }
}
