* {
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #ecfdf5;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --emerald: #059669;
  --emerald-dark: #047857;
  --teal: #0d9488;
  --amber: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.09);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.32);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--emerald-dark), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
}

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

.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--emerald-dark);
  background: #d1fae5;
  transform: translateY(-1px);
}

.nav-search {
  width: 290px;
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 4px;
  border: 1px solid transparent;
}

.nav-search:focus-within {
  background: white;
  border-color: rgba(5, 150, 105, 0.36);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.nav-search input,
.mobile-search input,
.hero-search input,
.filter-bar input,
.filter-bar select {
  border: 0;
  outline: 0;
}

.nav-search input {
  width: 100%;
  background: transparent;
  padding: 8px 10px;
}

.nav-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: white;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  cursor: pointer;
  font-weight: 800;
}

.menu-button {
  display: none;
  border: 0;
  background: #f1f5f9;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 22px;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

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

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: #334155;
  font-weight: 800;
}

.mobile-link.active,
.mobile-link:hover {
  background: #ecfdf5;
  color: var(--emerald-dark);
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding-top: 8px;
}

.mobile-search input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 999px;
  background: #f1f5f9;
}

.hero {
  position: relative;
  padding: 96px 0 40px;
  min-height: 760px;
  overflow: hidden;
  background: #020617;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 38%, rgba(16, 185, 129, 0.28), transparent 30%), linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.82) 46%, rgba(15, 23, 42, 0.32) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 580px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  color: white;
  max-width: 760px;
}

.hero-tags,
.detail-tags,
.card-tags,
.genre-tags,
.hero-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.card-tags span,
.genre-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span,
.detail-tags span {
  color: #bbf7d0;
  background: rgba(6, 78, 59, 0.58);
  border: 1px solid rgba(167, 243, 208, 0.18);
}

.hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(25px, 3vw, 42px);
  color: #d1fae5;
}

.hero p {
  color: #dbeafe;
  font-size: 18px;
  max-width: 680px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 16px 36px rgba(5, 150, 105, 0.34);
}

.ghost-button {
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.section-link:hover,
.ranking-more:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
}

.hero-poster span,
.play-dot {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(5, 150, 105, 0.92);
  box-shadow: 0 15px 30px rgba(5, 150, 105, 0.35);
}

.hero-poster span {
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  font-size: 28px;
}

.hero-panel {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: -112px auto 0;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(22px);
  border-radius: 28px;
}

.hero-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.hero-tab {
  min-height: 74px;
  border: 0;
  border-radius: 18px;
  padding: 12px;
  text-align: left;
  color: #d1d5db;
  background: rgba(15, 23, 42, 0.62);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-tab.active,
.hero-tab:hover {
  color: white;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.92), rgba(13, 148, 136, 0.86));
  transform: translateY(-2px);
}

.hero-tab span {
  display: block;
  font-size: 12px;
  opacity: 0.82;
}

.hero-tab strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: white;
  border-radius: 999px;
}

.hero-search input {
  flex: 1;
  padding: 12px 14px;
  background: transparent;
}

.hero-category-chips {
  grid-column: 1 / -1;
  padding-top: 4px;
}

.hero-category-chips a {
  padding: 8px 12px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.section {
  padding: 62px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.kicker {
  display: inline-flex;
  color: var(--emerald-dark);
  background: #d1fae5;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-heading h2,
.ranking-head h2,
.ranking-side h2,
.content-card h2,
.page-hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

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

.section-link,
.text-button,
.ranking-more {
  color: var(--emerald-dark);
  background: #ecfdf5;
}

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

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

.compact-grid,
.classic-grid,
.related-grid,
.side-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.library-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 24px 0 70px;
}

.movie-card {
  background: white;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(5, 150, 105, 0.24);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 2.85;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.play-dot {
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 14px;
}

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

.card-category {
  color: var(--emerald-dark);
  font-weight: 800;
}

.card-body h3 {
  margin: 8px 0 7px;
  font-size: 17px;
  line-height: 1.28;
}

.card-body h3 a:hover {
  color: var(--emerald-dark);
}

.card-body p {
  margin: 0 0 12px;
  color: #475569;
  font-size: 13px;
  min-height: 42px;
}

.card-tags span,
.genre-tags span {
  color: var(--emerald-dark);
  background: #ecfdf5;
}

.soft-panel {
  width: min(1228px, calc(100% - 20px));
  padding: 44px 24px;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.92), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(187, 247, 208, 0.9);
  border-radius: 34px;
  box-shadow: 0 20px 50px rgba(5, 150, 105, 0.08);
}

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

.category-tile,
.overview-card {
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.tile-images,
.overview-cover {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 14px;
}

.tile-images img,
.overview-cover img {
  width: 100%;
  aspect-ratio: 1 / 1.25;
  object-fit: cover;
  border-radius: 12px;
}

.category-tile strong,
.overview-card h2 {
  display: block;
  font-size: 20px;
  margin: 0 0 6px;
}

.category-tile em,
.overview-card p {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

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

.ranking-card,
.ranking-list-large,
.ranking-side,
.content-card {
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 26px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.ranking-card {
  position: sticky;
  top: 92px;
  padding: 22px;
}

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

.rank-row,
.ranking-line {
  display: grid;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row {
  grid-template-columns: 30px 54px minmax(0, 1fr) 42px;
  padding: 8px;
}

.ranking-line {
  grid-template-columns: 44px 72px minmax(0, 1fr) 58px;
  padding: 12px;
}

.rank-row:hover,
.ranking-line:hover {
  background: #ecfdf5;
  transform: translateX(4px);
}

.rank-num,
.ranking-index {
  color: white;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  border-radius: 12px;
  text-align: center;
  font-weight: 900;
  padding: 6px 0;
}

.rank-row img,
.ranking-line img {
  width: 100%;
  aspect-ratio: 1 / 1.25;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info,
.ranking-title {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.rank-info strong,
.ranking-title strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.rank-score,
.ranking-value {
  color: #b45309;
  font-weight: 900;
  text-align: right;
}

.ranking-more {
  width: 100%;
  margin-top: 16px;
}

.page-hero {
  padding: 132px 0 58px;
  color: white;
  background: radial-gradient(circle at 72% 36%, rgba(52, 211, 153, 0.28), transparent 28%), linear-gradient(135deg, #064e3b, #0f172a 66%, #020617);
}

.small-hero h1,
.ranking-hero h1 {
  max-width: 850px;
}

.filter-scope {
  padding-top: 28px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 160px 160px 160px;
  gap: 14px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0 12px;
  color: var(--text);
}

.filter-bar input:focus,
.filter-bar select:focus {
  background: white;
  border-color: rgba(5, 150, 105, 0.45);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.empty-state {
  display: none;
  margin: 0 0 70px;
  padding: 34px;
  text-align: center;
  color: var(--muted);
  background: white;
  border: 1px dashed #cbd5e1;
  border-radius: 22px;
}

.empty-state.is-visible {
  display: block;
}

.overview-card {
  display: grid;
  gap: 14px;
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.overview-links a {
  color: var(--emerald-dark);
  background: #ecfdf5;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
}

.ranking-list-large {
  padding: 20px;
}

.ranking-side {
  padding: 22px;
  position: sticky;
  top: 92px;
}

.side-grid {
  gap: 14px;
}

.detail-hero {
  position: relative;
  min-height: 650px;
  padding: 112px 0 60px;
  overflow: hidden;
  color: white;
  background: #020617;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.46;
}

.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.72)), radial-gradient(circle at 75% 30%, rgba(16, 185, 129, 0.32), transparent 30%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #a7f3d0;
  font-weight: 800;
  margin-bottom: 26px;
}

.breadcrumb a:hover {
  color: white;
}

.detail-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.poster-large {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.poster-large img {
  width: 100%;
  aspect-ratio: 2 / 2.9;
  object-fit: cover;
}

.poster-large span {
  position: absolute;
  top: 12px;
  right: 12px;
  color: white;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
}

.detail-copy h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.detail-line {
  margin: 0;
  font-size: 19px;
  color: #dbeafe;
  max-width: 840px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.68));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  font-size: 32px;
  box-shadow: 0 20px 45px rgba(5, 150, 105, 0.42);
}

.player-overlay strong {
  max-width: min(90%, 680px);
  font-size: clamp(20px, 3vw, 36px);
  text-align: center;
}

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

.detail-content {
  margin-top: -20px;
}

.content-card {
  padding: 30px;
}

.content-card p {
  color: #334155;
  font-size: 17px;
}

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

.info-table div {
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
}

.info-table span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.info-table strong {
  display: block;
  margin-top: 6px;
}

.site-footer {
  margin-top: 28px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #020617, #0f172a 58%, #064e3b);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 220px 260px;
  gap: 34px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 14px;
}

.footer-brand p {
  margin: 0;
  color: #94a3b8;
  max-width: 560px;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-column h2 {
  margin: 0 0 8px;
  color: white;
  font-size: 18px;
}

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

.footer-column a:hover {
  color: #86efac;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 16px 36px rgba(5, 150, 105, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

  .hero-content {
    grid-template-columns: 1fr 270px;
  }

  .hero-panel,
  .split-layout,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .ranking-card,
  .ranking-side {
    position: static;
  }

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

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

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

  .brand-subtitle {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 86px;
  }

  .hero-content {
    min-height: 660px;
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: end;
  }

  .hero-poster {
    width: min(260px, 78vw);
  }

  .hero-panel {
    margin-top: -30px;
  }

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

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

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .classic-grid,
  .related-grid,
  .library-grid,
  .side-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    flex-direction: column;
  }

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

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

  .poster-large {
    width: min(260px, 72vw);
  }

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

@media (max-width: 560px) {
  .container,
  .nav-wrap,
  .mobile-menu,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .brand-name {
    font-size: 17px;
  }

  .hero-content {
    min-height: 600px;
  }

  .hero h1 {
    font-size: 35px;
  }

  .hero-panel {
    padding: 12px;
  }

  .hero-search,
  .mobile-search {
    flex-direction: column;
    border-radius: 20px;
  }

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

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .classic-grid,
  .related-grid,
  .library-grid,
  .side-grid {
    grid-template-columns: 1fr;
  }

  .rank-row,
  .ranking-line {
    grid-template-columns: 34px 56px minmax(0, 1fr);
  }

  .rank-score,
  .ranking-value {
    grid-column: 3;
    text-align: left;
  }

  .player-shell {
    border-radius: 18px;
  }

  .content-card {
    padding: 22px;
  }

  .info-table {
    grid-template-columns: 1fr;
  }
}
