* {
  box-sizing: border-box;
}

:root {
  --sky: #0284c7;
  --sky-dark: #0369a1;
  --blue: #2563eb;
  --indigo: #4338ca;
  --emerald: #059669;
  --rose: #e11d48;
  --amber: #f59e0b;
  --teal: #0f766e;
  --slate: #0f172a;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(135deg, #f9fafb 0%, #eff6ff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(16px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sky);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky), var(--blue));
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.26);
  font-size: 15px;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--gray-700);
  border-radius: 999px;
  border: 0;
  background: transparent;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sky);
  background: #e0f2fe;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 180px;
  padding: 10px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a,
.mobile-panel a {
  display: block;
  padding: 10px 12px;
  color: var(--gray-700);
  border-radius: 12px;
  font-weight: 600;
}

.dropdown-menu a:hover,
.mobile-panel a:hover {
  color: var(--sky);
  background: #e0f2fe;
}

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

.header-search input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-800);
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input {
  width: 220px;
  padding: 10px 16px;
}

.header-search input:focus,
.search-page-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.header-search button,
.search-page-form button {
  border: 0;
  color: var(--white);
  background: var(--sky);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
}

.header-search button:hover,
.search-page-form button:hover {
  background: var(--sky-dark);
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--gray-700);
  font-size: 26px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

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

.mobile-panel form {
  display: flex;
  gap: 8px;
  padding: 10px 0;
}

.mobile-panel input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
}

.mobile-panel button {
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--sky);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(100deg, var(--sky), var(--blue) 58%, var(--indigo));
}

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

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

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.94), rgba(37, 99, 235, 0.82), rgba(15, 23, 42, 0.38));
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  transform: scale(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 128px;
  background: linear-gradient(to top, #f9fafb, rgba(249, 250, 251, 0));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 52px;
}

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

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  color: var(--sky);
  background: #e0f2fe;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero h1,
.page-hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-main-text {
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: clamp(18px, 2vw, 24px);
  max-width: 760px;
}

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

.tag,
.card-meta a,
.detail-meta a {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  color: var(--sky);
  background: #e0f2fe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags .tag {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

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

.btn.primary {
  color: var(--white);
  background: var(--sky);
  box-shadow: 0 14px 28px rgba(2, 132, 199, 0.25);
}

.hero .btn.primary {
  color: var(--sky);
  background: var(--white);
}

.btn.ghost {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn.ghost:hover {
  color: var(--sky);
  background: var(--white);
}

.btn.subtle {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.38);
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  color: var(--white);
  background: rgba(2, 132, 199, 0.92);
  border-radius: 999px;
  font-size: 26px;
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.32);
}

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

.hero-controls button {
  border: 0;
  color: var(--white);
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(12px);
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

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

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

.hero-dot.active {
  width: 30px;
  background: var(--white);
  opacity: 1;
}

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

.white-section {
  background: var(--white);
}

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

.section-head.slim {
  margin-bottom: 20px;
}

.section-head h2,
.category-panel h2,
.side-board h2,
.site-footer h2 {
  margin: 8px 0 0;
  color: var(--gray-800);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-head > a,
.text-link {
  color: var(--sky);
  font-weight: 800;
}

.section-kicker.emerald {
  color: var(--emerald);
  background: #d1fae5;
}

.section-kicker.rose {
  color: var(--rose);
  background: #ffe4e6;
}

.section-kicker.teal {
  color: var(--teal);
  background: #ccfbf1;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

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

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

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

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.70), rgba(15, 23, 42, 0.02));
  opacity: 0;
  transition: opacity 0.22s ease;
}

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

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: var(--white);
  background: rgba(2, 132, 199, 0.92);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.year-mark,
.rank-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 4px 8px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.78);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 10px;
  right: auto;
  top: 10px;
  bottom: auto;
  background: var(--rose);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: var(--gray-800);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-body p {
  min-height: 42px;
  margin: 0 0 12px;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--gray-500);
  font-size: 13px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: 32px;
  padding: 72px 0;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 92px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.rank-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: var(--rose);
  border-radius: 999px;
  font-weight: 900;
}

.rank-item img {
  width: 92px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #0ea5e9, #4338ca);
}

.rank-text {
  min-width: 0;
}

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

.rank-text strong {
  color: var(--gray-800);
  font-size: 15px;
  font-style: normal;
}

.rank-text em {
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
}

.category-panel,
.side-board,
.detail-card,
.poster-card,
.category-overview-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.category-panel {
  padding: 28px;
  align-self: start;
  position: sticky;
  top: 88px;
}

.category-panel p {
  color: var(--gray-600);
}

.category-box-grid,
.category-overview-grid {
  display: grid;
  gap: 14px;
}

.category-box-grid {
  margin-top: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-box {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f0f9ff, #eef2ff);
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-box:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}

.category-box span {
  color: var(--sky);
  font-weight: 900;
}

.category-box p,
.category-overview-card p {
  margin: 6px 0 0;
  color: var(--gray-600);
  font-size: 13px;
}

.cta-strip {
  padding: 64px 0;
  color: var(--white);
  background: linear-gradient(100deg, var(--sky), var(--blue));
  text-align: center;
}

.cta-strip h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 44px);
}

.cta-strip p {
  margin: 0 auto 26px;
  max-width: 700px;
  color: #dbeafe;
  font-size: 18px;
}

.page-hero {
  padding: 70px 0;
  color: var(--white);
  background: linear-gradient(100deg, var(--sky), var(--blue) 56%, var(--indigo));
}

.small-hero {
  padding: 56px 0;
}

.ranking-hero {
  background: linear-gradient(100deg, #be123c, #2563eb 64%, #4338ca);
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #dbeafe;
  font-size: 19px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.detail-main .breadcrumb {
  color: var(--gray-500);
}

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

.page-hero .breadcrumb a:hover {
  color: var(--white);
}

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

.category-overview-card {
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-overview-card h2 {
  margin: 0 0 10px;
  color: var(--gray-800);
}

.category-overview-card h2 a:hover {
  color: var(--sky);
}

.overview-links {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.overview-links a {
  color: var(--gray-600);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overview-links a:hover {
  color: var(--sky);
}

.filter-bar,
.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 12px 16px;
}

.search-page-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.search-page-form input {
  width: 100%;
  padding: 14px 18px;
}

.search-status {
  margin: 0 0 18px;
  color: var(--gray-600);
  font-weight: 700;
}

.hidden-card {
  display: none;
}

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

.side-board {
  align-self: start;
  padding: 22px;
  position: sticky;
  top: 88px;
}

.compact-rank .rank-item {
  grid-template-columns: 34px 72px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
}

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

.compact-rank .rank-num {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.player-section {
  padding: 26px 0;
  background: #000000;
}

.player-shell {
  position: relative;
  overflow: hidden;
  max-width: 1080px;
  margin: 0 auto;
  background: #000000;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.15));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  color: var(--white);
  background: var(--sky);
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(2, 132, 199, 0.34);
}

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

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  color: var(--white);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player-shell:hover .player-controls,
.player-shell.is-playing .player-controls,
.player-controls:focus-within {
  opacity: 1;
}

.player-controls button {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 12px;
}

.player-controls button:hover {
  background: rgba(14, 165, 233, 0.72);
}

.player-controls input[type="range"] {
  width: 100%;
  accent-color: var(--sky);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  padding: 34px 0 72px;
}

.detail-card {
  padding: 26px;
  margin-bottom: 24px;
}

.detail-card h1 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.detail-card h2 {
  margin: 24px 0 10px;
  color: var(--gray-800);
  font-size: 24px;
}

.detail-card p {
  color: var(--gray-700);
  font-size: 16px;
}

.lead-text {
  padding: 18px;
  background: #f0f9ff;
  border-left: 4px solid var(--sky);
  border-radius: 16px;
  font-weight: 700;
}

.detail-tags {
  margin-top: 22px;
}

.poster-card {
  overflow: hidden;
  padding: 14px;
  margin-bottom: 22px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, #0ea5e9, #4338ca);
}

.poster-card .btn {
  width: 100%;
  margin-top: 14px;
}

.site-footer {
  color: #cbd5e1;
  background: #111827;
  padding: 48px 0 0;
}

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

.site-footer p {
  max-width: 480px;
  color: #94a3b8;
}

.site-footer h2 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links a {
  padding: 7px 10px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--white);
  background: var(--sky);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: #94a3b8;
}

.footer-bottom button {
  border: 0;
  color: var(--white);
  background: var(--sky);
  border-radius: 999px;
  padding: 9px 14px;
}

@media (max-width: 1180px) {
  .featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero {
    height: auto;
    min-height: 620px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 72px 0 100px;
  }

  .hero-poster {
    width: min(280px, 82vw);
  }

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

  .category-panel,
  .side-board {
    position: static;
  }

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

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

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

  .logo {
    font-size: 20px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 34px;
  }

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

  .btn {
    width: 100%;
  }

  .featured-grid,
  .latest-grid,
  .category-grid,
  .ranking-grid,
  .related-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-bar,
  .search-page-form {
    grid-template-columns: 1fr;
  }

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

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

  .rank-item img {
    width: 78px;
    height: 52px;
  }

  .player-controls {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .player-controls [data-player-time],
  .player-controls [data-player-mute] {
    display: none;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}
