:root {
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --teal: #14b8a6;
  --blue: #2563eb;
  --orange: #f97316;
  --yellow: #facc15;
  --text: #1f2937;
  --muted: #64748b;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #ecfeff 0%, #ffffff 36%, #eff6ff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 253, 250, 0.92);
  border-bottom: 1px solid rgba(6, 182, 212, 0.18);
  box-shadow: 0 10px 30px rgba(8, 145, 178, 0.12);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

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

.logo-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.28);
  font-size: 15px;
}

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

.nav-link {
  position: relative;
  padding: 10px 12px;
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--cyan);
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.header-search {
  position: relative;
  width: 270px;
}

.header-search input {
  width: 100%;
  border: 1px solid rgba(6, 182, 212, 0.28);
  border-radius: 999px;
  padding: 12px 46px 12px 18px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input:focus,
.big-search input:focus,
.filter-panel select:focus,
.sort-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.18);
}

.header-search button {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--cyan);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: #0f172a;
  background: rgba(6, 182, 212, 0.1);
}

.mobile-panel {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid rgba(6, 182, 212, 0.16);
}

.mobile-logo {
  padding: 14px 0 8px;
  font-weight: 800;
  color: var(--cyan-dark);
}

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  color: #334155;
  font-weight: 700;
}

.mobile-nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
}

.mobile-search {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.mobile-search button,
.primary-button,
.ghost-button,
.cinema-banner a,
.big-search button {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.mobile-search button {
  color: #ffffff;
  background: var(--cyan);
  padding: 0 18px;
}

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #0f172a;
}

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

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

.hero-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0891b2, #14b8a6);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 42%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100% - 1280px) / 2 + 24px));
  top: 50%;
  width: min(640px, calc(100% - 48px));
  transform: translateY(-50%);
  color: #ffffff;
  animation: fadeUp 0.8s ease both;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--yellow);
  font-weight: 800;
}

.hero-content h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-content p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

.hero-meta,
.hero-tags,
.hero-actions,
.detail-meta,
.detail-tags,
.movie-meta-row,
.tag-row,
.tool-actions,
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta {
  margin-top: 22px;
}

.hero-meta span,
.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-meta span:first-child {
  background: var(--cyan);
}

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

.hero-tags span {
  font-size: 13px;
}

.hero-actions {
  margin-top: 28px;
}

.primary-button,
.ghost-button,
.cinema-banner a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
}

.primary-button {
  color: #ffffff;
  background: var(--cyan);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.26);
}

.primary-button:hover,
.cinema-banner a:hover,
.big-search button:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--cyan-dark);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

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

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

.hero-dots button.active {
  width: 36px;
  background: var(--cyan);
}

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

.page-shell {
  padding: 54px 0;
}

.home-section {
  margin-bottom: 74px;
}

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

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(25px, 3.5vw, 36px);
  letter-spacing: -0.03em;
}

.section-more {
  color: var(--cyan-dark);
  font-weight: 800;
}

.section-more span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.section-more:hover span {
  transform: translateX(4px);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #0891b2, #14b8a6);
}

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

.movie-card:hover .poster-wrap img,
.category-tile:hover img,
.related-item:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.58));
}

.play-badge,
.score-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.play-badge {
  left: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.88);
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.25);
}

.score-badge {
  top: 14px;
  right: 14px;
  min-width: 48px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-weight: 800;
}

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

.movie-meta-row {
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta-row span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #94a3b8;
}

.movie-card h2 {
  margin: 9px 0 10px;
  font-size: 20px;
  line-height: 1.3;
}

.movie-card h2 a:hover {
  color: var(--cyan-dark);
}

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

.tag-row span,
.detail-tags span,
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
}

.tag-row span {
  padding: 5px 10px;
  color: #475569;
  background: #f1f5f9;
}

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: stretch;
}

.movie-card.horizontal .poster-wrap {
  height: 100%;
  aspect-ratio: auto;
}

.movie-card.horizontal .movie-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.category-grid.large {
  margin-bottom: 72px;
}

.category-tile {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0891b2, #14b8a6);
  transition: transform 0.45s ease;
}

.category-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.76));
}

.category-tile > div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.category-tile h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.category-tile p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-short {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

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

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

.rank-card,
.detail-card,
.review-card,
.related-panel,
.filter-panel,
.toolbar {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(12px);
}

.rank-card {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.rank-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.rank-card-head span {
  color: var(--yellow);
}

.rank-card-head h2 {
  margin: 0;
}

.rank-list.compact {
  display: grid;
}

.rank-list.compact a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.rank-list.compact a:last-child {
  border-bottom: 0;
}

.rank-list.compact span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--cyan);
  font-weight: 800;
}

.rank-list.compact strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-list.compact em {
  color: var(--orange);
  font-style: normal;
  font-weight: 800;
}

.cinema-banner {
  overflow: hidden;
  border-radius: 30px;
  color: #ffffff;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 24%), linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.22);
}

.cinema-banner > div {
  max-width: 780px;
  padding: 48px;
}

.cinema-banner h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 46px);
}

.cinema-banner p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.cinema-banner a {
  color: var(--cyan-dark);
  background: #ffffff;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 30%), linear-gradient(135deg, var(--cyan), var(--teal));
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% 40%;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(12px);
}

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

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.page-hero-inner span {
  display: inline-flex;
  margin-bottom: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.75;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px;
  margin-bottom: 24px;
}

.crumbs {
  color: #64748b;
  font-size: 14px;
}

.crumbs a:hover {
  color: var(--cyan-dark);
}

.crumbs strong {
  color: #0f172a;
}

.sort-select,
.filter-panel select {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 14px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
}

.view-button {
  border: 0;
  border-radius: 14px;
  padding: 11px 15px;
  color: #475569;
  background: #f1f5f9;
  font-weight: 800;
}

.view-button.active {
  color: #ffffff;
  background: var(--cyan);
}

.sortable-grid.list-view {
  grid-template-columns: 1fr;
}

.sortable-grid.list-view .movie-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sortable-grid.list-view .poster-wrap {
  height: 100%;
  aspect-ratio: auto;
}

.big-search {
  position: relative;
  display: flex;
  width: min(720px, 100%);
  margin-top: 28px;
  padding: 6px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.18);
}

.big-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 16px 20px;
  outline: none;
}

.big-search button {
  padding: 0 28px;
  color: #ffffff;
  background: var(--cyan);
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  margin-bottom: 24px;
}

.no-result {
  padding: 38px;
  border-radius: var(--radius);
  color: #64748b;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.ranking-shell {
  display: grid;
  gap: 42px;
}

.ranking-section {
  min-width: 0;
}

.ranking-list {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.09);
}

.ranking-row {
  display: grid;
  grid-template-columns: 54px 120px minmax(0, 1fr) 80px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

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

.ranking-row:hover {
  background: #f8fafc;
}

.ranking-num {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  font-weight: 900;
}

.ranking-row img {
  width: 120px;
  height: 78px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #0891b2, #14b8a6);
}

.ranking-row strong {
  font-size: 18px;
}

.ranking-row p {
  display: -webkit-box;
  margin: 6px 0;
  overflow: hidden;
  color: #64748b;
  line-height: 1.5;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.ranking-row small {
  color: #94a3b8;
}

.ranking-row em {
  color: var(--orange);
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.detail-shell {
  padding: 32px 0 64px;
}

.detail-crumbs {
  margin-bottom: 20px;
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.34);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.62));
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 2;
}

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

.play-circle {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.32);
  font-size: 32px;
}

.play-overlay strong {
  font-size: 20px;
}

.detail-card,
.review-card,
.related-panel {
  padding: 26px;
}

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

.detail-tags span,
.pill {
  padding: 7px 12px;
  color: #475569;
  background: #f1f5f9;
}

.pill.cyan {
  color: #0e7490;
  background: #cffafe;
}

.pill.orange {
  color: #c2410c;
  background: #ffedd5;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.detail-meta {
  margin-bottom: 26px;
  color: #64748b;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f8fafc;
}

.detail-text h2,
.review-card h2,
.related-panel h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.detail-text p,
.review-card blockquote {
  margin: 0 0 24px;
  color: #475569;
  font-size: 17px;
  line-height: 1.9;
}

.detail-text p:last-child {
  margin-bottom: 0;
}

.review-card {
  border: 1px solid rgba(6, 182, 212, 0.24);
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

.review-card blockquote {
  margin: 0;
  padding-left: 18px;
  border-left: 4px solid var(--cyan);
  font-style: italic;
}

.related-panel {
  position: sticky;
  top: 96px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 120px;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #0891b2, #14b8a6);
  transition: transform 0.3s ease;
}

.related-item strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-item small {
  display: block;
  margin-top: 7px;
  color: #64748b;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  padding: 48px 0;
}

.footer-logo {
  color: #ffffff;
}

.footer-brand p {
  max-width: 420px;
  color: #94a3b8;
  line-height: 1.8;
}

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

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

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

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

[hidden] {
  display: none !important;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(calc(-50% + 24px));
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

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

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

  .rank-card,
  .related-panel {
    position: static;
  }
}

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

  .header-inner {
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header.open .mobile-panel {
    display: block;
  }

  .hero-slider {
    height: 560px;
  }

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

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

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

  .ranking-row {
    grid-template-columns: 44px 90px minmax(0, 1fr);
  }

  .ranking-row em {
    grid-column: 3;
    text-align: left;
  }

  .ranking-row img {
    width: 90px;
    height: 64px;
  }

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

@media (max-width: 620px) {
  .header-inner,
  .page-shell,
  .detail-shell,
  .footer-inner,
  .footer-bottom,
  .page-hero-inner {
    width: min(100% - 24px, 1280px);
  }

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

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .hero-slider {
    height: 520px;
  }

  .hero-content {
    left: 18px;
    width: calc(100% - 36px);
  }

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

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    justify-content: center;
  }

  .movie-grid.three-col,
  .movie-grid.four-col,
  .category-grid,
  .filter-panel,
  .sortable-grid.list-view .movie-card,
  .movie-card.horizontal {
    grid-template-columns: 1fr;
  }

  .sortable-grid.list-view .poster-wrap,
  .movie-card.horizontal .poster-wrap {
    aspect-ratio: 16 / 10;
  }

  .big-search {
    border-radius: 22px;
    flex-direction: column;
  }

  .big-search input,
  .big-search button {
    width: 100%;
    min-height: 48px;
  }

  .cinema-banner > div,
  .detail-card,
  .review-card,
  .related-panel {
    padding: 22px;
  }

  .play-circle {
    width: 70px;
    height: 70px;
    font-size: 26px;
  }

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

  .related-item img {
    width: 96px;
    height: 66px;
  }
}
