:root {
  color-scheme: dark;
  --bg: #0b0c12;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #f4efe8;
  --muted: rgba(244, 239, 232, 0.74);
  --muted-soft: rgba(244, 239, 232, 0.52);
  --gold: #d6a363;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(143, 77, 40, 0.16), transparent 24%),
    radial-gradient(circle at 80% 0%, rgba(47, 72, 123, 0.14), transparent 28%),
    linear-gradient(180deg, #09090d 0%, #10121a 45%, #0b0b12 100%);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
body { letter-spacing: 0; }
button, input, dialog { font: inherit; }
.page-shell { width: min(1440px, calc(100vw - 36px)); margin: 0 auto; padding: 28px 0 72px; }
.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) 300px;
  gap: 20px;
  align-items: stretch;
}
.hero-copy, .hero-note, .month-section, .audio-widget, .detail-shell {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.028));
  box-shadow: var(--shadow);
}
.hero-copy {
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(166, 92, 52, 0.14), rgba(14, 19, 34, 0.66)),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}
.eyebrow, .month-index, .detail-eyebrow, .note-title, .audio-label {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.hero-copy h1 { margin: 16px 0 0; font-size: clamp(40px, 6vw, 78px); line-height: .95; font-weight: 800; }
.hero-text { max-width: 760px; margin: 18px 0 0; font-size: 17px; line-height: 1.8; color: var(--muted); }
.hero-metas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-metas span, .month-nav a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 12px;
  border: 1px solid rgba(214,163,99,.2); background: rgba(214,163,99,.12); color: #f5ca95; font-size: 13px; font-weight: 700; text-decoration: none;
}
.hero-note { padding: 22px; }
.hero-note p { margin: 14px 0 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
.note-foot { margin-top: 18px !important; color: var(--muted-soft) !important; }
.month-nav {
  position: sticky; top: 0; z-index: 10; display: flex; gap: 10px; overflow-x: auto;
  padding: 16px 0 12px; margin: 10px 0 12px;
  background: linear-gradient(180deg, rgba(11,12,18,.95), rgba(11,12,18,.78) 70%, transparent 100%);
  backdrop-filter: blur(12px);
}
.month-nav::-webkit-scrollbar { display: none; }
.month-nav a:hover, .month-nav a:focus-visible, .audio-trigger:hover, .audio-trigger:focus-visible { outline: none; background: rgba(214,163,99,.2); }
.calendar-stack { display: flex; flex-direction: column; gap: 20px; }
.month-section { padding: 18px; overflow-x: auto; }
.month-heading { display: flex; justify-content: space-between; gap: 22px; align-items: end; margin-bottom: 16px; }
.month-title { margin: 10px 0 0; font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.month-note { max-width: 430px; margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted-soft); text-align: right; }
.weekday-row, .month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; min-width: 980px; }
.weekday-row { margin-bottom: 8px; }
.weekday-row span {
  display: inline-flex; align-items: center; justify-content: center; min-height: 26px;
  color: var(--muted-soft); font-size: 12px; letter-spacing: .14em;
}
.day-card, .day-placeholder { width: 100%; min-height: 0; aspect-ratio: .72; }
.day-placeholder { border: 1px dashed var(--line-soft); background: rgba(255,255,255,.015); }
.day-card {
  position: relative; overflow: hidden; padding: 8px; border: 1px solid rgba(255,255,255,.11); background: #181922;
  color: var(--text); text-align: left; cursor: pointer; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.day-card:hover, .day-card:focus-visible { outline: none; transform: translateY(-2px); border-color: rgba(214,163,99,.28); box-shadow: 0 14px 24px rgba(0,0,0,.22); }
.day-card-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.day-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.14) 0%, rgba(0,0,0,.32) 42%, rgba(0,0,0,.82) 100%);
}
.day-card-topline, .day-card-title-wrap, .detail-poster-topline, .detail-poster-title-wrap { position: relative; z-index: 1; }
.day-card-topline { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.day-card-date, .day-card-rating {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; background: rgba(7,8,12,.44); backdrop-filter: blur(8px);
  font-size: 10px; line-height: 1.2; font-weight: 700; color: #f5efe8;
}
.day-card-title-wrap { position: absolute; left: 8px; right: 8px; bottom: 8px; }
.day-card-title { margin: 0; font-size: 12px; line-height: 1.12; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.audio-widget {
  position: fixed; right: 18px; top: 18px; z-index: 40; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 10px; background: rgba(13,15,23,.82); backdrop-filter: blur(14px); border-radius: 999px;
}
.audio-trigger {
  width: 42px; height: 42px; border: 1px solid rgba(214,163,99,.22); background: rgba(214,163,99,.12); color: #f5ca95; border-radius: 999px; cursor: pointer;
  font-size: 22px; line-height: 1;
}
.audio-panel { min-width: 200px; }
.audio-header { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.audio-status { margin: 0; font-size: 12px; color: var(--muted-soft); }
.audio-track { margin: 5px 0 0; font-size: 13px; color: var(--text); }
.audio-volume-wrap { display: flex; align-items: center; gap: 10px; margin-top: 9px; font-size: 12px; color: var(--muted-soft); }
.audio-volume { width: 100%; }
.detail-dialog { padding: 0; border: none; max-width: min(920px, calc(100vw - 28px)); width: 100%; background: transparent; }
.detail-dialog::backdrop { background: rgba(7,8,12,.8); backdrop-filter: blur(8px); }
.detail-shell { position: relative; display: grid; grid-template-columns: minmax(260px,.88fr) minmax(0,1fr); overflow: hidden; }
.detail-close {
  position: absolute; right: 14px; top: 14px; z-index: 3; width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.26); color: var(--text); cursor: pointer;
}
.detail-poster { position: relative; min-height: 560px; background: #111; }
.detail-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-poster-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.26) 38%, rgba(0,0,0,.86) 100%);
}
.detail-poster-topline { display:flex; justify-content:space-between; align-items:center; padding:18px; font-size:12px; letter-spacing:.12em; text-transform:uppercase; }
.detail-poster-title-wrap { position:absolute; left:18px; right:18px; bottom:26px; }
.detail-poster-title-wrap h2 { margin:0; max-width:82%; font-size: clamp(34px,4vw,54px); line-height:.98; }
.detail-poster-title-wrap p { margin:10px 0 0; font-size:12px; letter-spacing:.16em; text-transform:uppercase; color: rgba(244,239,232,.76); }
.detail-copy { padding: 28px 28px 32px; }
.detail-meta, .detail-logline, .detail-curator { margin: 18px 0 0; font-size: 16px; line-height: 1.9; color: var(--muted); }
.detail-curator { color: var(--muted-soft); }
@media (max-width: 1180px) {
  .hero-band, .detail-shell { grid-template-columns: 1fr; }
  .hero-note { order: -1; }
}
@media (max-width: 980px) {
  .page-shell { width: min(100vw - 24px, 1440px); padding-top: 98px; }
  .month-note { text-align: left; }
  .weekday-row, .month-grid { min-width: 880px; }
}
@media (max-width: 640px) {
  .hero-copy, .hero-note, .month-section, .detail-copy { padding: 16px; }
  .audio-widget { right: 10px; top: 10px; left: 10px; width: auto; }
  .audio-panel { min-width: 0; flex: 1; }
  .weekday-row, .month-grid { min-width: 720px; }
}
