:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --panel-strong: #1e293b;
  --text: #ffffff;
  --muted: #cbd5e1;
  --dim: #94a3b8;
  --line: rgba(148, 163, 184, 0.2);
  --orange: #f97316;
  --red: #dc2626;
  --amber: #fb923c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(249, 115, 22, 0.13), transparent 32rem),
    radial-gradient(circle at 85% 20%, rgba(220, 38, 38, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.97), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.97));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

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

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.3);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fb923c, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.desktop-nav a,
.mobile-nav a {
  color: #e2e8f0;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #fb923c;
}

.header-search {
  flex-shrink: 0;
}

.header-search input,
.quick-search input,
.filter-panel input,
.search-panel input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  width: 230px;
  padding: 10px 14px;
}

.header-search input:focus,
.quick-search input:focus,
.filter-panel input:focus,
.search-panel input:focus {
  border-color: rgba(249, 115, 22, 0.85);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 10px;
}

.menu-button span {
  width: 24px;
  height: 2px;
  border-radius: 99px;
  background: #e2e8f0;
}

.mobile-nav {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-nav.is-open {
  display: grid;
}

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

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

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shadow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.34)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.5) 38%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  padding-top: 24px;
}

.hero-labels,
.hero-tags,
.detail-meta,
.filter-buttons,
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-labels span,
.hero-labels a,
.hero-tags span,
.card-body .tag-list span,
.detail-meta span,
.quick-tags a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.hero-labels span {
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #ffffff;
  font-weight: 800;
  font-size: 0.86rem;
}

.hero-labels a,
.hero-tags span,
.detail-meta span,
.quick-tags a {
  padding: 6px 12px;
  background: rgba(30, 41, 59, 0.78);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(8px);
}

.hero-copy h1,
.hero-copy h2 {
  margin-top: 18px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.07em;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.56);
}

.hero-copy p {
  max-width: 680px;
  margin-top: 22px;
  color: #cbd5e1;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.85;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 850;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  background: linear-gradient(90deg, var(--orange), var(--red));
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.28);
}

.btn-ghost {
  border: 1px solid rgba(226, 232, 240, 0.22);
  background: rgba(15, 23, 42, 0.66);
  color: #e2e8f0;
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.66);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(249, 115, 22, 0.9);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 24px;
  transform: translateY(-50%);
}

.hero-next {
  right: 24px;
  transform: translateY(-50%);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.48);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--orange);
}

.section {
  padding: 76px 0;
}

.section-deep {
  background: linear-gradient(180deg, #020617, #0f172a);
}

.section-soft {
  background: linear-gradient(180deg, #0f172a, #020617);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading.left {
  text-align: left;
  margin-left: 0;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
  text-align: left;
}

.section-heading span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #fb923c;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
  font-weight: 900;
  letter-spacing: -0.045em;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.section-heading p,
.page-hero p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.text-link {
  color: #fb923c;
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.018);
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: var(--shadow);
}

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

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(2, 6, 23, 0.9));
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #ffffff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.78);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.34);
}

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

.poster-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
}

.poster-badges span {
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.86);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.poster-badges span:first-child {
  background: rgba(249, 115, 22, 0.9);
}

.card-body {
  display: block;
  padding: 16px;
}

.card-body strong {
  display: -webkit-box;
  margin-bottom: 8px;
  overflow: hidden;
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 850;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-featured .card-body strong {
  font-size: 1.5rem;
}

.card-line {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: #cbd5e1;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: block;
  margin-top: 10px;
  color: #94a3b8;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.card-body .tag-list span {
  padding: 4px 8px;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 0.78rem;
}

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

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

.category-tile {
  position: relative;
  display: flex;
  min-height: 172px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.13), rgba(220, 38, 38, 0.09)),
    rgba(15, 23, 42, 0.96);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.54);
}

.category-glow {
  position: absolute;
  inset: auto -30px -55px auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.16);
  filter: blur(12px);
}

.category-tile strong {
  position: relative;
  font-size: 1.45rem;
  font-weight: 900;
}

.category-tile span:not(.category-glow) {
  position: relative;
  margin-top: 12px;
  color: #cbd5e1;
  line-height: 1.75;
}

.category-tile em {
  position: relative;
  margin-top: 18px;
  color: #fb923c;
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.55;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 34px;
  align-items: start;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.9);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(6px);
  border-color: rgba(249, 115, 22, 0.48);
}

.rank-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
}

.rank-item img {
  width: 72px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}

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

.rank-copy strong {
  color: #ffffff;
  font-weight: 850;
}

.rank-copy em {
  margin-top: 4px;
  color: #94a3b8;
  font-style: normal;
  font-size: 0.9rem;
}

.rank-more {
  margin-top: 22px;
}

.side-panel,
.story-card,
.info-card,
.filter-panel,
.search-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.93);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}

.side-panel {
  padding: 28px;
  position: sticky;
  top: 92px;
}

.side-panel h2,
.story-card h2,
.info-card h2 {
  font-size: 1.45rem;
  font-weight: 900;
}

.side-panel p {
  margin-top: 12px;
  color: #cbd5e1;
  line-height: 1.75;
}

.quick-search,
.search-panel {
  display: flex;
  gap: 10px;
}

.quick-search {
  margin-top: 22px;
}

.quick-search input,
.search-panel input {
  padding: 13px 14px;
}

.quick-search button,
.search-panel button,
.filter-buttons button {
  border-radius: 14px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  color: #ffffff;
  font-weight: 850;
}

.quick-search button,
.search-panel button {
  padding: 0 18px;
}

.quick-tags {
  margin-top: 18px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.24), transparent 28rem),
    linear-gradient(135deg, #0f172a, #111827 62%, #020617);
}

.compact-hero {
  padding: 76px 0 64px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  color: #94a3b8;
}

.breadcrumbs a {
  color: #fb923c;
  font-weight: 800;
}

.breadcrumbs span::before {
  content: "/";
  margin-right: 10px;
  color: #475569;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
}

.filter-panel input {
  padding: 14px 16px;
}

.filter-buttons button {
  padding: 9px 13px;
  background: rgba(30, 41, 59, 0.92);
  color: #cbd5e1;
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
  background: linear-gradient(90deg, var(--orange), var(--red));
  color: #ffffff;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 70px;
  background: #020617;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.3;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.1);
  transform: scale(1.05);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #020617 8%, rgba(2, 6, 23, 0.92) 46%, rgba(2, 6, 23, 0.72));
}

.detail-hero .container {
  position: relative;
  z-index: 1;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  margin-top: 18px;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 1.02;
}

.detail-copy p {
  max-width: 760px;
  margin-top: 18px;
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.85;
}

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

.detail-copy .btn {
  margin-top: 28px;
}

.player-section {
  padding: 62px 0;
  background: linear-gradient(180deg, #020617, #0f172a);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.78));
  color: #ffffff;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 20px 50px rgba(249, 115, 22, 0.36);
  font-size: 2rem;
  text-indent: 4px;
}

.play-text {
  margin-top: 120px;
  position: absolute;
  font-weight: 900;
  letter-spacing: 0.08em;
}

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

.story-card,
.info-card {
  padding: 30px;
}

.story-card h2:not(:first-child) {
  margin-top: 34px;
}

.story-card p {
  margin-top: 14px;
  color: #cbd5e1;
  line-height: 2;
  font-size: 1.02rem;
}

.info-card {
  position: sticky;
  top: 92px;
}

.info-card dl {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.info-card dt {
  color: #94a3b8;
  font-size: 0.88rem;
}

.info-card dd {
  margin: 4px 0 0;
  color: #ffffff;
  font-weight: 750;
  line-height: 1.55;
}

.search-panel {
  margin-bottom: 26px;
  padding: 18px;
}

.search-panel button {
  min-width: 110px;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, #0f172a, #020617);
  color: #94a3b8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 34px;
  padding: 48px 0 34px;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer p {
  line-height: 1.75;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: #fb923c;
}

.footer-bottom {
  padding: 20px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  font-size: 1.3rem;
  font-weight: 900;
}

.back-top.is-visible {
  display: block;
}

.is-filtered-out {
  display: none !important;
}

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

  .menu-button {
    display: flex;
  }

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

  .rank-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

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

  .header-inner {
    min-height: 62px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

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

  .hero-copy h1,
  .hero-copy h2 {
    font-size: clamp(2.6rem, 15vw, 4.1rem);
  }

  .hero-arrow {
    display: none;
  }

  .section {
    padding: 54px 0;
  }

  .section-heading.split {
    display: block;
  }

  .text-link {
    display: inline-flex;
    margin-top: 14px;
  }

  .featured-grid,
  .movie-grid,
  .category-grid,
  .category-grid.large,
  .rank-list.wide {
    grid-template-columns: 1fr;
  }

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

  .rank-item {
    grid-template-columns: 42px 64px minmax(0, 1fr);
  }

  .rank-item img {
    width: 64px;
    height: 48px;
  }

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

  .detail-poster {
    max-width: 320px;
  }

  .player-section {
    padding: 38px 0;
  }

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

  .quick-search,
  .search-panel {
    flex-direction: column;
  }

  .quick-search button,
  .search-panel button {
    min-height: 46px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }
}

@media (max-width: 460px) {
  .mobile-nav {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
