
:root {
  color-scheme: dark;
  --bg: #080807;
  --bg-deep: #030303;
  --panel: #11100e;
  --panel-2: #171511;
  --panel-3: #0c0c0b;
  --steel: #b8b0a4;
  --steel-dark: #70695f;
  --bone: #d8d0c3;
  --text: #e7e2d9;
  --muted: #8f897f;
  --line: rgba(205, 193, 174, .12);
  --line-strong: rgba(205, 193, 174, .24);
  --brass: #b69455;
  --brass-light: #d4b875;
  --rust: #815b3d;
  --danger: #b36a65;
  --shadow: 0 28px 70px rgba(0,0,0,.54);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px),
    radial-gradient(circle at 50% -10%, rgba(109,91,67,.13), transparent 38rem),
    linear-gradient(180deg, #0a0a09 0%, var(--bg-deep) 100%);
  background-size: 28px 28px, 28px 28px, auto, auto;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background:
    repeating-linear-gradient(115deg, transparent 0 6px, rgba(255,255,255,.018) 7px, transparent 8px),
    radial-gradient(circle at 15% 30%, rgba(255,255,255,.035), transparent 18rem),
    radial-gradient(circle at 86% 62%, rgba(129,91,61,.05), transparent 22rem);
}

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

.hero {
  position: relative;
  min-height: clamp(225px, 31vw, 430px);
  overflow: hidden;
  border-bottom: 1px solid rgba(205,193,174,.25);
  background:
    #050505 url("/vault-header.jpg") center / cover no-repeat;
  box-shadow:
    inset 0 -45px 70px rgba(0,0,0,.52),
    0 14px 45px rgba(0,0,0,.48);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.5), transparent 25%, transparent 75%, rgba(0,0,0,.5)),
    linear-gradient(180deg, rgba(0,0,0,.08), transparent 55%, rgba(0,0,0,.5));
}

.hero-edge {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  opacity: .65;
  background:
    linear-gradient(90deg, transparent, var(--steel-dark) 12%, var(--bone) 50%, var(--steel-dark) 88%, transparent);
}

.hero-edge--top { top: 0; }
.hero-edge--bottom { bottom: 0; }

.archive-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(20,19,17,.97), rgba(8,8,7,.96));
  box-shadow: 0 8px 24px rgba(0,0,0,.38);
  backdrop-filter: blur(15px);
}

.archive-bar::before,
.archive-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 9px;
  background: repeating-linear-gradient(
    180deg,
    var(--steel-dark) 0 2px,
    #171511 2px 5px
  );
  opacity: .4;
}

.archive-bar::after {
  left: auto;
  right: 0;
}

.archive-bar__inner {
  width: min(1380px, calc(100% - 42px));
  min-height: 62px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.archive-name,
.archive-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.archive-name {
  color: var(--bone);
  font-family: Cinzel, serif;
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: .19em;
}

.archive-name > span:first-child {
  color: var(--brass-light);
}

.folder-path {
  color: #aaa398;
  font-size: .82rem;
}

.layout {
  width: min(1380px, calc(100% - 42px));
  margin: 25px auto 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(345px, .78fr);
  gap: 19px;
  align-items: start;
}

.library-card,
.now-card,
.comments-card,
.timestamp-card,
.info-card {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.022), transparent 28%),
    linear-gradient(180deg, rgba(24,22,18,.97), rgba(11,11,10,.98));
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(0,0,0,.55);
}

.library-card::before,
.now-card::before,
.comments-card::before,
.timestamp-card::before,
.info-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 5px;
  border: 1px solid rgba(205,193,174,.055);
  pointer-events: none;
}

.library-card { overflow: hidden; }

.library-header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 23px 24px 20px;
  border-bottom: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 7% 20%, rgba(182,148,85,.07), transparent 15rem),
    linear-gradient(180deg, rgba(255,255,255,.025), transparent);
}

.library-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.library-title h2 {
  margin: 0;
  color: var(--bone);
  font-family: Cinzel, serif;
  font-size: 1.45rem;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.count-pill {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0d0d0c;
  color: var(--brass-light);
  font-family: Oswald, sans-serif;
  font-size: .74rem;
  letter-spacing: .06em;
}

.vault-subtitle {
  margin: 8px 0 0;
  color: var(--steel);
  font-family: Oswald, sans-serif;
  font-size: .73rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.archive-range {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .77rem;
}

.library-tools {
  width: min(620px, 59%);
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 175px 150px;
  gap: 9px;
}

.search-box,
.sort-box {
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background:
    linear-gradient(180deg, #0a0a09, #050505);
  box-shadow: inset 0 0 12px rgba(0,0,0,.45);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  color: var(--brass-light);
}

.search-box input {
  width: 100%;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-box input::placeholder { color: #6f6a63; }

.sort-box {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 7px;
  padding-left: 10px;
  color: var(--muted);
  font-size: .7rem;
}

.sort-box select {
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--bone);
}

.sort-box option { background: #11100e; }

.vault-timeline-wrap {
  padding: 15px 24px 17px;
  border-bottom: 1px solid var(--line-strong);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, transparent 1px 40px),
    #0d0d0c;
}

.vault-timeline-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  color: var(--steel);
  font-family: Cinzel, serif;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.vault-timeline {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 5px;
  scrollbar-width: thin;
}

.timeline-year {
  flex: 0 0 auto;
  min-width: 63px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background:
    linear-gradient(180deg, #191713, #0d0d0b);
  color: #a69f94;
  cursor: pointer;
  font-family: Oswald, sans-serif;
  font-size: .78rem;
  letter-spacing: .06em;
  text-align: center;
}

.timeline-year:hover,
.timeline-year.active {
  border-color: rgba(212,184,117,.58);
  background:
    linear-gradient(180deg, rgba(182,148,85,.23), rgba(72,52,28,.19));
  color: var(--brass-light);
  box-shadow: inset 0 0 14px rgba(182,148,85,.08);
}

.quick-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 24px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(0,0,0,.18);
}

.gold-button,
.text-button {
  border: 0;
  cursor: pointer;
}

.gold-button {
  padding: 9px 14px;
  border: 1px solid #66502f;
  border-radius: 2px;
  background:
    linear-gradient(180deg, #d1b271, #98743d);
  color: #17120b;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow:
    inset 0 1px rgba(255,255,255,.28),
    0 4px 14px rgba(0,0,0,.24);
}

.gold-button:hover {
  filter: brightness(1.08);
}

.text-button {
  padding: 8px 2px;
  background: transparent;
  color: #aaa398;
}

.text-button:hover { color: var(--brass-light); }

.filter-button.active {
  padding-inline: 10px;
  border-left: 2px solid var(--brass);
  background: rgba(182,148,85,.08);
  color: var(--brass-light);
}

button:disabled { opacity: .4; cursor: wait; }

.year-groups { min-height: 280px; }

.year-group {
  border-bottom: 1px solid var(--line-strong);
}

.year-group:last-child { border-bottom: 0; }

.year-heading {
  position: sticky;
  top: 62px;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 24px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, rgba(182,148,85,.075), transparent 23%),
    linear-gradient(180deg, #181612, #0f0f0d);
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(15px);
}

.year-heading:hover {
  background:
    linear-gradient(90deg, rgba(182,148,85,.12), transparent 28%),
    #1a1814;
}

.year-number {
  color: var(--brass-light);
  font-family: Cinzel, serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.year-count {
  color: var(--muted);
  font-family: Oswald, sans-serif;
  font-size: .72rem;
  letter-spacing: .04em;
}

.chevron {
  color: var(--steel-dark);
  transition: transform .2s ease;
}

.year-group.collapsed .chevron { transform: rotate(-90deg); }
.year-group.collapsed .year-tracks { display: none; }

.track {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) 115px 70px 40px 38px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 8px 24px;
  border: 0;
  border-bottom: 1px solid rgba(205,193,174,.075);
  background:
    linear-gradient(90deg, rgba(255,255,255,.012), transparent 28%);
  text-align: left;
  cursor: pointer;
}

.track:last-child { border-bottom: 0; }

.track:hover {
  background:
    linear-gradient(90deg, rgba(182,148,85,.08), transparent 56%);
}

.track.active {
  background:
    linear-gradient(90deg, rgba(182,148,85,.2), rgba(129,91,61,.08) 53%, transparent);
}

.track.active::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--brass-light);
  box-shadow: 0 0 14px rgba(212,184,117,.35);
}

.track-index {
  color: #827c72;
  text-align: center;
  font-size: .8rem;
}

.track.active .track-index,
.track.active .track-title {
  color: var(--brass-light);
}

.track.active .track-index {
  animation: playingPulse 1.15s ease-in-out infinite;
}

@keyframes playingPulse {
  0%, 100% { opacity: .45; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.12); }
}

.track-copy { min-width: 0; }

.track-title,
.track-folder {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-title {
  color: #ded8ce;
  font-size: .91rem;
  font-weight: 650;
}

.track-folder {
  margin-top: 4px;
  color: #746f67;
  font-family: Oswald, sans-serif;
  font-size: .69rem;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.track-date,
.track-size {
  color: #918b82;
  text-align: right;
  font-size: .72rem;
}

.track-favorite,
.track-download {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #777168;
  cursor: pointer;
  text-decoration: none;
}

.track-favorite:hover,
.track-favorite.on,
.track-download:hover {
  border-color: var(--line);
  background: rgba(182,148,85,.08);
  color: var(--brass-light);
}

.track-comment-badge {
  display: inline-block;
  margin-left: 7px;
  color: var(--brass);
  font-size: .7rem;
  vertical-align: middle;
}

.library-footer {
  padding: 14px 24px;
  border-top: 1px solid rgba(255,255,255,.025);
  color: #787269;
  font-family: Oswald, sans-serif;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sidebar {
  position: sticky;
  top: 76px;
  display: grid;
  gap: 16px;
  max-height: calc(100vh - 92px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(182,148,85,.34) transparent;
}

.sidebar::-webkit-scrollbar { width: 7px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb {
  border-radius: 1px;
  background: rgba(182,148,85,.28);
}

.now-card,
.comments-card,
.timestamp-card,
.info-card {
  padding: 19px;
}

.card-heading,
.comments-heading,
.timestamp-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-heading h2,
.comments-heading h2,
.timestamp-heading h2,
.info-card h2 {
  margin: 0;
  color: var(--brass-light);
  font-family: Cinzel, serif;
  font-size: 1rem;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.equalizer {
  color: var(--brass);
  font-weight: 900;
  letter-spacing: 2px;
}

.cover {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background:
    radial-gradient(circle, transparent 0 22%, rgba(182,148,85,.08) 22.5% 23%, transparent 23.5% 39%, rgba(205,193,174,.06) 39.5% 40%, transparent 40.5%),
    linear-gradient(145deg, #181612, #050505);
  box-shadow:
    inset 0 0 55px rgba(0,0,0,.75),
    0 12px 30px rgba(0,0,0,.28);
}

.cover-pattern {
  position: absolute;
  inset: 0;
  opacity: .22;
  background:
    url("/vault-header.jpg") center / cover;
  filter: grayscale(1) contrast(1.25);
}

.cover::before,
.cover::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(205,193,174,.12);
  border-radius: 50%;
}

.cover::after {
  inset: 19%;
  border-color: rgba(182,148,85,.14);
}

.cover > span {
  position: relative;
  z-index: 2;
  color: rgba(216,208,195,.3);
  font-size: 4.8rem;
  text-shadow: 0 7px 25px rgba(0,0,0,.8);
}

.now-copy {
  padding: 17px 4px 13px;
  text-align: center;
}

.now-copy strong,
.now-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-copy strong {
  color: var(--bone);
  font-family: Cinzel, serif;
  font-size: 1.05rem;
  letter-spacing: .02em;
}

.now-copy span {
  margin-top: 7px;
  color: var(--brass);
  font-family: Oswald, sans-serif;
  font-size: .78rem;
  letter-spacing: .05em;
}

.seek-wrap {
  position: relative;
  min-height: 20px;
}

.timeline input,
.volume-row input {
  width: 100%;
  accent-color: var(--brass);
}

.seek-wrap > input {
  position: relative;
  z-index: 3;
  margin: 0;
}

.chapter-markers {
  position: absolute;
  z-index: 2;
  inset: 50% 7px auto 7px;
  height: 12px;
  pointer-events: none;
  transform: translateY(-50%);
}

.chapter-marker {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(10,13,16,.75);
  border-radius: 50%;
  background: var(--brass-light);
  box-shadow: 0 0 8px rgba(182,148,85,.48);
  transform: translate(-50%, -50%);
}

.seek-tooltip {
  position: absolute;
  z-index: 10;
  bottom: calc(100% + 7px);
  padding: 5px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #060605;
  color: var(--brass-light);
  box-shadow: 0 8px 22px rgba(0,0,0,.5);
  font-family: Oswald, sans-serif;
  font-size: .68rem;
  font-weight: 650;
  pointer-events: none;
  white-space: nowrap;
  transform: translateX(-50%);
}

.time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}

.time-display {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #817b72;
  cursor: pointer;
  font-family: Oswald, sans-serif;
  font-size: .69rem;
  font-variant-numeric: tabular-nums;
}

.time-display:hover { color: var(--brass-light); }

.transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 0 15px;
}

.round-button,
.main-play {
  display: grid;
  place-items: center;
  border-radius: 2px;
  cursor: pointer;
}

.round-button {
  width: 39px;
  height: 39px;
  border: 1px solid transparent;
  background: transparent;
  color: #c1b9ae;
}

.round-button.small {
  width: 31px;
  height: 31px;
  color: #7e786f;
}

.round-button:hover,
.round-button.on {
  border-color: var(--line);
  background: rgba(182,148,85,.08);
  color: var(--brass-light);
}

.main-play {
  width: 60px;
  height: 60px;
  border: 1px solid #66502f;
  background:
    linear-gradient(180deg, #d4b875, #98743d);
  color: #17120b;
  font-size: 1.2rem;
  box-shadow:
    inset 0 1px rgba(255,255,255,.3),
    0 8px 22px rgba(0,0,0,.35);
}

.volume-row {
  display: grid;
  grid-template-columns: 20px 1fr 20px;
  align-items: center;
  gap: 9px;
  color: #777168;
  font-size: .7rem;
}

.comments-heading span {
  overflow: hidden;
  color: var(--muted);
  font-size: .69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comments-card textarea,
.timestamp-composer textarea {
  width: 100%;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  outline: 0;
  background:
    linear-gradient(180deg, #090908, #050505);
  color: var(--text);
  line-height: 1.5;
  box-shadow: inset 0 0 16px rgba(0,0,0,.5);
}

.comments-card textarea {
  min-height: 180px;
}

.comments-card textarea:focus,
.timestamp-composer textarea:focus {
  border-color: rgba(212,184,117,.48);
  box-shadow:
    inset 0 0 16px rgba(0,0,0,.5),
    0 0 0 2px rgba(182,148,85,.07);
}

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

.comments-note,
.timestamp-heading p,
.info-card p,
.empty-timestamps {
  color: #777168;
  font-size: .72rem;
  line-height: 1.55;
}

.comments-note { margin: 11px 0 0; }

.danger-button { color: var(--danger); }

.compact-button {
  padding: 8px 11px;
  font-size: .72rem;
}

.timestamp-composer {
  margin-bottom: 13px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #090908;
}

.timestamp-time-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 9px;
}

.timestamp-time-row strong {
  color: var(--brass-light);
  font-family: Oswald, sans-serif;
  font-size: 1.05rem;
}

.timestamp-time-row span {
  color: var(--muted);
  font-size: .67rem;
}

.timestamp-list {
  display: grid;
  gap: 8px;
  max-height: 310px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: rgba(182,148,85,.3) transparent;
}

.timestamp-note {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(205,193,174,.08);
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(182,148,85,.05), transparent);
}

.timestamp-jump {
  border: 0;
  background: transparent;
  color: var(--brass-light);
  cursor: pointer;
  font-family: Oswald, sans-serif;
  font-weight: 700;
}

.timestamp-jump:hover { text-decoration: underline; }

.timestamp-text {
  min-width: 0;
  color: #cfc8bd;
  font-size: .78rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.timestamp-delete {
  border: 0;
  background: transparent;
  color: #806c68;
  cursor: pointer;
}

.timestamp-delete:hover { color: #d08d86; }

.info-card p { margin: 10px 0 0; }

.message {
  margin: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #090908;
  color: #9a9389;
}

.message.error { color: #cf8e87; }
.hidden { display: none !important; }

.year-group.flash-highlight .year-heading {
  animation: yearFlash 1.4s ease;
}

@keyframes yearFlash {
  0%, 100% { background-color: transparent; }
  35% { background-color: rgba(182,148,85,.2); }
}

@media (max-width: 1080px) and (min-width: 761px) {
  .library-tools {
    grid-template-columns: minmax(220px, 1fr) 170px;
  }

  .jump-box { grid-column: 1 / -1; }
}

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

  .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    grid-template-columns: minmax(0,1fr) minmax(270px,.72fr);
  }
}

@media (min-width: 981px) and (max-height: 820px) {
  .cover {
    max-height: 330px;
    aspect-ratio: 1;
  }

  .now-card { padding: 15px; }
  .comments-card textarea { min-height: 140px; }
}

@media (max-width: 760px) {
  .hero {
    min-height: 160px;
    background-position: center;
  }

  .archive-bar__inner,
  .layout {
    width: min(100% - 20px, 1380px);
  }

  .archive-name {
    font-size: .62rem;
    letter-spacing: .12em;
  }

  .folder-path { display: none; }

  .library-header {
    flex-direction: column;
    padding-inline: 15px;
  }

  .library-tools {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .vault-timeline-wrap,
  .quick-actions {
    padding-inline: 15px;
  }

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

  .track {
    grid-template-columns: 25px minmax(0,1fr) 34px 34px;
    padding-inline: 15px;
  }

  .track-date,
  .track-size { display: none; }

  .track-favorite,
  .track-download {
    width: 28px;
    height: 28px;
  }

  .year-heading {
    top: 62px;
    padding-inline: 15px;
  }

  .timestamp-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .compact-button { align-self: flex-start; }
}


.archive-switcher {
  border-bottom: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(17,16,14,.98), rgba(6,6,5,.98));
  box-shadow: 0 10px 30px rgba(0,0,0,.34);
}

.archive-switcher__inner {
  width: min(1380px, calc(100% - 42px));
  margin: auto;
  display: flex;
  gap: 0;
}

.archive-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 230px;
  padding: 15px 21px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: #777168;
  cursor: pointer;
  text-align: left;
}

.archive-tab:first-child {
  border-left: 1px solid var(--line);
}

.archive-tab::after {
  content: "";
  position: absolute;
  inset: auto 12px 0;
  height: 2px;
  background: transparent;
}

.archive-tab:hover {
  color: var(--bone);
  background: rgba(182,148,85,.045);
}

.archive-tab.active {
  color: var(--brass-light);
  background:
    linear-gradient(180deg, rgba(182,148,85,.09), transparent);
}

.archive-tab.active::after {
  background:
    linear-gradient(90deg, transparent, var(--brass-light), transparent);
  box-shadow: 0 0 12px rgba(212,184,117,.38);
}

.archive-tab__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  background: #090908;
  color: var(--brass);
  font-size: 1rem;
}

.archive-tab strong,
.archive-tab small {
  display: block;
}

.archive-tab strong {
  font-family: Cinzel, serif;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.archive-tab small {
  margin-top: 4px;
  color: #746f67;
  font-family: Oswald, sans-serif;
  font-size: .66rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.archive-view.hidden {
  display: none !important;
}

.film-layout {
  width: min(1380px, calc(100% - 42px));
  margin: 25px auto 46px;
}

.film-hero-card,
.film-player-card,
.film-info-card {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.022), transparent 28%),
    linear-gradient(180deg, rgba(24,22,18,.97), rgba(9,9,8,.98));
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(0,0,0,.55);
}

.film-hero-card {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 32px;
  min-height: 210px;
  padding: 34px 38px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0,0,0,.22), rgba(0,0,0,.74)),
    url("/vault-header.jpg") center 45% / cover no-repeat;
}

.film-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,8,7,.18), rgba(8,8,7,.9) 74%),
    linear-gradient(180deg, transparent, rgba(0,0,0,.34));
}

.film-hero-copy,
.film-seal {
  position: relative;
  z-index: 2;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--brass-light);
  font-family: Oswald, sans-serif;
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.film-hero-copy h2,
.film-card-heading h2 {
  margin: 0;
  color: var(--bone);
  font-family: Cinzel, serif;
  text-transform: uppercase;
}

.film-hero-copy h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: .05em;
}

.film-hero-copy > p:last-child {
  max-width: 720px;
  margin: 16px 0 0;
  color: #b5aea3;
  font-size: .94rem;
  line-height: 1.75;
}

.film-seal {
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  border: 1px solid rgba(212,184,117,.38);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 34%, rgba(182,148,85,.08) 35% 36%, transparent 37%),
    rgba(0,0,0,.46);
  box-shadow:
    inset 0 0 30px rgba(0,0,0,.62),
    0 0 0 8px rgba(0,0,0,.2);
  color: var(--brass-light);
  text-align: center;
}

.film-seal::before,
.film-seal::after {
  content: "";
  position: absolute;
  width: 105px;
  height: 1px;
  background: rgba(212,184,117,.3);
}

.film-seal::after {
  transform: rotate(90deg);
}

.film-seal span,
.film-seal strong {
  position: relative;
  z-index: 2;
  display: block;
  font-family: Cinzel, serif;
}

.film-seal span {
  font-size: .66rem;
  letter-spacing: .23em;
}

.film-seal strong {
  margin-top: 5px;
  font-size: 1rem;
  letter-spacing: .09em;
}

.film-player-card {
  margin-top: 19px;
  padding: 22px;
}

.film-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.film-card-heading h2 {
  font-size: 1.35rem;
  letter-spacing: .05em;
}

.youtube-link {
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  background: #090908;
  color: var(--brass-light);
  font-family: Oswald, sans-serif;
  font-size: .73rem;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.youtube-link:hover {
  border-color: rgba(212,184,117,.5);
  background: rgba(182,148,85,.08);
}

.youtube-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong);
  background: #000;
  box-shadow:
    inset 0 0 0 5px #080807,
    0 18px 42px rgba(0,0,0,.38);
}

.youtube-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.film-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  color: #716b62;
  font-family: Oswald, sans-serif;
  font-size: .66rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.film-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 19px;
}

.film-info-card {
  min-height: 160px;
  padding: 23px;
}

.film-info-number {
  color: var(--rust);
  font-family: Cinzel, serif;
  font-size: 1.55rem;
  font-weight: 800;
}

.film-info-card h3 {
  margin: 18px 0 8px;
  color: var(--bone);
  font-family: Cinzel, serif;
  font-size: .95rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.film-info-card p {
  margin: 0;
  color: #857f76;
  font-size: .78rem;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .archive-switcher__inner {
    width: 100%;
  }

  .archive-tab {
    min-width: 0;
    flex: 1;
    padding: 13px 11px;
  }

  .archive-tab__icon {
    width: 32px;
    height: 32px;
  }

  .archive-tab strong {
    font-size: .68rem;
  }

  .archive-tab small {
    display: none;
  }

  .film-layout {
    width: min(100% - 20px, 1380px);
    margin-top: 12px;
  }

  .film-hero-card {
    grid-template-columns: 1fr;
    padding: 25px 21px;
  }

  .film-seal {
    display: none;
  }

  .film-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .youtube-link {
    width: 100%;
    text-align: center;
  }

  .film-info-grid {
    grid-template-columns: 1fr;
  }

  .film-card-footer {
    flex-direction: column;
  }
}


.film-browser {
  display: grid;
  gap: 19px;
  margin-top: 19px;
}

.film-library-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.022), transparent 28%),
    linear-gradient(180deg, rgba(24,22,18,.97), rgba(9,9,8,.98));
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(0,0,0,.55);
}

.film-library-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 5px;
  border: 1px solid rgba(205,193,174,.055);
  pointer-events: none;
}

.film-library-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  border-bottom: 1px solid var(--line-strong);
}

.film-library-header h2 {
  margin: 0;
  color: var(--bone);
  font-family: Cinzel, serif;
  font-size: 1.35rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.film-count,
.film-now-meta {
  margin: 7px 0 0;
  color: var(--muted);
  font-family: Oswald, sans-serif;
  font-size: .72rem;
  letter-spacing: .05em;
}

.film-tools {
  width: min(690px, 66%);
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 180px auto;
  gap: 9px;
}

.film-refresh-button {
  cursor: pointer;
}

.film-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.film-entry {
  min-width: 0;
  border: 0;
  background:
    linear-gradient(145deg, rgba(255,255,255,.018), transparent 30%),
    #0d0d0c;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.film-entry:hover {
  background:
    linear-gradient(145deg, rgba(182,148,85,.09), transparent 42%),
    #12110f;
}

.film-entry.active {
  box-shadow: inset 0 0 0 2px rgba(212,184,117,.52);
  background:
    linear-gradient(145deg, rgba(182,148,85,.13), transparent 45%),
    #15130f;
}

.film-thumbnail-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #030303;
}

.film-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease, opacity .28s ease;
}

.film-entry:hover .film-thumbnail {
  transform: scale(1.035);
  opacity: .88;
}

.film-duration {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 4px 6px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.82);
  color: #f1ede6;
  font-family: Oswald, sans-serif;
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
}

.film-play-mark {
  position: absolute;
  display: grid;
  place-items: center;
  inset: 50% auto auto 50%;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(212,184,117,.65);
  border-radius: 50%;
  background: rgba(0,0,0,.68);
  color: var(--brass-light);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.85);
  transition: opacity .2s ease, transform .2s ease;
}

.film-entry:hover .film-play-mark,
.film-entry.active .film-play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.film-entry-copy {
  min-height: 116px;
  padding: 14px 14px 16px;
}

.film-entry-title {
  display: -webkit-box;
  overflow: hidden;
  color: #ded8ce;
  font-size: .86rem;
  font-weight: 650;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.film-entry-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: #746f67;
  font-family: Oswald, sans-serif;
  font-size: .66rem;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.film-year-heading {
  grid-column: 1 / -1;
  padding: 13px 17px;
  background:
    linear-gradient(90deg, rgba(182,148,85,.08), transparent 28%),
    #16140f;
  color: var(--brass-light);
  font-family: Cinzel, serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .05em;
}

@media (max-width: 1120px) {
  .film-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .film-library-header {
    align-items: stretch;
    flex-direction: column;
  }

  .film-tools {
    width: 100%;
  }
}

@media (max-width: 780px) {
  .film-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .film-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .film-grid {
    grid-template-columns: 1fr;
  }
}


.film-timeline-card {
  margin-top: 19px;
  padding: 18px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, transparent 1px 40px),
    linear-gradient(180deg, rgba(24,22,18,.97), rgba(9,9,8,.98));
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(0,0,0,.55);
}

.film-timeline-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.film-timeline-heading h2 {
  margin: 0;
  color: var(--bone);
  font-family: Cinzel, serif;
  font-size: 1.15rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.film-annotation-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 19px;
}

.film-comments-card,
.film-timestamp-card {
  margin: 0;
}

.film-timestamp-composer {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
}

.film-timestamp-composer label {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: Oswald, sans-serif;
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.film-timestamp-composer input,
.film-timestamp-composer textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  outline: 0;
  background:
    linear-gradient(180deg, #090908, #050505);
  color: var(--text);
}

.film-timestamp-composer textarea {
  resize: vertical;
}

.film-timestamp-composer input:focus,
.film-timestamp-composer textarea:focus {
  border-color: rgba(212,184,117,.48);
}

.film-entry-note-badge {
  display: inline-block;
  margin-left: 6px;
  color: var(--brass);
  font-size: .65rem;
}

@media (max-width: 900px) {
  .film-annotation-grid {
    grid-template-columns: 1fr;
  }
}


.film-current-position {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  background: rgba(182,148,85,.055);
}

.film-current-position span {
  color: var(--muted);
  font-family: Oswald, sans-serif;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.film-current-position strong {
  color: var(--brass-light);
  font-family: Oswald, sans-serif;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.youtube-frame > #filmPlayer,
.youtube-frame > iframe {
  width: 100%;
  height: 100%;
}


.comment-author-field {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: Oswald, sans-serif;
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.comment-author-field input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  outline: 0;
  background: linear-gradient(180deg, #090908, #050505);
  color: var(--text);
}

.comment-author-field input:focus {
  border-color: rgba(212,184,117,.48);
}

.comment-author-display {
  margin: -5px 0 10px;
  color: var(--brass-light);
  font-family: Oswald, sans-serif;
  font-size: .72rem;
  letter-spacing: .04em;
}

.comment-author-display::before {
  content: "Skriven av ";
  color: var(--muted);
}


.shared-comment-list {
  display: grid;
  gap: 9px;
  max-height: 360px;
  overflow-y: auto;
  margin-bottom: 14px;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: rgba(182,148,85,.3) transparent;
}

.shared-comment-item {
  padding: 12px;
  border: 1px solid rgba(205,193,174,.1);
  background:
    linear-gradient(90deg, rgba(182,148,85,.055), transparent 70%),
    rgba(0,0,0,.2);
}

.shared-comment-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.shared-comment-author {
  color: var(--brass-light);
  font-family: Cinzel, serif;
  font-size: .8rem;
  letter-spacing: .035em;
}

.shared-comment-date {
  color: #777168;
  font-family: Oswald, sans-serif;
  font-size: .65rem;
  letter-spacing: .025em;
  white-space: nowrap;
}

.shared-comment-text {
  margin: 0;
  color: #d0c9be;
  font-size: .79rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.shared-comments-empty {
  margin: 0;
  padding: 13px;
  border: 1px dashed rgba(205,193,174,.13);
  color: #777168;
  font-size: .74rem;
  line-height: 1.5;
}

.shared-comment-form {
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.shared-comment-loading {
  opacity: .65;
}

@media (max-width: 760px) {
  .shared-comment-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}


.film-source-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 19px;
  border: 1px solid var(--line-strong);
  background: var(--line);
  box-shadow: var(--shadow);
}

.film-source-tab {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 72px;
  padding: 15px 20px;
  border: 0;
  background:
    linear-gradient(145deg, rgba(255,255,255,.018), transparent 38%),
    #0d0d0c;
  color: #837d73;
  cursor: pointer;
  text-align: left;
}

.film-source-tab:hover {
  color: var(--bone);
  background:
    linear-gradient(145deg, rgba(182,148,85,.08), transparent 44%),
    #12110f;
}

.film-source-tab.active {
  color: var(--brass-light);
  box-shadow: inset 0 -2px var(--brass-light);
  background:
    linear-gradient(145deg, rgba(182,148,85,.14), transparent 50%),
    #15130f;
}

.film-source-tab > span {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  background: #080807;
  color: var(--brass-light);
  font-family: Cinzel, serif;
  font-weight: 800;
}

.film-source-tab strong,
.film-source-tab small {
  display: block;
}

.film-source-tab strong {
  font-family: Cinzel, serif;
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.film-source-tab small {
  margin-top: 4px;
  color: #746f67;
  font-family: Oswald, sans-serif;
  font-size: .66rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.film-player-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.facebook-player {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.facebook-stream-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  background:
    radial-gradient(circle, rgba(182,148,85,.08), transparent 45%),
    #080807;
  color: var(--brass-light);
  font-family: Cinzel, serif;
  font-size: 2.5rem;
}

.facebook-original-name {
  display: block;
  overflow: hidden;
  margin-top: 6px;
  color: #6f6a62;
  font-family: Oswald, sans-serif;
  font-size: .66rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .film-source-tabs {
    grid-template-columns: 1fr;
  }

  .film-player-actions {
    width: 100%;
    justify-content: stretch;
  }

  .film-player-actions .youtube-link {
    flex: 1;
    text-align: center;
  }
}


.entry-share-row {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 14px;
}

.share-entry-button {
  cursor: pointer;
}

.share-entry-button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.timestamp-share {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  background: #090908;
  color: var(--brass);
  cursor: pointer;
  font-size: .75rem;
}

.timestamp-share:hover {
  border-color: rgba(212,184,117,.48);
  color: var(--brass-light);
  background: rgba(182,148,85,.08);
}

.share-toast {
  position: fixed;
  z-index: 10000;
  right: 22px;
  bottom: 22px;
  max-width: min(380px, calc(100vw - 30px));
  padding: 12px 15px;
  border: 1px solid rgba(212,184,117,.48);
  background:
    linear-gradient(180deg, rgba(29,25,18,.98), rgba(8,8,7,.98));
  box-shadow: 0 18px 45px rgba(0,0,0,.55);
  color: var(--brass-light);
  font-family: Oswald, sans-serif;
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

@media (max-width: 620px) {
  .entry-share-row {
    justify-content: stretch;
  }

  .entry-share-row .share-entry-button {
    width: 100%;
  }

  .share-toast {
    right: 15px;
    bottom: 15px;
    left: 15px;
    max-width: none;
    text-align: center;
  }
}


.entry-control-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0 0 14px;
}

.entry-control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(27,24,18,.98), rgba(8,8,7,.98));
  color: var(--brass-light);
  cursor: pointer;
  font-family: Oswald, sans-serif;
  font-size: .72rem;
  letter-spacing: .055em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.entry-control-button:hover:not(:disabled):not(.disabled-link) {
  border-color: rgba(212,184,117,.52);
  background:
    linear-gradient(180deg, rgba(57,45,25,.98), rgba(15,13,10,.98));
  color: #f0d897;
}

.entry-control-button:disabled,
.entry-control-button.disabled-link {
  cursor: not-allowed;
  opacity: .4;
  pointer-events: none;
}

.film-player-actions.entry-control-row {
  width: min(650px, 100%);
  margin: 0;
}

@media (max-width: 760px) {
  .entry-control-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .film-player-actions.entry-control-row {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .entry-control-row {
    grid-template-columns: 1fr;
  }
}


.media-control-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(145deg, rgba(182,148,85,.065), transparent 46%),
    linear-gradient(180deg, rgba(20,18,14,.98), rgba(7,7,6,.98));
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.5),
    0 12px 28px rgba(0,0,0,.25);
}

.audio-media-control-panel {
  margin-top: 0;
}

.media-control-panel__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 11px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.media-control-panel__heading span {
  color: var(--brass-light);
  font-family: Cinzel, serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.media-control-panel__heading small {
  color: #777168;
  font-family: Oswald, sans-serif;
  font-size: .67rem;
  letter-spacing: .035em;
}

.media-control-panel .entry-control-row {
  margin: 0;
}

.film-entry-control-row {
  width: 100%;
}

.film-player-card .film-card-heading {
  align-items: flex-start;
}

.film-player-card .film-card-heading > div {
  min-width: 0;
  width: 100%;
}

@media (max-width: 620px) {
  .media-control-panel {
    padding: 11px;
  }

  .media-control-panel__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

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

@media (max-width: 370px) {
  .entry-control-row {
    grid-template-columns: 1fr;
  }
}


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

@media (max-width: 820px) {
  .film-source-tabs {
    grid-template-columns: 1fr;
  }
}


.vault-stream-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.9) contrast(1.05) brightness(.84);
}

.film-entry:hover .vault-stream-thumbnail,
.film-entry.active .vault-stream-thumbnail {
  filter: saturate(1) contrast(1.08) brightness(.96);
}


/* V8 – Film Archive Portal */
.film-portal {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at top, rgba(182,148,85,.09), transparent 42%),
    linear-gradient(180deg, rgba(18,16,12,.98), rgba(7,7,6,.98));
  box-shadow: var(--shadow);
}

.film-portal-heading {
  margin-bottom: 20px;
  text-align: center;
}

.film-portal-heading .eyebrow {
  margin: 0 0 6px;
  color: var(--brass-light);
  font-family: Cinzel, serif;
  font-size: .72rem;
  letter-spacing: .2em;
}

.film-portal-heading h2 {
  margin: 0;
  color: var(--bone);
  font-family: Cinzel, serif;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  letter-spacing: .07em;
}

.film-portal-heading p:last-child {
  margin: 8px 0 0;
  color: #827c72;
  font-family: Oswald, sans-serif;
  font-size: .82rem;
  letter-spacing: .04em;
}

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

.film-collection-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(205,193,174,.18);
  background: #080807;
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  cursor: pointer;
  transform: translateY(0) scale(1);
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    filter .2s ease,
    opacity .2s ease;
}

.film-collection-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(.86) contrast(1.04) brightness(.78);
  transition:
    transform .2s ease,
    filter .2s ease;
}

.film-collection-card:hover {
  z-index: 2;
  border-color: rgba(212,184,117,.62);
  box-shadow:
    0 0 0 1px rgba(212,184,117,.14),
    0 18px 42px rgba(0,0,0,.46),
    0 0 26px rgba(182,148,85,.12);
  transform: translateY(-5px) scale(1.012);
}

.film-collection-card:hover img {
  transform: scale(1.025);
  filter: saturate(1) contrast(1.07) brightness(.92);
}

.film-collection-card.active {
  border-color: var(--brass-light);
  box-shadow:
    0 0 0 1px rgba(212,184,117,.32),
    0 20px 48px rgba(0,0,0,.5),
    0 0 34px rgba(182,148,85,.22);
  transform: translateY(-4px) scale(1.018);
}

.film-collection-card.active img {
  filter: saturate(1.03) contrast(1.08) brightness(.97);
}

.film-collection-grid.has-selection
.film-collection-card:not(.active) {
  opacity: .64;
  filter: brightness(.72);
}

.film-collection-grid.has-selection
.film-collection-card:not(.active):hover {
  opacity: 1;
  filter: none;
}

.film-collection-overlay {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 34px 13px 12px;
  background:
    linear-gradient(180deg, transparent, rgba(0,0,0,.88));
  color: white;
  text-align: left;
  pointer-events: none;
}

.film-collection-overlay strong {
  font-family: Cinzel, serif;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.film-collection-overlay small {
  color: #d8c28a;
  font-family: Oswald, sans-serif;
  font-size: .67rem;
  letter-spacing: .06em;
  white-space: nowrap;
  text-transform: uppercase;
}

.film-archive-content {
  margin-top: 18px;
  animation: vaultFilmReveal .22s ease both;
}

.film-archive-content.is-switching {
  opacity: .25;
  transform: translateY(5px);
}

@keyframes vaultFilmReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .film-collection-grid {
    grid-template-columns: 1fr;
  }

  .film-collection-card img {
    aspect-ratio: 16 / 7;
  }
}

@media (max-width: 560px) {
  .film-portal {
    padding: 13px;
  }

  .film-collection-card img {
    aspect-ratio: 16 / 9;
  }

  .film-collection-overlay {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}


/* V9 Audio Portal */
#audioArchiveView.active { display: block; }
.audio-portal { margin-top:18px; padding:24px; border:1px solid var(--line-strong); background:radial-gradient(circle at top,rgba(182,148,85,.09),transparent 42%),linear-gradient(180deg,rgba(18,16,12,.98),rgba(7,7,6,.98)); box-shadow:var(--shadow); }
.audio-portal-heading,.soundcloud-vault-heading { text-align:center; margin-bottom:20px; }
.audio-portal-heading .eyebrow,.soundcloud-vault-heading .eyebrow { margin:0 0 6px; color:var(--brass-light); font-family:Cinzel,serif; font-size:.72rem; letter-spacing:.2em; }
.audio-portal-heading h2,.soundcloud-vault-heading h2 { margin:0; color:var(--bone); font-family:Cinzel,serif; font-size:clamp(1.2rem,2.5vw,2rem); letter-spacing:.07em; }
.audio-portal-heading p:last-child,.soundcloud-vault-heading p:last-child { margin:8px 0 0; color:#827c72; font-family:Oswald,sans-serif; font-size:.82rem; letter-spacing:.04em; }
.audio-collection-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; max-width:1100px; margin:0 auto; }
.audio-collection-card { position:relative; overflow:hidden; min-width:0; padding:0; border:1px solid rgba(205,193,174,.18); background:#080807; box-shadow:0 12px 28px rgba(0,0,0,.28); cursor:pointer; transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease,filter .2s ease,opacity .2s ease; }
.audio-collection-card img { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; filter:saturate(.86) contrast(1.04) brightness(.76); transition:transform .2s ease,filter .2s ease; }
.audio-collection-card:hover { z-index:2; border-color:rgba(212,184,117,.62); box-shadow:0 0 0 1px rgba(212,184,117,.14),0 18px 42px rgba(0,0,0,.46),0 0 26px rgba(182,148,85,.12); transform:translateY(-5px) scale(1.012); }
.audio-collection-card:hover img { transform:scale(1.025); filter:saturate(1) contrast(1.07) brightness(.92); }
.audio-collection-card.active { border-color:var(--brass-light); box-shadow:0 0 0 1px rgba(212,184,117,.32),0 20px 48px rgba(0,0,0,.5),0 0 34px rgba(182,148,85,.22); transform:translateY(-4px) scale(1.018); }
.audio-collection-card.active img { filter:saturate(1.03) contrast(1.08) brightness(.97); }
.audio-collection-grid.has-selection .audio-collection-card:not(.active) { opacity:.64; filter:brightness(.72); }
.audio-collection-grid.has-selection .audio-collection-card:not(.active):hover { opacity:1; filter:none; }
.audio-collection-overlay { position:absolute; inset:auto 0 0; display:flex; align-items:flex-end; justify-content:space-between; gap:12px; padding:34px 13px 12px; background:linear-gradient(180deg,transparent,rgba(0,0,0,.9)); color:white; text-align:left; pointer-events:none; }
.audio-collection-overlay strong { font-family:Cinzel,serif; font-size:.82rem; letter-spacing:.06em; text-transform:uppercase; }
.audio-collection-overlay small { color:#d8c28a; font-family:Oswald,sans-serif; font-size:.67rem; letter-spacing:.06em; white-space:nowrap; text-transform:uppercase; }
.soundcloud-card.active { border-color:#e48122; box-shadow:0 0 0 1px rgba(228,129,34,.28),0 20px 48px rgba(0,0,0,.52),0 0 36px rgba(228,129,34,.22); }
.audio-archive-content,.soundcloud-vault { margin-top:18px; animation:vaultAudioReveal .22s ease both; }
.soundcloud-vault { padding:22px; border:1px solid var(--line-strong); background:radial-gradient(circle at top left,rgba(228,129,34,.09),transparent 34%),linear-gradient(180deg,rgba(18,15,11,.98),rgba(7,7,6,.98)); box-shadow:var(--shadow); }
.soundcloud-player-shell { overflow:hidden; border:1px solid rgba(228,129,34,.35); background:#090806; box-shadow:inset 0 0 0 1px rgba(0,0,0,.55),0 18px 42px rgba(0,0,0,.34); }
.soundcloud-player-shell iframe { display:block; width:100%; }
.soundcloud-actions { display:flex; justify-content:flex-end; margin-top:12px; }
.soundcloud-actions .entry-control-button { min-width:210px; }
@keyframes vaultAudioReveal { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
@media(max-width:850px){ .audio-collection-grid{grid-template-columns:1fr}.audio-collection-card img{aspect-ratio:16/7} }
@media(max-width:560px){ .audio-portal,.soundcloud-vault{padding:13px}.audio-collection-card img{aspect-ratio:16/9}.audio-collection-overlay{align-items:flex-start;flex-direction:column;gap:4px}.soundcloud-actions .entry-control-button{width:100%} }
\n\n/* V9.1 – SoundCloud sidebar and social contact */\n.soundcloud-sidebar-card,\n.connect-card {\n  padding: 16px;\n  border: 1px solid var(--line-strong);\n  background:\n    radial-gradient(circle at top left, rgba(228,129,34,.08), transparent 42%),\n    linear-gradient(180deg, rgba(18,16,12,.98), rgba(7,7,6,.98));\n  box-shadow: var(--shadow);\n}\n\n.soundcloud-sidebar-heading {\n  align-items: flex-start;\n}\n\n.sidebar-kicker {\n  margin: 0 0 4px;\n  color: #a8864d;\n  font-family: Oswald, sans-serif;\n  font-size: .62rem;\n  letter-spacing: .12em;\n}\n\n.soundcloud-dot {\n  width: 10px;\n  height: 10px;\n  margin-top: 5px;\n  border-radius: 50%;\n  background: #e48122;\n  box-shadow: 0 0 15px rgba(228,129,34,.6);\n}\n\n.soundcloud-sidebar-cover {\n  display: block;\n  width: 100%;\n  height: auto;\n  margin: 12px 0;\n  border: 1px solid rgba(228,129,34,.32);\n  object-fit: contain;\n  aspect-ratio: 1 / 1;\n  background: #080706;\n}\n\n.soundcloud-sidebar-player {\n  overflow: hidden;\n  border: 1px solid rgba(228,129,34,.25);\n  background: #080706;\n}\n\n.soundcloud-sidebar-player iframe {\n  display: block;\n  width: 100%;\n}\n\n.soundcloud-open-link {\n  width: 100%;\n  margin-top: 10px;\n}\n\n.connect-card {\n  display: flex;\n  align-items: center;\n  gap: 14px;\n  background:\n    radial-gradient(circle at left, rgba(176,64,184,.13), transparent 42%),\n    linear-gradient(180deg, rgba(18,16,18,.98), rgba(7,7,7,.98));\n}\n\n.connect-card-icon {\n  display: grid;\n  flex: 0 0 56px;\n  width: 56px;\n  height: 56px;\n  place-items: center;\n  border: 1px solid rgba(218,117,206,.42);\n  border-radius: 50%;\n  background: linear-gradient(145deg, #6b2da3, #d24c82 55%, #e58b32);\n  box-shadow: 0 0 22px rgba(176,64,184,.22);\n  color: white;\n  font-size: 1.7rem;\n}\n\n.connect-card-copy h2 {\n  margin: 0;\n  color: var(--bone);\n  font-family: Cinzel, serif;\n  font-size: .96rem;\n}\n\n.connect-card-copy p:not(.sidebar-kicker) {\n  margin: 6px 0;\n  color: #8f897f;\n  font-size: .78rem;\n  line-height: 1.45;\n}\n\n.connect-card-copy a {\n  color: #d7b970;\n  font-family: Oswald, sans-serif;\n  font-size: .78rem;\n  letter-spacing: .04em;\n  text-decoration: none;\n}\n\n.connect-card-copy a:hover {\n  color: #f0d897;\n  text-decoration: underline;\n}\n

/* V9.1.2 – restore original page width and responsive SoundCloud sidebar */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

#audioView,
.audio-layout,
.audio-main-layout,
.audio-page-grid,
.audio-content-grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.audio-layout,
.audio-main-layout,
.audio-page-grid,
.audio-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: start;
  gap: 18px;
}

.audio-layout > *,
.audio-main-layout > *,
.audio-page-grid > *,
.audio-content-grid > * {
  min-width: 0;
  max-width: 100%;
}

.soundcloud-sidebar,
.audio-sidebar,
.soundcloud-panel,
.soundcloud-sidebar-panel {
  width: 100%;
  min-width: 0;
  max-width: 360px;
  justify-self: end;
  overflow: hidden;
}

.soundcloud-sidebar img,
.audio-sidebar img,
.soundcloud-panel img,
.soundcloud-sidebar-panel img,
.soundcloud-cover {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.soundcloud-sidebar iframe,
.audio-sidebar iframe,
.soundcloud-panel iframe,
.soundcloud-sidebar-panel iframe,
#soundCloudPlayer {
  display: block;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  border: 0;
}

.player-card,
.vault-card,
.archive-panel,
.audio-archive-main,
.audio-main-column {
  min-width: 0;
  max-width: 100%;
}

input,
select,
textarea,
button,
audio,
video,
iframe {
  max-width: 100%;
}

@media (max-width: 1100px) {
  .audio-layout,
  .audio-main-layout,
  .audio-page-grid,
  .audio-content-grid {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
    gap: 14px;
  }

  .soundcloud-sidebar,
  .audio-sidebar,
  .soundcloud-panel,
  .soundcloud-sidebar-panel {
    max-width: 310px;
  }
}

@media (max-width: 860px) {
  .audio-layout,
  .audio-main-layout,
  .audio-page-grid,
  .audio-content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .soundcloud-sidebar,
  .audio-sidebar,
  .soundcloud-panel,
  .soundcloud-sidebar-panel {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }
}


/* V9.1.3 – exact Audio Archive width fix */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/*
 * Use the site's actual layout selectors.
 * The previous patch targeted generic class names that this page does not use.
 */
#audioArchiveView.layout {
  width: min(1380px, calc(100vw - 42px));
  max-width: calc(100vw - 42px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  overflow: visible;
}

#audioArchiveView > .library-card,
#audioArchiveView > .sidebar {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

#audioArchiveView .sidebar {
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

#audioArchiveView .sidebar > *,
#audioArchiveView .sidebar section,
#audioArchiveView .sidebar form,
#audioArchiveView .sidebar iframe,
#audioArchiveView .sidebar img,
#audioArchiveView .sidebar audio,
#audioArchiveView .sidebar video {
  min-width: 0;
  max-width: 100%;
}

#audioArchiveView .now-card,
#audioArchiveView .soundcloud-sidebar-card,
#audioArchiveView .connect-card,
#audioArchiveView .media-control-panel,
#audioArchiveView .comments-card,
#audioArchiveView .timestamp-card,
#audioArchiveView .info-card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

#audioArchiveView .soundcloud-sidebar-cover {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

#audioArchiveView .soundcloud-sidebar-player,
#audioArchiveView #soundCloudPlayer {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

#audioArchiveView .entry-control-row {
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#audioArchiveView .entry-control-button {
  min-width: 0;
  width: 100%;
  white-space: normal;
}

#audioArchiveView .transport {
  width: 100%;
  max-width: 100%;
}

#audioArchiveView .comments-card textarea,
#audioArchiveView .timestamp-card textarea,
#audioArchiveView input,
#audioArchiveView select {
  min-width: 0;
  max-width: 100%;
}

/* Stack the sidebar below the archive before it becomes cramped. */
@media (max-width: 1120px) {
  #audioArchiveView.layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #audioArchiveView .sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  #audioArchiveView .now-card,
  #audioArchiveView .soundcloud-sidebar-card {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  #audioArchiveView.layout {
    width: min(100% - 20px, 1380px);
    max-width: calc(100vw - 20px);
  }

  #audioArchiveView .sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  #audioArchiveView .entry-control-row {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* V9.1.5 – timestamp comments only */
#audioArchiveView .comments-card {
  display: none !important;
}

#audioArchiveView .now-card {
  order: 1;
}

#audioArchiveView .timestamp-card {
  order: 2;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
}

#audioArchiveView .soundcloud-sidebar-card,
#audioArchiveView .connect-card,
#audioArchiveView .info-card {
  order: 3;
}

#audioArchiveView .timestamp-list {
  max-height: 300px;
  overflow-y: auto;
}

/* Make the timestamp form feel like the selected track's comment area. */
#audioArchiveView .timestamp-card h2,
#audioArchiveView .timestamp-card h3 {
  color: var(--brass-light);
}

@media (max-width: 1120px) {
  #audioArchiveView .timestamp-card {
    grid-column: 1 / -1;
  }
}


/* V9.1.6 – SoundCloud-style fixed bottom player */
:root {
  --bottom-player-height: 104px;
}

body {
  padding-bottom: calc(var(--bottom-player-height) + 18px);
}

.bottom-player-dock {
  position: fixed;
  z-index: 1000;
  inset: auto 0 0;
  display: grid;
  grid-template-columns:
    minmax(190px, 330px)
    minmax(240px, 1fr)
    auto
    minmax(110px, 180px);
  grid-template-areas:
    "track timeline transport volume";
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: var(--bottom-player-height);
  margin: 0;
  padding: 12px max(18px, calc((100vw - 1380px) / 2));
  border: 0;
  border-top: 1px solid rgba(212,184,117,.32);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(31,29,26,.99), rgba(15,15,14,.995));
  box-shadow:
    0 -12px 34px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.025);
  overflow: hidden;
}

.bottom-player-dock .card-heading,
.bottom-player-dock .cover {
  display: none;
}

.bottom-player-dock .now-copy {
  grid-area: track;
  min-width: 0;
  margin: 0;
  text-align: left;
}

.bottom-player-dock .now-copy strong,
.bottom-player-dock .now-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-player-dock .now-copy strong {
  color: var(--bone);
  font-family: Cinzel, serif;
  font-size: .88rem;
  letter-spacing: .035em;
}

.bottom-player-dock .now-copy span {
  margin-top: 4px;
  color: #a59983;
  font-family: Oswald, sans-serif;
  font-size: .72rem;
}

.bottom-player-dock .timeline {
  grid-area: timeline;
  min-width: 0;
  margin: 0;
}

.bottom-player-dock .seek-wrap {
  width: 100%;
}

.bottom-player-dock .time-row {
  margin-top: 4px;
}

.bottom-player-dock .transport {
  grid-area: transport;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  margin: 0;
}

.bottom-player-dock .round-button,
.bottom-player-dock .main-play {
  flex: 0 0 auto;
}

.bottom-player-dock .main-play {
  width: 52px;
  height: 52px;
  min-width: 52px;
}

.bottom-player-dock .round-button {
  width: 36px;
  height: 36px;
}

.bottom-player-dock .round-button.small {
  width: 31px;
  height: 31px;
}

.bottom-player-dock .volume-row {
  grid-area: volume;
  width: 100%;
  margin: 0;
}

#audioArchiveView .sidebar {
  max-height: none;
}

/* Tablet: keep the fixed dock, but use two rows. */
@media (max-width: 980px) {
  :root {
    --bottom-player-height: 150px;
  }

  .bottom-player-dock {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "track transport"
      "timeline timeline";
    gap: 10px 16px;
    padding-inline: 18px;
  }

  .bottom-player-dock .volume-row {
    display: none;
  }
}

/* Mobile: compact vertical layout. */
@media (max-width: 620px) {
  :root {
    --bottom-player-height: 188px;
  }

  .bottom-player-dock {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "track"
      "timeline"
      "transport";
    gap: 8px;
    padding: 10px 12px 12px;
  }

  .bottom-player-dock .now-copy {
    text-align: center;
  }

  .bottom-player-dock .transport {
    justify-content: center;
  }

  .bottom-player-dock .round-button.small {
    display: none;
  }

  .bottom-player-dock .main-play {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }
}


/* V9.1.7 – hide the audio dock outside Audio Archive */
.bottom-player-dock.hidden {
  display: none !important;
}

body:has(#filmArchiveView:not(.hidden)) {
  padding-bottom: 0;
}


/* V9.1.8 – Copy Link action in fixed bottom player */
.bottom-player-dock {
  grid-template-columns:
    minmax(190px, 310px)
    minmax(240px, 1fr)
    auto
    minmax(100px, 155px)
    auto;
  grid-template-areas:
    "track timeline transport volume actions";
}

.bottom-player-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.bottom-player-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(212,184,117,.3);
  background: rgba(8,8,7,.54);
  color: var(--brass-light);
  font-family: Oswald, sans-serif;
  font-size: .7rem;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color .16s ease,
    background .16s ease,
    color .16s ease;
}

.bottom-player-action:hover:not(:disabled) {
  border-color: var(--brass-light);
  background: rgba(182,148,85,.12);
  color: var(--bone);
}

.bottom-player-action:disabled {
  cursor: default;
  opacity: .35;
}

@media (max-width: 1120px) {
  .bottom-player-dock {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "track transport actions"
      "timeline timeline timeline";
  }

  .bottom-player-dock .volume-row {
    display: none;
  }
}

@media (max-width: 700px) {
  :root {
    --bottom-player-height: 218px;
  }

  .bottom-player-dock {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "track track"
      "timeline timeline"
      "transport actions";
  }

  .bottom-player-action span:last-child {
    display: none;
  }

  .bottom-player-action {
    width: 42px;
    min-width: 42px;
    padding-inline: 0;
  }
}


/* V9.1.9 – Copy confirmation and right sidebar scrolling */
@media (min-width: 1121px) {
  #audioArchiveView .sidebar {
    position: sticky;
    top: 76px;
    max-height:
      calc(
        100vh
        - 76px
        - var(--bottom-player-height)
        - 18px
      );
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding-right: 7px;
    padding-bottom: 18px;
    scrollbar-width: thin;
    scrollbar-color: rgba(182,148,85,.38) transparent;
  }

  #audioArchiveView .sidebar::-webkit-scrollbar {
    width: 7px;
  }

  #audioArchiveView .sidebar::-webkit-scrollbar-track {
    background: transparent;
  }

  #audioArchiveView .sidebar::-webkit-scrollbar-thumb {
    border-radius: 2px;
    background: rgba(182,148,85,.34);
  }
}

/* When the sidebar stacks below the archive, use normal page scrolling. */
@media (max-width: 1120px) {
  #audioArchiveView .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-bottom: 0;
  }
}


/* Robust copy confirmation above the fixed player */
.share-toast {
  position: fixed;
  z-index: 1300;
  left: 50%;
  bottom: calc(var(--bottom-player-height) + 18px);
  max-width: min(90vw, 420px);
  padding: 11px 16px;
  border: 1px solid rgba(212,184,117,.48);
  background: rgba(10,10,9,.97);
  box-shadow: 0 12px 32px rgba(0,0,0,.55);
  color: var(--bone);
  font-family: Oswald, sans-serif;
  font-size: .78rem;
  letter-spacing: .055em;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.share-toast.hidden {
  display: none !important;
}


/* V10.2 – search-only Vault header */
.library-tools {
  display: flex;
  justify-content: flex-end;
  grid-template-columns: none;
}

.library-tools .search-box {
  width: min(420px, 100%);
  min-width: 260px;
}

.library-tools .search-box input {
  width: 100%;
}

@media (max-width: 760px) {
  .library-tools {
    justify-content: stretch;
  }

  .library-tools .search-box {
    width: 100%;
    min-width: 0;
  }
}


/* V11 – Latest Activity */
.archive-switcher__inner {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.activity-layout {
  width: min(1180px, calc(100vw - 42px));
  margin: 24px auto;
}

.activity-card {
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at top, rgba(182,148,85,.08), transparent 35%),
    linear-gradient(180deg, rgba(20,19,17,.98), rgba(8,8,7,.99));
  box-shadow: var(--shadow);
}

.activity-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.activity-eyebrow {
  margin: 0 0 5px;
  color: var(--brass-light);
  font-family: Cinzel, serif;
  font-size: .68rem;
  letter-spacing: .2em;
}

.activity-header h2 {
  margin: 0;
  color: var(--bone);
  font-family: Cinzel, serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: .06em;
}

.activity-header p:last-child {
  margin: 7px 0 0;
  color: #8f887d;
  font-family: Oswald, sans-serif;
  font-size: .8rem;
}

.activity-tools {
  display: flex;
  gap: 7px;
}

.activity-filter {
  padding: 8px 13px;
  border: 1px solid var(--line);
  background: #0b0b0a;
  color: #918a7f;
  font-family: Oswald, sans-serif;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.activity-filter:hover,
.activity-filter.active {
  border-color: var(--brass-light);
  color: var(--bone);
  background: rgba(182,148,85,.1);
}

.latest-activity-list {
  display: grid;
}

.activity-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 17px 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease;
}

.activity-entry:hover {
  background: rgba(182,148,85,.07);
}

.activity-entry:last-child {
  border-bottom: 0;
}

.activity-type-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(212,184,117,.32);
  color: var(--brass-light);
  font-size: 1rem;
}

.activity-entry[data-activity-type="video"] .activity-type-icon {
  color: #caa7df;
  border-color: rgba(171,117,199,.34);
}

.activity-entry-copy {
  min-width: 0;
}

.activity-entry-title {
  display: block;
  overflow: hidden;
  color: var(--bone);
  font-family: Cinzel, serif;
  font-size: .85rem;
  letter-spacing: .03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-entry-note {
  margin: 5px 0 0;
  color: #bbb2a5;
  font-family: Inter, sans-serif;
  font-size: .82rem;
  line-height: 1.45;
}

.activity-entry-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 7px;
  color: #746e65;
  font-family: Oswald, sans-serif;
  font-size: .68rem;
  letter-spacing: .04em;
}

.activity-timestamp {
  color: var(--brass-light);
}

.activity-open {
  color: #9f978b;
  font-family: Oswald, sans-serif;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.activity-empty {
  margin: 0;
  padding: 38px 22px;
  color: #827c72;
  font-family: Oswald, sans-serif;
  text-align: center;
}

@media (max-width: 800px) {
  .archive-switcher__inner {
    grid-template-columns: 1fr;
  }

  .activity-layout {
    width: min(100% - 20px, 1180px);
  }

  .activity-header {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-tools {
    width: 100%;
  }

  .activity-filter {
    flex: 1;
  }

  .activity-entry {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .activity-open {
    display: none;
  }
}


/* V11.1 – two-mode share menus */
.share-menu-wrap {
  position: relative;
  min-width: 0;
}

.film-share-menu-wrap {
  width: 100%;
}

.vault-share-menu {
  position: absolute;
  z-index: 1500;
  right: 0;
  bottom: calc(100% + 9px);
  display: grid;
  width: min(310px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid rgba(212,184,117,.42);
  background: rgba(10,10,9,.99);
  box-shadow: 0 18px 46px rgba(0,0,0,.64);
}

.film-share-menu-wrap .vault-share-menu {
  top: calc(100% + 8px);
  bottom: auto;
}

.vault-share-menu.hidden {
  display: none !important;
}

.vault-share-menu button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 13px;
  border: 0;
  border-bottom: 1px solid rgba(205,193,174,.1);
  background: transparent;
  color: var(--bone);
  text-align: left;
  cursor: pointer;
}

.vault-share-menu button:last-child {
  border-bottom: 0;
}

.vault-share-menu button:hover {
  background: rgba(182,148,85,.11);
}

.vault-share-menu button > span:first-child {
  color: var(--brass-light);
  font-size: 1rem;
  text-align: center;
}

.vault-share-menu strong,
.vault-share-menu small {
  display: block;
}

.vault-share-menu strong {
  font-family: Oswald, sans-serif;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.vault-share-menu small {
  margin-top: 3px;
  color: #80796f;
  font-family: Inter, sans-serif;
  font-size: .68rem;
}

.film-entry-control-row > .share-menu-wrap {
  min-width: 0;
}

@media (max-width: 700px) {
  .bottom-player-actions .vault-share-menu {
    position: fixed;
    right: 12px;
    bottom: calc(var(--bottom-player-height) + 10px);
    left: 12px;
    width: auto;
  }

  .film-share-menu-wrap .vault-share-menu {
    right: 0;
    left: auto;
  }
}


/* V11.1.1 – keep Share menus inside the viewport */
.vault-share-menu {
  max-height: min(320px, calc(100vh - 24px));
  overflow-x: hidden;
  overflow-y: auto;
}

@media (min-width: 701px) {
  .vault-share-menu,
  .film-share-menu-wrap .vault-share-menu {
    margin: 0;
  }
}

/* Mobile bottom sheet; Download remains a separate control. */
@media (max-width: 700px) {
  .bottom-player-actions .vault-share-menu,
  .film-share-menu-wrap .vault-share-menu {
    position: fixed !important;
    z-index: 1800;
    top: auto !important;
    right: 10px !important;
    bottom: calc(var(--bottom-player-height) + 10px) !important;
    left: 10px !important;
    width: auto !important;
    max-height: min(300px, calc(100vh - var(--bottom-player-height) - 30px));
    border-color: rgba(212,184,117,.56);
    box-shadow:
      0 -12px 40px rgba(0,0,0,.72),
      0 0 0 9999px rgba(0,0,0,.28);
  }

  .vault-share-menu button {
    min-height: 64px;
    padding: 13px 15px;
  }

  .vault-share-menu strong {
    font-size: .8rem;
  }

  .vault-share-menu small {
    font-size: .7rem;
  }
}


/* V12 – unified, mobile-friendly timestamp comments */
.timestamp-field {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.timestamp-field > span {
  color: #8f887d;
  font-family: Oswald, sans-serif;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.timestamp-field input,
.timestamp-composer textarea,
.film-timestamp-composer textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  font-size: 16px;
}

.timestamp-note-author {
  display: block;
  margin-top: 5px;
  color: #817a70;
  font-family: Oswald, sans-serif;
  font-size: .66rem;
  letter-spacing: .05em;
}

#addTimestampButton,
#saveTimestampButton,
#cancelTimestampButton,
#saveFilmTimestampButton {
  min-height: 46px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 700px) {
  .timestamp-card,
  .film-timestamp-card,
  .timestamp-composer,
  .film-timestamp-composer {
    overflow: visible;
  }

  .timestamp-composer {
    scroll-margin-bottom:
      calc(var(--bottom-player-height) + 24px);
  }

  .timestamp-composer .comments-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #saveTimestampButton,
  #cancelTimestampButton,
  #saveFilmTimestampButton {
    width: 100%;
  }
}


/* V12.1 – Latest Activity reply threads */
.activity-thread {
  border-bottom: 1px solid var(--line);
}

.activity-thread:last-child {
  border-bottom: 0;
}

.activity-thread > .activity-entry {
  border-bottom: 0;
}

.activity-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 11px;
}

.activity-entry-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brass-light);
  font-family: Oswald, sans-serif;
  font-size: .68rem;
  letter-spacing: .065em;
  text-transform: uppercase;
  cursor: pointer;
}

.activity-entry-actions button:hover {
  color: var(--bone);
}

.activity-reply-form {
  display: grid;
  gap: 10px;
  margin: 0 22px 16px 80px;
  padding: 14px;
  border: 1px solid rgba(212,184,117,.2);
  background: rgba(0,0,0,.2);
}

.activity-reply-form.hidden,
.activity-replies.hidden {
  display: none !important;
}

.activity-reply-form label {
  display: grid;
  gap: 5px;
}

.activity-reply-form label > span {
  color: #8f887d;
  font-family: Oswald, sans-serif;
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.activity-reply-form input,
.activity-reply-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: #0a0a09;
  color: var(--bone);
  font: inherit;
  font-size: 16px;
}

.activity-reply-form-actions {
  display: flex;
  gap: 8px;
}

.activity-reply-form-actions button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(212,184,117,.3);
  background: rgba(182,148,85,.08);
  color: var(--bone);
  font-family: Oswald, sans-serif;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.activity-replies {
  display: grid;
  gap: 1px;
  margin: 0 22px 18px 80px;
  border-left: 2px solid rgba(182,148,85,.22);
}

.activity-reply {
  padding: 11px 13px;
  background: rgba(255,255,255,.018);
}

.activity-reply-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #777168;
  font-family: Oswald, sans-serif;
  font-size: .66rem;
}

.activity-reply-meta strong {
  color: var(--brass-light);
  font-weight: 500;
}

.activity-reply p {
  margin: 6px 0 0;
  color: #bcb3a7;
  font-family: Inter, sans-serif;
  font-size: .8rem;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .activity-reply-form,
  .activity-replies {
    margin-right: 12px;
    margin-left: 12px;
  }

  .activity-reply-form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .activity-reply-form-actions button {
    width: 100%;
    min-height: 46px;
  }
}


/* V12.2 – timestamp discussions and likes */
.timestamp-discussion {
  display: block;
  padding: 0;
}

.timestamp-discussion-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 12px;
}

.timestamp-discussion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.timestamp-discussion-actions button,
.timestamp-like {
  padding: 0;
  border: 0;
  background: transparent;
  color: #9a9286;
  font-family: Oswald, sans-serif;
  font-size: .66rem;
  letter-spacing: .05em;
  cursor: pointer;
}

.timestamp-discussion-actions button:hover,
.timestamp-like:hover,
.timestamp-like.liked {
  color: var(--brass-light);
}

.timestamp-like.liked {
  font-weight: 600;
}

.timestamp-inline-reply-form {
  display: grid;
  gap: 8px;
  margin: 0 12px 12px;
  padding: 11px;
  border: 1px solid rgba(212,184,117,.2);
  background: rgba(0,0,0,.2);
}

.timestamp-inline-reply-form.hidden,
.timestamp-thread-replies.hidden {
  display: none !important;
}

.timestamp-inline-reply-form input,
.timestamp-inline-reply-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  background: #090908;
  color: var(--bone);
  font-size: 16px;
}

.timestamp-inline-reply-form > div {
  display: flex;
  gap: 8px;
}

.timestamp-inline-reply-form button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(212,184,117,.28);
  background: rgba(182,148,85,.08);
  color: var(--bone);
  font-family: Oswald, sans-serif;
  cursor: pointer;
}

.timestamp-thread-replies {
  display: grid;
  gap: 1px;
  margin: 0 12px 12px 42px;
  border-left: 2px solid rgba(182,148,85,.22);
}

.timestamp-thread-reply {
  padding: 10px 12px;
  background: rgba(255,255,255,.018);
}

.timestamp-thread-reply-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #777168;
  font-family: Oswald, sans-serif;
  font-size: .64rem;
}

.timestamp-thread-reply-meta strong {
  color: var(--brass-light);
  font-weight: 500;
}

.timestamp-thread-reply p {
  margin: 5px 0 7px;
  color: #bbb2a6;
  font-family: Inter, sans-serif;
  font-size: .78rem;
  line-height: 1.4;
}

@media (max-width: 700px) {
  .timestamp-inline-reply-form > div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .timestamp-inline-reply-form button {
    width: 100%;
    min-height: 46px;
  }

  .timestamp-thread-replies {
    margin-left: 12px;
  }
}


/* V12.3 – mobile full-screen composer */
.mobile-comment-composer {
  display: none;
}

@media (max-width: 700px) {
  body.mobile-composer-open {
    overflow: hidden;
  }

  .mobile-comment-composer:not(.hidden) {
    position: fixed;
    z-index: 2200;
    inset: 0;
    display: block;
  }

  .mobile-composer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.68);
  }

  .mobile-composer-sheet {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    background:
      radial-gradient(
        circle at top,
        rgba(182,148,85,.08),
        transparent 34%
      ),
      linear-gradient(
        180deg,
        rgba(24,22,19,.998),
        rgba(7,7,6,.998)
      );
  }

  .mobile-composer-header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding:
      max(12px, env(safe-area-inset-top))
      14px
      12px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-composer-back {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(212,184,117,.25);
    background: rgba(0,0,0,.22);
    color: var(--bone);
    font-size: 1.25rem;
  }

  .mobile-composer-header p {
    margin: 0 0 3px;
    color: var(--brass-light);
    font-family: Oswald, sans-serif;
    font-size: .65rem;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .mobile-composer-header h2 {
    margin: 0;
    color: var(--bone);
    font-family: Cinzel, serif;
    font-size: 1rem;
  }

  .mobile-composer-header span {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: #8f887d;
    font-family: Oswald, sans-serif;
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-composer-body {
    display: grid;
    align-content: start;
    gap: 16px;
    min-height: 0;
    padding: 18px 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-composer-body label {
    display: grid;
    gap: 7px;
  }

  .mobile-composer-body label > span {
    color: #968f84;
    font-family: Oswald, sans-serif;
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .mobile-composer-body input,
  .mobile-composer-body textarea {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(212,184,117,.22);
    background: #090908;
    color: var(--bone);
    font-family: Inter, sans-serif;
    font-size: 16px;
  }

  .mobile-composer-body input {
    min-height: 48px;
  }

  .mobile-composer-body textarea {
    min-height: 180px;
    resize: none;
  }

  .mobile-composer-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding:
      11px
      14px
      max(11px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(13,12,11,.995);
  }

  .mobile-composer-footer button {
    min-height: 48px;
    border: 1px solid rgba(212,184,117,.3);
    background: rgba(182,148,85,.08);
    color: var(--bone);
    font-family: Oswald, sans-serif;
    font-size: .74rem;
    letter-spacing: .07em;
    text-transform: uppercase;
  }

  #mobileComposerSubmit {
    border-color: var(--brass-light);
    background: rgba(182,148,85,.18);
  }

  /* Inline composers stay desktop-only. */
  .timestamp-inline-reply-form {
    display: none !important;
  }

  .timestamp-composer:not(.hidden) {
    display: none !important;
  }
}


/* V12.3.1 – discussion opened from Latest Activity */
.timestamp-discussion.opened-discussion-highlight {
  animation: opened-discussion-pulse 2.6s ease;
}

@keyframes opened-discussion-pulse {
  0%,
  100% {
    box-shadow: none;
    background: transparent;
  }

  18%,
  62% {
    box-shadow:
      inset 0 0 0 1px rgba(212,184,117,.58),
      0 0 22px rgba(182,148,85,.14);
    background: rgba(182,148,85,.1);
  }
}

@media (max-width: 700px) {
  .timestamp-card,
  .film-timestamp-card {
    scroll-margin-top: 12px;
  }

  .timestamp-discussion {
    scroll-margin-top: 82px;
    scroll-margin-bottom:
      calc(var(--bottom-player-height) + 24px);
  }
}


/* V12.3.2 – dedicated mobile Timestamp Notes panel */
.mobile-notes-button,
.mobile-notes-close {
  display: none;
}

@media (max-width: 700px) {
  .mobile-notes-button {
    display: inline-flex;
  }

  .mobile-notes-close {
    display: grid;
    place-items: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(212,184,117,.3);
    background: rgba(0,0,0,.3);
    color: var(--bone);
    font-size: 1.35rem;
    line-height: 1;
  }

  #audioTimestampPanel.timestamp-card {
    position: fixed;
    z-index: 1900;
    top: 10px;
    right: 10px;
    bottom: calc(var(--bottom-player-height) + 10px);
    left: 10px;
    display: none;
    width: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(212,184,117,.55);
    background:
      radial-gradient(
        circle at top,
        rgba(182,148,85,.09),
        transparent 34%
      ),
      linear-gradient(
        180deg,
        rgba(25,23,20,.998),
        rgba(7,7,6,.998)
      );
    box-shadow:
      0 18px 55px rgba(0,0,0,.8),
      0 0 0 9999px rgba(0,0,0,.64);
    -webkit-overflow-scrolling: touch;
  }

  #audioTimestampPanel.mobile-notes-panel-open {
    display: block;
  }

  #audioTimestampPanel .timestamp-heading {
    position: sticky;
    z-index: 5;
    top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    padding: 13px;
    background:
      linear-gradient(
        180deg,
        rgba(29,27,23,.998),
        rgba(19,18,16,.985)
      );
    border-bottom: 1px solid var(--line);
  }

  #audioTimestampPanel .timestamp-list {
    max-height: none;
    overflow: visible;
    padding-bottom: 18px;
  }

  #audioTimestampPanel .timestamp-discussion {
    scroll-margin-top: 86px;
    scroll-margin-bottom: 24px;
  }

  body.mobile-notes-panel-active {
    overflow: hidden;
  }

  #audioTimestampPanel:not(.mobile-notes-panel-open) {
    display: none !important;
  }
}


/* V13 – Forum */
.forum-header {
  align-items: center;
}

.forum-search {
  display: grid;
  gap: 6px;
  width: min(420px, 100%);
}

.forum-search > span {
  color: #8f887d;
  font-family: Oswald, sans-serif;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.forum-search input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #090908;
  color: var(--bone);
  font-size: 16px;
}

.forum-filters {
  justify-content: flex-start;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
}

.forum-thread {
  border-bottom: 1px solid var(--line);
}

.forum-thread:last-child {
  border-bottom: 0;
}

.forum-thread-open {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.forum-thread-open:hover {
  background: rgba(182,148,85,.07);
}

.forum-thread-copy {
  display: grid;
  min-width: 0;
}

.forum-thread-source {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #948d82;
  font-family: Oswald, sans-serif;
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.forum-thread-source b {
  color: var(--brass-light);
  font-weight: 500;
}

.forum-thread-title {
  margin-top: 5px;
  color: var(--bone);
  font-family: Cinzel, serif;
  font-size: .94rem;
  line-height: 1.35;
}

.forum-thread-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 6px;
  color: #aaa195;
  font-family: Inter, sans-serif;
  font-size: .8rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.forum-thread-meta {
  margin-top: 10px;
}

.forum-open-label {
  color: var(--brass-light);
  font-family: Oswald, sans-serif;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 800px) {
  .forum-header {
    align-items: stretch;
  }

  .forum-search {
    width: 100%;
  }

  .forum-filters {
    display: flex;
    overflow-x: auto;
    padding: 10px 12px;
    scrollbar-width: thin;
  }

  .forum-filters .activity-filter {
    flex: 0 0 auto;
  }

  .forum-thread-open {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 15px 13px;
  }

  .forum-open-label {
    display: none;
  }
}


/* V13.1 – internal Forum thread view */
.forum-thread-view {
  min-height: 520px;
}

.forum-thread-view-header {
  display: grid;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(
      circle at top left,
      rgba(182,148,85,.09),
      transparent 40%
    );
}

.forum-back-button {
  justify-self: start;
  padding: 8px 12px;
  border: 1px solid rgba(212,184,117,.28);
  background: rgba(182,148,85,.07);
  color: var(--brass-light);
  font-family: Oswald, sans-serif;
  font-size: .7rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
}

.forum-thread-view-header h2 {
  margin: 5px 0 0;
  color: var(--bone);
  font-family: Cinzel, serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  line-height: 1.3;
}

.forum-thread-view-meta {
  margin: 0;
  color: #968f84;
  font-family: Oswald, sans-serif;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.forum-thread-media {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.18);
}

.forum-audio-moment {
  display: flex;
  align-items: center;
  gap: 12px;
}

.forum-audio-moment span {
  min-width: 0;
  overflow: hidden;
  color: var(--bone);
  font-family: Cinzel, serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-audio-moment strong {
  color: var(--brass-light);
  font-family: Oswald, sans-serif;
}

.forum-thread-media button {
  margin-left: auto;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--brass-light);
  background: rgba(182,148,85,.14);
  color: var(--bone);
  font-family: Oswald, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.forum-video-moment {
  display: grid;
  gap: 12px;
}

.forum-video-moment video {
  width: 100%;
  max-height: 560px;
  background: #000;
}

.forum-video-moment button {
  justify-self: start;
  margin-left: 0;
}

.forum-thread-posts {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.forum-post {
  padding: 20px 24px;
  background: rgba(12,12,11,.99);
}

.forum-post-root {
  background:
    linear-gradient(
      180deg,
      rgba(31,28,23,.98),
      rgba(15,14,12,.99)
    );
}

.forum-post-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: #79736b;
  font-family: Oswald, sans-serif;
  font-size: .68rem;
}

.forum-post-header strong {
  color: var(--brass-light);
  font-weight: 500;
}

.forum-post p {
  margin: 12px 0;
  color: #c1b8ab;
  font-family: Inter, sans-serif;
  font-size: .88rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.forum-reply-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-top: 1px solid var(--line);
  background: rgba(7,7,6,.99);
}

.forum-reply-form h3 {
  margin: 0;
  color: var(--bone);
  font-family: Cinzel, serif;
}

.forum-reply-form label {
  display: grid;
  gap: 6px;
}

.forum-reply-form label > span {
  color: #918a80;
  font-family: Oswald, sans-serif;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.forum-reply-form input,
.forum-reply-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  background: #090908;
  color: var(--bone);
  font-family: Inter, sans-serif;
  font-size: 16px;
}

.forum-reply-form button {
  justify-self: start;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--brass-light);
  background: rgba(182,148,85,.15);
  color: var(--bone);
  font-family: Oswald, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 700px) {
  .forum-thread-view-header,
  .forum-thread-media,
  .forum-post,
  .forum-reply-form {
    padding-right: 14px;
    padding-left: 14px;
  }

  .forum-audio-moment {
    align-items: stretch;
    flex-direction: column;
  }

  .forum-thread-media button,
  .forum-reply-form button {
    width: 100%;
    margin-left: 0;
  }
}


/* V13.2 – general and moment discussion choice */
.thread-scope-picker {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(212,184,117,.2);
  background: rgba(0,0,0,.16);
}

.thread-scope-picker legend {
  padding: 0 5px;
  color: #a29a8e;
  font-family: Oswald, sans-serif;
  font-size: .68rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.thread-scope-picker label {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: start;
  gap: 9px;
  padding: 9px;
  cursor: pointer;
}

.thread-scope-picker label:has(input:checked) {
  background: rgba(182,148,85,.1);
  box-shadow: inset 0 0 0 1px rgba(212,184,117,.28);
}

.thread-scope-picker input {
  margin-top: 3px;
  accent-color: #b69455;
}

.thread-scope-picker strong,
.thread-scope-picker small {
  display: block;
}

.thread-scope-picker strong {
  color: var(--bone);
  font-family: Oswald, sans-serif;
  font-size: .76rem;
}

.thread-scope-picker small {
  margin-top: 2px;
  color: #817a70;
  font-family: Inter, sans-serif;
  font-size: .68rem;
}

.thread-general-badge {
  display: inline-grid;
  place-items: center;
  cursor: default;
  font-size: .62rem;
  letter-spacing: .06em;
}

.mobile-thread-scope.hidden {
  display: none !important;
}

@media (max-width:700px) {
  .mobile-thread-scope {
    margin-bottom: 2px;
  }
}


/* V13.3 – thread titles */
#mobileComposerTitleField.hidden {
  display: none !important;
}

#timestampTitleInput,
#filmTimestampTitleInput,
#mobileComposerThreadTitle {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  font-size: 16px;
}


/* V13.4 – ELSEWHERE external links */
.elsewhere-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(
      180deg,
      rgba(24,22,19,.98),
      rgba(10,10,9,.99)
    );
}

.elsewhere-heading {
  padding: 16px 17px 12px;
  border-bottom: 1px solid var(--line);
}

.elsewhere-eyebrow {
  margin: 0 0 3px;
  color: #817a70;
  font-family: Oswald, sans-serif;
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.elsewhere-heading h2 {
  margin: 0;
  color: var(--bone);
  font-family: Cinzel, serif;
  font-size: .95rem;
  letter-spacing: .04em;
}

.elsewhere-links {
  display: grid;
}

.elsewhere-link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition:
    background .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}

.elsewhere-link:last-child {
  border-bottom: 0;
}

.elsewhere-link:hover,
.elsewhere-link:focus-visible {
  background: rgba(182,148,85,.08);
  box-shadow: inset 3px 0 0 rgba(212,184,117,.6);
  transform: translateY(-1px);
  outline: none;
}

.elsewhere-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--brass-light);
}

.elsewhere-icon svg {
  width: 28px;
  height: 28px;
}

.elsewhere-copy {
  display: grid;
  min-width: 0;
}

.elsewhere-copy strong {
  overflow: hidden;
  color: var(--bone);
  font-family: Cinzel, serif;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.elsewhere-copy small {
  margin-top: 2px;
  color: #817a70;
  font-family: Inter, sans-serif;
  font-size: .67rem;
}

.elsewhere-arrow {
  color: #8f887d;
  font-size: 1rem;
  transition:
    color .18s ease,
    transform .18s ease;
}

.elsewhere-link:hover .elsewhere-arrow,
.elsewhere-link:focus-visible .elsewhere-arrow {
  color: var(--brass-light);
  transform: translate(3px, -2px);
}

@media (max-width: 700px) {
  .elsewhere-card {
    margin-top: 12px;
  }

  .elsewhere-link {
    min-height: 58px;
  }
}


/* V13.4.2 – explicit Audio sidebar order */
#audioArchiveView .timestamp-card {
  order: 1;
}

#audioArchiveView .elsewhere-card {
  order: 2;
}

#audioArchiveView .info-card {
  order: 3;
}


/* V13.4.4 – Forum delete controls */
.forum-post-header {
  align-items: flex-start;
}

.forum-post-author {
  display: grid;
  gap: 3px;
}

.forum-delete-button {
  margin-left: auto;
  padding: 6px 9px;
  border: 1px solid rgba(199, 117, 104, .38);
  background: transparent;
  color: #c9897e;
  font-family: Oswald, sans-serif;
  font-size: .62rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.forum-delete-button:hover,
.forum-delete-button:focus-visible {
  border-color: rgba(220, 139, 125, .72);
  background: rgba(173, 74, 60, .11);
  color: #e0a096;
  outline: none;
}

.forum-delete-button:disabled {
  cursor: wait;
  opacity: .45;
}

@media (max-width: 700px) {
  .forum-delete-button {
    min-height: 34px;
    padding: 6px 8px;
  }
}


/* V13.4.6 – Vault Timeline: 7 years per row */
.year-filter-row,
.timeline-years,
.vault-years {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 8px !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  scrollbar-width: none;
}

.year-filter-row::-webkit-scrollbar,
.timeline-years::-webkit-scrollbar,
.vault-years::-webkit-scrollbar {
  display: none;
}

.year-filter-row > *,
.timeline-years > *,
.vault-years > * {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

@media (max-width: 900px) {
  .year-filter-row,
  .timeline-years,
  .vault-years {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .year-filter-row,
  .timeline-years,
  .vault-years {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
}


/* V13.4.7 – CORRECT Audio Vault Timeline selector */
#vaultTimeline.vault-timeline {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 8px !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  padding: 2px 1px 5px !important;
  scrollbar-width: none !important;
}

#vaultTimeline.vault-timeline::-webkit-scrollbar {
  display: none !important;
}

#vaultTimeline .timeline-year {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  flex: none !important;
}

@media (max-width: 900px) {
  #vaultTimeline.vault-timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  #vaultTimeline.vault-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
}


/* V13.4.8 – year jump offset */
.year-group {
  scroll-margin-top: 90px;
}
