
:root {
  --bg: #0f0c08;
  --bg-soft: #171310;
  --panel: #1f1913;
  --panel-2: #262018;
  --panel-3: #2f271e;
  --text: #f5efe6;
  --muted: #b7afa4;
  --muted-2: #8e8578;
  --accent: #f59e0b;
  --accent-2: #d97706;
  --accent-soft: rgba(245, 158, 11, 0.18);
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --radius-lg: 28px;
  --max: 1440px;
  --topbar: 84px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.08), transparent 28%),
    linear-gradient(180deg, #120f0b 0%, #0f0c08 100%);
  color: var(--text);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: rgba(245, 158, 11, 0.3);
  color: #fff;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.section {
  padding: 28px 0 8px;
}

.section + .section {
  padding-top: 18px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
}

.section-title {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.section-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  backdrop-filter: blur(16px);
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.15);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(18, 15, 11, 0.88);
  backdrop-filter: blur(20px);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #7c2d12);
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.22);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  flex: none;
}

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

.brand-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

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

.nav a,
.nav button,
.mobile-menu a,
.mobile-menu button {
  border: 0;
  outline: 0;
  cursor: pointer;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 14px;
  color: #d9d0c4;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(245, 158, 11, 0.14);
  color: #fff;
}

.nav-group {
  position: relative;
}

.nav-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 260px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(27, 22, 17, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow-lg);
  display: none;
}

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

.nav-panel a {
  display: block;
  padding: 11px 13px;
  border-radius: 12px;
  color: #ddd4c8;
}

.nav-panel a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.search-btn,
.menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #e8dfd1;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: inline-grid;
  place-items: center;
  transition: 0.2s ease;
}

.icon-btn:hover,
.search-btn:hover,
.menu-btn:hover {
  background: rgba(245, 158, 11, 0.16);
  color: #fff;
}

.menu-btn {
  display: none;
}

.searchbar {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(18, 15, 11, 0.95);
}

.searchbar.open {
  display: block;
}

.searchform {
  padding: 14px 0 16px;
  display: flex;
  gap: 10px;
}

.searchinput {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
}

.searchinput::placeholder {
  color: #9c9183;
}

.searchsubmit {
  flex: none;
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.18);
}

.searchsubmit:hover {
  filter: brightness(1.05);
}

.mobile-menu {
  display: none;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.mobile-menu .group-title {
  margin: 8px 0 10px;
  color: #8f857a;
  font-size: 13px;
  font-weight: 700;
}

.mobile-menu .mobile-link {
  display: block;
  padding: 10px 14px;
  margin-bottom: 6px;
  border-radius: 14px;
  color: #ddd4c8;
}

.mobile-menu .mobile-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  position: relative;
  padding: 32px 0 12px;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at left top, rgba(245, 158, 11, 0.22), transparent 26%),
    linear-gradient(135deg, rgba(39, 25, 10, 0.96), rgba(17, 13, 9, 0.98));
  box-shadow: var(--shadow-lg);
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 15%, rgba(255,255,255,0.08), transparent 18%),
    linear-gradient(90deg, rgba(0,0,0,0.02), rgba(0,0,0,0.20));
  pointer-events: none;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 24px;
  padding: 30px;
  align-items: stretch;
}

.hero-copy {
  min-width: 0;
  padding: 12px 0 10px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: #f2d69f;
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  margin-bottom: 16px;
}

.hero-title {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 66px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-title .accent {
  color: #f8c56a;
}

.hero-subtitle {
  margin: 16px 0 0;
  max-width: 720px;
  color: #dfd4c7;
  font-size: 16px;
}

.hero-meta {
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.07);
}

.btn.primary {
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 16px 28px rgba(245, 158, 11, 0.22);
}

.hero-search {
  margin: 22px 0 0;
  display: flex;
  gap: 10px;
  max-width: 680px;
}

.hero-search .searchinput {
  background: rgba(255,255,255,0.05);
}

.hero-side {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  box-shadow: var(--shadow);
}

.hero-carousel {
  position: relative;
  height: 100%;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(24px) scale(0.985);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

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

.hero-slide .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.hero-slide .slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.70)),
    radial-gradient(circle at 75% 20%, rgba(245, 158, 11, 0.16), transparent 24%);
}

.hero-slide .slide-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 20px 18px;
}

.hero-slide .slide-chip {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.2);
  color: #f6dba4;
  border: 1px solid rgba(245, 158, 11, 0.26);
  font-size: 12px;
  margin-bottom: 12px;
}

.hero-slide .slide-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}

.hero-slide .slide-desc {
  margin: 10px 0 0;
  color: #ddd4c8;
  font-size: 14px;
}

.hero-slide .slide-foot {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-dots {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 16px;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  z-index: 3;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
}

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

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

.stat {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.stat .label {
  color: #c7b9a7;
  font-size: 12px;
  margin-bottom: 6px;
}

.stat .value {
  font-size: 20px;
  font-weight: 900;
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 16px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.movie-card .poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #15110d;
}

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

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

.movie-card .poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.48));
  pointer-events: none;
}

.movie-card .poster .meta-top,
.movie-card .poster .meta-bot {
  position: absolute;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  z-index: 2;
}

.movie-card .poster .meta-top { top: 10px; }
.movie-card .poster .meta-bot { bottom: 10px; align-items: end; }

.pill,
.year-pill,
.rank-pill,
.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
}

.pill {
  background: rgba(245, 158, 11, 0.9);
  color: #fff;
}

.year-pill {
  background: rgba(0,0,0,0.65);
  color: #fff;
}

.type-pill {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.rank-pill {
  background: rgba(245, 158, 11, 0.92);
  color: #fff;
}

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

.movie-card .title {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
  min-height: 42px;
}

.movie-card .subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  min-height: 34px;
}

.movie-card .footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #d9d0c4;
  font-size: 12px;
}

.movie-card .footer .score {
  color: #f6dba4;
  font-weight: 800;
}

.tool-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #ddd4c8;
  font-size: 13px;
}

.tool-chip.active {
  background: rgba(245,158,11,0.16);
  color: #fff;
  border-color: rgba(245,158,11,0.32);
}

.panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.panel.pad {
  padding: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 18px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.rank-item .num {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(245,158,11,0.22), rgba(124,45,18,0.35));
  color: #f5d48c;
}

.rank-item .info h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.rank-item .info p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.rank-item .info .meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-item .score {
  color: #f6dba4;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.page-banner {
  margin: 26px 0 10px;
  padding: 26px;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at right top, rgba(245,158,11,0.18), transparent 24%),
    linear-gradient(135deg, rgba(47, 32, 17, 0.96), rgba(15, 12, 8, 0.98));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.page-banner::after {
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(0,0,0,0.2));
  pointer-events:none;
}

.page-banner .inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: center;
}

.page-banner h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.08;
}

.page-banner p {
  margin: 12px 0 0;
  max-width: 720px;
  color: #ddd4c8;
}

.detail-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.detail-poster {
  position: sticky;
  top: calc(var(--topbar) + 20px);
}

.poster-shell {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  box-shadow: var(--shadow-lg);
}

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

.poster-actions {
  padding: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.detail-hero {
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at right top, rgba(245,158,11,0.14), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.detail-title {
  margin: 0;
  font-size: clamp(28px, 3.1vw, 48px);
  line-height: 1.08;
  font-weight: 950;
}

.detail-line {
  margin-top: 12px;
  color: #e1d7ca;
  font-size: 16px;
}

.detail-meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta .info {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #d7cec0;
  font-size: 13px;
}

.player-shell {
  margin-top: 18px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.player-head h2 {
  margin: 0;
  font-size: 20px;
}

.player-stage {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.player-stage video,
.player-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

.player-note {
  margin-top: 12px;
  color: #bfb6aa;
  font-size: 13px;
}

.article {
  margin-top: 18px;
  padding: 22px 24px;
  border-radius: 26px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.article h2,
.article h3 {
  margin-top: 0;
}

.article p {
  margin: 12px 0;
  color: #ded5c9;
}

.quote {
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: rgba(245, 158, 11, 0.08);
  border-radius: 0 18px 18px 0;
  color: #f4e9d9;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.18);
  color: #f7dca6;
  font-size: 13px;
}

.sidebar {
  position: sticky;
  top: calc(var(--topbar) + 20px);
  display: grid;
  gap: 18px;
}

.side-section {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.side-section h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

.rel-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
}

.rel-item img {
  width: 76px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
  flex: none;
}

.rel-item .txt h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.rel-item .txt p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #b7afa4;
  font-size: 13px;
  margin: 12px 0 0;
}

.breadcrumb a {
  color: #f4d99b;
}

.footer {
  margin-top: 36px;
  padding: 32px 0 42px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(10,8,6,0.66);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 0.8fr;
  gap: 20px;
}

.footer h4 {
  margin: 0 0 14px;
  font-size: 16px;
}

.footer p,
.footer a {
  color: var(--muted);
  font-size: 13px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li + li {
  margin-top: 8px;
}

.empty-state {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

@media (max-width: 1320px) {
  .card-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .card-grid.large { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .detail-grid { grid-template-columns: 320px minmax(0,1fr); }
  .sidebar { grid-column: 1 / -1; position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .hero-layout,
  .page-banner .inner,
  .grid-2,
  .footer-grid { grid-template-columns: 1fr; }
  .hero-carousel { min-height: 420px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .card-grid,
  .card-grid.compact,
  .card-grid.large { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-poster { position: static; }
  .sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { width: min(calc(100% - 20px), var(--max)); }
  .header-inner { min-height: 74px; }
  .brand-title { font-size: 18px; }
  .brand-subtitle { display: none; }
  .hero-layout,
  .page-banner,
  .detail-hero,
  .player-shell,
  .article { padding: 18px; }
  .hero-shell { border-radius: 26px; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 14px; }
  .card-grid,
  .card-grid.compact,
  .card-grid.large { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .hero-search,
  .searchform { flex-direction: column; }
  .searchsubmit { width: 100%; }
  .section-head { align-items: start; flex-direction: column; }
  .detail-line { font-size: 14px; }
  .player-head { flex-direction: column; align-items: start; }
}

@media (max-width: 520px) {
  .brand-mark { width: 40px; height: 40px; border-radius: 14px; }
  .hero-layout { padding: 16px; }
  .card-grid,
  .card-grid.compact,
  .card-grid.large { grid-template-columns: 1fr 1fr; }
  .rank-item { grid-template-columns: 54px 1fr; }
  .rank-item .score { grid-column: 2 / -1; }
  .rank-item .num { width: 54px; height: 54px; border-radius: 16px; font-size: 18px; }
  .hero-carousel { min-height: 380px; }
}
