:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --soft: rgba(30, 41, 59, 0.78);
  --line: rgba(245, 158, 11, 0.22);
  --line-cool: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --accent: #f59e0b;
  --accent-2: #d97706;
  --danger: #fb7185;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 30rem),
    radial-gradient(circle at 80% 12%, rgba(217, 119, 6, 0.10), transparent 28rem),
    var(--bg);
  color: var(--text);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.36);
  font-size: 14px;
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(90deg, #fbbf24, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fbbf24;
}

.header-search,
.mobile-search,
.hero-search,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-bar input {
  width: 100%;
  border: 1px solid rgba(245, 158, 11, 0.26);
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.78);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-bar input:focus {
  border-color: rgba(245, 158, 11, 0.72);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.10);
}

.header-search {
  width: 260px;
}

.header-search button,
.mobile-search button,
.hero-search button,
.filter-bar button,
.primary-button,
.outline-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  cursor: pointer;
  font-weight: 750;
  white-space: nowrap;
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.filter-bar button:hover,
.primary-button:hover,
.outline-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.32);
}

.ghost-button,
.outline-button {
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(245, 158, 11, 0.44);
  color: #fbbf24;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.8);
  cursor: pointer;
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #f8fafc;
  border-radius: 999px;
}

.mobile-panel {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.96);
}

.mobile-panel-inner {
  padding: 16px 0 20px;
  display: grid;
  gap: 14px;
}

.mobile-search {
  margin-top: 4px;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border-bottom: 1px solid rgba(245, 158, 11, 0.14);
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.34)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 44%, rgba(2, 6, 23, 0.24) 100%);
}

.hero-content {
  height: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 130px 0 190px;
}

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

.hero-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-eyebrow span,
.hero-eyebrow em {
  font-style: normal;
  border: 1px solid rgba(245, 158, 11, 0.46);
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 750;
}

.hero-eyebrow em {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.58);
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.hero-tags span,
.tag-row a,
.detail-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.78);
  color: #cbd5e1;
  padding: 7px 11px;
  font-size: 13px;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 32px;
  color: #cbd5e1;
  font-size: 20px;
  line-height: 1.75;
}

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

.hero-arrow {
  position: absolute;
  top: 46%;
  z-index: 6;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(245, 158, 11, 0.86);
  transform: scale(1.06);
}

.hero-arrow.left {
  left: 18px;
}

.hero-arrow.right {
  right: 18px;
}

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

.hero-dot {
  width: 16px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.7);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 36px;
  background: var(--accent);
}

.hero-panel {
  position: relative;
  z-index: 8;
  margin-top: 500px;
  padding: 22px;
  border: 1px solid rgba(245, 158, 11, 0.20);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-search {
  margin-bottom: 16px;
}

.hero-search input {
  min-height: 52px;
}

.hero-categories,
.page-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-categories a,
.page-hero-links a,
.filter-bar a {
  border: 1px solid rgba(148, 163, 184, 0.20);
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  border-radius: 999px;
  padding: 9px 13px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-categories a:hover,
.page-hero-links a:hover,
.filter-bar a:hover {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.58);
  background: rgba(245, 158, 11, 0.10);
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.hero-thumb {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.48);
  color: #cbd5e1;
  border-radius: 16px;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hero-thumb.active,
.hero-thumb:hover {
  border-color: rgba(245, 158, 11, 0.70);
  transform: translateY(-2px);
}

.hero-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-thumb span {
  display: block;
  padding: 10px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section-block {
  padding: 70px 0 0;
}

.intro-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.intro-block h2,
.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.intro-block p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 760px;
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.section-title-row h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.035em;
}

.section-title-row h2 span,
.page-hero h1 {
  background: linear-gradient(90deg, #fbbf24, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.58), transparent);
  border-radius: 999px;
}

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

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

.movie-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.58);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(245, 158, 11, 0.62);
  box-shadow: 0 24px 60px rgba(245, 158, 11, 0.16);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

.wide-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}

.wide-card .card-cover {
  aspect-ratio: 16 / 10;
  min-height: 180px;
}

.card-cover img,
.compact-cover img,
.poster-card img,
.category-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .card-cover img,
.compact-card:hover .compact-cover img {
  transform: scale(1.08);
}

.card-cover::after,
.compact-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.84), transparent 62%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.movie-card:hover .card-cover::after,
.compact-card:hover .compact-cover::after {
  opacity: 1;
}

.card-play,
.card-year,
.rank-badge,
.compact-rank {
  position: absolute;
  z-index: 2;
}

.card-play {
  width: 52px;
  height: 52px;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(245, 158, 11, 0.94);
  color: #fff;
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.card-year,
.rank-badge {
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.card-year {
  right: 12px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
}

.rank-badge {
  left: 12px;
  background: rgba(245, 158, 11, 0.92);
  color: #fff;
}

.card-body {
  padding: 16px;
}

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

.card-body h2 a {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

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

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

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rail-wrap {
  position: relative;
}

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 0 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
  display: none;
}

.rail-button {
  position: absolute;
  top: 40%;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.84);
  cursor: pointer;
  font-size: 28px;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.rail-wrap:hover .rail-button {
  opacity: 1;
}

.rail-button:hover {
  background: var(--accent);
}

.rail-button.left {
  left: -10px;
}

.rail-button.right {
  right: -10px;
}

.compact-card {
  min-width: 220px;
  display: grid;
  gap: 10px;
  scroll-snap-align: start;
}

.compact-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
}

.compact-rank {
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  background: rgba(245, 158, 11, 0.94);
  font-weight: 900;
  font-size: 12px;
}

.compact-text strong {
  display: block;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.compact-card:hover strong {
  color: #fbbf24;
}

.compact-text em {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  margin-top: 4px;
}

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

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

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

.category-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.58);
  border-radius: 20px;
  padding: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.58);
}

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

.category-thumbs img {
  aspect-ratio: 1;
  border-radius: 10px;
}

.category-info strong {
  display: block;
  color: #fbbf24;
  font-size: 20px;
  margin-bottom: 8px;
}

.category-info em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
  font-size: 14px;
}

.ranking-box,
.detail-info-card,
.player-card,
.poster-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.62);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.ranking-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ranking-heading h2 {
  margin: 0;
  font-size: 22px;
  color: #fbbf24;
}

.ranking-heading a {
  color: var(--muted);
  font-size: 14px;
}

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

.ranking-list .compact-card {
  min-width: 0;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
}

.ranking-list .compact-cover {
  border-radius: 12px;
}

.sticky-box {
  position: sticky;
  top: 92px;
}

.page-hero {
  padding: 80px 0 36px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.40), transparent),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 34rem);
  border-bottom: 1px solid rgba(245, 158, 11, 0.10);
}

.page-hero p:first-child {
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-hero-links {
  margin-top: 22px;
  margin-bottom: 0;
}

.filter-bar {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.58);
  border-radius: 18px;
}

.filter-bar input {
  border-radius: 14px;
}

.detail-page {
  padding-top: 34px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}

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

.detail-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
}

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

.player-card {
  padding: 12px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  aspect-ratio: 16 / 9;
}

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

.player-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(15, 23, 42, 0.28));
  cursor: pointer;
}

.player-mask[hidden] {
  display: none;
}

.play-orb {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.94);
  box-shadow: 0 0 0 10px rgba(245, 158, 11, 0.16), 0 18px 40px rgba(0, 0, 0, 0.32);
  font-size: 30px;
}

.player-mask strong {
  font-size: 18px;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  margin: 0;
  color: #fff;
  background: rgba(244, 63, 94, 0.82);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
}

.detail-info-card h1,
.detail-info-card h2 {
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

.detail-info-card h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.detail-info-card h2 {
  color: #fbbf24;
  font-size: 24px;
}

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

.lead-text {
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.8;
  margin: 0 0 18px;
}

.text-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 2;
  font-size: 16px;
}

.tag-row {
  margin-bottom: 0;
}

.tag-row a:hover {
  color: #fbbf24;
}

.detail-sidebar {
  display: grid;
  gap: 20px;
}

.poster-card {
  padding: 14px;
}

.poster-card img {
  border-radius: 16px;
  aspect-ratio: 2 / 3;
}

.poster-card div {
  padding: 14px 4px 4px;
}

.poster-card strong,
.poster-card span {
  display: block;
}

.poster-card strong {
  font-size: 20px;
  margin-bottom: 6px;
}

.poster-card span {
  color: var(--muted);
}

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

.prev-next a {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  padding: 16px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.58);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.prev-next a:hover {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.52);
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.92);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
  padding: 44px 0;
}

.footer-brand {
  color: #fbbf24;
  font-size: 20px;
  margin-bottom: 14px;
}

.site-footer p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

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

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted-2);
  text-align: center;
  padding: 18px;
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(245, 158, 11, 0.28);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

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

  .sticky-box {
    position: static;
  }

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

@media (max-width: 760px) {
  .site-container {
    width: min(100% - 24px, 1200px);
  }

  .header-inner {
    height: 64px;
  }

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

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding: 95px 0 280px;
    align-items: flex-start;
  }

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

  .hero-arrow {
    display: none;
  }

  .hero-panel {
    margin-top: 430px;
    padding: 16px;
  }

  .hero-search,
  .filter-bar,
  .intro-block {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .card-body {
    padding: 13px;
  }

  .card-body h2 {
    font-size: 16px;
  }

  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

  .category-card,
  .wide-card {
    grid-template-columns: 1fr;
  }

  .wide-card .card-cover {
    aspect-ratio: 16 / 9;
  }

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

  .prev-next {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .all-grid {
    grid-template-columns: 1fr;
  }

  .hero-thumbs {
    display: none;
  }

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

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