:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-soft: #ffedd5;
  --dark: #111827;
  --dark-soft: #1f2937;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: var(--max);
  min-height: 68px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #fb923c, #f97316 50%, #ef4444);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.34);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 13px;
  color: #334155;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--brand-dark);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(320px, 26vw);
  min-width: 220px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 9px 10px 9px 15px;
  color: var(--text);
  background: transparent;
}

.header-search button,
.primary-button,
.ghost-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, var(--brand));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.28);
}

.header-search button {
  padding: 8px 15px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: var(--dark);
  background: var(--brand-soft);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--dark);
}

.hero-slide {
  position: relative;
  display: none;
  min-height: 660px;
  isolation: isolate;
}

.hero-slide::before {
  position: absolute;
  inset: -30px;
  z-index: -2;
  content: "";
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.48;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.06);
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 18% 22%, rgba(249, 115, 22, 0.48), transparent 28%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.76) 42%, rgba(15, 23, 42, 0.38)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.98), transparent 46%);
}

.hero-slide.is-active {
  display: block;
  animation: fadeIn 0.5s ease both;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.62fr);
  gap: 50px;
  align-items: center;
  max-width: var(--max);
  min-height: 660px;
  margin: 0 auto;
  padding: 84px 20px 92px;
}

.hero-kicker,
.page-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 7px 12px;
  color: #fed7aa;
  border: 1px solid rgba(251, 146, 60, 0.45);
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.13);
  font-size: 13px;
  font-weight: 800;
}

.hero-content h1 {
  margin: 22px 0 14px;
  max-width: 790px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.83);
  font-size: 18px;
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta span,
.detail-meta span,
.card-meta span,
.rank-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
}

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

.hero-poster-card {
  position: relative;
  max-width: 390px;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
  transform: perspective(900px) rotateY(-5deg) rotateX(2deg);
}

.hero-poster-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hero-poster-card:hover img {
  transform: scale(1.06);
}

.hero-poster-info {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(14px);
}

.hero-poster-info strong {
  display: block;
  font-size: 18px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.46), transparent 28%),
    linear-gradient(135deg, #111827, #1e293b 54%, #431407);
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px 20px 74px;
}

.page-hero h1 {
  max-width: 820px;
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 20px 70px;
}

.section {
  margin-top: 46px;
}

.section:first-child {
  margin-top: 0;
}

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-heading p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: var(--brand-dark);
  border-radius: 999px;
  background: var(--brand-soft);
  font-weight: 800;
  white-space: nowrap;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 22px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card::after {
  position: absolute;
  top: -34px;
  right: -34px;
  width: 110px;
  height: 110px;
  content: "";
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.15);
}

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

.category-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.category-card span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 13px;
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-wrap::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), transparent 44%);
  opacity: 0.8;
}

.quality-badge,
.rank-badge,
.play-badge {
  position: absolute;
  z-index: 2;
}

.quality-badge {
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  top: 12px;
  left: 12px;
  display: grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.74);
  font-weight: 900;
}

.play-badge {
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.38);
}

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

.movie-body h3 {
  display: -webkit-box;
  min-height: 2.8em;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 900;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-body p {
  display: -webkit-box;
  min-height: 3.95em;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-meta span {
  color: #475569;
  background: #f1f5f9;
}

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

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 800;
}

.library-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.local-search {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  padding: 12px 16px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-buttons button {
  border: 0;
  padding: 9px 13px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  cursor: pointer;
  font-weight: 800;
}

.filter-buttons button.is-active {
  color: #ffffff;
  background: var(--brand);
}

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

.empty-state {
  display: none;
  padding: 34px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 22px;
  background: #ffffff;
}

.empty-state.is-visible {
  display: block;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 72px 92px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: #ffffff;
  border-radius: 20px;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  font-size: 20px;
  font-weight: 900;
}

.rank-poster {
  width: 92px;
  overflow: hidden;
  border-radius: 15px;
  background: #111827;
}

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

.rank-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-content p {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-meta span {
  color: #475569;
  background: #f1f5f9;
}

.rank-action {
  color: var(--brand-dark);
  font-weight: 900;
  white-space: nowrap;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-hero {
  color: #ffffff;
  background: var(--dark);
  isolation: isolate;
}

.detail-hero-bg {
  position: relative;
  overflow: hidden;
}

.detail-hero-bg::before {
  position: absolute;
  inset: -30px;
  z-index: -2;
  content: "";
  background-image: var(--detail-image);
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.08);
}

.detail-hero-bg::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 12% 20%, rgba(249, 115, 22, 0.36), transparent 28%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.84) 44%, rgba(15, 23, 42, 0.56)),
    linear-gradient(0deg, #0f172a, transparent 60%);
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px 20px 70px;
}

.detail-cover {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

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

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-info .one-line {
  max-width: 840px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.detail-meta span {
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.12);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

.content-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.content-card {
  overflow: hidden;
  margin-bottom: 24px;
}

.content-card-body {
  padding: 24px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.25;
}

.content-card p {
  margin: 0 0 16px;
  color: #334155;
}

.player-frame {
  position: relative;
  overflow: hidden;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.18), rgba(2, 6, 23, 0.38));
  cursor: pointer;
}

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

.player-play {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.95);
  box-shadow: 0 20px 46px rgba(249, 115, 22, 0.38);
  font-size: 34px;
}

.player-caption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.source-list button {
  border: 0;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  cursor: pointer;
  font-weight: 800;
}

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

.info-table div {
  padding: 13px 14px;
  border-radius: 16px;
  background: #f8fafc;
}

.info-table span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.info-table strong {
  display: block;
  margin-top: 3px;
}

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

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

.related-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 74px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.related-item strong {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: #0f172a;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 38px 20px;
}

.footer-inner strong {
  display: block;
  color: #ffffff;
  font-size: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: #ffffff;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(1.01);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

  .side-card {
    position: static;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 69px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: 14px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 62px;
  }

  .hero-poster-card {
    width: min(360px, 76vw);
    margin: 0;
    transform: none;
  }

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

  .detail-hero-inner {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .library-tools {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 64px;
  }

  .logo {
    font-size: 19px;
  }

  .hero-slide,
  .hero-inner {
    min-height: auto;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .movie-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .section-heading {
    display: block;
  }

  .section-heading .more-link {
    margin-top: 12px;
  }

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

  .rank-action {
    display: none;
  }

  .rank-number {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 16px;
  }

  .rank-poster {
    width: 72px;
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

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

  .info-table {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .poster-wrap img {
    height: 100%;
    aspect-ratio: auto;
  }
}
