:root {
  color-scheme: dark;
  --bg: #0d0e11;
  --panel: rgba(22, 24, 30, 0.82);
  --panel-solid: #17191f;
  --text: #f5f1e9;
  --muted: #aaa69d;
  --line: rgba(255, 255, 255, 0.12);
  --amber: #d99a42;
  --teal: #38a39b;
  --red: #d85050;
  --green: #7bbf6a;
  --violet: #a98adb;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

/* Readable review-site layout inspired by classic movie catalog pages. */
body {
  background: #f7f6f2;
  color: #222;
}

.douban-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  width: min(1180px, calc(100% - 36px));
  margin: 28px auto;
  align-items: start;
}

.main-column,
.side-column {
  display: grid;
  gap: 18px;
}

.browse-head {
  display: grid;
  gap: 16px;
  padding: 20px 0 4px;
  border-bottom: 1px solid var(--line);
}

.browse-head h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
}

.browse-head .hero-copy {
  color: var(--muted);
  font-size: 17px;
}

.douban-shell .library {
  width: 100%;
  margin: 0;
}

.douban-shell .signal-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px;
}

.douban-shell .metric {
  font-size: 25px;
}

.douban-shell .movie-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.douban-shell .movie-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.douban-shell .poster-button {
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.douban-shell .movie-body {
  padding: 0;
}

.douban-shell .movie-title-row {
  justify-content: flex-start;
}

.douban-shell .movie-title-row h3 {
  color: #1f6f50;
  font-size: 18px;
}

.item-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.douban-shell .bar {
  display: none;
}

.douban-shell .rank-board,
.douban-shell .method-board,
.douban-shell .signal-panel {
  box-shadow: none;
}

@media (max-width: 980px) {
  .douban-shell {
    grid-template-columns: 1fr;
  }
}

/* Brighter campaign-inspired polish: airy background, clearer links, softer panels. */
:root {
  --bg: #fbfcf8;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-solid: #ffffff;
  --text: #1f2933;
  --muted: #667085;
  --line: rgba(31, 41, 51, 0.11);
  --teal: #16a36f;
  --amber: #ffb020;
  --sky: #4f9cf9;
  --rose: #ff6b8a;
}

body {
  background:
    linear-gradient(135deg, rgba(22, 163, 111, 0.10), transparent 28%),
    linear-gradient(225deg, rgba(79, 156, 249, 0.12), transparent 32%),
    #fbfcf8;
}

.topbar {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 28px rgba(31, 41, 51, 0.06);
}

.brand-mark {
  border: 0;
  background: linear-gradient(135deg, #16a36f, #4f9cf9);
  color: #fff;
  box-shadow: 0 8px 18px rgba(22, 163, 111, 0.28);
}

.browse-head {
  padding: 24px;
  border: 1px solid rgba(22, 163, 111, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 252, 246, 0.9)),
    #fff;
  box-shadow: 0 16px 42px rgba(31, 41, 51, 0.07);
}

.search,
select,
.rank-board,
.method-board,
.signal-panel,
.detail,
.sources,
.admin-panel,
.media-gallery {
  border-color: rgba(31, 41, 51, 0.09);
  background: rgba(255, 255, 255, 0.94);
}

.movie-title-link {
  color: #16704d;
  text-decoration: none;
  text-underline-offset: 3px;
}

.movie-title-link:hover {
  color: #0f5f41;
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 28px;
  padding: 9px 13px 9px 10px;
  border: 1px solid rgba(22, 163, 111, 0.18);
  border-radius: 999px;
  color: #156f4c;
  background: linear-gradient(135deg, #ffffff, #effcf6);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(22, 163, 111, 0.12);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.back-link span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #16a36f, #4f9cf9);
  font-size: 24px;
  line-height: 1;
}

.back-link b {
  font-size: 14px;
}

.back-link:hover {
  border-color: rgba(22, 163, 111, 0.34);
  box-shadow: 0 14px 30px rgba(22, 163, 111, 0.18);
  transform: translateY(-1px);
}

.detail-hero {
  border-color: rgba(22, 163, 111, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.9)),
    #fff;
}

.score-badge,
.detail-poster span,
.rate-button.primary {
  background: linear-gradient(135deg, #ffca58, #ff8f5a);
}

body.light {
  color-scheme: light;
  --bg: #f4f0e8;
  --panel: rgba(255, 252, 246, 0.88);
  --panel-solid: #fffaf1;
  --text: #1c1a17;
  --muted: #69645c;
  --line: rgba(34, 28, 22, 0.13);
  --shadow: 0 20px 70px rgba(88, 72, 48, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 108px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--amber), white 20%);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--amber), var(--red));
  color: #111;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-inline: auto;
  background: color-mix(in srgb, var(--panel-solid) 70%, transparent);
}

.tab,
.icon-button,
.rate-button {
  border: 0;
  border-radius: 7px;
  color: var(--text);
  background: transparent;
}

.tab {
  min-width: 64px;
  padding: 8px 12px;
  color: var(--muted);
}

.tab.is-active {
  background: var(--text);
  color: var(--bg);
}

.detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 28px;
  padding: 120px clamp(18px, 5vw, 64px) 54px;
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 10, 12, 0.95) 0%, rgba(9, 10, 12, 0.66) 42%, rgba(9, 10, 12, 0.2) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 44%);
}

.hero-content,
.signal-panel {
  position: relative;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(56px, 9vw, 116px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  color: #ded6c8;
  font-size: 21px;
  line-height: 1.6;
}

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

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 360px);
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(18, 19, 23, 0.78);
}

.search input,
select {
  height: 46px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.search input {
  width: 100%;
}

select {
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(18, 19, 23, 0.86);
}

.signal-panel,
.rank-board,
.method-board,
.detail,
.sources {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.signal-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.metric {
  display: block;
  font-size: 38px;
  font-weight: 900;
}

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

.dashboard,
.library,
.detail,
.sources {
  width: min(1180px, calc(100% - 36px));
  margin: 34px auto;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 18px;
}

.rank-board,
.method-board,
.sources {
  padding: 22px;
}

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

.section-head h2 {
  margin: 0;
  font-size: 22px;
}

.section-head span {
  color: var(--muted);
  font-size: 13px;
}

.top-list {
  display: grid;
  gap: 10px;
}

.top-row {
  display: grid;
  grid-template-columns: 34px 1fr 70px 86px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-solid) 84%, transparent);
}

.top-row b {
  color: var(--amber);
}

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

.weights div {
  min-height: 108px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-solid) 82%, transparent);
}

.weights b {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 28px;
}

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

.library-head {
  align-items: flex-start;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-stack {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.chip {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
}

.chip.is-active {
  border-color: color-mix(in srgb, var(--teal), white 14%);
  color: var(--text);
  background: color-mix(in srgb, var(--teal) 22%, transparent);
}

.region-chip.is-active {
  border-color: color-mix(in srgb, var(--amber), white 14%);
  background: color-mix(in srgb, var(--amber) 24%, transparent);
}

.top-movie-link {
  color: var(--text);
  text-decoration: none;
}

.top-movie-link:hover {
  color: var(--amber);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-solid);
}

.poster-button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 0;
  padding: 0;
  background: #191a20;
  overflow: hidden;
}

.poster-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-art::after {
  content: none;
}

.score-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-width: 58px;
  padding: 8px 9px;
  border-radius: 8px;
  color: #101010;
  background: var(--amber);
  font-weight: 900;
}

.movie-body {
  padding: 14px;
}

.movie-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.movie-title-row h3 {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.32;
}

.status-pill {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  color: #141414;
  background: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.status-pill.coming {
  background: var(--violet);
}

.status-pill.archive {
  background: var(--teal);
}

.meta {
  min-height: 42px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 12%, transparent);
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--teal));
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.trust {
  color: var(--muted);
  font-size: 13px;
}

.rate-button {
  padding: 8px 11px;
  background: color-mix(in srgb, var(--text) 12%, transparent);
}

.rate-button.primary {
  color: #101010;
  background: var(--amber);
  font-weight: 900;
}

.admin-page {
  width: min(1120px, calc(100% - 36px));
  margin: 38px auto 60px;
}

.admin-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.admin-panel h1 {
  margin: 0;
  font-size: 32px;
}

.admin-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.admin-controls input,
.admin-controls select,
.editor-row input {
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel-solid);
}

.schedule-editor {
  display: grid;
  gap: 10px;
}

.editor-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 88px 110px 100px 70px;
  gap: 10px;
}

.editor-row button {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: color-mix(in srgb, var(--red) 20%, transparent);
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.admin-actions span {
  color: var(--muted);
}

.detail {
  min-height: 180px;
  padding: 24px;
}

.movie-detail-page {
  width: min(1180px, calc(100% - 36px));
  margin: 38px auto 60px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  min-height: 520px;
  padding: clamp(18px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--panel-solid) 96%, transparent), color-mix(in srgb, var(--teal) 18%, transparent)),
    var(--panel-solid);
  box-shadow: var(--shadow);
}

.detail-poster {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

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

.detail-poster span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-width: 70px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #101010;
  background: var(--amber);
  text-align: center;
  font-size: 20px;
  font-weight: 900;
}

.detail-main h1 {
  margin: 0 0 14px;
  font-size: clamp(42px, 7vw, 88px);
}

.detail-original {
  color: var(--muted);
  font-size: 18px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--muted);
  text-decoration: none;
}

.detail-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 12px;
  margin-top: 28px;
}

.detail-kpis div {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 36%, transparent);
}

.detail-kpis b {
  display: block;
  margin-bottom: 6px;
  color: var(--amber);
  font-size: 34px;
}

.detail-kpis span {
  color: var(--muted);
}

.detail-page-panel {
  width: 100%;
}

.media-gallery {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.media-grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.75fr) repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.media-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-solid);
}

.media-grid figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-missing {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  color: var(--muted);
  background: color-mix(in srgb, var(--panel-solid) 70%, var(--bg));
}

.media-grid figure.is-poster img {
  aspect-ratio: 3 / 4;
}

.media-grid figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

.detail-empty {
  display: grid;
  min-height: 132px;
  place-items: center;
  color: var(--muted);
}

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

.detail h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.detail-copy {
  color: var(--muted);
  line-height: 1.75;
}

.plot-box {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-solid) 84%, transparent);
}

.plot-box span {
  display: block;
  margin-bottom: 10px;
  color: var(--amber);
  font-weight: 900;
}

.plot-box p {
  margin: 0;
  color: var(--text);
  line-height: 1.8;
}

.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-solid) 78%, transparent);
}

.detail-tabs button {
  min-width: 94px;
  height: 38px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
}

.detail-tabs button.is-active {
  color: #121212;
  background: var(--amber);
  font-weight: 800;
}

.detail-tab-panel {
  min-height: 190px;
}

.info-grid,
.boxoffice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.info-grid div,
.boxoffice-grid div {
  min-height: 82px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-solid) 84%, transparent);
}

.info-grid span,
.boxoffice-grid span,
.cinema-row span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.info-grid b,
.boxoffice-grid b {
  color: var(--text);
  line-height: 1.45;
}

.market-bar {
  height: 12px;
  margin: 10px 0 16px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 12%, transparent);
}

.market-bar span {
  display: block;
  height: 100%;
  min-width: 12px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--teal));
}

.cinema-list {
  display: grid;
  gap: 10px;
}

.city-tabs,
.date-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.city-tabs button,
.date-tabs button {
  min-width: 74px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
}

.city-tabs button.is-active,
.date-tabs button.is-active {
  color: #111;
  border-color: var(--teal);
  background: var(--teal);
  font-weight: 800;
}

.date-tabs button.is-active {
  border-color: var(--amber);
  background: var(--amber);
}

.cinema-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 92px;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-solid) 84%, transparent);
}

.cinema-row b {
  display: block;
  margin-bottom: 4px;
}

.cinema-row strong {
  color: var(--amber);
}

.cinema-row em {
  color: var(--teal);
  font-style: normal;
  font-size: 13px;
}

.score-parts {
  display: grid;
  gap: 12px;
}

.score-part {
  display: grid;
  grid-template-columns: 78px 1fr 48px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.score-part span:nth-child(2) {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 12%, transparent);
  overflow: hidden;
}

.score-part i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.rating-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stars {
  display: flex;
  gap: 6px;
}

.star {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 20px;
}

.star.is-on {
  color: #1a160d;
  background: var(--amber);
}

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

.source-grid a {
  min-height: 66px;
  display: flex;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  background: color-mix(in srgb, var(--panel-solid) 84%, transparent);
}

@media (max-width: 980px) {
  .hero,
  .dashboard,
  .detail-grid,
  .source-grid,
  .detail-hero,
  .media-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .topbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .tabs {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .tab {
    min-width: 72px;
  }

  .hero {
    min-height: 720px;
    padding-top: 86px;
  }

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

  .movie-grid,
  .weights,
  .info-grid,
  .boxoffice-grid,
  .admin-controls,
  .editor-row {
    grid-template-columns: 1fr;
  }

  .top-row {
    grid-template-columns: 28px 1fr 58px;
  }

  .top-row span:last-child {
    display: none;
  }

  .cinema-row {
    grid-template-columns: 1fr;
  }
}

/* Final polish overrides. */
.movie-title-link {
  color: #16704d;
  text-decoration: none;
  text-underline-offset: 3px;
}

.movie-title-link:hover {
  color: #0f5f41;
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 28px;
  padding: 9px 13px 9px 10px;
  border: 1px solid rgba(22, 163, 111, 0.18);
  border-radius: 999px;
  color: #156f4c;
  background: linear-gradient(135deg, #ffffff, #effcf6);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(22, 163, 111, 0.12);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.back-link span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #16a36f, #4f9cf9);
  font-size: 24px;
  line-height: 1;
}

.back-link b {
  font-size: 14px;
}

.back-link:hover {
  border-color: rgba(22, 163, 111, 0.34);
  box-shadow: 0 14px 30px rgba(22, 163, 111, 0.18);
  transform: translateY(-1px);
}
