:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --pink: #ec4899;
  --orange: #fb923c;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.78);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.32);
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 600;
}

.nav-link,
.mobile-nav-link {
  border-radius: 999px;
  color: #374151;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--rose-dark);
  background: #fff1f2;
}

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

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--rose-dark);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  gap: 8px;
  flex-wrap: wrap;
}

.mobile-nav-link {
  padding: 10px 13px;
  background: #f9fafb;
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary {
  padding: 12px 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 16px 32px rgba(244, 63, 94, 0.28);
}

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

.btn-primary:hover {
  box-shadow: 0 20px 45px rgba(244, 63, 94, 0.38);
}

.btn-secondary {
  padding: 11px 20px;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary.glass {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
}

.btn-ghost {
  padding: 11px 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: radial-gradient(circle at top left, rgba(244, 63, 94, 0.18), transparent 35%), linear-gradient(135deg, #111827, #3b0764 52%, #881337);
}

.hero-shell {
  position: relative;
  min-height: 620px;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  filter: blur(2px);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.68), rgba(17, 24, 39, 0.32));
}

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

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  align-items: center;
  gap: 54px;
  padding: 76px 0 90px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--rose-dark);
  background: #fff1f2;
  border: 1px solid #ffe4e6;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-kicker {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
}

.section-kicker.light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 780px;
  margin: 20px 0 18px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

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

.hero-poster {
  position: relative;
  min-height: 500px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(244, 63, 94, 0.88);
  border-radius: 999px;
  font-weight: 800;
}

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

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

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

.hero-search-panel {
  margin-top: -46px;
  position: relative;
  z-index: 8;
}

.search-card {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.85fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.search-card h2,
.search-card p {
  margin: 0;
}

.search-card h2 {
  font-size: 24px;
}

.search-card p {
  color: var(--muted);
  margin-top: 4px;
}

.jump-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.jump-search input,
.filter-top input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  background: #ffffff;
}

.jump-search input:focus,
.filter-top input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

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

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

.section-title {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-more {
  color: var(--rose-dark);
  background: #fff1f2;
  padding: 10px 14px;
}

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

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

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 12%, rgba(17, 24, 39, 0.86));
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 20px;
  font-weight: 900;
}

.category-tile small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
}

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

.card,
.movie-card {
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.14);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #4c1d95);
}

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

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

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  font-weight: 800;
}

.poster-badge {
  top: 12px;
  left: 12px;
  background: rgba(17, 24, 39, 0.72);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 10px 26px rgba(244, 63, 94, 0.36);
}

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

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--rose-dark);
}

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

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.movie-tags span {
  border-radius: 999px;
  color: var(--rose-dark);
  background: #fff1f2;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.movie-card-compact .movie-card-body {
  padding: 14px;
}

.movie-card-compact h3 {
  font-size: 16px;
}

.ranking-band {
  padding: 86px 0;
  color: #ffffff;
  background: radial-gradient(circle at top right, rgba(244, 63, 94, 0.34), transparent 32%), linear-gradient(135deg, #111827, #4c1d95 58%, #881337);
}

.ranking-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  align-items: center;
}

.ranking-copy h2 {
  margin: 18px 0 16px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.ranking-copy p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.78);
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: auto 54px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.ranking-list.full .rank-item,
.mini-list .rank-item {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
  backdrop-filter: none;
}

.rank-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.18);
}

.ranking-list.full .rank-item:hover,
.mini-list .rank-item:hover {
  background: #fff1f2;
}

.rank-num {
  color: var(--rose);
  font-weight: 900;
  font-size: 18px;
  width: 36px;
  text-align: center;
}

.rank-item img {
  width: 54px;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
  background: #111827;
}

.rank-title {
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-meta {
  color: currentColor;
  opacity: 0.62;
  font-size: 13px;
}

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

.channel-preview {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.channel-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.channel-preview h3 {
  margin: 0;
  font-size: 22px;
}

.channel-preview-head a {
  color: var(--rose-dark);
  font-weight: 800;
}

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

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at 18% 18%, rgba(244, 63, 94, 0.34), transparent 30%), linear-gradient(135deg, #111827, #4c1d95 58%, #881337);
}

.page-hero-inner {
  padding: 82px 0;
}

.page-hero h1 {
  max-width: 860px;
  margin: 18px 0 14px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

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

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

.category-card-large {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  padding: 16px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.category-card-cover {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 20px;
  background: #111827;
}

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

.category-card-body h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

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

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.category-samples a {
  color: var(--rose-dark);
  background: #fff1f2;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.filter-panel {
  border-radius: 28px;
  border: 1px solid var(--line);
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07);
}

.filter-top {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 24px;
}

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

.filter-top label span {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  border: 1px solid var(--line);
  background: #ffffff;
  color: #374151;
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 700;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #ffffff;
  border-color: var(--rose);
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.empty-state {
  margin: 24px 0 0;
  padding: 22px;
  text-align: center;
  color: var(--muted);
  background: #f9fafb;
  border-radius: 18px;
}

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

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

.highlight-grid .movie-card p {
  display: none;
}

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

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  filter: blur(3px);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.90), rgba(17, 24, 39, 0.96));
}

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

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 36px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  margin-bottom: 28px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: stretch;
}

.detail-player-card {
  position: relative;
  min-height: 460px;
  border-radius: 28px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 38px 82px rgba(0, 0, 0, 0.42);
}

.detail-video {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.46));
}

.detail-player-card.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 18px 38px rgba(244, 63, 94, 0.42);
  font-size: 28px;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  pointer-events: none;
}

.detail-info-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.detail-poster {
  width: 150px;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  background: #111827;
}

.detail-info-main h1 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
}

.detail-one-line {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
}

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

.detail-meta-grid div {
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
}

.detail-meta-grid dt {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

.detail-meta-grid dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.detail-tags span {
  color: #ffffff;
  background: rgba(244, 63, 94, 0.75);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  padding: 74px 0 0;
}

.detail-article,
.side-panel {
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.detail-article {
  padding: 30px;
}

.detail-article h2,
.side-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-article h2:not(:first-child) {
  margin-top: 32px;
}

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

.detail-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.detail-nav-links a {
  border-radius: 999px;
  color: var(--rose-dark);
  background: #fff1f2;
  padding: 9px 12px;
  font-weight: 800;
}

.side-panel {
  padding: 22px;
  height: fit-content;
  position: sticky;
  top: 96px;
}

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

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  padding: 52px 0;
}

.footer-brand {
  color: #ffffff;
  font-weight: 900;
  font-size: 24px;
  margin-bottom: 10px;
}

.site-footer p,
.site-footer h2 {
  margin: 0;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.footer-links a {
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 7px 10px;
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(244, 63, 94, 0.76);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 18px 16px;
  text-align: center;
  color: #9ca3af;
}

[hidden] {
  display: none !important;
}

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

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

  .detail-layout,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .hero-content,
  .ranking-layout,
  .search-card,
  .filter-top,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .hero-section,
  .hero-shell,
  .hero-content {
    min-height: 560px;
  }

  .movie-grid,
  .category-grid,
  .channel-preview-grid,
  .ranking-list.full,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .category-card-cover {
    max-height: 320px;
  }
}

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

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

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

  .hero-section,
  .hero-shell,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    padding: 56px 0 86px;
  }

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

  .hero-actions,
  .page-hero-actions,
  .jump-search,
  .section-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .search-card,
  .filter-panel,
  .detail-article,
  .side-panel {
    padding: 18px;
  }

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

  .movie-grid,
  .category-grid,
  .channel-preview-grid,
  .ranking-list.full,
  .related-grid,
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: auto 46px 1fr;
  }

  .rank-meta {
    display: none;
  }

  .detail-player-card,
  .detail-video {
    min-height: 280px;
  }

  .detail-info-card {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: 100%;
    height: auto;
    max-height: 420px;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }
}
