:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --shadow: 0 22px 45px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #eef8ff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #fff;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 48%, #083344 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 14px 35px rgba(2, 6, 23, 0.24);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.35);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.logo-text em {
  margin-top: 4px;
  color: #67e8f9;
  font-size: 12px;
  font-style: normal;
}

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

.nav-link {
  padding: 10px 14px;
  color: #cbd5e1;
  font-weight: 600;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(6, 182, 212, 0.16);
}

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

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input,
.mobile-search input {
  width: 210px;
  color: #fff;
  background: rgba(15, 23, 42, 0.62);
  padding: 0 14px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: #94a3b8;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(6, 182, 212, 0.8);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.header-search button,
.mobile-search button {
  height: 42px;
  padding: 0 16px;
  color: #fff;
  font-weight: 700;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-link {
  display: block;
  padding: 12px 14px;
  color: #e2e8f0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-link.active {
  color: #fff;
  background: rgba(6, 182, 212, 0.18);
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.35), transparent 32%),
    linear-gradient(135deg, #020617 0%, #0f172a 42%, #164e63 100%);
  background-size: 48px 48px, 48px 48px, auto, auto;
}

.hero-bg-orb {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.35;
}

.orb-one {
  top: 6%;
  left: 5%;
  background: rgba(6, 182, 212, 0.34);
}

.orb-two {
  right: -90px;
  bottom: -70px;
  background: rgba(37, 99, 235, 0.36);
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0 64px;
}

.hero-slider {
  min-height: 560px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.62fr);
  align-items: center;
  gap: 54px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeIn 0.6s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow,
.section-heading span,
.page-hero-inner span,
.search-cta span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-bottom: 14px;
  color: #67e8f9;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 760px;
  margin: 24px 0 0;
  color: #cffafe;
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.65;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span {
  padding: 8px 12px;
  color: #ecfeff;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(103, 232, 249, 0.36);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
}

.hero-actions,
.detail-actions,
.section-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font-weight: 800;
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 34px rgba(6, 182, 212, 0.24);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.ghost-btn.dark {
  color: var(--slate-900);
  border-color: var(--line);
  background: #fff;
}

.secondary-btn {
  color: var(--cyan-dark);
  border: 1px solid rgba(6, 182, 212, 0.25);
  background: #ecfeff;
}

.secondary-btn.full {
  width: 100%;
  margin-top: 18px;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(1deg);
}

.hero-poster img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.82));
}

.hero-poster-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 10px 14px;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(18px);
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #67e8f9;
}

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

.section-heading {
  margin-bottom: 34px;
  text-align: center;
}

.section-heading.align-left {
  text-align: left;
}

.section-heading.align-left span {
  margin-left: 0;
}

.section-heading h2,
.page-hero-inner h1,
.search-cta h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero-inner p,
.search-cta p {
  max-width: 680px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.section-heading.align-left p {
  margin-left: 0;
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  color: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: var(--slate-900);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
}

.category-cover,
.category-cover::after,
.category-cover img {
  position: absolute;
  inset: 0;
}

.category-cover img {
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transition: transform 0.45s ease;
}

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

.category-cover::after {
  content: "";
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.88));
}

.category-info,
.category-samples {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.category-info strong {
  font-size: 24px;
}

.category-info em {
  margin-top: 8px;
  color: #cffafe;
  font-style: normal;
  line-height: 1.5;
}

.category-samples {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  gap: 6px;
  padding-top: 0;
}

.category-samples span {
  overflow: hidden;
  color: #e2e8f0;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 56px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #0f172a;
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.72));
}

.type-badge,
.year-badge,
.play-badge {
  position: absolute;
  z-index: 2;
}

.type-badge {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.year-badge {
  bottom: 12px;
  left: 12px;
  padding: 6px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(12px);
}

.play-badge {
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.86);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
}

.movie-card-body strong {
  overflow: hidden;
  font-size: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #94a3b8;
  font-size: 12px;
}

.card-meta span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-card-small .movie-card-body strong {
  font-size: 15px;
}

.movie-card-small .card-desc {
  min-height: 38px;
  font-size: 13px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
}

.latest-panel,
.rank-panel,
.content-card,
.filter-panel,
.search-cta {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.latest-panel,
.rank-panel {
  padding: 26px;
}

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

.latest-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.latest-item:hover {
  background: #ecfeff;
  transform: translateX(4px);
}

.latest-item img {
  aspect-ratio: 16 / 10;
  height: 90px;
  border-radius: 16px;
  object-fit: cover;
}

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

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

.latest-item em {
  margin: 5px 0;
  color: var(--cyan-dark);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.latest-item small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 76px minmax(0, 1fr) 58px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.55);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.rank-row.compact {
  grid-template-columns: 42px 56px minmax(0, 1fr) 48px;
  gap: 10px;
  padding: 10px;
}

.rank-no {
  color: var(--cyan-dark);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 76px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-row.compact img {
  width: 56px;
  height: 70px;
}

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

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

.rank-text em {
  margin: 4px 0;
  color: var(--cyan-dark);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.rank-text small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-score {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  font-weight: 900;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.34), transparent 32%),
    linear-gradient(135deg, #020617, #0f172a 52%, #164e63);
}

.small-hero {
  min-height: 330px;
}

.category-hero {
  min-height: 430px;
}

.category-hero > img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.52));
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.page-hero-inner h1,
.page-hero-inner p {
  color: #fff;
}

.page-hero-inner p {
  margin-left: 0;
  color: #cbd5e1;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(130px, 1fr)) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 16px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  color: var(--text);
  background: #fff;
  padding: 0 14px;
}

.filter-result {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.filtered-out {
  display: none !important;
}

.search-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 80px;
  padding: 34px;
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.14), transparent 36%),
    #fff;
}

.search-cta p {
  margin-left: 0;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 42px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 30px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
  background: var(--slate-900);
}

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

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--cyan-dark);
  font-weight: 700;
}

.detail-info h1 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 780px;
  margin: 22px 0 0;
  color: #334155;
  font-size: 20px;
  line-height: 1.75;
}

.detail-tags span {
  color: var(--cyan-dark);
  border-color: rgba(6, 182, 212, 0.22);
  background: #ecfeff;
}

.player-section {
  padding-top: 32px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 28px 72px rgba(2, 6, 23, 0.34);
}

.movie-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  border: 0;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.2), rgba(2, 6, 23, 0.56));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  padding-left: 6px;
  font-size: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 45px rgba(6, 182, 212, 0.34);
}

.player-shell.is-playing .player-start,
.player-start.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.content-card {
  padding: 28px;
}

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

.content-card p {
  margin: 0;
  color: #334155;
  font-size: 16px;
  line-height: 1.9;
}

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

.meta-card dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.meta-card div {
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
}

.meta-card dt {
  color: var(--muted);
  font-size: 13px;
}

.meta-card dd {
  margin: 6px 0 0;
  color: var(--slate-900);
  font-weight: 800;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

.footer-brand p {
  max-width: 460px;
  color: #94a3b8;
  line-height: 1.75;
}

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

.footer-links h3 {
  margin: 0 0 8px;
  color: #fff;
}

.footer-links a {
  color: #94a3b8;
}

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

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

.footer-categories h3 {
  grid-column: 1 / -1;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: none;
  width: 48px;
  height: 48px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.28);
  cursor: pointer;
}

.back-top.is-visible {
  display: block;
}

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

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

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

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

  .filter-result {
    grid-column: 1 / -1;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero-inner {
    padding-top: 48px;
  }

  .hero-slider {
    min-height: auto;
  }

  .hero-slide,
  .split-section,
  .detail-hero,
  .detail-content,
  .footer-inner,
  .search-cta {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    gap: 34px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 430px;
  }

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

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

  .search-cta {
    display: grid;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .mobile-panel,
  .hero-inner,
  .section-block,
  .page-hero-inner,
  .detail-hero,
  .footer-inner,
  .search-cta {
    width: min(100% - 22px, 1180px);
  }

  .logo-text em {
    display: none;
  }

  .logo-text strong {
    font-size: 17px;
  }

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

  .hero-copy p,
  .detail-one-line {
    font-size: 17px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 360px;
  }

  .section-block {
    padding: 48px 0;
  }

  .category-grid,
  .category-grid.wide,
  .movie-grid,
  .compact-grid,
  .filter-panel,
  .meta-card dl {
    grid-template-columns: 1fr;
  }

  .latest-item {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .latest-item img {
    width: 88px;
    height: 78px;
  }

  .rank-row,
  .rank-row.compact {
    grid-template-columns: 42px 58px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

  .player-start span {
    width: 74px;
    height: 74px;
    font-size: 30px;
  }
}
