:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --blue-500: #3b82f6;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --amber-400: #facc15;
  --amber-600: #d97706;
  --rose-500: #f43f5e;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 22px 50px rgba(2, 132, 199, 0.12);
  --soft-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, var(--sky-50) 58%, #ecfeff 100%);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.is-hidden,
[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(224, 242, 254, 0.96), rgba(239, 246, 255, 0.96), rgba(207, 250, 254, 0.96));
  border-bottom: 1px solid rgba(186, 230, 253, 0.86);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.12);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner,
.section-block,
.detail-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sky-700);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--sky-500), var(--cyan-400));
  box-shadow: 0 12px 22px rgba(14, 165, 233, 0.32);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--sky-500);
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  padding: 9px 13px;
  color: #374151;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--sky-700);
  background: rgba(224, 242, 254, 0.92);
  transform: translateY(-1px);
}

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

.header-search input,
.mobile-search input,
.live-filter {
  width: 230px;
  border: 1px solid var(--sky-200);
  color: #334155;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  border-radius: 999px;
  padding: 10px 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.live-filter:focus {
  border-color: var(--sky-400);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}

.header-search button,
.mobile-search button,
.primary-btn,
.ghost-btn,
.text-link {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.header-search button,
.mobile-search button,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-500), var(--cyan-500));
  box-shadow: 0 14px 24px rgba(14, 165, 233, 0.3);
}

.header-search button,
.mobile-search button {
  padding: 10px 16px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--sky-700);
  background: rgba(224, 242, 254, 0.9);
}

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

.mobile-nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-400), var(--blue-500), var(--cyan-400));
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(0deg, #ffffff 0%, rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
  background-image: linear-gradient(90deg, rgba(2, 132, 199, 0.88), rgba(59, 130, 246, 0.72), rgba(6, 182, 212, 0.54)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.34), transparent 28%), radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.3), transparent 32%), rgba(0, 0, 0, 0.12);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 44px;
  padding: 64px 0 84px;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker,
.section-heading span,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--sky-700);
  background: rgba(224, 242, 254, 0.92);
  border: 1px solid rgba(186, 230, 253, 0.8);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
}

.hero h1,
.hero h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-shadow: 0 16px 35px rgba(0, 0, 0, 0.25);
}

.hero p {
  max-width: 680px;
  margin: 24px 0 0;
  color: #f0f9ff;
  font-size: clamp(18px, 2.2vw, 25px);
}

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

.hero-tags {
  margin-top: 26px;
}

.hero-tags span,
.tag-row span,
.filter-chips button {
  border: 1px solid rgba(186, 230, 253, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.hero-poster {
  position: relative;
  align-self: center;
  overflow: hidden;
  min-height: 455px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.28), rgba(255, 255, 255, 0.1));
  box-shadow: 0 34px 70px rgba(15, 23, 42, 0.32);
  transform: rotate(2deg);
}

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

.hero-poster span,
.poster-badge {
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(217, 119, 6, 0.32);
}

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

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
}

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

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

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

.section-heading.center {
  display: block;
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
}

.section-heading.small {
  align-items: start;
}

.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p,
.quick-filter p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section-heading a,
.text-link {
  color: var(--sky-700);
  font-weight: 900;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(186, 230, 253, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.category-filter,
.search-panel {
  justify-content: space-between;
  margin-bottom: 30px;
}

.live-filter {
  width: min(420px, 100%);
}

.filter-chips button {
  color: var(--sky-700);
  background: #ffffff;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.filter-chips button:hover,
.filter-chips button.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-500), var(--cyan-500));
  transform: translateY(-1px);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(186, 230, 253, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  border-color: var(--sky-300, #7dd3fc);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.poster-wrap,
.ranking-poster,
.rank-thumb,
.side-poster,
.overview-image,
.category-card {
  background: linear-gradient(135deg, var(--sky-100), #ffffff, #ecfeff);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

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

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

.card-body {
  padding: 16px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-meta span,
.detail-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sky-50);
  color: var(--sky-700);
}

.movie-card h3,
.ranking-card h2,
.overview-card h2 {
  margin: 10px 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.25;
}

.movie-card h3 a:hover,
.ranking-card h2 a:hover,
.overview-card h2 a:hover {
  color: var(--sky-600);
}

.movie-card p,
.ranking-card p,
.overview-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  color: var(--sky-700);
  background: var(--sky-50);
  border-color: var(--sky-200);
}

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

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

.category-card {
  position: relative;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  color: #ffffff;
  box-shadow: var(--soft-shadow);
  background-image: linear-gradient(180deg, rgba(2, 132, 199, 0.16), rgba(2, 132, 199, 0.78)), var(--category-image);
  background-position: center;
  background-size: cover;
}

.category-card span {
  font-size: 24px;
  font-weight: 900;
}

.category-card strong {
  max-width: 420px;
  margin-top: 7px;
  color: #e0f2fe;
  font-size: 14px;
}

.rank-panel,
.detail-info,
.side-box,
.player-card {
  border: 1px solid rgba(186, 230, 253, 0.76);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
}

.rank-panel {
  padding: 22px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 34px 58px minmax(0, 1fr) 48px;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: var(--sky-50);
  transform: translateX(3px);
}

.rank-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--sky-500);
  font-weight: 900;
}

.rank-item:nth-child(1) .rank-number {
  background: var(--amber-400);
}

.rank-item:nth-child(2) .rank-number {
  background: #94a3b8;
}

.rank-item:nth-child(3) .rank-number {
  background: var(--amber-600);
}

.rank-thumb {
  overflow: hidden;
  height: 58px;
  border-radius: 14px;
}

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

.rank-text {
  min-width: 0;
}

.rank-text strong,
.rank-text em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-text strong {
  font-size: 14px;
}

.rank-text em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.rank-score {
  color: var(--amber-600);
  font-weight: 900;
  text-align: right;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-400), var(--blue-500), var(--cyan-400));
}

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

.compact-hero > div {
  padding: 58px 0;
}

.page-hero h1,
.page-hero p {
  color: #ffffff;
  max-width: 760px;
}

.page-hero .breadcrumb {
  margin-top: 18px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #e0f2fe;
  font-size: 14px;
  font-weight: 800;
}

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

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

.overview-card {
  overflow: hidden;
  border: 1px solid rgba(186, 230, 253, 0.74);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.overview-card > div {
  padding: 22px;
}

.overview-image {
  min-height: 170px;
  display: flex;
  align-items: end;
  padding: 22px;
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  background-image: linear-gradient(180deg, rgba(2, 132, 199, 0.1), rgba(2, 132, 199, 0.76)), var(--overview-image);
  background-size: cover;
  background-position: center;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(186, 230, 253, 0.76);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--soft-shadow);
}

.ranking-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
}

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

.ranking-poster strong {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--amber-400));
}

.detail-wrap {
  padding: 34px 0 10px;
}

.detail-breadcrumb {
  color: var(--sky-700);
  margin-bottom: 22px;
}

.detail-breadcrumb a:hover {
  color: var(--sky-500);
}

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

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

.player-card {
  overflow: hidden;
  padding: 0;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: 26px;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12), rgba(2, 6, 23, 0.64));
  cursor: pointer;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sky-500), var(--cyan-500));
  box-shadow: 0 18px 36px rgba(14, 165, 233, 0.42);
  font-size: 34px;
  text-indent: 4px;
}

.play-layer strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.detail-info {
  padding: 28px;
}

.detail-info h1 {
  margin-bottom: 16px;
}

.detail-info h2,
.side-box h2 {
  margin: 28px 0 12px;
  color: #0f172a;
  font-size: 22px;
}

.detail-info p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
}

.detail-tags {
  margin: 18px 0 4px;
}

.detail-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 92px;
}

.side-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

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

.side-poster > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: #ffffff;
}

.side-poster strong {
  color: var(--amber-600);
  font-size: 26px;
}

.side-poster span {
  color: var(--muted);
  font-size: 14px;
}

.side-box {
  padding: 20px;
}

.side-box h2 {
  margin-top: 0;
}

.side-box dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
  font-size: 14px;
}

.side-box dt {
  color: var(--muted);
}

.side-box dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
}

.side-box a {
  color: var(--sky-700);
}

.related-section {
  padding-top: 28px;
}

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

.movie-card.compact .card-body {
  padding: 12px;
}

.movie-card.compact p {
  display: none;
}

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

.site-footer {
  margin-top: 50px;
  padding: 44px 0 26px;
  border-top: 1px solid var(--sky-200);
  background: linear-gradient(180deg, var(--sky-50), var(--sky-100));
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-about {
  max-width: 620px;
}

.footer-brand {
  font-size: 22px;
  font-weight: 900;
}

.footer-about p,
.copyright {
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--sky-700);
  background: #ffffff;
  font-weight: 800;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(186, 230, 253, 0.85);
}

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

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

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

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .hero,
  .hero-content {
    min-height: 680px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 46px;
  }

  .hero-poster {
    width: min(260px, 70vw);
    min-height: 320px;
    margin: 0 auto;
  }

  .hero-poster img {
    height: 320px;
  }

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

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

  .detail-side {
    position: static;
  }

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

@media (max-width: 680px) {
  .header-inner,
  .footer-inner,
  .section-block,
  .detail-wrap,
  .page-hero > div,
  .hero-content,
  .mobile-panel,
  .copyright {
    width: min(100% - 24px, 1180px);
  }

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

  .brand-text small {
    font-size: 11px;
  }

  .mobile-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mobile-search input {
    width: 100%;
  }

  .hero,
  .hero-content {
    min-height: 720px;
  }

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

  .hero p {
    font-size: 17px;
  }

  .hero-actions {
    width: 100%;
  }

  .primary-btn,
  .ghost-btn {
    flex: 1 1 150px;
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-block;
    margin-top: 10px;
  }

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

  .card-body {
    padding: 13px;
  }

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

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

  .ranking-card {
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 12px;
  }

  .footer-inner {
    display: block;
  }

  .footer-links {
    margin-top: 20px;
  }
}

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

  .hero-controls {
    bottom: 26px;
  }

  .filter-panel {
    align-items: stretch;
  }

  .live-filter {
    width: 100%;
  }

  .ranking-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }
}
