:root {
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --dark: #020617;
  --card: #ffffff;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 26px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 42%, #eef6ff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.45));
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

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

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

.brand-mark,
.footer-brand span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.25);
}

.brand-text {
  font-size: 25px;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
}

.nav-center,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.nav-dropdown {
  position: relative;
}

.nav-dropdown-button {
  border: 0;
  background: transparent;
  padding: 0;
}

.nav-dropdown-menu {
  position: absolute;
  top: 140%;
  right: 0;
  width: 180px;
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #475569;
}

.nav-dropdown-menu a:hover {
  color: var(--cyan);
  background: #ecfeff;
}

.search-box,
.mobile-search {
  position: relative;
}

.search-box input,
.mobile-search input,
.local-filter input {
  width: 260px;
  height: 42px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  padding: 0 18px;
  outline: 0;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus,
.mobile-search input:focus,
.local-filter input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.search-panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 88vw);
  max-height: 420px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
  display: none;
}

.search-panel.is-visible {
  display: block;
}

.search-result-item {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
}

.search-result-item:hover {
  background: #ecfeff;
}

.search-result-item strong {
  display: block;
  color: #0f172a;
}

.search-result-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 14px;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #0f172a;
}

.mobile-menu {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.page {
  min-height: 80vh;
}

.page-home {
  padding-bottom: 32px;
}

.inner-page {
  padding-top: 112px;
  padding-bottom: 48px;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #020617;
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

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

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

.hero-image,
.movie-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at 30% 20%, rgba(6, 182, 212, 0.45), transparent 32%), linear-gradient(135deg, #020617, #0f172a 48%, #164e63);
}

.is-hidden {
  opacity: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.5) 48%, rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1280px;
  padding-top: 72px;
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.18);
  backdrop-filter: blur(12px);
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
}

.hero-content h1 {
  margin: 24px 0 16px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-content p {
  margin: 0;
  color: #e5e7eb;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-tags,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span,
.movie-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 14px;
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.ghost-button {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
}

.primary-button.wide,
.ghost-button.wide {
  width: 100%;
  margin-top: 12px;
}

.text-link {
  min-height: 0;
  padding: 0;
  color: var(--cyan);
}

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

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

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

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

.section-heading,
.page-hero,
.category-page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2,
.page-hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  background: #ecfeff;
  font-size: 24px;
  box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.12);
}

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

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

.movie-card {
  position: relative;
  min-width: 0;
}

.card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.cover-frame,
.horizontal-cover,
.ranking-cover,
.movie-poster {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 22% 20%, rgba(103, 232, 249, 0.52), transparent 28%), linear-gradient(135deg, #0f172a, #164e63 48%, #2563eb);
}

.cover-frame {
  aspect-ratio: 3 / 4;
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.card-link:hover .cover-image,
.horizontal-card:hover .cover-image,
.ranking-hero-card:hover .cover-image {
  transform: scale(1.08);
}

.cover-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.64));
  transition: opacity 0.25s ease;
}

.card-link:hover .cover-layer {
  opacity: 1;
}

.play-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: var(--cyan);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.play-symbol.small {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
}

.duration-pill,
.rating-pill {
  position: absolute;
  bottom: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
}

.duration-pill {
  right: 10px;
}

.rating-pill {
  left: 10px;
  color: #fef3c7;
}

.rank-badge {
  position: absolute;
  z-index: 3;
  top: -13px;
  left: -13px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #facc15, #f97316);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.card-body p {
  min-height: 44px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta,
.movie-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.card-meta span,
.movie-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

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

.category-tile a {
  display: block;
  min-height: 190px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #ecfeff);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(207, 250, 254, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile span {
  display: block;
  color: #0f172a;
  font-weight: 900;
  font-size: 20px;
}

.category-tile p {
  min-height: 44px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.category-mini-links {
  display: grid;
  gap: 5px;
}

.category-mini-links a {
  min-height: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  color: var(--cyan);
  background: transparent;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: none;
}

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

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

.horizontal-card a {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.horizontal-cover {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
}

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

.horizontal-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.horizontal-info h3 {
  margin: 0;
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.horizontal-info p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 13px;
}

.side-panel,
.info-card,
.detail-panel {
  border-radius: 26px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.75);
}

.side-panel {
  position: sticky;
  top: 100px;
}

.side-panel h2,
.info-card h2,
.detail-panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.side-panel p,
.detail-panel p {
  color: var(--muted);
}

.page-hero {
  min-height: 260px;
  padding: 52px;
  border-radius: 34px;
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.2), transparent 34%), linear-gradient(135deg, #ffffff, #eefcff);
  box-shadow: var(--shadow-soft);
}

.category-page-hero,
.catalog-hero {
  align-items: center;
}

.local-filter input {
  width: min(360px, 80vw);
  background: #ffffff;
}

.category-overview {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-overview-copy h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.category-overview-copy p {
  color: var(--muted);
}

.category-overview-list {
  display: grid;
  gap: 12px;
}

.ranking-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 34px;
}

.ranking-hero-card a {
  display: block;
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ranking-cover {
  aspect-ratio: 16 / 10;
}

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

.ranking-hero-card div:last-child {
  padding: 20px;
}

.ranking-hero-card span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #facc15, #f97316);
  font-weight: 900;
}

.ranking-hero-card h2 {
  margin: 12px 0 8px;
  font-size: 24px;
}

.ranking-hero-card p {
  color: var(--muted);
}

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

.catalog-link {
  display: block;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.catalog-link strong,
.catalog-link span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-link span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.movie-page {
  padding-bottom: 48px;
}

.movie-hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #020617;
}

.movie-bg-image {
  position: absolute;
  inset: 0;
  filter: blur(2px) saturate(1.08);
  transform: scale(1.04);
}

.movie-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.72) 45%, rgba(2, 6, 23, 0.3)), linear-gradient(180deg, rgba(2, 6, 23, 0.18), #020617 96%);
}

.movie-hero-content {
  position: relative;
  z-index: 2;
  min-height: 640px;
  padding-top: 112px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.movie-poster {
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.movie-copy {
  color: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #a5f3fc;
  font-size: 14px;
}

.movie-copy h1 {
  margin: 20px 0 16px;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.movie-one-line {
  max-width: 860px;
  color: #e5e7eb;
  font-size: 20px;
}

.movie-stats {
  margin: 24px 0 30px;
  color: #cbd5e1;
}

.movie-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  margin-top: -64px;
  position: relative;
  z-index: 4;
}

.movie-main,
.movie-side {
  display: grid;
  gap: 24px;
  align-content: start;
}

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

.video-player {
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-trigger {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2), rgba(2, 6, 23, 0.58));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-trigger span {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
}

.player-card.is-playing .player-trigger {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.info-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

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

.info-card div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

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

.info-card dd {
  margin: 0;
  font-weight: 700;
}

.side-recommend-list {
  display: grid;
  gap: 12px;
}

.side-recommend-list .horizontal-card a {
  grid-template-columns: 104px minmax(0, 1fr);
  padding: 9px;
}

.side-recommend-list .horizontal-info h3 {
  font-size: 15px;
}

.side-recommend-list .horizontal-info p {
  display: none;
}

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

.pager-links a {
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer {
  color: #475569;
  background: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

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

.footer-brand {
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 24px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #0f172a;
}

.site-footer p {
  margin: 14px 0;
}

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

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

.footer-note {
  display: inline-flex;
  margin-top: 6px;
  color: #ef4444;
  font-size: 14px;
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  color: #94a3b8;
  font-size: 14px;
}

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

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

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

  .side-panel,
  .movie-side {
    position: static;
  }
}

@media (max-width: 860px) {
  .nav-center,
  .search-box {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

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

  .mobile-search input {
    width: 100%;
  }

  .hero,
  .hero-content {
    height: 560px;
  }

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

  .movie-grid,
  .rank-grid,
  .catalog-list,
  .category-grid,
  .ranking-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-overview-card,
  .movie-hero-content {
    grid-template-columns: 1fr;
  }

  .movie-hero-content {
    padding-top: 100px;
    padding-bottom: 44px;
  }

  .movie-poster {
    width: min(260px, 70vw);
  }

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

  .page-hero {
    padding: 32px;
  }
}

@media (max-width: 560px) {
  .site-nav {
    min-height: 68px;
  }

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

  .hero {
    height: 540px;
  }

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

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

  .hero-content p,
  .movie-one-line {
    font-size: 16px;
  }

  .movie-grid,
  .rank-grid,
  .catalog-list,
  .category-grid,
  .ranking-hero-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-card a {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .page-hero {
    border-radius: 24px;
    padding: 24px;
  }

  .movie-hero-content,
  .movie-layout {
    width: min(100% - 24px, 1280px);
  }

  .player-card,
  .detail-panel,
  .info-card,
  .side-panel {
    border-radius: 20px;
  }

  .pager-links {
    grid-template-columns: 1fr;
  }
}
