* {
  box-sizing: border-box;
}

:root {
  --twilight: #9333ea;
  --twilight-soft: rgba(147, 51, 234, 0.32);
  --twilight-deep: #3b0764;
  --dusk: #c026d3;
  --dusk-soft: rgba(192, 38, 211, 0.28);
  --sunset: #f97316;
  --sunset-soft: rgba(249, 115, 22, 0.2);
  --ink: #12051f;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.52);
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.1);
  --radius: 24px;
  --shadow: 0 24px 70px rgba(20, 4, 36, 0.46);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 6%, rgba(216, 180, 254, 0.22), transparent 26rem),
    radial-gradient(circle at 84% 4%, rgba(249, 115, 22, 0.16), transparent 24rem),
    linear-gradient(135deg, #3b0764 0%, #581c87 48%, #4a044e 100%);
  background-attachment: fixed;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(59, 7, 100, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--twilight), var(--dusk));
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.46);
}

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

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

.nav-link,
.desktop-nav > a,
.nav-more {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  transition: 0.24s ease;
}

.nav-link:hover,
.nav-link.active,
.desktop-nav > a:hover,
.desktop-nav > a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(37, 4, 60, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.24s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
}

.dropdown-panel a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav.open {
  display: grid;
}

.mobile-nav a {
  padding: 12px;
  border-radius: 12px;
  color: var(--muted);
}

.mobile-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.glass-effect,
.dusk-card {
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.dusk-card {
  background: linear-gradient(135deg, rgba(112, 26, 117, 0.42), rgba(107, 33, 168, 0.36));
}

.image-shell {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(147, 51, 234, 0.36), rgba(192, 38, 211, 0.22)),
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.14), transparent 34%);
}

.image-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.25s ease;
}

.btn-primary,
.btn-soft,
.btn-ghost,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.24s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--twilight), var(--dusk));
  box-shadow: 0 16px 38px rgba(147, 51, 234, 0.36);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(192, 38, 211, 0.48);
}

.btn-soft,
.section-more {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.btn-soft:hover,
.section-more:hover,
.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.hero {
  position: relative;
  min-height: 720px;
  padding: 74px 0 40px;
}

.hero-slider {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  height: 560px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.72fr);
  align-items: end;
  gap: 30px;
  padding: clamp(28px, 5vw, 64px);
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.75s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(18, 5, 31, 0.95), rgba(18, 5, 31, 0.72) 42%, rgba(18, 5, 31, 0.28)),
    linear-gradient(0deg, rgba(18, 5, 31, 0.88), transparent 62%);
}

.hero-content {
  max-width: 680px;
}

.hero-eyebrow,
.card-meta-row,
.detail-headline,
.detail-meta,
.card-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow span,
.pill,
.hero-tags span,
.detail-tags span,
.mini-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(147, 51, 234, 0.34);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-shadow: 0 0 28px rgba(216, 180, 254, 0.36);
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags,
.detail-tags,
.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: linear-gradient(90deg, var(--twilight), var(--sunset));
}

.hero-search {
  position: relative;
  display: grid;
  gap: 10px;
  width: min(920px, calc(100% - 32px));
  margin: -44px auto 0;
  padding: 20px;
  border-radius: 24px;
  z-index: 8;
}

.hero-search label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.hero-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

input[type="search"] {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  color: #fff;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
}

input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

input[type="search"]:focus {
  border-color: rgba(216, 180, 254, 0.72);
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.22);
}

.hero-search-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.content-section,
.page-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

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

.content-section.no-top {
  padding-top: 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-card h1 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-heading p,
.page-hero p,
.category-block p,
.library-toolbar p,
.detail-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

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

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

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

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

.poster {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(18, 5, 31, 0.3);
}

.movie-card:hover img,
.category-tile:hover img,
.wide-cover:hover img,
.ranking-row:hover img {
  transform: scale(1.08);
}

.card-badge,
.card-rating {
  position: absolute;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  backdrop-filter: blur(8px);
}

.card-badge {
  left: 10px;
  background: rgba(147, 51, 234, 0.86);
}

.card-rating {
  right: 10px;
  color: #ffe8d5;
  background: rgba(0, 0, 0, 0.58);
}

.play-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(147, 51, 234, 0.88);
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.56);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: 0.24s ease;
}

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

.card-body {
  padding-top: 12px;
}

.card-body h3,
.wide-body h3 {
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.45;
}

.card-body h3 a,
.wide-body h3 a {
  transition: color 0.2s ease;
}

.card-body h3 a:hover,
.wide-body h3 a:hover {
  color: #e9d5ff;
}

.card-body p,
.wide-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.6;
}

.card-info {
  gap: 8px;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

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

.category-tile {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: end;
  padding: 18px;
  border-radius: 22px;
}

.category-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(18, 5, 31, 0.9), rgba(18, 5, 31, 0.12)),
    linear-gradient(135deg, rgba(147, 51, 234, 0.36), transparent);
}

.category-name,
.category-desc {
  position: relative;
  z-index: 2;
}

.category-name {
  font-size: 22px;
  font-weight: 900;
}

.category-desc {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.55;
}

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

.rank-panel {
  align-self: start;
  padding: 24px;
  border-radius: 24px;
}

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

.rank-title h2 {
  margin: 0;
}

.rank-title a {
  color: #e9d5ff;
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  transition: 0.2s ease;
}

.rank-item:hover,
.ranking-row:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.rank-num {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.52);
}

.top-rank .rank-num {
  color: #fdba74;
}

.rank-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score,
.rating {
  color: #fdba74;
  font-weight: 900;
}

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

.movie-card-wide {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.wide-cover {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
}

.wide-body {
  min-width: 0;
}

.card-meta-row {
  margin-bottom: 10px;
}

.page-wrap {
  padding: 34px 0 70px;
}

.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(26px, 5vw, 52px);
  border-radius: 30px;
  margin: 24px 0 42px;
}

.page-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: #fdba74;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

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

.page-hero p {
  max-width: 760px;
  margin: 12px 0 0;
}

.category-blocks {
  display: grid;
  gap: 28px;
}

.category-block {
  padding: 26px;
  border-radius: 26px;
}

.category-block-head,
.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.category-block h2,
.library-toolbar h2,
.side-card h2,
.ranking-table h2 {
  margin: 0 0 8px;
}

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

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

.library-panel {
  padding: 26px;
  border-radius: 28px;
}

.library-search {
  width: min(420px, 100%);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  color: #fff;
  background: rgba(147, 51, 234, 0.52);
}

.ranking-table {
  overflow: hidden;
  border-radius: 26px;
}

.ranking-head,
.ranking-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 150px 100px 80px;
  align-items: center;
  gap: 16px;
}

.ranking-head {
  padding: 16px 20px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.08);
}

.ranking-row {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.2s ease;
}

.ranking-index {
  color: rgba(255, 255, 255, 0.52);
  font-weight: 900;
}

.ranking-movie {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.ranking-thumb {
  width: 64px;
  height: 44px;
  border-radius: 12px;
}

.ranking-movie strong,
.ranking-movie em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-movie em {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  font-style: normal;
}

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

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  overflow: hidden;
  background: #05010b;
}

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #05010b;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.player-cover.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.24s ease;
}

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

.player-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(147, 51, 234, 0.18), transparent 28%),
    linear-gradient(to top, rgba(5, 1, 11, 0.88), rgba(5, 1, 11, 0.28));
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--twilight), var(--dusk));
  box-shadow: 0 0 44px rgba(216, 180, 254, 0.46);
  transform: translate(-50%, -50%);
  font-size: 32px;
}

.detail-card,
.side-card {
  padding: 26px;
  border-radius: 26px;
}

.detail-card {
  margin-top: 24px;
}

.detail-card h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 4vw, 56px);
}

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

.detail-meta {
  margin: 22px 0;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.66);
}

.detail-card section {
  margin-top: 24px;
}

.detail-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-card section p {
  margin: 0;
}

.detail-sidebar {
  display: grid;
  align-self: start;
  gap: 20px;
  position: sticky;
  top: 96px;
}

.side-card dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.side-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.side-card dt {
  color: rgba(255, 255, 255, 0.56);
}

.side-card dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

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

.side-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.side-item span {
  color: #fdba74;
  font-weight: 900;
}

.side-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-item em {
  color: #fdba74;
  font-style: normal;
  font-weight: 800;
}

.related-section {
  padding-bottom: 0;
}

.site-footer {
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 5, 31, 0.46);
}

.footer-inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 30px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
}

.footer-brand {
  margin-bottom: 12px;
  font-size: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.07);
}

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

[hidden-by-filter] {
  display: none !important;
}

@media (max-width: 1080px) {
  .movie-grid,
  .compact-grid,
  .library-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .rank-panel,
  .detail-sidebar {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: 20px;
  }

  .hero-slider {
    height: 620px;
    border-radius: 26px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-items: end;
    padding: 26px;
  }

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

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

  .hero-search {
    margin-top: 16px;
  }

  .hero-search-row,
  .category-block-head,
  .library-toolbar,
  .page-hero,
  .section-heading {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid,
  .compact-grid,
  .library-grid,
  .mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .category-grid,
  .wide-list {
    grid-template-columns: 1fr;
  }

  .movie-card-wide {
    grid-template-columns: 150px 1fr;
  }

  .ranking-head {
    display: none;
  }

  .ranking-row {
    grid-template-columns: 54px 1fr;
  }

  .ranking-row > span:nth-child(n+3) {
    display: none;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .content-section,
  .page-wrap,
  .footer-inner,
  .hero-slider,
  .hero-search {
    width: min(100% - 22px, 1240px);
  }

  .hero-slider {
    height: 560px;
  }

  .hero-actions {
    display: grid;
  }

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

  .movie-card-wide {
    grid-template-columns: 112px 1fr;
    gap: 12px;
  }

  .wide-cover {
    aspect-ratio: 3 / 4;
  }

  .card-body p,
  .wide-body p,
  .mini-tags {
    display: none;
  }

  .category-block,
  .library-panel,
  .detail-card,
  .side-card {
    padding: 18px;
    border-radius: 22px;
  }

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