:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #1e293b;
  --panel-2: #243247;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: #334155;
  --accent: #10b981;
  --accent-2: #34d399;
  --gold: #f59e0b;
  --danger: #ef4444;
  --blue: #3b82f6;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 32rem), linear-gradient(180deg, #0f172a 0%, #020617 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.is-menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.nav-shell {
  width: min(1280px, calc(100% - 32px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #059669);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.32);
  color: #fff;
  font-size: 14px;
}

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

.desktop-nav > a,
.nav-drop > button {
  color: #cbd5e1;
  background: transparent;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.is-active,
.nav-drop:hover > button {
  color: #fff;
}

.nav-drop {
  position: relative;
}

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 160px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

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

.nav-drop-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  color: #cbd5e1;
}

.nav-drop-menu a:hover {
  color: #fff;
  background: rgba(51, 65, 85, 0.9);
}

.nav-search {
  margin-left: auto;
  display: flex;
  width: min(360px, 32vw);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
}

.nav-search input,
.mobile-search input,
.big-search input,
.filter-panel input,
.filter-panel select {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.nav-search input {
  padding: 11px 14px;
}

.nav-search button,
.mobile-search button,
.big-search button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #059669);
  padding: 0 18px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 26px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-search {
  width: calc(100% - 32px);
  margin: 16px;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: #1e293b;
}

.mobile-search input {
  padding: 12px 14px;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
}

.mobile-panel nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.72);
}

.mobile-panel nav a.is-active {
  color: #fff;
  background: rgba(16, 185, 129, 0.2);
}

.hero {
  position: relative;
  height: min(680px, 78vh);
  min-height: 520px;
  overflow: hidden;
  background: #000;
}

.hero-track,
.hero-slide,
.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.image-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #064e3b 48%, #0f172a);
}

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

.hero-bg .cover-image {
  filter: saturate(1.05) contrast(1.05);
}

.hero-shade {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.72) 38%, rgba(2, 6, 23, 0.22) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.94) 0%, transparent 48%);
}

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

.hero-kicker {
  width: max-content;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 7px 14px;
  color: #fff;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.88);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.26);
  font-size: 14px;
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 20px);
}

.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.detail-tags a,
.card-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.74);
}

.hero-tags span,
.detail-tags span,
.detail-tags a {
  padding: 6px 12px;
}

.card-tags span {
  padding: 3px 8px;
  font-size: 12px;
}

.hero-meta,
.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #cbd5e1;
}

.hero-meta {
  margin: 20px 0 26px;
  font-weight: 600;
}

.hero-actions,
.detail-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

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

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #059669);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.3);
}

.btn.ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dots button.is-active {
  width: 32px;
  background: #fff;
}

.page-section,
.detail-wrap,
.overview-list,
.filter-panel,
.search-panel {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

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

.section-title p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-more {
  color: var(--accent-2);
  font-weight: 700;
}

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

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

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

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

.video-card {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.76);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.video-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(52, 211, 153, 0.7);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

.card-link {
  display: block;
  height: 100%;
}

.card-cover {
  aspect-ratio: 16 / 9;
}

.card-cover .cover-image,
.related-cover .cover-image,
.rank-thumb .cover-image,
.wide-thumb .cover-image,
.detail-poster .cover-image {
  transition: transform 0.3s ease;
}

.video-card:hover .cover-image {
  transform: scale(1.08);
}

.card-category,
.card-duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.card-category {
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  color: #fff;
  background: rgba(16, 185, 129, 0.9);
}

.card-duration {
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  color: #fff;
  background: rgba(0, 0, 0, 0.66);
}

.rank-badge {
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 54px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.card-meta {
  justify-content: space-between;
  gap: 8px;
  color: #cbd5e1;
  font-size: 13px;
}

.card-tags {
  margin-top: 12px;
}

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

.compact-card .card-line {
  display: none;
}

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

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

.category-tile,
.category-head {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  box-shadow: var(--shadow);
}

.category-tile {
  min-height: 220px;
  padding: 24px;
  transition: transform 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
}

.category-tile::before,
.category-head::before,
.inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 24% 10%, rgba(255, 255, 255, 0.28), transparent 34%), linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.category-icon {
  font-size: 42px;
}

.category-tile h3,
.category-tile p,
.category-tile span,
.category-head h2,
.category-head p,
.category-head strong {
  position: relative;
  z-index: 1;
}

.category-tile h3 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.category-tile p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.category-tile span {
  font-weight: 700;
}

.emerald,
.category-tile.emerald {
  background: linear-gradient(135deg, #059669, #065f46);
}

.blue,
.category-tile.blue {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
}

.orange,
.category-tile.orange {
  background: linear-gradient(135deg, #f97316, #9a3412);
}

.purple,
.category-tile.purple {
  background: linear-gradient(135deg, #9333ea, #581c87);
}

.red,
.category-tile.red {
  background: linear-gradient(135deg, #dc2626, #7f1d1d);
}

.pink,
.category-tile.pink {
  background: linear-gradient(135deg, #db2777, #831843);
}

.cyan,
.category-tile.cyan {
  background: linear-gradient(135deg, #0891b2, #164e63);
}

.slate,
.category-tile.slate {
  background: linear-gradient(135deg, #475569, #0f172a);
}

.green,
.category-tile.green {
  background: linear-gradient(135deg, #16a34a, #14532d);
}

.yellow,
.category-tile.yellow {
  background: linear-gradient(135deg, #ca8a04, #713f12);
}

.rail-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 18px;
  padding-bottom: 12px;
  overflow-x: auto;
  scrollbar-color: var(--accent) #0f172a;
}

.rank-panel,
.wide-rank-panel,
.side-card,
.detail-info-card,
.filter-panel,
.search-panel,
.category-overview-card {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.74);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.rank-panel {
  padding: 16px;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  transition: background 0.2s ease;
}

.rank-row:hover,
.related-card:hover,
.wide-rank-row:hover {
  background: rgba(51, 65, 85, 0.72);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  font-weight: 900;
}

.rank-thumb {
  width: 96px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.related-card h4,
.wide-rank-info h3 {
  display: block;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info small,
.related-card p,
.wide-rank-info small {
  color: var(--muted);
}

.rank-score {
  color: #fbbf24;
  font-weight: 900;
}

.inner-hero {
  position: relative;
  overflow: hidden;
  padding: 72px max(16px, calc((100vw - 1280px) / 2)) 68px;
  background: linear-gradient(135deg, #059669, #0f172a 62%, #020617);
}

.slim-hero {
  text-align: center;
}

.inner-hero > * {
  position: relative;
  z-index: 1;
}

.inner-hero span {
  display: inline-block;
  margin-bottom: 12px;
  color: #bbf7d0;
  font-weight: 800;
}

.inner-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.inner-hero p {
  width: min(760px, 100%);
  margin: 18px auto 0;
  color: #d1fae5;
  font-size: 18px;
}

.category-hero .hero-tags {
  justify-content: center;
  margin-top: 20px;
}

.overview-list {
  display: grid;
  gap: 28px;
  padding: 56px 0;
}

.category-overview-card {
  padding: 22px;
}

.category-head {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 24px;
  margin-bottom: 18px;
}

.category-head > span {
  font-size: 42px;
}

.category-head h2 {
  margin: 0;
}

.category-head p {
  margin: 4px 0 8px;
  color: rgba(255, 255, 255, 0.82);
}

.filter-panel,
.search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px 180px auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  margin-top: 32px;
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  color: #fff;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.filter-panel span {
  color: var(--accent-2);
  font-weight: 900;
  white-space: nowrap;
}

.search-panel {
  display: block;
  padding: 22px;
  margin-top: 36px;
}

.big-search {
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.big-search input {
  padding: 16px 20px;
}

.big-search button {
  padding: 0 28px;
}

#search-summary {
  margin: 16px 0 0;
  color: var(--muted);
}

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

.wide-rank-panel {
  padding: 12px;
}

.wide-rank-row {
  display: grid;
  grid-template-columns: 44px 160px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
}

.wide-rank-row:last-child {
  border-bottom: 0;
}

.wide-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}

.wide-rank-info {
  min-width: 0;
}

.wide-rank-info h3 {
  margin: 0;
  font-size: 18px;
}

.wide-rank-info p {
  display: -webkit-box;
  margin: 4px 0;
  overflow: hidden;
  color: #cbd5e1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.wide-rank-row > strong {
  color: #fbbf24;
}

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

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

.breadcrumb a {
  color: var(--accent-2);
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.28), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

.player-start span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #059669);
  box-shadow: 0 18px 46px rgba(16, 185, 129, 0.38);
  font-size: 30px;
}

.player-start strong {
  font-size: 18px;
}

.player-card.is-playing .player-start {
  display: none;
}

.detail-info-card {
  margin-top: 22px;
  padding: 28px;
}

.detail-title-row {
  justify-content: space-between;
  align-items: flex-start;
}

.detail-title-row h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.score-pill {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  color: #111827;
  background: #fbbf24;
  font-weight: 900;
}

.detail-one-line {
  margin: 16px 0;
  color: #cbd5e1;
  font-size: 18px;
}

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

.detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.78);
}

.detail-tags {
  margin-bottom: 26px;
}

.detail-info-card section {
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

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

.detail-info-card p {
  margin: 0;
  color: #cbd5e1;
  white-space: pre-line;
}

.detail-side {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 20px;
}

.detail-poster {
  min-height: 500px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.side-card {
  padding: 20px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

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

.related-card h4 {
  margin: 0 0 6px;
}

.related-card p {
  margin: 0;
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8), #020617);
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 26px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 28px;
}

.footer-grid p {
  color: var(--muted);
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #fff;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

.footer-grid a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  text-align: center;
}

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

  .menu-toggle {
    display: block;
  }

  .mobile-panel.is-open {
    display: block;
  }

  .video-grid,
  .hot-grid,
  .compact-grid,
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .detail-side {
    position: static;
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .detail-poster {
    min-height: 360px;
  }

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

@media (max-width: 760px) {
  .nav-shell {
    height: 64px;
  }

  .site-logo {
    font-size: 19px;
  }

  .hero {
    min-height: 560px;
    height: 72vh;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.54));
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 84px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-actions,
  .detail-title-row,
  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .video-grid,
  .hot-grid,
  .compact-grid,
  .catalog-grid,
  .mini-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    min-height: auto;
    font-size: 15px;
  }

  .card-line,
  .card-tags {
    display: none;
  }

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

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

  .rank-score,
  .wide-rank-row > strong {
    display: none;
  }

  .wide-thumb {
    width: 88px;
  }

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

  .detail-info-card {
    padding: 20px;
  }

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

  .related-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .video-grid,
  .hot-grid,
  .compact-grid,
  .catalog-grid,
  .mini-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .rail-scroll {
    grid-auto-columns: minmax(240px, 86vw);
  }
}
