:root {
  --bg: #061217;
  --bg-soft: #0b1d23;
  --bg-deep: #02070a;
  --card: #ffffff;
  --card-dark: rgba(9, 24, 30, 0.78);
  --text: #101827;
  --muted: #60707b;
  --muted-light: #b7c6cc;
  --line: rgba(12, 56, 62, 0.12);
  --emerald: #10b981;
  --emerald-dark: #047857;
  --cyan: #22d3ee;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 12, 18, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  color: #031014;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.35);
}

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

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

.nav-link {
  color: #c7d6dc;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.16);
}

.header-search {
  color: #06211f;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.25);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

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

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  background: rgba(2, 12, 18, 0.96);
}

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

.mobile-panel nav,
.mobile-cats {
  width: min(var(--container), 100%);
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.mobile-panel .nav-link,
.mobile-cats a {
  display: block;
  color: #d8e7eb;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-cats {
  margin-top: 14px;
  grid-template-columns: repeat(2, 1fr);
}

.hero {
  position: relative;
  background: radial-gradient(circle at 20% 15%, rgba(16, 185, 129, 0.22), transparent 30%), radial-gradient(circle at 90% 15%, rgba(34, 211, 238, 0.18), transparent 28%), var(--bg-deep);
  color: #ffffff;
  overflow: hidden;
}

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

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  filter: saturate(1.2);
}

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 7, 10, 0.96), rgba(2, 7, 10, 0.72), rgba(2, 7, 10, 0.38));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  align-items: center;
  gap: 54px;
  padding: 72px 0 86px;
}

.hero-label,
.kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: #041412;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.02;
  max-width: 820px;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 720px;
  color: #d6e4e8;
  font-size: clamp(17px, 2.2vw, 22px);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.tag-row span {
  color: #dffaf6;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

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

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

.primary-btn {
  color: #041412;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 18px 38px rgba(16, 185, 129, 0.26);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

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

.hero-cover {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 2 / 3;
  box-shadow: var(--shadow);
  transform: perspective(1000px) rotateY(-6deg) rotateX(2deg);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.hero-cover span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  color: #031014;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 36px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot,
.hero-arrow {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  padding: 0;
}

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

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

.hero-strip {
  position: relative;
  z-index: 5;
  width: min(var(--container), calc(100% - 32px));
  margin: -36px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-bottom: 34px;
}

.hero-strip a {
  color: #e8fbfb;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  font-weight: 900;
}

.section {
  padding: 76px 0;
}

.dark-section {
  color: #ffffff;
  background: linear-gradient(180deg, #07171b, #0b2228);
}

.light-section {
  background: #f7fbfb;
}

.accent-section {
  background: linear-gradient(180deg, #ecfdf8, #ffffff);
}

.rank-section {
  background: #07171b;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-head p {
  margin-top: 8px;
  max-width: 720px;
  color: var(--muted);
}

.dark-section .section-head p,
.dark-section .movie-card p,
.dark-section .movie-meta {
  color: var(--muted-light);
}

.section-link {
  color: #05201e;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.2);
  flex: 0 0 auto;
}

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

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

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

.movie-grid.five-cols {
  grid-template-columns: repeat(5, 1fr);
}

.movie-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 18px 52px rgba(16, 33, 37, 0.1);
  border: 1px solid rgba(8, 51, 61, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.dark-section .movie-card {
  background: var(--card-dark);
  border-color: rgba(255, 255, 255, 0.08);
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 72px rgba(16, 33, 37, 0.18);
  border-color: rgba(16, 185, 129, 0.26);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #07171b;
}

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

.movie-card:hover .movie-poster img,
.compact-card:hover img,
.category-tile:hover,
.detail-cover:hover img {
  transform: scale(1.05);
}

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.74));
}

.movie-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  color: #031014;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.movie-info {
  padding: 16px;
}

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

.movie-info h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.movie-info h3 a:hover,
.compact-card h3 a:hover,
.footer-links a:hover,
.category-tile a:hover {
  color: var(--emerald-dark);
}

.movie-info p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.movie-info .tag-row span {
  color: #17635b;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.14);
}

.movie-card.large .movie-info h3 {
  font-size: 22px;
}

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
}

.movie-card.horizontal .movie-poster {
  aspect-ratio: 3 / 4;
}

.movie-list {
  display: grid;
  gap: 18px;
}

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

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

.category-tile {
  min-height: 220px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ffffff, #effdf7);
  border: 1px solid rgba(16, 185, 129, 0.14);
  box-shadow: 0 18px 52px rgba(16, 33, 37, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 72px rgba(16, 33, 37, 0.14);
}

.category-tile span {
  display: inline-flex;
  color: var(--emerald-dark);
  font-weight: 900;
  margin-bottom: 12px;
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 18px;
  color: #102027;
  font-size: 18px;
  line-height: 1.55;
}

.category-tile div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tile div a {
  color: #24545c;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}

.rank-main {
  display: grid;
  gap: 14px;
}

.compact-card {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 10px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.compact-card:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.1);
}

.compact-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #061217;
}

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

.rank-number {
  position: absolute;
  left: 8px;
  top: 8px;
  color: #031014;
  background: linear-gradient(135deg, var(--amber), var(--emerald));
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
}

.compact-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.compact-card p,
.compact-card span {
  margin: 0;
  color: var(--muted-light);
  font-size: 13px;
}

.rank-side {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 22px;
  height: max-content;
}

.rank-side h2,
.rank-side h3 {
  margin: 0 0 16px;
  color: #ffffff;
}

.rank-side a {
  display: block;
  color: #e9fbfb;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 10px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(4, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  background: #ffffff;
  border: 1px solid rgba(8, 51, 61, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: 0 18px 52px rgba(16, 33, 37, 0.08);
}

.search-field {
  position: relative;
}

.search-field input,
.filter-panel select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(8, 51, 61, 0.12);
  border-radius: 14px;
  background: #f8fbfb;
  color: #102027;
  outline: none;
  padding: 0 14px;
}

.search-field input {
  padding-right: 44px;
}

.search-field span {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--emerald-dark);
  font-size: 22px;
}

.search-field input:focus,
.filter-panel select:focus {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.empty-state {
  display: none;
  margin-top: 30px;
  padding: 36px;
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid rgba(8, 51, 61, 0.08);
}

.empty-state.show {
  display: block;
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at 15% 0, rgba(16, 185, 129, 0.3), transparent 34%), radial-gradient(circle at 85% 20%, rgba(34, 211, 238, 0.2), transparent 30%), linear-gradient(135deg, #02070a, #0b242b);
  padding: 96px 0 72px;
}

.page-hero h1 {
  margin: 16px 0;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  color: #c7d6dc;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #a9bbc2;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--emerald);
}

.detail-hero {
  position: relative;
  color: #ffffff;
  background: #02070a;
  overflow: hidden;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  filter: blur(2px) saturate(1.2);
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 7, 10, 0.95), rgba(2, 7, 10, 0.72));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 76px 0;
}

.detail-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.detail-one-line {
  color: #d8e7eb;
  font-size: 19px;
  max-width: 860px;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8f6f7;
}

.detail-tags {
  margin-bottom: 28px;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: stretch;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: #000000;
  cursor: pointer;
  z-index: 2;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
}

.play-pulse {
  position: relative;
  z-index: 3;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #031014;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  font-size: 30px;
  box-shadow: 0 0 0 18px rgba(16, 185, 129, 0.16), 0 24px 70px rgba(0, 0, 0, 0.38);
}

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

.watch-panel {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.watch-panel h2 {
  margin: 16px 0 10px;
  font-size: 28px;
}

.watch-panel p {
  color: var(--muted-light);
}

.watch-stats {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.watch-stats span {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.story-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(8, 51, 61, 0.08);
  box-shadow: 0 18px 52px rgba(16, 33, 37, 0.08);
}

.story-card h2 {
  margin: 14px 0 12px;
  font-size: 28px;
}

.story-card p {
  color: #31434b;
  font-size: 17px;
}

.site-footer {
  color: #c5d4da;
  background: linear-gradient(180deg, #07171b, #02070a);
  padding: 54px 0 26px;
}

.footer-inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
}

.footer-brand p {
  margin-top: 18px;
  color: #9db0b8;
}

.footer-col h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 17px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

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

.footer-bottom {
  width: min(var(--container), calc(100% - 32px));
  margin: 36px auto 0;
  padding-top: 20px;
  color: #7f929b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

@media (max-width: 1180px) {
  .featured-grid,
  .movie-grid,
  .movie-grid.five-cols,
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .search-field {
    grid-column: 1 / -1;
  }
}

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

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

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

  .hero-slider,
  .hero-content {
    min-height: 760px;
  }

  .hero-cover {
    max-width: 280px;
    transform: none;
  }

  .hero-strip,
  .featured-grid,
  .movie-grid,
  .movie-grid.five-cols,
  .category-grid,
  .category-grid.wide {
    grid-template-columns: repeat(2, 1fr);
  }

  .sticky-side {
    position: static;
  }

  .player-layout {
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .container,
  .header-inner,
  .footer-inner,
  .footer-bottom,
  .hero-content,
  .hero-strip {
    width: min(100% - 24px, var(--container));
  }

  .hero-slider,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    padding: 54px 0 88px;
    gap: 28px;
  }

  .hero-strip,
  .featured-grid,
  .movie-grid,
  .movie-grid.five-cols,
  .category-grid,
  .category-grid.wide,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .section-head {
    display: block;
  }

  .section-link {
    margin-top: 18px;
  }

  .movie-card.horizontal {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .movie-card.horizontal .movie-info {
    padding: 12px;
  }

  .movie-card.horizontal .tag-row {
    display: none;
  }

  .detail-hero-inner {
    padding: 54px 0;
  }

  .detail-cover {
    max-width: 240px;
  }

  .story-card,
  .watch-panel {
    padding: 20px;
  }

  .play-pulse {
    width: 68px;
    height: 68px;
    font-size: 24px;
  }
}
