:root {
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--slate-800);
  background: linear-gradient(135deg, var(--slate-50), var(--slate-100));
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select {
  font: inherit;
}

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

.narrow {
  max-width: 880px;
}

.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);
  backdrop-filter: blur(16px);
}

.nav-shell {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-600));
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(5, 150, 105, 0.28);
  transition: transform 0.25s ease;
}

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

.brand-text {
  font-size: 1.24rem;
  background: linear-gradient(90deg, var(--emerald-600), var(--teal-600));
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: var(--slate-700);
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--emerald-600);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--slate-100);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--slate-700);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--slate-200);
}

.mobile-nav-inner {
  padding: 12px 0 18px;
  display: grid;
  gap: 10px;
}

.page-main {
  min-height: 60vh;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: var(--slate-900);
}

.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-slide img {
  position: absolute;
  inset: 0;
  transform: scale(1.04);
}

.hero-slide.active img {
  animation: heroZoom 9s ease forwards;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(16, 185, 129, 0.28), transparent 28%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.52) 48%, rgba(15, 23, 42, 0.18)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.88), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  padding-top: 86px;
  padding-bottom: 168px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 5px 13px;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-600));
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 750;
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.25);
}

.hero h1,
.hero h2 {
  max-width: 780px;
  margin: 20px 0 12px;
  color: var(--white);
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-lead {
  max-width: 720px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.13rem;
}

.hero-meta {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 650;
}

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

.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, background 0.22s ease, color 0.22s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-600));
  box-shadow: 0 16px 34px rgba(5, 150, 105, 0.32);
}

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

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.hero-prev {
  left: 28px;
}

.hero-next {
  right: 28px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-panel {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(18px);
}

.hero-search label,
.catalog-toolbar label {
  display: grid;
  gap: 6px;
}

.hero-search span,
.catalog-toolbar label span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 750;
}

.hero-search input,
.catalog-toolbar input,
.catalog-toolbar select {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  color: var(--slate-900);
  background: rgba(255, 255, 255, 0.92);
}

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

.hero-chips a {
  padding: 8px 13px;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease;
}

.hero-chips a:hover {
  background: rgba(255, 255, 255, 0.24);
}

.section {
  padding: 72px 0;
}

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

.section-soft {
  background: linear-gradient(135deg, var(--emerald-50), #f0fdfa);
}

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

.section-heading h2,
.catalog-toolbar h2,
.related-panel h2,
.detail-card h2,
.site-footer h2 {
  margin: 0;
  color: var(--slate-900);
  line-height: 1.2;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
}

.section-heading a {
  color: var(--emerald-600);
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-card {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: var(--slate-900);
}

.feature-card img,
.movie-card img,
.rank-card img,
.category-card img,
.category-cover img,
.related-item img {
  transition: transform 0.48s ease;
}

.feature-card:hover img,
.movie-card:hover img,
.rank-card:hover img,
.category-card:hover img,
.category-cover:hover img,
.related-item:hover img {
  transform: scale(1.08);
}

.feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.12));
}

.feature-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 10px;
  color: var(--white);
}

.feature-copy strong {
  font-size: 1.35rem;
  line-height: 1.2;
}

.feature-copy em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

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

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background: var(--slate-900);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.18));
}

.category-card span,
.category-card em {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  color: var(--white);
}

.category-card span {
  bottom: 60px;
  font-size: 1.18rem;
  font-weight: 850;
}

.category-card em {
  bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-style: normal;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card,
.rank-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-200), var(--slate-100));
}

.card-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 9px;
  color: var(--white);
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(9px);
  font-size: 0.76rem;
  font-weight: 800;
}

.rank-badge {
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-600));
}

.hover-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: var(--white);
  border-radius: 999px;
  background: var(--emerald-600);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-content {
  display: grid;
  gap: 8px;
  padding: 15px;
}

.card-content strong {
  color: var(--slate-900);
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-content em,
.related-item em {
  color: var(--slate-500);
  font-style: normal;
  font-size: 0.82rem;
}

.card-desc {
  color: var(--slate-600);
  font-size: 0.88rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

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

.wide-rank-card {
  flex-direction: row;
  min-height: 180px;
}

.wide-rank-card .poster-wrap {
  width: 128px;
  flex: 0 0 128px;
  aspect-ratio: auto;
}

.wide-rank-card .card-content {
  justify-content: center;
}

.page-hero {
  padding: 78px 0;
}

.gradient-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, var(--emerald-600), var(--teal-600));
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.category-list {
  display: grid;
  gap: 24px;
}

.category-tile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 26px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.category-cover {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--slate-900);
}

.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent 50%);
}

.category-cover span {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 16px;
  color: var(--white);
  font-weight: 850;
  font-size: 1.35rem;
}

.category-copy {
  display: grid;
  align-content: center;
  gap: 12px;
}

.category-copy h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: 1.5rem;
}

.category-copy p {
  margin: 0;
  color: var(--slate-600);
}

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

.mini-links a {
  padding: 7px 11px;
  color: var(--emerald-700);
  border-radius: 999px;
  background: var(--emerald-50);
  font-size: 0.85rem;
  font-weight: 750;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 22px;
  align-items: end;
  margin-bottom: 28px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.96), rgba(13, 148, 136, 0.96));
  box-shadow: var(--shadow-soft);
}

.catalog-toolbar h2 {
  color: var(--white);
  margin-bottom: 8px;
}

.catalog-toolbar p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.toolbar-controls {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 12px;
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 18px;
  color: var(--slate-600);
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--white);
}

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

.player-section {
  padding: 28px 0 42px;
  background: #020617;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.breadcrumbs a:hover {
  color: var(--white);
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.2)),
    rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-600));
  box-shadow: 0 18px 36px rgba(5, 150, 105, 0.34);
  font-size: 2rem;
}

.player-overlay strong {
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  line-height: 1.2;
}

.player-overlay em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 750;
}

.movie-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(280px, 0.9fr);
  gap: 28px;
}

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

.detail-card,
.related-panel {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-card h1 {
  margin: 16px 0 12px;
  color: var(--slate-900);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--slate-600);
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag-row span {
  padding: 7px 11px;
  color: var(--slate-700);
  border-radius: 999px;
  background: var(--slate-100);
  font-size: 0.85rem;
  font-weight: 700;
}

.one-line {
  margin: 0 0 24px;
  padding: 18px 20px;
  color: var(--emerald-900, #064e3b);
  border-left: 4px solid var(--emerald-600);
  background: var(--emerald-50);
  border-radius: 0 16px 16px 0;
  font-weight: 650;
}

.detail-card p {
  color: var(--slate-700);
  white-space: pre-line;
}

.related-panel {
  position: sticky;
  top: 92px;
  align-self: start;
}

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

.related-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-items: center;
  min-width: 0;
}

.related-item span {
  grid-row: 1 / 3;
  overflow: hidden;
  height: 72px;
  border-radius: 12px;
  background: var(--slate-100);
}

.related-item strong {
  color: var(--slate-900);
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-item:hover strong {
  color: var(--emerald-600);
}

.site-footer {
  color: var(--slate-400);
  background: var(--slate-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding: 52px 0 34px;
}

.footer-brand {
  color: var(--white);
  font-size: 1.2rem;
}

.footer-about p {
  max-width: 460px;
}

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

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

.site-footer a:hover {
  color: var(--emerald-400, #34d399);
}

.footer-bottom {
  padding: 20px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

@keyframes heroZoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.11);
  }
}

@media (max-width: 1080px) {
  .feature-grid,
  .rank-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .catalog-toolbar,
  .movie-detail-layout {
    grid-template-columns: 1fr;
  }

  .related-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero {
    min-height: 780px;
  }

  .hero-content {
    min-height: 620px;
    padding-top: 60px;
    padding-bottom: 235px;
  }

  .hero-arrow {
    top: auto;
    bottom: 156px;
  }

  .hero-prev {
    left: 18px;
  }

  .hero-next {
    right: 18px;
  }

  .hero-dots {
    bottom: 150px;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

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

  .feature-grid,
  .category-grid,
  .movie-grid,
  .rank-grid,
  .rank-list,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .feature-card {
    min-height: 300px;
  }

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

  .toolbar-controls {
    grid-template-columns: 1fr;
  }

  .wide-rank-card {
    flex-direction: column;
  }

  .wide-rank-card .poster-wrap {
    width: 100%;
    flex-basis: auto;
    aspect-ratio: 2 / 3;
  }

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

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

  .brand-text {
    font-size: 1.05rem;
  }

  .hero h1,
  .hero h2 {
    font-size: 2.45rem;
  }

  .hero-panel {
    bottom: 12px;
  }

  .hero-search {
    padding: 12px;
  }

  .feature-grid,
  .category-grid,
  .movie-grid,
  .rank-grid,
  .rank-list,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .player-section {
    padding: 18px 0 28px;
  }

  .player-box {
    border-radius: 14px;
  }

  .play-circle {
    width: 64px;
    height: 64px;
  }

  .detail-card,
  .related-panel {
    padding: 20px;
  }
}
