:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: #111827;
  --line: rgba(56, 189, 248, 0.22);
  --line-soft: rgba(59, 130, 246, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --purple: #a855f7;
  --shadow: 0 24px 60px rgba(2, 8, 23, 0.42);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.28), transparent 34rem),
    radial-gradient(circle at 82% 8%, rgba(34, 211, 238, 0.15), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(37, 99, 235, 0.28);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.88), rgba(15, 23, 42, 0.96));
  box-shadow: 0 16px 32px rgba(2, 8, 23, 0.24);
  backdrop-filter: blur(18px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.24);
  transition: transform 0.25s ease;
}

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

.brand-text,
.footer-brand span:last-child {
  font-size: 1.22rem;
  color: transparent;
  background: linear-gradient(90deg, #60a5fa, #67e8f9, #60a5fa);
  background-clip: text;
  -webkit-background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links > a,
.nav-dropdown > button {
  border: 0;
  background: transparent;
  color: #dbeafe;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-links > a:hover,
.nav-dropdown > button:hover {
  color: var(--cyan);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  display: grid;
  min-width: 180px;
  padding: 8px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s ease;
}

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

.nav-dropdown-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.nav-dropdown-menu a:hover {
  color: var(--cyan);
  background: rgba(30, 64, 175, 0.38);
}

.nav-search,
.mobile-search,
.search-page-form {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.62);
}

.nav-search input,
.mobile-search input,
.search-page-form input {
  width: 230px;
  min-width: 0;
  padding: 11px 12px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.nav-search button,
.mobile-search button,
.search-page-form button {
  align-self: stretch;
  padding: 0 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.62);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: #e2e8f0;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.48);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1s ease, transform 1.2s ease;
  pointer-events: none;
}

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

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

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.94)),
    linear-gradient(90deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.2) 58%, rgba(2, 6, 23, 0.72));
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100% - 1180px) / 2));
  bottom: 74px;
  z-index: 4;
  width: min(700px, calc(100% - 64px));
}

.hero-label,
.page-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
}

.hero-content h1 {
  margin: 0 0 16px;
  font-size: clamp(2.3rem, 6vw, 4.9rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 18px;
  color: #dbeafe;
  font-size: 1.1rem;
  line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  padding: 5px 10px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(14, 116, 144, 0.24);
  font-size: 0.78rem;
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.34);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.ghost-button {
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.5);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  font-size: 2rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-2px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.25s ease, background 0.25s ease;
}

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

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

.home-section {
  margin-bottom: 64px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
}

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

.section-more {
  color: var(--cyan);
  font-weight: 800;
}

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

.category-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 28px 68px rgba(2, 8, 23, 0.55);
}

.category-icon {
  font-size: 2.4rem;
}

.category-card strong {
  font-size: 1.18rem;
}

.category-card small {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.category-red {
  background: linear-gradient(135deg, #ef4444, #be123c);
}

.category-blue {
  background: linear-gradient(135deg, #2563eb, #0891b2);
}

.category-purple {
  background: linear-gradient(135deg, #7c3aed, #db2777);
}

.category-amber {
  background: linear-gradient(135deg, #d97706, #ea580c);
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.94));
  box-shadow: 0 18px 38px rgba(2, 8, 23, 0.25);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  border-color: rgba(34, 211, 238, 0.62);
  box-shadow: 0 26px 58px rgba(2, 8, 23, 0.46);
  transform: translateY(-7px);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.34), rgba(15, 23, 42, 0.78));
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.78));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.movie-card:hover .poster-image {
  transform: scale(1.08);
}

.movie-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(8, 47, 73, 0.82);
  backdrop-filter: blur(10px);
}

.movie-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .movie-play {
  opacity: 1;
  transform: translateY(0);
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.movie-title {
  overflow: hidden;
  color: #ffffff;
  font-size: 1.04rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-line {
  min-height: 44px;
  color: #b6c1d1;
  font-size: 0.9rem;
  line-height: 1.62;
}

.movie-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

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

.rank-panel,
.detail-main-card,
.detail-side-card,
.search-panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.rank-title {
  margin-bottom: 16px;
  font-size: 1.45rem;
  font-weight: 900;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 34px 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.rank-row:hover {
  background: rgba(30, 64, 175, 0.34);
}

.rank-number,
.rank-large-number {
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-weight: 900;
}

.rank-cover {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  background: rgba(37, 99, 235, 0.2);
}

.rank-image,
.rank-large-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

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

.rank-copy small,
.rank-large-content small {
  color: var(--muted);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.22), transparent 26rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.54));
}

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

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 1.08rem;
  line-height: 1.85;
}

.archive-section {
  margin-top: 12px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 30px;
}

.pagination:last-child {
  margin: 36px 0 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.74);
}

.pagination a:hover,
.pagination .is-current {
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.6);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

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

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
}

.detail-wrap {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  padding: 80px 0 58px;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  background: rgba(30, 64, 175, 0.28);
  box-shadow: var(--shadow);
}

.detail-poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-copy p {
  max-width: 760px;
  margin: 0 0 20px;
  color: #dbeafe;
  font-size: 1.12rem;
  line-height: 1.85;
}

.detail-content {
  padding-top: 40px;
}

.player-section {
  margin-bottom: 36px;
}

.player-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.player-title-row h2 {
  margin: 0;
  font-size: 1.7rem;
}

.player-title-row span {
  color: var(--cyan);
  font-weight: 800;
}

.video-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  background: #000000;
  box-shadow: var(--shadow);
}

.video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(37, 99, 235, 0.32), rgba(2, 6, 23, 0.76)),
    rgba(2, 6, 23, 0.52);
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-start-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 46px rgba(37, 99, 235, 0.48);
  font-size: 2rem;
}

.player-start strong {
  display: block;
  font-size: 1.2rem;
}

.video-stage.is-playing .player-start,
.video-stage.is-loading .player-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-grid-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  margin-bottom: 54px;
}

.detail-main-card,
.detail-side-card {
  padding: 28px;
}

.detail-main-card h2,
.detail-side-card h2 {
  margin: 0 0 16px;
  font-size: 1.45rem;
}

.detail-main-card p {
  margin: 0 0 24px;
  color: #cbd5e1;
  line-height: 1.9;
}

.detail-main-card p:last-child {
  margin-bottom: 0;
}

.detail-side-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-side-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

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

.detail-side-card strong {
  text-align: right;
}

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

.rank-large-row {
  display: grid;
  grid-template-columns: 54px 160px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.rank-large-row:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(30, 41, 59, 0.9);
}

.rank-large-number {
  font-size: 1.4rem;
}

.rank-large-cover {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 10;
  background: rgba(37, 99, 235, 0.2);
}

.rank-large-content {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.rank-large-content strong {
  font-size: 1.18rem;
}

.rank-large-content em {
  color: #cbd5e1;
  font-style: normal;
  line-height: 1.7;
}

.search-panel {
  padding: 28px;
}

.search-page-form {
  max-width: 760px;
  margin-bottom: 18px;
}

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

.search-page-form button {
  padding: 0 28px;
}

.search-status {
  margin-bottom: 24px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), #020617);
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 28px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-grid p {
  margin: 14px 0 0;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-grid ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a:hover {
  color: var(--cyan);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: #64748b;
  font-size: 0.9rem;
}

@media (max-width: 1080px) {
  .nav-links {
    gap: 16px;
  }

  .nav-search input {
    width: 170px;
  }

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

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

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

  .rank-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-slider {
    height: 520px;
  }

  .hero-content {
    bottom: 70px;
  }

  .hero-arrow {
    display: none;
  }

  .grid-four,
  .grid-three,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-wrap {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .detail-poster {
    width: 210px;
  }

  .rank-large-row {
    grid-template-columns: 44px 100px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .navbar,
  .content-wrap,
  .page-hero > div,
  .detail-wrap,
  .footer-grid,
  .footer-bottom,
  .mobile-panel {
    width: min(100% - 24px, 1180px);
  }

  .hero-slider {
    height: 500px;
  }

  .hero-content {
    left: 18px;
    width: calc(100% - 36px);
  }

  .hero-content p {
    font-size: 0.98rem;
  }

  .grid-four,
  .grid-three,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .player-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-large-row {
    grid-template-columns: 38px 82px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-large-content em,
  .rank-large-content .tag-row {
    display: none;
  }

  .detail-poster {
    width: 180px;
  }

  .detail-main-card,
  .detail-side-card,
  .search-panel {
    padding: 20px;
  }
}
