:root {
  --bg: #fffaf2;
  --bg-soft: #fff7ed;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --orange: #f97316;
  --orange-deep: #ea580c;
  --amber: #f59e0b;
  --red: #ef4444;
  --blue: #06b6d4;
  --purple: #a855f7;
  --shadow: 0 20px 45px rgba(154, 86, 21, 0.14);
  --shadow-soft: 0 12px 30px rgba(154, 86, 21, 0.1);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.62), #ffffff 38%, rgba(255, 251, 235, 0.62));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #fffbeb, #fff7ed 45%, #fef3c7);
  border-bottom: 1px solid rgba(253, 186, 116, 0.52);
  box-shadow: 0 8px 24px rgba(124, 45, 18, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #f59e0b);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.34);
}

.brand-text strong,
.footer-brand strong {
  display: block;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #ea580c, #d97706);
  -webkit-background-clip: text;
  color: transparent;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

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

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

.header-search {
  position: relative;
  width: 270px;
}

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-card input {
  width: 100%;
  border: 2px solid #fed7aa;
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  padding: 10px 48px 10px 18px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-card input:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.14);
}

.header-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  background: #ffffff;
  color: var(--orange-deep);
  box-shadow: var(--shadow-soft);
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(253, 186, 116, 0.62);
  background: #ffffff;
  padding: 16px;
}

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

.mobile-search {
  display: flex;
  gap: 10px;
  margin: 0 auto 14px;
  max-width: var(--container);
}

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

.mobile-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  padding: 10px 18px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.mobile-nav {
  display: grid;
  gap: 8px;
  max-width: var(--container);
  margin: 0 auto;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  background: #fff7ed;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 58px 0 72px;
  background: linear-gradient(135deg, #ffedd5, #fffbeb 48%, #fef3c7);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.32;
  pointer-events: none;
}

.glow-a {
  width: 330px;
  height: 330px;
  left: 5%;
  top: 18px;
  background: #fb923c;
}

.glow-b {
  width: 430px;
  height: 430px;
  right: 3%;
  bottom: -120px;
  background: #f59e0b;
}

.hero-intro {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 32px;
}

.hero-intro h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #ea580c, #d97706, #f97316);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-intro p,
.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: #4b5563;
  font-size: 19px;
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.hero-quick-links a,
.hero-tags a,
.hero-tags span,
.tag-pill,
.tag-list span,
.detail-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #c2410c;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(124, 45, 18, 0.08);
}

.hero-quick-links a {
  padding: 9px 16px;
}

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

.hero-track {
  position: relative;
  min-height: 500px;
  border-radius: 32px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 28px 70px rgba(124, 45, 18, 0.28);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

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

.hero-image,
.hero-image img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-slide.is-active .hero-image img,
.hero-image:hover img {
  transform: scale(1.04);
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.48) 45%, rgba(17, 24, 39, 0.18)), linear-gradient(0deg, rgba(17, 24, 39, 0.76), transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(640px, calc(100% - 48px));
  padding: 72px 0 0 58px;
  color: #ffffff;
}

.hero-badge,
.category-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #f97316;
  font-weight: 800;
}

.hero-badge {
  padding: 8px 16px;
  margin-bottom: 16px;
}

.hero-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.12;
}

.hero-copy p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.hero-tags a,
.hero-tags span {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn {
  color: #ffffff;
  padding: 12px 24px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.28);
}

.ghost-btn {
  color: #ffffff;
  padding: 11px 22px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 20px 36px rgba(249, 115, 22, 0.35);
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 58px;
  bottom: 30px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.42);
}

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

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

.content-band,
.category-section {
  padding: 58px 0;
  background: linear-gradient(90deg, #fff7ed, #fffbeb);
}

.category-section {
  background: #ffffff;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #f59e0b);
  box-shadow: var(--shadow-soft);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.section-heading p {
  margin: 3px 0 0;
  color: var(--muted);
}

.section-more,
.back-link {
  color: var(--orange-deep);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5, #fde68a);
}

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

.movie-card:hover .movie-poster img,
.rank-item:hover .movie-poster img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.08));
  transition: opacity 0.25s ease;
}

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

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--orange-deep);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.category-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  font-size: 12px;
}

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.movie-card-body {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  min-height: 52px;
  margin-bottom: 8px;
  overflow: hidden;
  color: #1f2937;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-title:hover,
.movie-card:hover .movie-title,
.rank-item:hover .movie-title {
  color: var(--orange-deep);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

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

.movie-card-list,
.rank-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-list .movie-card-body,
.rank-item .movie-card-body {
  align-self: center;
  padding: 12px 12px 12px 0;
}

.movie-card-list .movie-title,
.rank-item .movie-title {
  min-height: auto;
  -webkit-line-clamp: 1;
}

.tag-pill {
  margin-top: 10px;
  padding: 4px 9px;
  font-size: 12px;
  background: #ffedd5;
}

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

.category-card,
.overview-card {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 172px;
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(135deg, #ffedd5, #fef3c7);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-orb {
  position: absolute;
  right: -32px;
  top: -36px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: rgba(251, 146, 60, 0.26);
  transition: transform 0.35s ease;
}

.category-card:hover .category-orb {
  transform: scale(1.6);
}

.category-card strong,
.overview-head span {
  position: relative;
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 900;
}

.category-card p,
.overview-card p {
  position: relative;
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.category-card em {
  position: relative;
  display: block;
  margin-top: 16px;
  color: #c2410c;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.center-action {
  justify-content: center;
  margin-top: 34px;
}

.site-footer {
  margin-top: 24px;
  padding: 50px 0 24px;
  background: linear-gradient(180deg, #fffbeb, #ffedd5);
  border-top: 1px solid #fed7aa;
}

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

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

.site-footer p,
.site-footer li,
.footer-bottom {
  color: #6b7280;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(251, 146, 60, 0.26);
  font-size: 14px;
}

.page-hero {
  padding: 48px 0;
  background: linear-gradient(90deg, #ffedd5, #fffbeb 55%, #fef3c7);
}

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #9a3412;
  font-size: 14px;
  font-weight: 800;
}

.filter-card {
  position: relative;
  margin-bottom: 28px;
  border-radius: 24px;
  padding: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-card input {
  padding: 14px 54px 14px 18px;
  font-size: 17px;
}

.filter-card span {
  position: absolute;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--orange-deep);
  font-size: 20px;
}

.overview-card {
  background: #ffffff;
}

.overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.overview-head em {
  border-radius: 999px;
  padding: 4px 10px;
  color: #ffffff;
  background: var(--orange);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.overview-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.overview-card li + li {
  margin-top: 8px;
}

.overview-card li a {
  color: #4b5563;
  font-size: 14px;
}

.overview-card li a:hover {
  color: var(--orange-deep);
}

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

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

.rank-num {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, #fb923c, #f59e0b);
}

.detail-page {
  padding: 32px 0 42px;
}

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

.detail-main .breadcrumbs {
  margin-bottom: 18px;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 24px 56px rgba(17, 24, 39, 0.28);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-cover img,
.player-cover-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-cover img {
  object-fit: cover;
}

.player-cover-shade {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.22));
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: var(--orange-deep);
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.player-start:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.movie-detail-card,
.side-card {
  margin-top: 24px;
  border-radius: 24px;
  padding: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.detail-badge {
  padding: 6px 12px;
  margin-bottom: 12px;
  background: #ffedd5;
}

.detail-heading h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.detail-heading p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

.detail-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.detail-meta span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff7ed;
  color: #4b5563;
}

.detail-meta strong {
  color: #9a3412;
}

.tag-list span {
  padding: 6px 12px;
  background: #f3f4f6;
  color: #4b5563;
}

.detail-block {
  margin-top: 28px;
}

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

.detail-block p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.detail-sidebar {
  position: sticky;
  top: 104px;
}

.side-card {
  margin-top: 0;
  padding: 18px;
}

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

.side-list .movie-card-list {
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  box-shadow: none;
  border: 1px solid #f3f4f6;
}

.side-list .movie-card-body {
  padding: 8px 8px 8px 0;
}

.side-list .movie-title {
  font-size: 14px;
}

.side-list .movie-card-body p {
  min-height: auto;
  font-size: 12px;
}

.side-list .movie-meta,
.side-list .tag-pill {
  display: none;
}

.search-page-form {
  display: flex;
  gap: 10px;
  width: min(720px, 100%);
  margin: 26px auto 0;
}

.search-page-form input {
  padding: 14px 18px;
  font-size: 18px;
}

.search-results:empty {
  display: none;
}

.result-heading {
  margin-bottom: 22px;
}

.result-heading h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.result-heading p {
  margin: 0;
  color: var(--muted);
}

.no-results {
  border-radius: 24px;
  padding: 42px;
  text-align: center;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

@media (max-width: 1100px) {
  .grid-4,
  .category-grid,
  .overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .detail-sidebar {
    position: static;
  }
}

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

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

  .hero-track {
    min-height: 470px;
  }

  .hero-copy {
    width: calc(100% - 36px);
    padding: 54px 0 0 28px;
  }

  .hero-controls {
    left: 28px;
  }

  .grid-3,
  .grid-4,
  .list-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .header-inner {
    height: 66px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 15px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text small {
    display: none;
  }

  .hero-section {
    padding: 42px 0 48px;
  }

  .hero-intro p,
  .page-hero p {
    font-size: 16px;
  }

  .hero-track {
    min-height: 520px;
    border-radius: 24px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.26));
  }

  .hero-copy {
    padding: 230px 18px 0;
    width: 100%;
  }

  .hero-controls {
    left: 18px;
    bottom: 20px;
  }

  .section-heading,
  .detail-heading,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid-3,
  .grid-4,
  .list-grid,
  .category-grid,
  .overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-list,
  .rank-item {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .rank-num {
    min-height: 44px;
    grid-column: 1 / -1;
  }

  .movie-title {
    font-size: 16px;
    min-height: auto;
  }

  .movie-card-body p {
    min-height: auto;
  }

  .search-page-form {
    flex-direction: column;
  }

  .movie-detail-card,
  .side-card {
    padding: 20px;
  }

  .player-start {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
