:root {
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #ecfeff;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(8, 145, 178, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #ecfeff 0%, #ffffff 30%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

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.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 0 8px rgba(6, 182, 212, 0.12);
}

.brand-text strong {
  display: block;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan-dark), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link {
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan-dark);
}

.nav-drop {
  position: relative;
}

.nav-drop-button {
  border: 0;
  background: transparent;
  padding: 0;
}

.nav-drop-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  width: 210px;
  padding: 10px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(6, 182, 212, 0.12);
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

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

.nav-drop-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
}

.nav-drop-panel a:hover {
  color: var(--cyan-dark);
  background: #ecfeff;
}

.header-search {
  position: relative;
  width: 280px;
}

.search-form {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: white;
  overflow: hidden;
  transition: 0.2s ease;
}

.search-form:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.search-form input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  background: transparent;
}

.search-form button {
  border: 0;
  padding: 9px 14px;
  color: var(--cyan-dark);
  background: transparent;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 80;
  display: none;
  max-height: 360px;
  overflow-y: auto;
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow);
}

.search-results.is-open {
  display: block;
}

.search-results a {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.search-results a:hover {
  background: #ecfeff;
}

.search-results strong {
  color: #111827;
}

.search-results span {
  color: var(--muted);
  font-size: 12px;
}

.mobile-toggle,
.mobile-nav {
  display: none;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: white;
  background: #0f172a;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
  padding: 90px max(32px, calc((100vw - 1180px) / 2)) 116px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.4), transparent 30%), linear-gradient(120deg, #0891b2, #2563eb 55%, #0f172a);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(3px) saturate(1.1);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.78), rgba(8, 145, 178, 0.42), rgba(15, 23, 42, 0.72));
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 1;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #06b6d4;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #a5f3fc;
}

.hero-content h1 {
  margin: 16px 0 18px;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero-content p {
  max-width: 740px;
  margin: 0 0 24px;
  color: #ecfeff;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #0e7490;
  background: #cffafe;
}

.hero-content .hero-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn.primary {
  color: var(--cyan-dark);
  background: white;
  box-shadow: 0 16px 32px rgba(255, 255, 255, 0.18);
}

.btn.secondary {
  color: white;
  background: rgba(14, 116, 144, 0.5);
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(10px);
}

.btn.ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn.full {
  width: 100%;
}

.hero-poster {
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 8px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: linear-gradient(135deg, #0e7490, #1d4ed8);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

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

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

.hero-controls button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

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

.hero-dot {
  width: 11px !important;
  height: 11px !important;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.38) !important;
}

.hero-dot.is-active {
  width: 30px !important;
  background: white !important;
}

.quick-search-section {
  margin-top: -32px;
  position: relative;
  z-index: 5;
}

.quick-search-card {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  align-items: center;
  gap: 28px;
  padding: 26px;
  border-radius: 26px;
  background: white;
  box-shadow: var(--shadow);
}

.quick-search-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.quick-search-card p {
  margin: 0;
  color: var(--muted);
}

.wide-search {
  position: relative;
  display: flex;
  overflow: visible;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  background: #f0f9ff;
}

.wide-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 15px 18px;
  background: transparent;
}

.wide-search button {
  border: 0;
  border-radius: 999px;
  margin: 5px;
  padding: 0 24px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.search-results.wide {
  top: calc(100% + 12px);
}

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

.cyan-bg {
  background: linear-gradient(180deg, #ecfeff, #ffffff);
}

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

.section-heading h2,
.ranking-head h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading a,
.panel-link {
  color: var(--cyan-dark);
  font-weight: 800;
}

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

.category-tile,
.category-page-card {
  overflow: hidden;
  border: 1px solid rgba(6, 182, 212, 0.12);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.category-main,
.category-page-head {
  display: grid;
  gap: 12px;
  padding: 24px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.category-main span,
.category-page-head span {
  font-size: 22px;
  font-weight: 900;
}

.category-main strong,
.category-page-head p {
  margin: 0;
  color: #ecfeff;
  font-weight: 500;
  line-height: 1.65;
}

.category-samples,
.mini-links {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.category-samples a,
.mini-links a {
  padding: 9px 10px;
  color: #475569;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 13px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(2, 132, 199, 0.12);
  border-radius: 22px;
  background: white;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #67e8f9, #2563eb);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.52));
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--cyan-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: 0.2s ease;
}

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

.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.28);
}

.movie-info {
  padding: 16px;
}

.movie-info h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-info h2 a:hover {
  color: var(--cyan-dark);
}

.movie-info p {
  min-height: 48px;
  margin: 0 0 12px;
  color: #64748b;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
  line-height: 1.7;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  color: #64748b;
  font-size: 12px;
}

.tag-row span {
  padding: 4px 8px;
}

.ranking-panel,
.side-card,
.watch-card {
  border: 1px solid rgba(6, 182, 212, 0.12);
  border-radius: 26px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.ranking-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  color: #334155;
  background: #f8fafc;
}

.ranking-list a:hover {
  color: var(--cyan-dark);
  background: #ecfeff;
}

.ranking-list span {
  color: #94a3b8;
}

.page-hero {
  padding: 78px 0;
  color: white;
  background: radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.42), transparent 34%), linear-gradient(135deg, #0e7490, #2563eb 60%, #111827);
}

.small-hero h1,
.category-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -0.06em;
}

.small-hero p,
.category-hero p {
  max-width: 760px;
  margin: 0;
  color: #ecfeff;
  font-size: 18px;
  line-height: 1.75;
}

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

.breadcrumb a:hover {
  color: white;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid #bae6fd;
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.filter-search {
  flex: 1 1 280px;
}

.filter-panel input,
.filter-panel select {
  min-height: 42px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 0 12px;
  outline: 0;
  background: #f8fafc;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

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

.all-index {
  display: grid;
  gap: 32px;
}

.index-group {
  padding: 24px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.index-group h2 {
  margin: 0 0 18px;
}

.index-group h2 a {
  color: var(--cyan-dark);
}

.all-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.all-links a {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid #e0f2fe;
  border-radius: 14px;
  background: #f8fafc;
}

.all-links a:hover {
  border-color: #67e8f9;
  background: #ecfeff;
}

.all-links span {
  color: #64748b;
  font-size: 12px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0e7490, #1d4ed8);
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: blur(5px) saturate(1.1);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(2, 132, 199, 0.54));
}

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

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

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  border: 6px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

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

.detail-copy h1 {
  margin: 12px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.08em;
}

.one-line {
  max-width: 840px;
  margin: 0 0 24px;
  color: #ecfeff;
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
  color: #dffaff;
}

.detail-meta span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.watch-card {
  padding: 24px;
}

.watch-card h2,
.side-card h2,
.article-block h2 {
  margin: 0 0 18px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: black;
  aspect-ratio: 16 / 9;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: black;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: rgba(0, 0, 0, 0.34);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  color: var(--cyan-dark);
  border-radius: 999px;
  background: white;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

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

.watch-summary {
  margin: 18px 0 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.75;
}

.side-card {
  padding: 22px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  margin: 0;
}

.side-card dt {
  color: #64748b;
}

.side-card dd {
  margin: 0;
  color: #0f172a;
  font-weight: 700;
}

.article-block {
  max-width: 960px;
}

.article-block p {
  margin: 0 0 26px;
  color: #334155;
  font-size: 17px;
  line-height: 1.95;
}

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

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #111827, #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 50px 0;
}

.footer-brand {
  margin-bottom: 12px;
  color: white;
  font-size: 26px;
  font-weight: 900;
}

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

.site-footer h2 {
  margin: 0 0 16px;
  color: #67e8f9;
  font-size: 18px;
}

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

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

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

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #64748b;
  text-align: center;
  font-size: 13px;
}

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

  .mobile-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    color: var(--cyan-dark);
    background: #ecfeff;
  }

  .mobile-nav.is-open {
    display: grid;
    gap: 2px;
    padding: 10px 16px 18px;
    background: white;
  }

  .mobile-nav a {
    padding: 13px 14px;
    border-radius: 14px;
    color: #334155;
    background: #f8fafc;
  }

  .hero-slide {
    grid-template-columns: 1fr 260px;
  }

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

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

  .two-column,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

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

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

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

  .hero-carousel {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 56px 18px 98px;
  }

  .hero-poster {
    width: min(240px, 72vw);
    margin: 0 auto;
  }

  .quick-search-card,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .wide-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .wide-search button {
    min-height: 44px;
  }

  .category-grid,
  .category-page-grid,
  .category-movie-grid,
  .ranking-grid,
  .movie-grid,
  .home-grid,
  .related-grid,
  .all-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

  .movie-info {
    padding: 13px;
  }

  .movie-info h2 {
    font-size: 15px;
  }

  .movie-info p {
    font-size: 13px;
  }

  .detail-poster {
    width: min(250px, 72vw);
  }

  .watch-card,
  .side-card,
  .index-group {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .category-grid,
  .category-page-grid,
  .category-movie-grid,
  .ranking-grid,
  .movie-grid,
  .home-grid,
  .related-grid,
  .all-links {
    grid-template-columns: 1fr;
  }

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

  .btn {
    width: 100%;
  }
}
