* {
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --blue: #2563eb;
  --indigo: #4338ca;
  --orange: #f97316;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(13, 148, 136, 0.28);
  font-size: 15px;
}

.brand-text {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.main-nav > a,
.nav-dropdown > button {
  border: 0;
  background: transparent;
  color: #334155;
  font-weight: 650;
  cursor: pointer;
  transition: color 0.2s ease;
}

.main-nav > a:hover,
.nav-dropdown > button:hover {
  color: var(--teal);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  width: 220px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: all 0.2s ease;
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #475569;
  font-size: 14px;
}

.dropdown-panel a:hover {
  color: var(--teal-dark);
  background: #ecfeff;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.header-search {
  display: flex;
  align-items: center;
  width: 260px;
  padding: 4px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 0;
  outline: 0;
  color: #0f172a;
  background: transparent;
}

.header-search input {
  padding: 8px 12px;
}

.header-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.header-search button {
  padding: 8px 14px;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #0f172a;
  background: #f1f5f9;
  font-size: 20px;
}

.mobile-panel {
  display: none;
  padding: 14px 16px 18px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

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

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

.mobile-panel nav a {
  padding: 11px 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font-weight: 650;
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: #f1f5f9;
}

.mobile-search input {
  padding: 8px 10px;
}

.mobile-search button {
  padding: 8px 14px;
}

.hero-section {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #0d9488 0%, #2563eb 48%, #4338ca 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.8) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.45) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.28) 0 2px, transparent 3px);
  background-size: 70px 70px, 100px 100px, 130px 130px;
}

.hero-section::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -120px;
  top: 60px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(4px);
}

.hero-section::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -150px;
  bottom: 20px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.38);
  filter: blur(8px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: 48px;
  padding: 70px 0 110px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  color: #ccfbf1;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title-block h1 {
  margin: 12px 0 20px;
  font-size: clamp(48px, 8vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.hero-title-block p {
  max-width: 650px;
  margin: 0 0 28px;
  color: #dbeafe;
  font-size: clamp(18px, 2.2vw, 25px);
}

.hero-search {
  display: flex;
  max-width: 620px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.18);
}

.hero-search input {
  padding: 14px 18px;
  color: #ffffff;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
  padding: 12px 22px;
  background: #ffffff;
  color: var(--teal-dark);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-links a {
  display: inline-flex;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-slider {
  position: relative;
  min-height: 430px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 22px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-copy {
  display: flex;
  min-height: 370px;
  flex-direction: column;
  justify-content: center;
}

.hero-copy h2 {
  margin: 10px 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-copy p {
  margin: 0 0 24px;
  color: #e0f2fe;
  font-size: 16px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.primary-button {
  color: var(--teal-dark);
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.ghost-button.dark {
  color: var(--teal-dark);
  border-color: rgba(13, 148, 136, 0.3);
}

.hero-poster {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

.hero-poster span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: block;
  padding: 9px 10px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

.hero-dots {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

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

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(248, 250, 252, 0) 100%);
}

.stats-strip {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: -70px auto 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.stats-strip div {
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease;
}

.stats-strip div:hover {
  transform: translateY(-4px);
}

.stats-strip strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
  font-size: 26px;
}

.stats-strip span {
  color: var(--muted);
}

.content-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
}

.section-heading,
.category-overview-head,
.rank-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-kicker {
  color: var(--teal);
}

.section-heading h2,
.category-overview-head h2 {
  margin: 6px 0 0;
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-more {
  color: var(--teal-dark);
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #334155);
}

.movie-card-featured .poster-frame {
  aspect-ratio: 16 / 11;
}

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

.movie-card:hover .poster-frame img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 65%;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.82), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.3);
  opacity: 0;
  transition: all 0.25s ease;
}

.movie-card:hover .poster-shade,
.movie-card:hover .play-badge {
  opacity: 1;
}

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

.card-body {
  padding: 16px 17px 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.card-body h2 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-featured .card-body h2 {
  font-size: 24px;
}

.card-body h2 a:hover {
  color: var(--teal-dark);
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #ccfbf1;
  font-size: 12px;
  font-weight: 700;
}

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

.rank-panel,
.rank-list-large,
.info-card,
.detail-article {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.rank-panel {
  padding: 22px;
  position: sticky;
  top: 94px;
}

.rank-panel-head {
  margin-bottom: 18px;
}

.rank-panel-head span {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.rank-panel-head a {
  color: var(--teal-dark);
  font-weight: 800;
}

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

.ranking-list.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.ranking-item:hover {
  background: #ecfeff;
  transform: translateX(3px);
}

.rank-number {
  color: var(--orange);
  font-size: 20px;
  font-weight: 900;
}

.ranking-item img {
  width: 70px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
  background: #e2e8f0;
}

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

.ranking-text strong,
.ranking-text em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-text strong {
  color: #0f172a;
  font-size: 15px;
}

.ranking-text em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.category-tile {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #2563eb, #4338ca);
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #f97316, #db2777);
}

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

.category-tile span {
  font-size: 22px;
  font-weight: 850;
}

.category-tile strong {
  margin: 16px 0 8px;
  font-size: 15px;
}

.category-tile em {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 16px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #2563eb 52%, #312e81);
}

.compact-hero h1 {
  max-width: 900px;
  margin: 10px auto 16px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.compact-hero p {
  max-width: 780px;
  margin: 0 auto;
  color: #dbeafe;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  color: #dbeafe;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.category-overview-block {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 190px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 12px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  background: #f8fafc;
}

.rank-list-large {
  padding: 24px;
}

.side-card-panel {
  position: static;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto;
  padding: 36px;
  border-radius: 32px;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  background: #0f172a;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.24);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info .breadcrumb {
  justify-content: flex-start;
  margin: 0 0 20px;
  color: #64748b;
}

.detail-info .eyebrow {
  color: var(--teal-dark);
}

.detail-info h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.detail-info p {
  max-width: 780px;
  margin: 0 0 18px;
  color: #475569;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 8px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #0f172a;
  background: #e0f2fe;
  font-weight: 750;
}

.detail-actions {
  margin-top: 22px;
}

.detail-actions .primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 30px 85px rgba(15, 23, 42, 0.32);
  aspect-ratio: 16 / 9;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  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(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.26));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.player-shell.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #ffffff;
  font-size: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.play-overlay span:last-child {
  font-size: 18px;
  font-weight: 850;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.detail-article {
  padding: 34px;
}

.detail-article h2,
.info-card h2 {
  margin: 0 0 16px;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.detail-article p {
  margin: 0 0 18px;
  color: #334155;
  font-size: 17px;
}

.detail-side {
  display: grid;
  gap: 20px;
  align-content: start;
}

.info-card {
  padding: 24px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

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

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

.next-card a {
  display: block;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  color: var(--teal-dark);
  font-weight: 750;
}

.next-card a + a {
  margin-top: 10px;
}

.related-section {
  padding-top: 52px;
}

.site-footer {
  margin-top: 70px;
  color: #e2e8f0;
  background: linear-gradient(135deg, #1e293b, #0f172a 48%, #134e4a);
}

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

.footer-logo .brand-text {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
}

.footer-brand p {
  max-width: 380px;
  color: #cbd5e1;
}

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

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

.footer-links a {
  color: #cbd5e1;
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  color: #94a3b8;
  font-size: 13px;
}

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

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

  .rank-panel {
    position: static;
  }

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

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

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

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

  .hero-inner {
    min-height: auto;
    padding-top: 46px;
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 520px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
  }

  .hero-poster {
    min-height: 230px;
  }

  .stats-strip,
  .footer-inner,
  .detail-hero,
  .ranking-list.two-column {
    grid-template-columns: 1fr;
  }

  .detail-poster img {
    min-height: auto;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .small-grid,
  .overview-grid,
  .catalog-grid,
  .featured-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movie-card-featured {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .content-section,
  .category-overview-block,
  .detail-hero,
  .detail-layout,
  .player-section,
  .stats-strip,
  .footer-inner,
  .copyright {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-search button {
    width: 100%;
  }

  .movie-grid,
  .small-grid,
  .overview-grid,
  .catalog-grid,
  .featured-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-featured {
    grid-column: auto;
  }

  .detail-hero,
  .detail-article,
  .info-card {
    padding: 22px;
  }

  .ranking-item {
    grid-template-columns: 34px 62px minmax(0, 1fr);
  }
}
