:root {
  --yellow: #facc15;
  --yellow-dark: #ca8a04;
  --yellow-soft: #fef9c3;
  --green-soft: #ecfdf5;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(135deg, #fefce8 0%, #ffffff 48%, #ecfdf5 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.95), rgba(254, 243, 199, 0.95), rgba(187, 247, 208, 0.95));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 28px rgba(202, 138, 4, 0.12);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
  color: #713f12;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #eab308);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.28);
}

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

.nav-link {
  padding: 9px 16px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ca8a04;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(202, 138, 4, 0.13);
}

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

.header-search input,
.large-search input {
  width: 220px;
  padding: 10px 15px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.82);
  transition: all 0.25s ease;
}

.header-search input:focus,
.large-search input:focus {
  background: #ffffff;
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.25);
}

.header-search button,
.large-search button {
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  color: #111827;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.25s ease;
}

.header-search button:hover,
.large-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(202, 138, 4, 0.18);
}

.mobile-menu-button,
.mobile-panel,
.mobile-bottom {
  display: none;
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 72px;
  width: min(1180px, calc(100% - 40px));
  transform: translateX(-50%);
  color: #ffffff;
}

.hero-badge {
  display: inline-block;
  padding: 9px 18px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #1f2937;
  font-weight: 900;
  background: var(--yellow);
  box-shadow: 0 12px 26px rgba(250, 204, 21, 0.35);
}

.hero-content h1,
.hero-content h2 {
  max-width: 900px;
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

.primary-button,
.ghost-button,
.detail-actions button,
.detail-actions a,
.rank-watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.25s ease;
}

.primary-button {
  color: #111827;
  background: var(--yellow);
  box-shadow: 0 18px 36px rgba(250, 204, 21, 0.28);
}

.primary-button:hover,
.detail-actions button:hover,
.detail-actions a:hover,
.rank-watch:hover {
  transform: scale(1.04);
  box-shadow: 0 20px 36px rgba(202, 138, 4, 0.24);
}

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

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  cursor: pointer;
  font-size: 42px;
  line-height: 1;
  transition: all 0.25s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.42);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--yellow);
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 20px 0;
}

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

.section-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1f2937;
  font-size: clamp(26px, 3vw, 36px);
}

.section-more {
  color: #ca8a04;
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  padding: 24px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

.category-tile:hover::before {
  opacity: 0.12;
}

.category-tile span {
  position: relative;
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 16px;
  font-size: 26px;
  background: linear-gradient(135deg, #facc15, #ca8a04);
}

.category-tile strong {
  position: relative;
  display: block;
  font-size: 19px;
}

.category-tile.hot::before { background: linear-gradient(135deg, #ef4444, #f97316); }
.category-tile.blue::before { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.category-tile.dark::before { background: linear-gradient(135deg, #4b5563, #111827); }
.category-tile.gold::before { background: linear-gradient(135deg, #f59e0b, #facc15); }
.category-tile.pink::before { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.category-tile.orange::before { background: linear-gradient(135deg, #f97316, #dc2626); }
.category-tile.purple::before { background: linear-gradient(135deg, #8b5cf6, #4f46e5); }
.category-tile.green::before { background: linear-gradient(135deg, #22c55e, #14b8a6); }

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 320px);
  gap: 24px;
  overflow-x: auto;
  padding: 4px 4px 22px;
  scroll-snap-type: x mandatory;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.10);
  transition: all 0.3s ease;
  scroll-snap-align: start;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.65));
  opacity: 0.78;
}

.poster-category,
.poster-duration,
.poster-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 800;
}

.poster-category {
  top: 12px;
  left: 12px;
  padding: 6px 11px;
  color: #111827;
  background: var(--yellow);
  font-size: 12px;
}

.poster-duration {
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.75);
  font-size: 12px;
}

.poster-play {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: rgba(250, 204, 21, 0.92);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: all 0.3s ease;
}

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

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.card-desc {
  min-height: 44px;
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags,
.detail-tags,
.detail-meta,
.rank-info div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span,
.detail-tags span,
.detail-tags a,
.detail-meta span,
.rank-info div span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 700;
}

.detail-tags a {
  color: #111827;
  background: var(--yellow);
}

.movie-card-large .poster-wrap {
  aspect-ratio: 16 / 10;
}

.ranking-panel,
.full-ranking-list,
.sidebar-card,
.movie-info-card,
.player-card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ranking-panel {
  padding: 22px;
}

.ranking-row,
.mini-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ranking-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.ranking-row:last-child {
  border-bottom: 0;
}

.rank-no {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #6b7280;
  background: #f3f4f6;
  font-size: 18px;
  font-weight: 900;
}

.rank-1 {
  color: #ffffff;
  background: linear-gradient(135deg, #facc15, #ca8a04);
}

.rank-2 {
  color: #ffffff;
  background: linear-gradient(135deg, #d1d5db, #6b7280);
}

.rank-3 {
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #c2410c);
}

.mini-card {
  min-width: 0;
  flex: 1;
}

.mini-poster {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

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

.mini-body {
  min-width: 0;
}

.mini-title {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-body p,
.mini-body span {
  display: block;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.discover-card {
  max-width: 980px;
  margin: 72px auto 80px;
  padding: 0 20px;
  text-align: center;
}

.discover-card > div {
  padding: 54px 32px;
  border-radius: 34px;
  background: linear-gradient(90deg, #facc15, #fde68a, #bbf7d0);
  box-shadow: 0 30px 70px rgba(202, 138, 4, 0.24);
}

.discover-card span {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 999px;
  color: #ca8a04;
  background: rgba(255, 255, 255, 0.6);
  font-size: 32px;
}

.discover-card h2 {
  margin: 0 0 14px;
  font-size: 34px;
}

.discover-card p {
  max-width: 600px;
  margin: 0 auto 26px;
  color: #374151;
  line-height: 1.75;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #111827, #78350f 48%, #166534);
  color: #ffffff;
}

.compact-hero {
  min-height: 310px;
  display: flex;
  align-items: flex-end;
  padding: 72px 20px 46px;
}

.compact-hero::before,
.compact-hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(45px);
  opacity: 0.28;
}

.compact-hero::before {
  top: -140px;
  right: 14%;
  background: #facc15;
}

.compact-hero::after {
  left: 8%;
  bottom: -180px;
  background: #22c55e;
}

.compact-hero > div {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.compact-hero h1 {
  max-width: 900px;
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.compact-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.75;
}

.filter-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.filter-tabs a {
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 999px;
  color: #4b5563;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
  font-weight: 800;
}

.filter-tabs a.active,
.filter-tabs a:hover {
  color: #111827;
  background: var(--yellow);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 40px 0 20px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #4b5563;
  background: #ffffff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.pagination a.active,
.pagination a:hover {
  color: #111827;
  background: var(--yellow);
}

.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 20px 70px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 30px;
}

.detail-main {
  min-width: 0;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000000;
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: rgba(250, 204, 21, 0.94);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  cursor: pointer;
  font-size: 30px;
  transition: all 0.25s ease;
}

.video-play-button:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.video-play-button.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.movie-info-card {
  padding: 28px;
}

.movie-info-card h1 {
  margin: 18px 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.detail-meta {
  margin-bottom: 18px;
}

.one-line {
  margin: 0 0 24px;
  color: #374151;
  font-size: 18px;
  line-height: 1.75;
}

.detail-actions {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.detail-actions button:first-child {
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #ec4899);
}

.detail-actions button:nth-child(2) {
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.detail-actions a {
  color: #ffffff;
  background: linear-gradient(135deg, #22c55e, #14b8a6);
}

.detail-text {
  margin-top: 26px;
}

.detail-text h2,
.sidebar-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

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

.review-box {
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fefce8, #ecfdf5);
}

.related-sidebar {
  min-width: 0;
}

.sidebar-card {
  position: sticky;
  top: 94px;
  padding: 22px;
}

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

.full-ranking-list {
  padding: 12px;
}

.full-rank-row {
  display: grid;
  grid-template-columns: 52px 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.full-rank-row:last-child {
  border-bottom: 0;
}

.rank-poster {
  width: 110px;
  height: 140px;
  overflow: hidden;
  border-radius: 16px;
  background: #111827;
}

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

.rank-info h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.rank-info p {
  margin: 0 0 14px;
  color: #4b5563;
  line-height: 1.65;
}

.rank-watch {
  color: #111827;
  background: var(--yellow);
}

.large-search {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.large-search input {
  width: min(480px, 66vw);
}

.search-empty {
  padding: 30px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
  color: #6b7280;
  text-align: center;
  font-size: 18px;
}

.site-footer {
  margin-top: 72px;
  padding: 52px 20px 32px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 16px;
  color: var(--yellow);
}

.site-footer p {
  max-width: 620px;
  margin: 0;
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--yellow);
}

.copyright {
  max-width: 1280px;
  margin: 34px auto 0 !important;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 14px;
}

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

  .header-search input {
    width: 180px;
  }

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

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

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

  .sidebar-card {
    position: static;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 66px;
  }

  .header-inner {
    padding: 12px 14px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    color: #713f12;
    cursor: pointer;
    font-weight: 900;
  }

  .mobile-panel.is-open {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 8px 14px 14px;
    background: rgba(255, 255, 255, 0.88);
  }

  .mobile-panel a {
    padding: 10px;
    text-align: center;
    border-radius: 12px;
    background: #ffffff;
    color: #713f12;
    font-weight: 800;
  }

  .mobile-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
  }

  .mobile-bottom a {
    padding: 11px 4px;
    color: #6b7280;
    font-size: 13px;
    text-align: center;
    font-weight: 800;
  }

  .mobile-bottom a.active {
    color: #ca8a04;
  }

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

  .hero-content {
    bottom: 82px;
  }

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

  .hero-control {
    display: none;
  }

  .content-section {
    padding-top: 42px;
  }

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

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

  .card-body {
    padding: 14px;
  }

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

  .card-desc,
  .card-tags {
    display: none;
  }

  .compact-hero {
    min-height: 280px;
  }

  .movie-info-card {
    padding: 20px;
  }

  .full-rank-row {
    grid-template-columns: 42px 86px minmax(0, 1fr);
  }

  .rank-watch {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .rank-poster {
    width: 86px;
    height: 112px;
  }

  .rank-info h2 {
    font-size: 18px;
  }

  .rank-info p {
    display: none;
  }

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

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

  .horizontal-scroll {
    grid-auto-columns: minmax(250px, 82vw);
  }

  .large-search {
    flex-direction: column;
  }

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