:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --cyan-600: #0891b2;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --violet-500: #8b5cf6;
  --rose-500: #f43f5e;
  --amber-500: #f59e0b;
  --green-500: #22c55e;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.14);
  --radius-lg: 18px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50), var(--white));
  min-height: 100vh;
}

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;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--slate-900);
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.3);
}

.brand-text {
  font-size: 1.22rem;
  background: linear-gradient(90deg, var(--cyan-400), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-nav-link {
  color: #d1d5db;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 9px 12px;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--white);
  background: rgba(51, 65, 85, 0.64);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  border: 0;
  color: var(--white);
  font-size: 1.5rem;
  background: transparent;
}

.mobile-panel {
  display: none;
  padding: 0 24px 18px;
  background: rgba(15, 23, 42, 0.98);
}

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

.mobile-nav-link {
  padding: 12px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-main-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--white);
}

.hero-content h2 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 28px;
  font-size: clamp(1rem, 1.8vw, 1.24rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

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

.hero-meta span {
  padding: 5px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(6, 182, 212, 0.9);
  backdrop-filter: blur(16px);
  font-size: 0.88rem;
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.24);
}

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

.primary-action,
.secondary-action,
.hero-side-link,
.home-search button,
.filter-panel button,
.side-poster-card a {
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-action,
.home-search button,
.filter-panel button,
.side-poster-card a {
  color: var(--white);
  background: var(--cyan-500);
  box-shadow: 0 14px 28px rgba(6, 182, 212, 0.25);
}

.primary-action,
.secondary-action {
  padding: 13px 26px;
}

.secondary-action {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.primary-action:hover,
.secondary-action:hover,
.hero-side-link:hover,
.home-search button:hover,
.filter-panel button:hover,
.side-poster-card a:hover {
  transform: translateY(-2px) scale(1.02);
}

.primary-action:hover,
.home-search button:hover,
.filter-panel button:hover,
.side-poster-card a:hover {
  background: var(--cyan-600);
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  font-size: 2rem;
  line-height: 1;
  transition: background 0.22s ease, transform 0.22s ease;
}

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

.hero-control.previous {
  left: 24px;
}

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

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

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

.hero-dot.active {
  width: 34px;
  background: var(--white);
}

.home-search-block {
  width: min(100% - 32px, 1180px);
  margin: -58px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: center;
  padding: 30px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.home-search-block h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
}

.home-search-block p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.8;
}

.home-search {
  display: flex;
  gap: 10px;
}

.home-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 12px;
  outline: 0;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.home-search input {
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.home-search input::placeholder {
  color: #94a3b8;
}

.home-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
}

.home-search button {
  padding: 0 22px;
}

.page-shell {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 58px 24px;
}

.inner-page {
  padding-top: 40px;
}

.content-section {
  margin-bottom: 72px;
}

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

.section-heading h2,
.side-related h2,
.rank-side h2 {
  margin: 0;
  font-size: clamp(1.65rem, 2.4vw, 2.55rem);
  line-height: 1.15;
  color: var(--gray-900);
}

.section-heading p {
  margin: 9px 0 0;
  color: var(--gray-500);
  line-height: 1.7;
}

.section-heading a,
.category-panel-head a,
.category-samples a,
.rank-side a {
  color: var(--cyan-600);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.card-link,
.horizontal-link {
  display: block;
}

.card-standard h3 {
  margin: 12px 0 5px;
  color: var(--gray-900);
  font-size: 1.02rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.card-standard p {
  margin: 0;
  color: var(--gray-500);
  line-height: 1.55;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-cover {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  background: var(--slate-800);
  box-shadow: var(--shadow-card);
}

.card-cover img,
.horizontal-cover img,
.side-poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.card-standard:hover img,
.card-horizontal:hover img {
  transform: scale(1.1);
}

.card-standard:hover h3,
.card-horizontal:hover h3 {
  color: var(--cyan-600);
}

.card-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 65%);
  transition: opacity 0.3s ease;
}

.card-standard:hover .card-shade {
  opacity: 1;
}

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

.type-badge,
.rank-badge {
  top: 12px;
  color: var(--white);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
}

.type-badge {
  right: 12px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px);
}

.rank-badge {
  left: 12px;
  padding: 5px 9px;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
}

.year-badge {
  left: 12px;
  bottom: 12px;
  color: var(--white);
  opacity: 0;
  font-size: 0.78rem;
  font-weight: 700;
  transition: opacity 0.3s ease;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.card-standard:hover .year-badge,
.card-standard:hover .play-badge {
  opacity: 1;
}

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

.card-tags {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tags span,
.detail-tags span {
  color: var(--cyan-600);
  background: linear-gradient(90deg, #ecfeff, #eff6ff);
  border: 1px solid #bae6fd;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.card-tags span {
  padding: 4px 8px;
}

.accent-section {
  border-radius: var(--radius-xl);
  padding: 34px;
}

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

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

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

.category-panel {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.category-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 4px solid var(--cyan-500);
}

.category-panel-head h3,
.year-panel h3,
.horizontal-title-row h3 {
  margin: 0;
}

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

.card-horizontal {
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-horizontal:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.horizontal-link {
  display: flex;
  min-height: 112px;
}

.horizontal-cover {
  position: relative;
  flex: 0 0 160px;
  background: var(--slate-800);
  overflow: hidden;
}

.play-small {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(0, 0, 0, 0.24);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card-horizontal:hover .play-small {
  opacity: 1;
}

.horizontal-body {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
}

.horizontal-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.horizontal-title-row h3 {
  min-width: 0;
  font-size: 0.98rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.horizontal-body p {
  margin: 5px 0 10px;
  color: var(--gray-500);
  font-size: 0.83rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-meta {
  gap: 7px;
  color: var(--gray-500);
  font-size: 0.78rem;
}

.rank-mini {
  flex: 0 0 auto;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  font-size: 0.76rem;
  font-weight: 900;
}

.year-panel {
  padding: 26px;
  margin-bottom: 22px;
  border-radius: var(--radius-lg);
  border-left: 5px solid var(--amber-500);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.year-panel h3 {
  margin-bottom: 20px;
  color: var(--gray-800);
  font-size: 1.22rem;
}

.warm-panel {
  border-color: var(--rose-500);
}

.page-hero {
  min-height: 240px;
  margin-bottom: 34px;
  padding: 42px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  background: radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.34), transparent 32%), linear-gradient(135deg, var(--slate-900), var(--slate-800));
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  line-height: 1.05;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--slate-900);
  background: var(--cyan-400);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.hero-side-link {
  flex: 0 0 auto;
  padding: 13px 22px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

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

.category-overview-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.category-main-link {
  display: block;
  padding: 28px;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

.category-main-link h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

.category-main-link p {
  margin: 0 0 18px;
  color: var(--gray-600);
  line-height: 1.75;
}

.category-main-link span {
  color: var(--cyan-600);
  font-weight: 900;
}

.category-samples {
  display: grid;
  gap: 10px;
  padding: 20px 28px 28px;
}

.category-samples a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-panel {
  margin: 0 0 34px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 190px 180px auto;
  gap: 14px;
  align-items: end;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--gray-600);
  font-weight: 800;
  font-size: 0.86rem;
}

.filter-panel input,
.filter-panel select {
  height: 46px;
  padding: 0 13px;
  color: var(--gray-900);
  background: var(--gray-50);
}

.filter-panel button {
  height: 46px;
  padding: 0 18px;
}

.empty-state {
  display: none;
  padding: 52px 24px;
  text-align: center;
  color: var(--gray-500);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

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

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

.rank-side {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.rank-side h2 {
  font-size: 1.32rem;
  margin-bottom: 4px;
}

.rank-side a {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--gray-50);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: var(--gray-500);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--cyan-600);
  font-weight: 800;
}

.detail-page {
  padding-top: 32px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(300px, 0.95fr);
  gap: 28px;
  align-items: start;
}

.detail-main,
.detail-side {
  min-width: 0;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  z-index: 2;
}

.player-overlay[hidden] {
  display: none;
}

.player-dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.32));
}

.player-start {
  position: relative;
  z-index: 3;
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(6, 182, 212, 0.92);
  box-shadow: 0 18px 44px rgba(6, 182, 212, 0.36);
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-start:hover {
  transform: scale(1.06);
  background: var(--cyan-600);
}

.player-start span {
  margin-left: 5px;
  font-size: 2rem;
}

.player-title {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  z-index: 3;
  display: grid;
  gap: 7px;
  color: var(--white);
}

.player-title strong {
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  line-height: 1.15;
}

.player-title span {
  color: #cbd5e1;
}

.player-message {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  display: none;
  width: min(90%, 420px);
  padding: 18px;
  border-radius: 14px;
  color: var(--white);
  text-align: center;
  background: rgba(15, 23, 42, 0.92);
}

.player-message.show {
  display: block;
}

.detail-info-card,
.side-poster-card,
.side-related {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

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

.detail-info-card h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
}

.detail-meta {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 800;
  font-size: 0.86rem;
}

.one-line {
  margin: 0 0 28px;
  color: var(--cyan-600);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.8;
}

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

.detail-info-card h2 {
  margin: 0 0 12px;
  font-size: 1.36rem;
}

.detail-info-card p,
.detail-info-card blockquote {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.95;
}

.detail-info-card blockquote {
  padding: 18px 20px;
  border-left: 5px solid var(--cyan-500);
  border-radius: 12px;
  background: var(--gray-50);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-tags span {
  padding: 8px 12px;
}

.detail-side {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 22px;
}

.side-poster-card {
  overflow: hidden;
}

.side-poster-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--slate-800);
}

.side-poster-card a {
  display: block;
  margin: 18px;
  padding: 13px 18px;
  text-align: center;
}

.side-related {
  padding: 22px;
}

.side-related h2 {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 1.36rem;
}

.related-section {
  margin-top: 58px;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-shell {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 46px 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
}

.footer-shell h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 1.05rem;
}

.footer-shell p,
.footer-shell ul {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.8;
}

.footer-shell a {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.footer-shell a:hover {
  color: var(--cyan-400);
}

.footer-bottom {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 20px 24px 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 0.92rem;
}

@media (max-width: 1100px) {
  .featured-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .rank-side,
  .detail-side {
    position: static;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding: 0 22px 70px;
    justify-content: flex-end;
  }

  .hero-control {
    display: none;
  }

  .home-search-block,
  .category-home-grid,
  .category-overview-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .home-search {
    flex-direction: column;
  }

  .home-search button {
    padding: 14px 22px;
  }

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

  .accent-section,
  .page-hero,
  .detail-info-card {
    padding: 24px;
  }

  .section-heading,
  .page-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .horizontal-cover {
    flex-basis: 132px;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .page-shell,
  .hero-content,
  .footer-shell,
  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-text {
    font-size: 1rem;
  }

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

  .hero-meta span {
    font-size: 0.76rem;
    padding: 4px 10px;
  }

  .hero-actions {
    width: 100%;
  }

  .primary-action,
  .secondary-action {
    flex: 1;
    text-align: center;
    padding: 12px 14px;
  }

  .home-search-block {
    width: calc(100% - 24px);
    padding: 22px;
  }

  .featured-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

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

  .horizontal-link {
    min-height: 104px;
  }

  .horizontal-cover {
    flex-basis: 118px;
  }

  .player-start {
    width: 68px;
    height: 68px;
  }

  .player-title {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
}
