:root {
  --fog-950: #070a0f;
  --fog-900: #0d1117;
  --fog-850: #161b22;
  --fog-800: #212529;
  --fog-700: #343a40;
  --fog-600: #495057;
  --fog-500: #6c757d;
  --fog-400: #adb5bd;
  --fog-300: #ced4da;
  --fog-200: #dee2e6;
  --fog-100: #e9ecef;
  --fog-50: #f8f9fa;
  --frost-600: #005ab3;
  --frost-500: #0073e6;
  --frost-400: #1a8cff;
  --frost-300: #4da6ff;
  --frost-200: #80bfff;
  --mist-900: #172638;
  --mist-800: #243b53;
  --mist-700: #334e68;
  --mist-500: #627d98;
  --header-height: 64px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(0, 115, 230, 0.18), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(98, 125, 152, 0.16), transparent 30rem),
    var(--fog-900);
  color: var(--fog-200);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 17, 23, 0.94);
  border-bottom: 1px solid var(--fog-700);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fog-50);
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.brand:hover {
  color: var(--frost-300);
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--frost-500), var(--frost-300));
  box-shadow: 0 12px 30px rgba(0, 115, 230, 0.35);
  color: white;
  font-size: 13px;
}

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

.desktop-nav > a,
.nav-dropdown > button {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--fog-200);
  font-size: 14px;
  font-weight: 650;
  transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.is-active,
.nav-dropdown > button:hover {
  color: var(--frost-300);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  display: grid;
  min-width: 190px;
  padding: 10px;
  border: 1px solid var(--fog-700);
  border-radius: 14px;
  background: rgba(33, 37, 41, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-panel a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--fog-300);
  font-size: 14px;
}

.dropdown-panel a:hover {
  background: var(--fog-700);
  color: var(--frost-300);
}

.header-search {
  position: relative;
  display: flex;
  width: min(300px, 24vw);
  border: 1px solid var(--fog-700);
  border-radius: 12px;
  overflow: hidden;
  background: var(--fog-800);
}

.header-search input,
.mobile-panel input,
.search-page-panel input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--fog-700);
  outline: 0;
  border-radius: 12px;
  background: var(--fog-800);
  color: var(--fog-100);
  padding: 12px 14px;
}

.header-search input {
  border: 0;
  border-radius: 0;
  padding: 10px 12px;
}

.header-search input:focus,
.mobile-panel input:focus,
.search-page-panel input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--frost-500);
}

.header-search button,
.mobile-panel button,
.search-page-panel button {
  border: 0;
  background: var(--frost-500);
  color: white;
  font-weight: 700;
  padding: 0 16px;
  transition: background 0.2s ease;
}

.header-search button:hover,
.mobile-panel button:hover,
.search-page-panel button:hover {
  background: var(--frost-600);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--fog-100);
  font-size: 28px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--fog-700);
  background: var(--fog-800);
  padding: 16px;
}

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

.mobile-panel form {
  display: flex;
}

.mobile-panel input {
  border-radius: 12px 0 0 12px;
}

.mobile-panel button {
  border-radius: 0 12px 12px 0;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(52, 58, 64, 0.5);
  color: var(--fog-200);
}

.page-main {
  min-height: 70vh;
  padding: 32px 0 64px;
}

.home-container {
  display: grid;
  gap: 24px;
}

.narrow-top {
  display: grid;
  gap: 24px;
}

.hero-carousel {
  position: relative;
  min-height: min(70vh, 760px);
  overflow: hidden;
  border-radius: 22px;
  background: var(--fog-800);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 17, 23, 0.98), rgba(13, 17, 23, 0.84) 44%, rgba(13, 17, 23, 0.18)),
    linear-gradient(0deg, rgba(13, 17, 23, 0.86), transparent 52%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(680px, 90%);
  padding: clamp(32px, 7vw, 90px);
}

.hero-label,
.page-hero span,
.editor-pick span {
  width: max-content;
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(0, 115, 230, 0.88);
  color: white;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-content h1,
.hero-content h2 {
  margin: 18px 0 16px;
  color: var(--fog-50);
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 640px;
  margin: 0 0 24px;
  color: var(--fog-200);
  font-size: clamp(16px, 2vw, 20px);
}

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

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(206, 212, 218, 0.15);
  border-radius: 999px;
  background: rgba(33, 37, 41, 0.56);
  color: var(--fog-200);
  font-size: 13px;
}

.hero-meta.compact {
  margin: 16px 0 24px;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  background: var(--frost-500);
  color: white;
  box-shadow: 0 16px 30px rgba(0, 115, 230, 0.28);
}

.primary-button:hover {
  background: var(--frost-600);
  transform: translateY(-2px) scale(1.02);
}

.ghost-button {
  border: 1px solid rgba(128, 191, 255, 0.32);
  background: rgba(33, 37, 41, 0.6);
  color: var(--fog-100);
}

.ghost-button:hover {
  border-color: var(--frost-300);
  background: rgba(52, 58, 64, 0.7);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(33, 37, 41, 0.82);
  color: var(--fog-50);
  font-size: 36px;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(52, 58, 64, 0.9);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dots button {
  width: 18px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: var(--fog-500);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--frost-400);
}

.quick-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-categories a {
  padding: 11px 16px;
  border: 1px solid var(--fog-700);
  border-radius: 999px;
  background: rgba(33, 37, 41, 0.85);
  color: var(--fog-200);
  font-weight: 700;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.quick-categories a:hover {
  border-color: var(--frost-400);
  background: rgba(0, 115, 230, 0.16);
  color: var(--frost-300);
}

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

.section-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  color: var(--fog-50);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--fog-400);
}

.section-head > span {
  flex: 1;
  height: 1px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, rgba(0, 115, 230, 0.55), transparent);
}

.section-more {
  margin-bottom: 4px;
  color: var(--frost-300);
  font-weight: 750;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--fog-800);
  color: var(--fog-200);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  border-color: var(--frost-500);
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(0, 115, 230, 0.12);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--fog-700);
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 17, 23, 0.92), rgba(13, 17, 23, 0.35) 46%, transparent);
}

.play-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: rgba(0, 115, 230, 0.9);
  color: white;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(8px);
}

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

.year-badge,
.rank-mark {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(13, 17, 23, 0.82);
  color: var(--fog-50);
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.rank-mark {
  left: 12px;
  right: auto;
  background: rgba(0, 115, 230, 0.88);
}

.poster-title {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
}

.poster-title strong,
.poster-title em,
.card-body span,
.rail-card strong,
.rail-card em {
  display: block;
}

.poster-title strong {
  color: var(--fog-50);
  font-size: 15px;
  line-height: 1.35;
}

.poster-title em {
  margin-top: 4px;
  color: var(--fog-300);
  font-size: 12px;
  font-style: normal;
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--fog-400);
  font-size: 12px;
}

.card-meta b {
  color: var(--frost-400);
  font-weight: 800;
}

.card-meta i {
  overflow: hidden;
  max-width: 50%;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.card-title {
  display: none;
}

.card-desc {
  display: -webkit-box;
  min-height: 40px;
  overflow: hidden;
  color: var(--fog-300);
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rail-shell {
  position: relative;
}

.movie-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
  display: none;
}

.rail-card {
  flex: 0 0 280px;
  color: var(--fog-200);
}

.rail-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: var(--fog-800);
}

.rail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.rail-card:hover .rail-image img {
  transform: scale(1.08);
}

.rail-image span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 115, 230, 0.88);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.rail-card strong {
  margin-top: 10px;
  color: var(--fog-50);
  font-size: 15px;
  line-height: 1.35;
}

.rail-card em {
  margin-top: 4px;
  color: var(--fog-400);
  font-size: 12px;
  font-style: normal;
}

.rail-button {
  position: absolute;
  top: calc(50% - 18px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(33, 37, 41, 0.9);
  color: var(--fog-50);
  font-size: 32px;
  transform: translateY(-50%);
}

.rail-left {
  left: -12px;
}

.rail-right {
  right: -12px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 26px;
  align-items: start;
  padding: 42px 0;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 38px 58px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--fog-700);
  border-radius: 14px;
  background: rgba(33, 37, 41, 0.68);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  border-color: var(--frost-500);
  background: rgba(52, 58, 64, 0.6);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--fog-700);
  color: var(--frost-300);
  font-weight: 900;
}

.rank-item img {
  width: 58px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
}

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

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  overflow: hidden;
  color: var(--fog-50);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  overflow: hidden;
  color: var(--fog-400);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: var(--frost-300);
  font-weight: 900;
}

.editor-pick {
  display: grid;
  grid-template-columns: 44% 1fr;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(0, 115, 230, 0.18);
  border-radius: 24px;
  background: linear-gradient(90deg, var(--mist-800), var(--fog-800));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.editor-pick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor-pick div {
  align-self: center;
  padding: 34px;
}

.editor-pick h2 {
  margin: 18px 0 16px;
  color: var(--fog-50);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.editor-pick p {
  color: var(--fog-200);
  font-size: 17px;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--fog-700);
  border-radius: 18px;
  background: var(--fog-800);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-card:hover img {
  opacity: 0.62;
  transform: scale(1.08);
}

.category-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(13, 17, 23, 0.98), rgba(13, 17, 23, 0.52));
}

.category-card strong {
  color: var(--fog-50);
  font-size: 22px;
}

.category-card em {
  margin-top: 8px;
  color: var(--fog-300);
  font-size: 13px;
  font-style: normal;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--fog-400);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--frost-300);
}

.breadcrumb a::after {
  content: "/";
  margin-left: 8px;
  color: var(--fog-600);
}

.page-hero {
  overflow: hidden;
  border: 1px solid rgba(0, 115, 230, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 15% 0%, rgba(0, 115, 230, 0.25), transparent 28rem),
    linear-gradient(135deg, rgba(36, 59, 83, 0.9), rgba(33, 37, 41, 0.95));
  padding: clamp(28px, 5vw, 58px);
}

.small-hero h1 {
  margin: 14px 0 12px;
  color: var(--fog-50);
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.1;
}

.small-hero p {
  max-width: 860px;
  margin: 0;
  color: var(--fog-200);
  font-size: 17px;
}

.filter-panel,
.search-page-panel form {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--fog-700);
  border-radius: 16px;
  background: rgba(33, 37, 41, 0.7);
}

.filter-panel input {
  flex: 1;
}

.filter-panel select {
  width: min(280px, 36vw);
}

.search-page-panel form input {
  flex: 1;
}

.search-page-panel form button {
  min-height: 48px;
  border-radius: 12px;
}

.category-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 26px;
  align-items: start;
}

.category-side,
.side-panel,
.cover-panel,
.story-card {
  border: 1px solid var(--fog-700);
  border-radius: 18px;
  background: rgba(33, 37, 41, 0.74);
}

.category-side,
.side-panel {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  padding: 16px;
}

.category-side h2,
.side-panel h2,
.story-card h2 {
  margin: 0 0 14px;
  color: var(--fog-50);
  font-size: 20px;
}

.mini-rank .rank-item {
  grid-template-columns: 30px 44px 1fr;
  gap: 8px;
}

.mini-rank .rank-score {
  display: none;
}

.mini-rank .rank-number {
  width: 26px;
  height: 26px;
  font-size: 12px;
}

.mini-rank .rank-item img {
  width: 44px;
  height: 58px;
}

.ranking-grid {
  margin-top: 6px;
}

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

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

.movie-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.movie-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}

.player-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 48%);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 115, 230, 0.92);
  color: white;
  font-size: 34px;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.big-play:hover {
  background: rgba(0, 90, 179, 0.95);
  transform: translate(-50%, -50%) scale(1.06);
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  transition: opacity 0.2s ease;
}

.player-controls strong {
  min-width: 0;
  overflow: hidden;
  color: white;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-controls div {
  display: flex;
  gap: 8px;
  align-items: center;
}

.player-controls button {
  min-width: 42px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(52, 58, 64, 0.88);
  color: white;
  font-size: 13px;
  font-weight: 800;
  padding: 0 12px;
}

.movie-player.is-playing .big-play {
  opacity: 0;
  pointer-events: none;
}

.movie-player.is-playing:not(:hover) .player-gradient,
.movie-player.is-playing:not(:hover) .player-controls {
  opacity: 0;
}

.detail-header {
  padding: 24px 0 6px;
}

.detail-header h1 {
  margin: 0 0 16px;
  color: var(--fog-50);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list a,
.tag-list span {
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--fog-700);
  color: var(--fog-300);
  font-size: 13px;
}

.tag-list a {
  border: 1px solid rgba(0, 115, 230, 0.45);
  background: rgba(0, 115, 230, 0.18);
  color: var(--frost-300);
}

.story-card {
  margin-top: 16px;
  padding: 22px;
}

.story-card p {
  margin: 0;
  color: var(--fog-200);
  font-size: 16px;
}

.cover-panel {
  overflow: hidden;
}

.cover-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cover-panel h2,
.cover-panel p,
.cover-panel .primary-button {
  margin-left: 16px;
  margin-right: 16px;
}

.cover-panel h2 {
  color: var(--fog-50);
  font-size: 22px;
  margin-top: 16px;
  margin-bottom: 8px;
}

.cover-panel p {
  color: var(--fog-300);
  font-size: 14px;
}

.cover-panel .primary-button {
  margin-top: 8px;
  margin-bottom: 16px;
  width: calc(100% - 32px);
}

.side-panel {
  position: static;
  margin-top: 18px;
}

[hidden] {
  display: none !important;
}

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

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

  .desktop-nav {
    gap: 14px;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-shade {
    background: linear-gradient(0deg, rgba(13, 17, 23, 0.98), rgba(13, 17, 23, 0.72) 62%, rgba(13, 17, 23, 0.36));
  }

  .hero-content {
    justify-content: flex-end;
    width: 100%;
    padding: 90px 24px 78px;
  }

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

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

  .split-section,
  .category-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .category-side {
    position: static;
  }

  .editor-pick {
    grid-template-columns: 1fr;
  }

  .editor-pick img {
    aspect-ratio: 16 / 9;
  }

  .full-rank {
    grid-template-columns: 1fr;
  }
}

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

  .page-main {
    padding-top: 18px;
  }

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

  .hero-content h1,
  .hero-content h2 {
    font-size: 38px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .quick-categories a {
    white-space: nowrap;
  }

  .section-head {
    align-items: flex-start;
  }

  .section-head > span {
    display: none;
  }

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

  .card-body {
    padding: 12px;
  }

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

  .rail-card {
    flex-basis: 230px;
  }

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

  .filter-panel,
  .search-page-panel form {
    flex-direction: column;
  }

  .filter-panel select {
    width: 100%;
  }

  .rank-item {
    grid-template-columns: 30px 48px 1fr;
  }

  .rank-score {
    display: none;
  }

  .detail-meta span {
    font-size: 12px;
  }

  .player-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .big-play {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
