
:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.76);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --amber: #f59e0b;
  --orange: #ea580c;
  --blue: #3b82f6;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 32rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.34), transparent);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  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,
.brand-spark {
  color: var(--amber);
  text-shadow: 0 0 24px rgba(245, 158, 11, 0.55);
  transition: transform 0.45s ease;
}

.brand:hover .brand-mark {
  transform: rotate(180deg);
}

.brand:hover .brand-spark {
  transform: rotate(-180deg);
}

.brand-text {
  font-size: 1.25rem;
  background: linear-gradient(90deg, #fbbf24, #f97316, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #d1d5db;
  font-size: 0.95rem;
  font-weight: 600;
}

.desktop-nav a {
  position: relative;
  transition: color 0.2s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--amber);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--soft);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #d1d5db;
  font-weight: 700;
}

.mobile-nav a:hover {
  background: rgba(245, 158, 11, 0.14);
  color: var(--amber);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
  transition: opacity 0.85s ease, transform 1.2s ease;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.86) 26%, rgba(2, 6, 23, 0.2) 100%),
    linear-gradient(to right, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.18) 68%, rgba(2, 6, 23, 0.72));
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 72px;
  max-width: 1180px;
}

.hero-content > * {
  max-width: 690px;
}

.hero-tags,
.tag-row,
.detail-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.45rem, 6vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 0 0 22px;
  color: #d1d5db;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta,
.movie-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
}

.hero-meta span,
.movie-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.hero-meta span:first-child,
.detail-meta span:first-child {
  color: #fbbf24;
  font-weight: 800;
}

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

.primary-btn,
.ghost-btn,
.quick-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  color: white;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(234, 88, 12, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.primary-btn:hover,
.quick-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(234, 88, 12, 0.34);
}

.ghost-btn {
  border: 1px solid rgba(203, 213, 225, 0.32);
  background: rgba(15, 23, 42, 0.58);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.ghost-btn:hover {
  border-color: rgba(245, 158, 11, 0.64);
  color: #fbbf24;
}

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

.hero-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 58px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.page-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.home-wrap {
  padding: 42px 0 72px;
}

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

.category-strip {
  display: flex;
  gap: 10px;
  padding: 12px;
  margin-bottom: 28px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
}

.category-strip a {
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.82);
  color: #cbd5e1;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.category-strip a:hover {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.12), transparent 42%),
    rgba(15, 23, 42, 0.7);
  box-shadow: var(--shadow);
}

.eyebrow,
.section-head p,
.catalog-card p {
  margin: 0 0 7px;
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.intro-panel h2,
.section-head h2,
.page-hero h1,
.detail-intro h1,
.story-block h2,
.side-box h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.intro-panel h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.intro-panel p:last-child,
.page-hero p {
  color: var(--soft);
  margin-bottom: 0;
}

.quick-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.58);
}

.quick-search input,
.filter-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.quick-search input {
  min-height: 46px;
  padding: 0 14px;
}

.quick-search input::placeholder,
.filter-bar input::placeholder {
  color: #64748b;
}

.content-section {
  margin-top: 46px;
}

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

.section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.section-link,
.text-link {
  color: #fbbf24;
  font-weight: 800;
}

.section-link:hover,
.text-link:hover {
  color: #fed7aa;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.8);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.movie-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.12) contrast(1.05);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.88), transparent 52%);
}

.rating-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.76);
  color: #fbbf24;
  font-weight: 900;
  font-size: 0.78rem;
  backdrop-filter: blur(10px);
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: white;
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.34);
}

.movie-card-body {
  padding: 16px;
}

.movie-card h3 {
  min-height: 48px;
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 850;
}

.movie-card h3 a:hover {
  color: #fbbf24;
}

.movie-meta {
  gap: 8px;
  font-size: 0.8rem;
}

.movie-card p {
  min-height: 44px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  min-height: 24px;
  padding: 3px 9px;
  font-size: 0.72rem;
}

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

.category-card {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border: 1px solid var(--line);
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.2);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.22));
}

.category-card span,
.category-card strong {
  position: relative;
}

.category-card span {
  color: #fbbf24;
  font-weight: 900;
  font-size: 1.2rem;
}

.category-card strong {
  margin-top: 6px;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
}

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

.rank-panel,
.side-box,
.story-block,
.filter-bar,
.catalog-card,
.rank-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.rank-panel {
  margin-top: 46px;
  padding: 22px;
  position: sticky;
  top: 88px;
}

.section-head.compact {
  margin-bottom: 14px;
}

.section-head.compact h2 {
  font-size: 1.5rem;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  color: #cbd5e1;
  transition: background 0.2s ease, color 0.2s ease;
}

.rank-row:hover {
  background: rgba(245, 158, 11, 0.12);
  color: white;
}

.rank-row b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.rank-row span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-row em {
  color: #fbbf24;
  font-style: normal;
  font-weight: 800;
}

.page-hero {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: center;
  padding: 78px 0 58px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.15), transparent 34%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.96));
  border-bottom: 1px solid var(--line);
}

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

.page-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.05;
}

.page-hero p:last-child {
  max-width: 760px;
  margin-top: 16px;
  font-size: 1.08rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 48px 0 72px;
}

.catalog-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
}

.catalog-cover {
  min-height: 230px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
}

.catalog-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.catalog-card h2 a:hover {
  color: #fbbf24;
}

.catalog-card div > p:nth-of-type(2) {
  color: var(--soft);
}

.catalog-card em {
  display: block;
  margin: 12px 0 16px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
}

.filter-bar {
  margin: 36px 0 28px;
  padding: 16px;
}

.filter-bar input {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.5);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-buttons button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.78);
  color: #cbd5e1;
  padding: 8px 13px;
  font-weight: 800;
}

.filter-buttons button:hover,
.filter-buttons button.active {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.rank-page-list {
  display: grid;
  gap: 16px;
  padding-bottom: 72px;
}

.rank-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
}

.rank-poster {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 2 / 3;
  background: rgba(30, 41, 59, 0.8);
}

.rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-poster b {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(2, 6, 23, 0.78);
  color: #fbbf24;
}

.rank-card.medal .rank-poster b {
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: white;
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.rank-info h2 a:hover {
  color: #fbbf24;
}

.rank-info p {
  color: var(--soft);
  margin: 0 0 12px;
}

.rank-info .text-link {
  display: inline-block;
  margin-top: 14px;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  padding-top: 68px;
  background-size: cover;
  background-position: center;
}

.detail-hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.86) 34%, rgba(2, 6, 23, 0.3)),
    linear-gradient(to right, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.48));
}

.detail-hero-inner {
  position: relative;
  padding: 34px 0 54px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a:hover {
  color: #fbbf24;
}

.detail-intro {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 32px;
  align-items: end;
}

.detail-cover {
  width: 250px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.detail-intro h1 {
  max-width: 820px;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1.08;
}

.detail-intro p:not(.eyebrow) {
  max-width: 820px;
  color: #d1d5db;
  font-size: 1.1rem;
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  margin-top: -70px;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 28px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.24), rgba(2, 6, 23, 0.72) 34%, rgba(0, 0, 0, 0.72)),
    rgba(2, 6, 23, 0.4);
  color: white;
  text-align: center;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-size: 2rem;
  box-shadow: 0 20px 50px rgba(234, 88, 12, 0.35);
}

.player-cover strong {
  max-width: 80%;
  font-size: clamp(1.2rem, 3vw, 2rem);
}

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

.story-block {
  margin-top: 24px;
  padding: 26px;
}

.story-block h2,
.side-box h2 {
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.story-block p {
  color: var(--soft);
  margin: 0;
  font-size: 1.02rem;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.info-list div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  color: var(--muted);
}

.info-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

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

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

.side-box {
  padding: 20px;
}

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

.side-card:hover {
  background: rgba(245, 158, 11, 0.11);
}

.side-card img {
  width: 70px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.side-card strong,
.side-card em {
  display: block;
}

.side-card strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.side-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
}

.side-links {
  display: grid;
  gap: 8px;
}

.side-links a {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.68);
  color: #cbd5e1;
}

.side-links a:hover {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.88);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
}

.footer-brand p {
  max-width: 520px;
  color: var(--muted);
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

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

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

.footer-links a:hover {
  color: #fbbf24;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  color: #64748b;
  font-size: 0.9rem;
}

.is-hidden-card {
  display: none !important;
}

@media (max-width: 1080px) {
  .large-grid,
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding-top: 88px;
  }

  .hero-actions,
  .quick-search {
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
  }

  .intro-panel,
  .detail-intro,
  .catalog-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    width: min(240px, 72vw);
  }

  .detail-layout {
    padding-top: 0;
  }

  .player-shell {
    margin-top: -34px;
    border-radius: 22px;
  }
}

@media (max-width: 640px) {
  .nav-wrap,
  .mobile-nav,
  .page-wrap,
  .page-hero > div,
  .hero-content,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

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

  .hero {
    min-height: 620px;
  }

  .movie-grid,
  .large-grid,
  .related-section .movie-grid,
  .category-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .movie-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    border-radius: 18px;
  }

  .poster-link {
    aspect-ratio: 2 / 3;
  }

  .movie-card-body {
    padding: 12px;
  }

  .movie-card h3 {
    min-height: 0;
    font-size: 0.98rem;
  }

  .movie-card p {
    min-height: 0;
    -webkit-line-clamp: 2;
  }

  .tag-row span:nth-child(n + 3) {
    display: none;
  }

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

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

  .detail-intro h1,
  .page-hero h1,
  .hero h1 {
    letter-spacing: -0.03em;
  }

  .player-cover span {
    width: 66px;
    height: 66px;
  }
}
