:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --blue-500: #3b82f6;
  --emerald-500: #10b981;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 25px 55px rgba(15, 23, 42, 0.20);
  --radius: 1rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-700);
  background: linear-gradient(180deg, var(--slate-50), #ffffff 32rem);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 4.5rem;
  gap: 1.25rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 1rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.30);
  font-weight: 800;
  letter-spacing: -0.05em;
}

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

.brand-text strong,
.footer-brand {
  color: transparent;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 1.3rem;
  font-weight: 800;
}

.brand-text em {
  color: var(--slate-500);
  font-size: 0.72rem;
  font-style: normal;
  margin-top: 0.22rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: 0.4rem;
}

.nav-link {
  position: relative;
  color: var(--slate-700);
  font-size: 0.95rem;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.55rem;
  height: 2px;
  border-radius: 999px;
  background: var(--amber-500);
  transition: right 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  right: 0;
}

.header-search,
.mobile-search,
.search-panel form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-search {
  margin-left: auto;
  width: min(28rem, 36vw);
}

.header-search input,
.mobile-search input,
.search-panel input,
.local-filter {
  width: 100%;
  height: 2.65rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.8rem;
  color: var(--slate-800);
  background: #ffffff;
  outline: none;
  padding: 0 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.local-filter:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

.header-search button,
.mobile-search button,
.search-panel button {
  height: 2.65rem;
  border: 0;
  border-radius: 0.8rem;
  color: #ffffff;
  background: var(--amber-500);
  padding: 0 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.search-panel button:hover {
  background: var(--amber-600);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.8rem;
  background: #ffffff;
  cursor: pointer;
}

.menu-toggle span {
  width: 1.2rem;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--slate-700);
}

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

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

.mobile-links {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.mobile-nav-link {
  padding: 0.65rem 0.8rem;
  border-radius: 0.75rem;
  color: var(--slate-700);
  background: var(--slate-50);
  font-weight: 650;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  color: #ffffff;
  background: var(--slate-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.12)), var(--hero-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 18%, rgba(245, 158, 11, 0.22), transparent 28%), linear-gradient(0deg, rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.10));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 23rem;
  align-items: center;
  gap: 4rem;
  min-height: 72vh;
  padding: 5rem 0 4rem;
}

.hero-copy {
  max-width: 48rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 650;
}

.hero h1,
.hero h2 {
  margin: 1.2rem 0 1rem;
  color: #ffffff;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.07em;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.hero p {
  max-width: 44rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.75;
}

.hero-tags,
.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags {
  margin-top: 1.35rem;
}

.hero-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.36rem 0.68rem;
  font-size: 0.82rem;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  border-radius: 0.85rem;
  padding: 0 1.25rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.35);
}

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

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow-xl);
  transform: rotate(1deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0) translateY(-4px);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.88);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
}

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

.hero-dot,
.hero-arrow {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

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

.hero-dot.active {
  width: 2rem;
  background: var(--amber-500);
}

.hero-arrow {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  font-size: 1.1rem;
}

.section {
  padding: 4rem 0;
}

.section-soft {
  background: linear-gradient(90deg, var(--slate-100), var(--slate-50));
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title {
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-subtitle {
  margin: 0.4rem 0 0;
  max-width: 42rem;
  color: var(--slate-500);
  line-height: 1.7;
}

.more-link {
  color: var(--amber-600);
  font-weight: 750;
}

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

.movie-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--slate-100);
}

.poster img {
  width: 100%;
  aspect-ratio: 3 / 4.25;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card-wide .poster img {
  height: 100%;
  aspect-ratio: auto;
}

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

.poster-badge {
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.78);
  padding: 0.26rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.play-dot {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 999px;
  color: #ffffff;
  background: var(--amber-500);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: translateY(0);
}

.movie-card-body {
  padding: 1rem;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--slate-500);
  font-size: 0.78rem;
}

.movie-card h2 {
  margin: 0.45rem 0 0.45rem;
  color: var(--slate-800);
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: var(--amber-600);
}

.movie-card p {
  min-height: 3.2em;
  margin: 0;
  color: var(--slate-500);
  font-size: 0.9rem;
  line-height: 1.6;
}

.tag-row {
  margin-top: 0.9rem;
}

.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  color: var(--amber-700, #b45309);
  background: var(--amber-50);
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 10rem;
  border-radius: 1.1rem;
  color: var(--slate-800);
  background: linear-gradient(135deg, #ffffff, var(--amber-50));
  border: 1px solid var(--slate-200);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(3n + 2) {
  background: linear-gradient(135deg, #ffffff, #eff6ff);
}

.category-card:nth-child(3n + 3) {
  background: linear-gradient(135deg, #ffffff, #ecfdf5);
}

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

.category-card strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
}

.category-card p {
  margin: 0;
  color: var(--slate-500);
  line-height: 1.65;
}

.category-overview {
  min-height: 15rem;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 1rem;
}

.category-thumbs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 0.55rem;
  object-fit: cover;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
  padding: 4rem 0;
}

.page-hero.blue {
  background: linear-gradient(135deg, var(--blue-500), #6366f1);
}

.page-hero.amber {
  background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 50rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

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

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
  padding: 1rem;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.filter-bar .local-filter {
  max-width: 25rem;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 1.5rem;
}

.ranking-list {
  display: grid;
  gap: 0.9rem;
}

.rank-item {
  display: grid;
  grid-template-columns: 3rem 8rem 1fr auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  background: #ffffff;
  padding: 0.8rem;
  box-shadow: var(--shadow-sm);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  color: #ffffff;
  background: var(--slate-800);
  font-weight: 850;
}

.rank-item:nth-child(1) .rank-number,
.rank-item:nth-child(2) .rank-number,
.rank-item:nth-child(3) .rank-number {
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.rank-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0.75rem;
  object-fit: cover;
}

.rank-item h2 {
  margin: 0 0 0.35rem;
  color: var(--slate-800);
  font-size: 1.05rem;
}

.rank-item p {
  margin: 0;
  color: var(--slate-500);
  line-height: 1.6;
}

.rank-heat {
  color: var(--amber-600);
  font-weight: 800;
  white-space: nowrap;
}

.sidebar-card,
.content-card,
.player-card,
.search-panel {
  border: 1px solid var(--slate-200);
  border-radius: 1.1rem;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.sidebar-card,
.content-card,
.search-panel {
  padding: 1.25rem;
}

.sidebar-card h2,
.content-card h2 {
  margin: 0 0 0.85rem;
  color: var(--slate-800);
  font-size: 1.25rem;
}

.sidebar-card + .sidebar-card,
.content-card + .content-card {
  margin-top: 1rem;
}

.small-movie {
  display: grid;
  grid-template-columns: 5.8rem 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.45rem;
  border-radius: 0.85rem;
  transition: background 0.2s ease;
}

.small-movie:hover {
  background: var(--slate-50);
}

.small-movie img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0.7rem;
  object-fit: cover;
}

.small-movie strong {
  display: block;
  color: var(--slate-800);
  line-height: 1.4;
}

.small-movie em {
  display: block;
  margin-top: 0.25rem;
  color: var(--slate-500);
  font-size: 0.82rem;
  font-style: normal;
}

.detail-hero {
  color: #ffffff;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.38)), var(--detail-image);
  background-size: cover;
  background-position: center;
  padding: 3.5rem 0;
}

.detail-hero h1 {
  margin: 0;
  max-width: 58rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.detail-hero p {
  max-width: 54rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  font-size: 1.04rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 1.5rem;
  padding: 2rem 0 4rem;
}

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

.stream-player {
  position: relative;
  overflow: hidden;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.stream-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  cursor: pointer;
}

.poster-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.poster-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18));
}

.poster-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: relative;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 5.4rem;
  height: 5.4rem;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  font-size: 1.8rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.05);
}

.stream-player.is-playing .poster-layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-message {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 3;
  display: none;
  transform: translateX(-50%);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.76);
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
}

.stream-player.player-error .player-message {
  display: block;
}

.content-card {
  margin-top: 1rem;
}

.content-card p {
  margin: 0 0 1rem;
  color: var(--slate-700);
  line-height: 1.85;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.info-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--slate-100);
  padding-bottom: 0.65rem;
}

.info-list dt {
  color: var(--slate-500);
}

.info-list dd {
  margin: 0;
  color: var(--slate-800);
  font-weight: 700;
  text-align: right;
}

.detail-cover {
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
}

.search-panel {
  margin-top: -2rem;
  position: relative;
  z-index: 3;
}

.search-results-note {
  margin: 0 0 1rem;
  color: var(--slate-500);
}

.empty-state {
  border: 1px dashed var(--slate-300);
  border-radius: 1rem;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--slate-500);
  background: #ffffff;
}

.site-footer {
  border-top: 1px solid var(--slate-200);
  background: var(--slate-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 1.3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.5fr);
  gap: 2rem;
}

.footer-brand {
  font-size: 1.55rem;
}

.site-footer p {
  max-width: 38rem;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: 1.05rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.footer-links a {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
}

.footer-links a:hover {
  color: #ffffff;
  border-color: rgba(245, 158, 11, 0.65);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.88rem;
}

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

  .header-search {
    width: min(30rem, 48vw);
  }

  .hero-content,
  .detail-layout,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

@media (max-width: 780px) {
  .container {
    width: min(100% - 1.2rem, 1180px);
  }

  .header-inner {
    min-height: 4rem;
  }

  .brand-mark {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.85rem;
    font-size: 0.9rem;
  }

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

  .brand-text em {
    display: none;
  }

  .header-search {
    display: none;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .hero,
  .hero-content {
    min-height: 68vh;
  }

  .hero-content {
    padding: 4rem 0 5rem;
  }

  .hero h1,
  .hero h2 {
    letter-spacing: -0.04em;
  }

  .section {
    padding: 3rem 0;
  }

  .section-head,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .movie-card-wide {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 2.6rem 6rem 1fr;
  }

  .rank-heat {
    grid-column: 3;
  }

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

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

  .rank-item {
    grid-template-columns: 2.4rem 5rem 1fr;
    gap: 0.7rem;
  }

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

  .btn {
    width: 100%;
  }
}
