* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --black: #020106;
  --grape-950: #16051f;
  --grape-900: #230932;
  --grape-850: #2e0d42;
  --grape-800: #3a1154;
  --grape-700: #5b1d79;
  --grape-600: #7c2cb0;
  --grape-500: #a855f7;
  --grape-400: #c084fc;
  --grape-300: #d8b4fe;
  --gold-500: #f59e0b;
  --gold-400: #facc15;
  --gold-300: #fde68a;
  --text: #ffffff;
  --muted: #c7a7de;
  --soft: rgba(255, 255, 255, 0.08);
  --border: rgba(216, 180, 254, 0.15);
  --shadow: 0 28px 80px rgba(21, 5, 31, 0.65);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 44, 176, 0.35), transparent 34rem),
    linear-gradient(180deg, #000000 0%, var(--grape-950) 46%, #000000 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    linear-gradient(90deg, rgba(13, 2, 20, 0.96), rgba(35, 9, 50, 0.96), rgba(13, 2, 20, 0.96)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark,
.footer-logo span {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--grape-600), var(--gold-500));
  box-shadow: 0 0 26px rgba(168, 85, 247, 0.5);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong,
.footer-logo strong {
  font-size: 22px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--grape-300), var(--gold-300), var(--grape-300));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  color: var(--grape-400);
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--muted);
  transition: 0.25s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: var(--gold-300);
  background: rgba(91, 29, 121, 0.72);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.15);
}

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

.header-search input,
.mobile-search input,
.search-panel input {
  width: 210px;
  height: 42px;
  border: 1px solid rgba(216, 180, 254, 0.2);
  border-radius: 14px;
  background: rgba(58, 17, 84, 0.75);
  color: #ffffff;
  outline: none;
  padding: 0 14px;
  transition: 0.25s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.search-panel input:focus {
  border-color: var(--grape-400);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15);
}

.header-search button,
.mobile-search button,
.search-panel button {
  height: 42px;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--grape-600), var(--grape-700));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--grape-300);
  background: rgba(58, 17, 84, 0.72);
}

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

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

.hero {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  background: #000000;
}

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

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

.hero-bg,
.hero-bg .hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-bg .image-hidden + .hero-overlay,
.page-hero .image-hidden,
.poster-frame .image-hidden,
.tile-bg .image-hidden {
  display: none !important;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(58, 17, 84, 0.7), rgba(0, 0, 0, 0.7));
}

.hero-overlay {
  background:
    linear-gradient(90deg, #000000 0%, rgba(0, 0, 0, 0.82) 36%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(0deg, #000000 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 76vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1180px;
  padding: 70px 0 130px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-300);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero-kicker span,
.eyebrow {
  padding: 7px 12px;
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
}

.hero-kicker em {
  font-style: normal;
  color: var(--grape-300);
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 44px rgba(0, 0, 0, 0.58);
}

.hero p {
  max-width: 650px;
  margin: 0 0 24px;
  color: var(--grape-300);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

.hero-meta span,
.detail-meta span,
.rank-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--grape-200, #ead7ff);
  background: rgba(35, 9, 50, 0.72);
  border: 1px solid rgba(216, 180, 254, 0.14);
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.25s ease;
}

.primary-action {
  color: #ffffff;
  background: linear-gradient(135deg, var(--grape-600), var(--grape-700));
  box-shadow: 0 16px 42px rgba(124, 44, 176, 0.45);
}

.secondary-action {
  color: var(--grape-200, #ead7ff);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
}

.primary-action:hover,
.secondary-action:hover,
.movie-card:hover,
.category-tile:hover {
  transform: translateY(-4px);
}

.hero-tabs {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.hero-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(216, 180, 254, 0.15);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(22, 5, 31, 0.78);
  padding: 12px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: 0.25s ease;
}

.hero-tab span {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(91, 29, 121, 0.7);
}

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

.hero-tab.is-active,
.hero-tab:hover {
  color: #ffffff;
  border-color: rgba(250, 204, 21, 0.4);
  box-shadow: 0 0 26px rgba(168, 85, 247, 0.26);
}

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

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.section-line {
  width: 6px;
  height: 34px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--grape-500), var(--gold-400));
}

.section-icon {
  font-size: 25px;
}

.section-more {
  color: var(--grape-300);
  font-weight: 700;
}

.section-more:hover {
  color: var(--gold-300);
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(35, 9, 50, 0.96), rgba(15, 3, 22, 0.98));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  transition: 0.28s ease;
}

.movie-card:hover {
  border-color: rgba(250, 204, 21, 0.32);
  box-shadow: 0 24px 70px rgba(91, 29, 121, 0.38);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(250, 204, 21, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(91, 29, 121, 0.96), rgba(0, 0, 0, 0.95));
}

.cards-6 .poster-frame,
.cards-5 .poster-frame {
  aspect-ratio: 3 / 4.15;
}

.poster-image,
.tile-image,
.rank-poster-image,
.side-poster-image,
.page-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-image,
.category-tile:hover .tile-image {
  transform: scale(1.08);
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.26);
  font-size: 44px;
  z-index: 0;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.72), transparent 54%);
  z-index: 1;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(124, 44, 176, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: 0.25s ease;
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.55);
}

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

.score-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--gold-300);
  background: rgba(0, 0, 0, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.rank-info h2 a:hover {
  color: var(--gold-300);
}

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

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

.tag-row span,
.detail-tags span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  color: var(--grape-300);
  background: rgba(58, 17, 84, 0.86);
  font-size: 12px;
}

.card-meta {
  justify-content: space-between;
  margin-top: 14px;
  color: rgba(216, 180, 254, 0.72);
  font-size: 12px;
}

.rank-band {
  background: linear-gradient(90deg, rgba(58, 17, 84, 0.38), transparent);
  border-top: 1px solid rgba(216, 180, 254, 0.08);
  border-bottom: 1px solid rgba(216, 180, 254, 0.08);
}

.rank-band-inner {
  padding-top: 54px;
  padding-bottom: 54px;
}

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

.category-tile {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(58, 17, 84, 0.95), rgba(0, 0, 0, 0.95));
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: 0.28s ease;
}

.tile-bg {
  position: absolute;
  inset: 0;
  opacity: 0.32;
}

.tile-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.16));
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 1;
}

.category-tile strong {
  font-size: 23px;
}

.category-tile em {
  margin-top: 6px;
  color: var(--grape-300);
  font-style: normal;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(circle at 76% 12%, rgba(168, 85, 247, 0.34), transparent 28rem),
    linear-gradient(135deg, #000000, var(--grape-950));
  border-bottom: 1px solid var(--border);
}

.page-hero > div:not(.page-hero-bg) {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 54px;
}

.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(36px, 6vw, 62px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 720px;
  color: var(--grape-300);
  font-size: 18px;
  line-height: 1.8;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.34;
}

.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000000 0%, rgba(0,0,0,0.62) 45%, transparent 100%), linear-gradient(0deg, #000000 0%, transparent 62%);
}

.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(58, 17, 84, 0.6);
  border: 1px solid var(--border);
}

.pill-nav a:hover,
.pill-nav a.is-current {
  color: var(--gold-300);
  border-color: rgba(250, 204, 21, 0.35);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 38px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(58, 17, 84, 0.72);
  border: 1px solid var(--border);
}

.pagination a:hover,
.pagination a.is-current {
  color: #ffffff;
  background: linear-gradient(135deg, var(--grape-600), var(--grape-700));
}

.watch-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.player-wrap,
.detail-head,
.detail-panel,
.side-card,
.search-panel,
.rank-sidebar {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(35, 9, 50, 0.96), rgba(10, 2, 16, 0.98));
  box-shadow: var(--shadow);
}

.player-wrap {
  overflow: hidden;
  margin-bottom: 24px;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-element {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: radial-gradient(circle, rgba(124,44,176,0.12), rgba(0,0,0,0.32));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.play-overlay span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(124, 44, 176, 0.92);
  box-shadow: 0 0 38px rgba(168, 85, 247, 0.62);
  font-size: 30px;
}

.video-shell.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-loading,
.player-error {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 18px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.78);
}

.player-controls {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: 0.25s ease;
}

.video-shell:hover .player-controls,
.video-shell:focus-within .player-controls {
  opacity: 1;
}

.player-controls button {
  border: 0;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(58, 17, 84, 0.9);
  cursor: pointer;
}

.detail-head,
.detail-panel {
  padding: 26px;
  margin-bottom: 22px;
}

.detail-head h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
}

.detail-head p,
.detail-panel p {
  color: var(--grape-300);
  font-size: 17px;
  line-height: 1.88;
}

.detail-meta {
  margin: 18px 0;
}

.detail-panel h2,
.side-card h2,
.rank-sidebar h2 {
  margin: 0 0 16px;
}

.related-section {
  width: 100%;
  padding-top: 20px;
}

.watch-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.side-card {
  padding: 20px;
  position: sticky;
  top: 100px;
}

.poster-side a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, rgba(91, 29, 121, 0.9), rgba(0,0,0,0.95));
}

.poster-side strong {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(35, 9, 50, 0.96), rgba(9, 2, 14, 0.98));
}

.rank-poster {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, rgba(91, 29, 121, 0.9), rgba(0,0,0,0.95));
}

.rank-poster span {
  position: absolute;
  z-index: 2;
  left: 8px;
  top: 8px;
  padding: 5px 8px;
  border-radius: 10px;
  color: var(--gold-300);
  background: rgba(0, 0, 0, 0.72);
  font-weight: 900;
}

.rank-info h2 {
  margin: 0 0 10px;
  font-size: 23px;
}

.rank-info p {
  color: var(--muted);
  line-height: 1.75;
}

.rank-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(216, 180, 254, 0.1);
}

.rank-item strong {
  color: var(--gold-300);
}

.rank-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.rank-item em {
  color: var(--gold-300);
  font-style: normal;
}

.search-section {
  min-height: 380px;
}

.search-panel {
  display: flex;
  gap: 12px;
  padding: 18px;
  margin-bottom: 24px;
}

.search-panel input {
  flex: 1;
  width: auto;
}

.search-status {
  margin: 0 0 24px;
  color: var(--grape-300);
}

.site-footer {
  border-top: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(22, 5, 31, 0.94), rgba(0, 0, 0, 1)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 8px);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-column h3 {
  margin: 0 0 14px;
  color: var(--grape-300);
}

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

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--gold-300);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 30px;
  border-top: 1px solid rgba(216, 180, 254, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(216, 180, 254, 0.62);
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: none;
  color: #ffffff;
  background: linear-gradient(135deg, var(--grape-600), var(--grape-700));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.36);
  cursor: pointer;
}

.back-top.is-visible {
  display: grid;
  place-items: center;
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .cards-6,
  .cards-5,
  .cards-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards-3,
  .category-grid,
  .watch-layout,
  .rank-layout {
    grid-template-columns: 1fr;
  }

  .watch-side,
  .side-card {
    position: static;
  }
}

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

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

  .brand-text em {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 72vh;
  }

  .hero-content {
    padding: 44px 0 170px;
  }

  .hero h1 {
    font-size: clamp(36px, 13vw, 56px);
  }

  .hero-tabs {
    grid-template-columns: 1fr;
    bottom: 18px;
  }

  .hero-tab:nth-child(n+4) {
    display: none;
  }

  .cards-6,
  .cards-5,
  .cards-4,
  .cards-3,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .section-head,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-body {
    padding: 13px;
  }

  .card-desc,
  .card-meta span:last-child {
    display: none;
  }

  .category-tile {
    min-height: 132px;
    padding: 18px;
  }

  .watch-layout {
    padding-top: 18px;
  }

  .detail-head,
  .detail-panel {
    padding: 20px;
  }

  .player-controls {
    opacity: 1;
  }

  .rank-row {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
  }

  .rank-info h2 {
    font-size: 18px;
  }

  .rank-info p {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .cards-6,
  .cards-5,
  .cards-4,
  .cards-3,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .search-panel {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action,
  .search-panel button {
    width: 100%;
  }
}
