:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-strong: rgba(2, 6, 23, 0.92);
  --line: rgba(255, 255, 255, 0.11);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --faint: #94a3b8;
  --gold: #facc15;
  --orange: #f97316;
  --cyan: #22d3ee;
  --red: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.14), transparent 34rem),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.13), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
  color: var(--text);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: white;
  background: rgba(2, 6, 23, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 900;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 12px 34px rgba(249, 115, 22, 0.32);
  transition: transform 0.24s ease;
}

.brand:hover .brand-icon,
.footer-brand:hover .brand-icon {
  transform: scale(1.08) rotate(-3deg);
}

.brand-icon span {
  width: 0;
  height: 0;
  border-left: 13px solid white;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  transform: translateX(2px);
}

.brand-text {
  font-size: 25px;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
  transform: translateY(-1px);
}

.search-form,
.mobile-search,
.inline-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.search-form input,
.mobile-search input,
.inline-filter input {
  width: 190px;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
  padding: 8px 10px 8px 14px;
}

.search-form input::placeholder,
.mobile-search input::placeholder,
.inline-filter input::placeholder {
  color: rgba(226, 232, 240, 0.7);
}

.search-form button,
.mobile-search button,
.inline-filter button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  font-weight: 800;
  padding: 8px 14px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.search-form button:hover,
.mobile-search button:hover,
.inline-filter button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: white;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.96);
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-link {
  padding: 11px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.04);
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.09);
}

.hero-carousel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-bg,
.detail-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(0.56);
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 46%, rgba(2, 6, 23, 0.42) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.08) 38%, rgba(2, 6, 23, 0.35) 100%);
}

.hero-content {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 70px;
  padding-top: 28px;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  text-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 21px);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(250, 204, 21, 0.11);
  font-size: 13px;
  font-weight: 800;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn.primary {
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 20px 45px rgba(249, 115, 22, 0.28);
}

.btn.ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
}

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

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  transform: perspective(1000px) rotateY(-8deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-6px);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  inset: auto 24px 24px auto;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-size: 24px;
}

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

.hero-dot {
  width: 32px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 0.24s ease, background 0.24s ease;
}

.hero-dot.active {
  width: 54px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
}

.section {
  padding: 72px 0;
}

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

.section-heading h2,
.ranking-panel h2,
.library-card h2,
.page-hero h1,
.watch-copy h1,
.text-panel h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-link {
  color: var(--gold);
  font-weight: 900;
}

.category-section {
  margin-top: -80px;
  position: relative;
  z-index: 6;
  padding-top: 0;
}

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

.category-tile {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(250, 204, 21, 0.16), transparent 45%),
    rgba(15, 23, 42, 0.88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(250, 204, 21, 0.42);
  background:
    linear-gradient(135deg, rgba(250, 204, 21, 0.24), rgba(249, 115, 22, 0.12)),
    rgba(15, 23, 42, 0.94);
}

.category-tile strong {
  font-size: 20px;
  margin-bottom: 8px;
}

.category-tile span {
  color: var(--faint);
  font-size: 13px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card.is-hidden {
  display: none;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(250, 204, 21, 0.35);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(250, 204, 21, 0.16), rgba(34, 211, 238, 0.08)),
    #111827;
}

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

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

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

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

.hot-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-size: 11px;
  font-weight: 900;
}

.rank-badge {
  left: 10px;
  right: auto;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #111827;
}

.play-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

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

.card-body h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-body h2 a:hover {
  color: var(--gold);
}

.card-body p {
  min-height: 44px;
  margin: 8px 0 12px;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 12px;
}

.card-meta span {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

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

.tag-row span {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 11px;
  color: #fef3c7;
}

.tag-row.wide span {
  font-size: 13px;
  padding: 6px 12px;
}

.split-section {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.66), rgba(15, 23, 42, 0));
}

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

.ranking-panel,
.library-card,
.text-panel,
.movie-info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.83);
  box-shadow: var(--shadow);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 26px;
}

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

.rank-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.rank-num {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  font-weight: 900;
}

.rank-list a {
  min-width: 0;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-list a:hover {
  color: var(--gold);
}

.rank-list em {
  grid-column: 2;
  margin-top: -8px;
  color: var(--faint);
  font-size: 12px;
  font-style: normal;
}

.library-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(250, 204, 21, 0.15), rgba(249, 115, 22, 0.07)),
    rgba(15, 23, 42, 0.9);
}

.library-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.page-jump,
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-jump a,
.page-link,
.page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.page-jump a:hover,
.page-link:hover,
.page-arrow:hover,
.page-link.active {
  color: #111827;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 68px;
  background:
    radial-gradient(circle at 18% 0%, rgba(250, 204, 21, 0.18), transparent 32rem),
    linear-gradient(135deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.88));
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.inline-filter {
  max-width: 620px;
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.07);
}

.inline-filter input {
  flex: 1;
  width: auto;
}

.pagination {
  margin: 0 0 26px;
}

.pagination:last-child {
  margin: 28px 0 0;
}

.empty-state {
  display: none;
  margin: 24px 0 0;
  padding: 26px;
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
}

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

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

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 70px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.78)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.22) 52%, rgba(2, 6, 23, 0.68) 100%);
}

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

.watch-column {
  display: grid;
  gap: 24px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 28px;
  border: 0;
  color: white;
  text-align: center;
  cursor: pointer;
  background:
    radial-gradient(circle, rgba(250, 204, 21, 0.18), transparent 32%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.22));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-ring {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 24px 54px rgba(249, 115, 22, 0.32);
  font-size: 30px;
  transform: translateX(2px);
}

.player-layer strong {
  max-width: 90%;
  font-size: clamp(22px, 4vw, 38px);
  line-height: 1.18;
}

.watch-copy {
  padding: 4px 2px;
}

.watch-copy p {
  max-width: 900px;
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 18px;
}

.movie-info-card {
  overflow: hidden;
  position: sticky;
  top: 96px;
}

.movie-info-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.movie-info-card dl {
  margin: 0;
  padding: 20px;
  display: grid;
  gap: 12px;
}

.movie-info-card div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
}

.movie-info-card dt {
  color: var(--faint);
}

.movie-info-card dd {
  margin: 0;
  color: white;
  font-weight: 800;
}

.detail-content {
  padding-top: 26px;
}

.detail-text-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
}

.text-panel {
  padding: 28px;
}

.text-panel p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.related-section {
  padding-top: 36px;
}

.site-footer {
  margin-top: 40px;
  padding: 54px 0 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(2, 6, 23, 0.96));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
}

.footer-brand {
  font-size: 22px;
  color: var(--gold);
}

.site-footer p {
  color: var(--faint);
  margin: 16px 0 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 18px;
}

.site-footer section a:not(.footer-brand) {
  display: block;
  margin: 9px 0;
  color: var(--faint);
  font-size: 14px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 22px;
  color: var(--faint);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

@media (max-width: 1180px) {
  .movie-grid,
  .category-grid,
  .ranking-page-grid.movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
  }
}

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

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  body.nav-open .mobile-panel {
    display: block;
  }

  .hero-carousel,
  .hero-content {
    min-height: 660px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 26px;
  }

  .hero-poster {
    display: none;
  }

  .category-section {
    margin-top: -54px;
  }

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

  .split-grid,
  .library-card,
  .detail-layout,
  .detail-text-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .movie-info-card {
    position: static;
  }

  .movie-info-card {
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 66px;
  }

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

  .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 610px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy p,
  .page-hero p,
  .watch-copy p,
  .text-panel p {
    font-size: 16px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 48px 0;
  }

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

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

  .movie-grid,
  .ranking-page-grid.movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h2 {
    font-size: 14px;
  }

  .card-meta {
    gap: 5px;
  }

  .page-hero {
    padding: 66px 0 46px;
  }

  .inline-filter,
  .mobile-search {
    align-items: stretch;
    flex-direction: column;
    border-radius: 18px;
  }

  .inline-filter input,
  .mobile-search input {
    width: 100%;
  }

  .inline-filter button,
  .mobile-search button {
    width: 100%;
  }

  .detail-hero {
    padding: 34px 0 44px;
  }

  .player-frame {
    border-radius: 16px;
  }

  .play-ring {
    width: 70px;
    height: 70px;
  }

  .movie-info-card {
    display: none;
  }

  .text-panel {
    padding: 20px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
