@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;700;900&display=swap");

:root {
  --primary-50: #f0f4f8;
  --primary-100: #d9e2ec;
  --primary-600: #486581;
  --primary-700: #334e68;
  --primary-800: #243b53;
  --primary-900: #102a43;
  --accent: #ffc107;
  --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;
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 4px 20px -2px rgba(0, 0, 0, 0.10), 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 18px 50px rgba(15, 23, 42, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--slate-50) 0%, #ffffff 48%, var(--primary-50) 100%);
}

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

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

img.is-missing {
  display: none;
}

button,
input,
select {
  font: inherit;
}

.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.95);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-900));
  box-shadow: var(--shadow-medium);
  font-size: 15px;
}

.brand-text strong {
  display: block;
  font-size: 20px;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.brand-text small {
  display: block;
  margin-top: -2px;
  color: var(--slate-500);
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--slate-600);
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-800);
  background: var(--primary-100);
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.big-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  background: #ffffff;
  color: var(--slate-800);
  outline: none;
  transition: 0.2s ease;
}

.nav-search input {
  width: 240px;
  padding: 10px 14px;
}

.nav-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 4px rgba(72, 101, 129, 0.12);
}

.nav-search button,
.mobile-search button,
.big-search button {
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  font-weight: 800;
  padding: 10px 16px;
}

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

.mobile-nav {
  display: none;
  border-top: 1px solid var(--slate-200);
  padding: 12px 16px 16px;
  background: #ffffff;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-search {
  margin-top: 8px;
}

.mobile-search input {
  width: 100%;
  padding: 11px 12px;
}

.quick-category-strip {
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  overflow-x: auto;
}

.quick-category-strip a {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--slate-600);
  background: var(--slate-100);
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-900), var(--primary-900) 52%, var(--slate-800));
}

.hero-slider,
.hero-slide {
  min-height: 610px;
}

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

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

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 42%, rgba(255, 193, 7, 0.24), transparent 32%), linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.58) 54%, rgba(15, 23, 42, 0.72));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 610px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
}

.eyebrow,
.eyebrow-text {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: #ffd75e;
  background: rgba(255, 193, 7, 0.14);
  border: 1px solid rgba(255, 193, 7, 0.24);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  margin: 22px 0 18px;
  color: #ffffff;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 700px;
  margin: 0 0 24px;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

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

.hero-tags span,
.detail-tags a,
.tag-list span {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--primary-800);
  background: var(--primary-50);
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 900;
  transition: 0.2s ease;
}

.btn-primary {
  color: var(--slate-900);
  background: linear-gradient(135deg, var(--accent), #ffe082);
  box-shadow: 0 14px 34px rgba(255, 193, 7, 0.24);
}

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

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

.hero-card {
  position: absolute;
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 82px;
  z-index: 2;
  width: min(360px, 38vw);
  padding: 20px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(12px);
}

.hero-card-title {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 900;
}

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

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

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

.search-panel {
  margin-top: -38px;
  position: relative;
  z-index: 8;
  padding: 22px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-strong);
}

.big-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.big-search input {
  padding: 15px 18px;
  font-size: 16px;
}

.big-search button {
  padding: 0 26px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.category-pills a {
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--primary-800);
  background: var(--primary-50);
  font-size: 13px;
  font-weight: 800;
}

.content-section {
  padding: 62px 0;
}

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

.section-kicker {
  color: var(--primary-600);
  font-size: 13px;
  font-weight: 900;
}

.section-heading h2 {
  margin: 7px 0 8px;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  max-width: 680px;
  color: var(--slate-500);
  line-height: 1.8;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(72, 101, 129, 0.24);
  box-shadow: var(--shadow-medium);
}

.poster-link,
.poster-shell {
  display: block;
}

.poster-shell {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(255, 193, 7, 0.32), transparent 34%), linear-gradient(135deg, var(--primary-800), var(--slate-900));
}

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

.movie-card:hover .poster-shell img {
  transform: scale(1.05);
}

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.78), transparent);
}

.poster-play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--slate-900);
  background: var(--accent);
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
}

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

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  min-height: 50px;
  margin: 9px 0 8px;
  color: var(--slate-900);
  font-size: 17px;
  line-height: 1.45;
}

.movie-card h3 a:hover,
.ranking-item h2 a:hover {
  color: var(--primary-700);
}

.movie-card p {
  min-height: 58px;
  margin: 0 0 12px;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-compact h3 {
  min-height: auto;
}

.movie-card-compact p {
  min-height: auto;
  -webkit-line-clamp: 2;
}

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

.rank-box {
  position: sticky;
  top: 118px;
  padding: 24px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--slate-900), var(--primary-800));
  box-shadow: var(--shadow-strong);
}

.rank-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-weight: 900;
}

.rank-title a {
  color: #ffd75e;
  font-size: 13px;
}

.rank-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.rank-list a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.rank-list strong {
  color: var(--accent);
}

.rank-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-list em {
  color: var(--slate-200);
  font-style: normal;
  font-size: 12px;
}

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

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

.category-card {
  min-height: 150px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-700), var(--slate-900));
  box-shadow: var(--shadow-soft);
  transition: 0.22s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-900));
}

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

.category-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 21px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.7;
}

.page-hero {
  padding: 74px 0;
  color: #ffffff;
  background: radial-gradient(circle at 18% 20%, rgba(255, 193, 7, 0.22), transparent 34%), linear-gradient(135deg, var(--slate-900), var(--primary-900));
}

.compact-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -0.05em;
}

.compact-hero p {
  margin: 0;
  max-width: 760px;
  color: #dbeafe;
  line-height: 1.8;
  font-size: 18px;
}

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

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 160px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  padding: 0 14px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 64px 82px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: var(--slate-900);
  background: linear-gradient(135deg, var(--accent), #fff3cd);
  font-size: 20px;
  font-weight: 900;
}

.ranking-poster {
  display: block;
  width: 82px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-800), var(--slate-900));
}

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

.ranking-item h2 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 20px;
}

.ranking-item p {
  margin: 0 0 10px;
  color: var(--slate-500);
  line-height: 1.7;
}

.btn-card {
  color: #ffffff;
  background: var(--primary-700);
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--slate-900), var(--primary-900));
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.detail-mask {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 24% 34%, rgba(255, 193, 7, 0.22), transparent 35%), linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.60));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 56px 0 64px;
}

.detail-head {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--primary-800), var(--slate-900));
  box-shadow: var(--shadow-strong);
}

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

.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-line {
  max-width: 820px;
  margin: 0 0 20px;
  color: #e2e8f0;
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 800;
}

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

.detail-tags a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 56px 0 72px;
}

.player-card,
.detail-content,
.side-panel {
  border: 1px solid var(--slate-200);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.player-card {
  grid-column: 1 / -1;
  overflow: hidden;
  background: #000000;
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

.play-layer {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.20), rgba(15, 23, 42, 0.62));
}

.play-layer span {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  color: var(--slate-900);
  background: var(--accent);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  font-size: 32px;
}

.play-layer.is-hidden {
  display: none;
}

.detail-content {
  padding: 30px;
}

.detail-content h2,
.side-panel h2 {
  margin: 0 0 16px;
  color: var(--slate-900);
  font-size: 26px;
}

.detail-content p {
  margin: 0 0 24px;
  color: var(--slate-600);
  font-size: 17px;
  line-height: 2;
}

.side-panel {
  padding: 24px;
  align-self: start;
}

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

.side-list a {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-list img {
  width: 56px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: var(--primary-800);
}

.side-list span {
  color: var(--slate-800);
  font-weight: 800;
  line-height: 1.4;
}

.side-list small {
  display: block;
  margin-top: 4px;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 700;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer-brand {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.site-footer p {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--slate-400);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
}

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

.footer-copy {
  color: var(--slate-500);
  font-size: 13px;
}

[data-search-card].is-hidden {
  display: none;
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

  .rank-box {
    position: static;
  }

  .hero-card {
    display: none;
  }
}

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

  .brand-text strong {
    font-size: 17px;
  }

  .quick-category-strip {
    justify-content: flex-start;
  }

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

  .hero-content {
    padding: 34px 0 62px;
  }

  .hero-actions,
  .big-search,
  .filter-bar,
  .ranking-item,
  .detail-head,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .big-search button {
    width: 100%;
  }

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

  .movie-card-body {
    padding: 13px;
  }

  .movie-card h3 {
    font-size: 15px;
  }

  .detail-cover {
    width: min(260px, 78vw);
  }

  .detail-layout {
    padding-top: 34px;
  }

  .ranking-item {
    align-items: start;
  }

  .btn-card {
    width: 100%;
  }
}

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

  .movie-grid,
  .archive-grid,
  .small-grid,
  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

  .search-panel {
    border-radius: 22px;
    padding: 16px;
  }

  .content-section {
    padding: 44px 0;
  }

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