* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

button,
input {
  font: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(10px);
}

.nav-inner {
  width: min(1280px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 12px 26px rgba(6, 182, 212, 0.35);
}

.brand-text {
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: transparent;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

.nav-link,
.mobile-link {
  color: #d1d5db;
  padding: 9px 12px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.72);
}

.nav-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.2);
  font-size: 26px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: #1e293b;
  padding: 10px 18px 14px;
}

.mobile-menu.open {
  display: grid;
  gap: 6px;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  background: #020617;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 28%, rgba(34, 211, 238, 0.22), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.62) 48%, rgba(2, 6, 23, 0.08) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.62));
}

.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: 760px;
  margin-left: max(16px, calc((100vw - 1280px) / 2));
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.9);
  box-shadow: 0 14px 36px rgba(6, 182, 212, 0.25);
}

.hero-content h1,
.page-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.hero-content p,
.page-hero p {
  max-width: 680px;
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.search-form button,
.rank-action,
.section-more a,
.filter-bar a,
.poster-side a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn,
.search-form button,
.rank-action,
.section-more a,
.poster-side a {
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.25);
  border: 0;
}

.ghost-btn,
.filter-bar a {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(8px);
}

.primary-btn:hover,
.ghost-btn:hover,
.search-form button:hover,
.rank-action:hover,
.section-more a:hover,
.poster-side a:hover,
.filter-bar a:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.52);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.quick-search {
  padding: 0 16px;
  transform: translateY(-34px);
  margin-bottom: -14px;
  position: relative;
  z-index: 6;
}

.quick-search-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(14px);
}

.quick-search-inner h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 24px;
}

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

.search-form input,
.filter-bar input {
  min-height: 48px;
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 0 16px;
  outline: none;
  color: #0f172a;
  background: #ffffff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.filter-bar input:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
}

.quick-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.quick-links a {
  color: #0f766e;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ecfeff;
  border: 1px solid #cffafe;
  font-size: 14px;
  font-weight: 700;
}

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

.soft-section,
.violet-section,
.ranking-strip {
  padding: 32px;
  border-radius: 28px;
}

.soft-section {
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

.violet-section {
  background: linear-gradient(135deg, #f5f3ff, #faf5ff);
}

.ranking-strip {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

.section-head > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.1;
  color: #111827;
}

.section-head p {
  grid-column: 2;
  margin: 4px 0 0;
  color: #64748b;
}

.section-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

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

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

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

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

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

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.poster-frame img,
.large-cover img,
.horizontal-cover img,
.category-tile img,
.rank-cover img,
.poster-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.poster-link:hover img,
.large-cover:hover img,
.horizontal-card:hover img,
.category-tile:hover img,
.rank-row:hover img {
  transform: scale(1.08);
}

.poster-shade,
.large-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.78));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster-link:hover .poster-shade,
.large-cover:hover .large-shade {
  opacity: 1;
}

.type-badge,
.rank-badge,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
}

.play-symbol,
.play-large {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.play-symbol {
  width: 46px;
  height: 46px;
}

.play-large {
  width: 72px;
  height: 72px;
  font-size: 28px;
}

.poster-link:hover .play-symbol,
.horizontal-card:hover .play-symbol,
.large-cover:hover .play-large {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 48px;
  margin-top: 12px;
  font-weight: 800;
  line-height: 1.45;
  color: #111827;
  transition: color 0.2s ease;
}

.poster-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  margin-top: 5px;
  color: #64748b;
  font-size: 14px;
}

.poster-link:hover .poster-title,
.horizontal-card:hover h3,
.large-cover:hover strong,
.rank-row:hover h2 {
  color: #0891b2;
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  color: #94a3b8;
  font-size: 12px;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
  color: #cbd5e1;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 22px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.9));
}

.category-tile img {
  position: absolute;
  inset: 0;
}

.category-tile span {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.category-tile strong,
.category-tile em {
  display: block;
}

.category-tile strong {
  font-size: 22px;
  font-style: normal;
}

.category-tile em {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.6;
}

.two-column-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.category-panel,
.side-card,
.detail-card {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.category-panel {
  padding: 24px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border-left: 4px solid #06b6d4;
  padding-left: 14px;
}

.panel-title h3 {
  margin: 0;
  color: #111827;
  font-size: 22px;
}

.panel-title a {
  color: #0891b2;
  font-weight: 800;
}

.stack-list {
  display: grid;
  gap: 14px;
}

.horizontal-card {
  display: flex;
  overflow: hidden;
  min-height: 112px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.horizontal-cover {
  position: relative;
  width: 162px;
  min-width: 162px;
  overflow: hidden;
  background: #0f172a;
}

.horizontal-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
  transition: background 0.2s ease;
}

.horizontal-card:hover .horizontal-cover::after {
  background: rgba(0, 0, 0, 0.12);
}

.horizontal-body {
  min-width: 0;
  padding: 12px 14px;
}

.horizontal-body h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  color: #111827;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.horizontal-body p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

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

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

.large-cover {
  position: relative;
  display: block;
  height: 360px;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.rank-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 42px;
  height: 42px;
  color: #0f172a;
  background: #facc15;
}

.large-text {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 3;
  color: #ffffff;
}

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

.large-text strong {
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.3;
}

.large-text em {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
  line-height: 1.6;
}

.section-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.page-main,
.detail-main {
  min-height: 70vh;
}

.page-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: 54px max(16px, calc((100vw - 1280px) / 2));
  background:
    radial-gradient(circle at 80% 18%, rgba(34, 211, 238, 0.28), transparent 32%),
    linear-gradient(135deg, #0f172a, #1e3a8a 58%, #0891b2);
}

.small-hero,
.category-hero,
.ranking-hero,
.search-hero {
  min-height: 300px;
}

.page-hero > div {
  width: min(760px, calc(100% - 32px));
}

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

.overview-grid {
  margin-top: 36px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin-bottom: 28px;
}

.filter-bar a {
  color: #0f172a;
  border-color: #dbe3ef;
  background: #ffffff;
}

.empty-state {
  display: none;
  margin-top: 30px;
  padding: 40px;
  border-radius: 18px;
  color: #64748b;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.empty-state.show {
  display: block;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 120px 54px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.rank-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #0f172a;
  background: #facc15;
  font-size: 20px;
}

.rank-info h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.rank-info p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.7;
}

.detail-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 74px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(310px, 0.85fr);
  gap: 28px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: #0891b2;
  font-weight: 700;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.48));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.86);
  box-shadow: 0 18px 48px rgba(6, 182, 212, 0.35);
  font-size: 34px;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.detail-card h1 {
  margin: 0 0 16px;
  color: #111827;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.16;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.detail-meta span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #0e7490;
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
  border: 1px solid #cffafe;
  font-size: 14px;
  font-weight: 800;
}

.story-block {
  margin-bottom: 26px;
}

.story-block h2,
.tag-cloud h2,
.side-card h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 22px;
}

.story-block p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
}

.story-block p + p {
  margin-top: 12px;
}

.story-block .lead {
  color: #64748b;
  font-style: italic;
}

.tag-cloud div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.side-card {
  padding: 22px;
}

.detail-side .side-card {
  position: sticky;
  top: 84px;
}

.detail-side .side-card + .side-card {
  position: static;
}

.poster-side img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  object-fit: cover;
  background: #0f172a;
}

.poster-side h2 {
  margin-top: 16px;
}

.poster-side p {
  color: #64748b;
  line-height: 1.7;
}

.related-list .horizontal-cover {
  width: 128px;
  min-width: 128px;
}

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

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

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

  .nav-toggle {
    display: block;
  }

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

  .hero-content {
    width: calc(100% - 48px);
    margin-left: 24px;
  }

  .hero-arrow {
    display: none;
  }

  .poster-grid,
  .featured-grid,
  .compact-grid,
  .catalog-grid,
  .large-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column-section,
  .detail-wrap {
    grid-template-columns: 1fr;
  }

  .detail-side .side-card {
    position: static;
  }

  .rank-row {
    grid-template-columns: 96px 42px 1fr;
  }

  .rank-action {
    grid-column: 3;
    width: fit-content;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    width: calc(100% - 24px);
  }

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

  .hero-carousel {
    height: 74vh;
    min-height: 520px;
  }

  .hero-content h1,
  .page-hero h1 {
    font-size: 36px;
  }

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

  .hero-actions,
  .search-form,
  .filter-bar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .ghost-btn,
  .search-form button,
  .filter-bar a {
    width: 100%;
  }

  .content-section {
    width: calc(100% - 24px);
    margin-bottom: 46px;
  }

  .soft-section,
  .violet-section,
  .ranking-strip,
  .category-panel,
  .detail-card,
  .side-card {
    padding: 18px;
    border-radius: 18px;
  }

  .poster-grid,
  .featured-grid,
  .compact-grid,
  .catalog-grid,
  .large-grid,
  .category-grid,
  .overview-grid {
    gap: 16px;
  }

  .large-cover {
    height: 300px;
  }

  .poster-title {
    min-height: 42px;
    font-size: 14px;
  }

  .poster-desc {
    font-size: 12px;
  }

  .horizontal-cover {
    width: 118px;
    min-width: 118px;
  }

  .horizontal-card {
    min-height: 96px;
  }

  .rank-row {
    grid-template-columns: 92px 1fr;
    align-items: start;
  }

  .rank-number {
    position: absolute;
    margin: 8px;
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .rank-info,
  .rank-action {
    grid-column: 2;
  }

  .detail-wrap {
    width: calc(100% - 24px);
    padding-top: 22px;
  }

  .detail-card h1 {
    font-size: 28px;
  }

  .player-overlay span {
    width: 70px;
    height: 70px;
  }
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

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

.site-footer p,
.site-footer li {
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.site-footer a:hover {
  color: #22d3ee;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 22px;
  color: #64748b;
  text-align: center;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
