:root {
  color-scheme: light;
  --ink: #14392d;
  --green: #104535;
  --gold: #ae8b4b;
  --line: #dbdfd2;
  --paper: #f6f6ef;
  --white: #fffef8;
  --muted: #58695c;
  --serif: 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --sans: 'DM Sans', 'Segoe UI', Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.45 var(--sans);
}
button,
input,
select,
summary {
  font: inherit;
  color: inherit;
}
button,
select,
summary {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
button {
  border: 0;
  background: none;
}
button:focus-visible,
summary:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #b68738;
  outline-offset: 3px;
}
button:enabled:hover {
  filter: brightness(0.94);
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
}
.mast {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.mast-inner,
main {
  max-width: 1490px;
  margin: auto;
  padding: 0 clamp(16px, 4vw, 68px);
}
.mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}
.brand span {
  font: 600 22px/1.12 var(--serif);
}
.brand small {
  display: block;
  font: 600 10px/1.8 var(--sans);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
nav {
  display: flex;
  gap: 18px;
  align-self: stretch;
}
nav button {
  padding: 0 3px;
  border-bottom: 3px solid transparent;
  font-size: 14px;
}
nav [aria-current] {
  border-color: var(--gold);
  font-weight: 650;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(110deg, #0a3026, #11513c);
  border-radius: 16px;
  color: #fff5da;
  margin: 28px 0;
  min-height: 158px;
  padding: 34px clamp(22px, 3vw, 48px);
  display: flex;
  align-items: center;
}
.hero h1,
.saved-title h1 {
  font-size: clamp(40px, 4.6vw, 69px);
  letter-spacing: -0.045em;
}
.hero p,
.saved-title p {
  margin-top: 10px;
}
.hero p {
  color: #dbe7d9;
}
.hero-art {
  z-index: -1;
  position: absolute;
  right: 3.5%;
  top: 0;
  bottom: 0;
  width: 39%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 87%, transparent);
}
.hero-art img {
  position: absolute;
  height: 166%;
  width: auto;
  right: 8%;
  top: 50%;
  border-radius: 50%;
  transform: translateY(-50%);
}
.hero-art:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #104b37 2%, transparent 56%);
  opacity: 0.95;
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 324px);
  gap: clamp(16px, 2vw, 32px);
  align-items: start;
  margin-bottom: 64px;
}
.catalogue {
  min-width: 0;
}
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filters input,
.filters select,
.filters summary,
.field input,
.timing input {
  background: var(--white);
  border: 1px solid #cbd3c5;
  border-radius: 8px;
}
.search {
  position: relative;
  flex: 1;
  min-width: 160px;
}
.search span {
  position: absolute;
  left: 12px;
  top: 2px;
  font: 26px Georgia;
  color: var(--muted);
}
.search input {
  width: 100%;
  height: 40px;
  padding: 0 9px 0 36px;
}
.filters select,
.filters summary {
  height: 40px;
  padding: 8px 10px;
  font-size: 13px;
}
.filters summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 3px;
}
.filters summary::-webkit-details-marker {
  display: none;
}
.filters summary:after {
  content: '⌄';
  margin-left: 5px;
}
.filters details {
  position: relative;
}
.popover {
  position: absolute;
  right: 0;
  z-index: 4;
  top: 46px;
  width: max-content;
  max-width: 82vw;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 36px #18372424;
  border-radius: 10px;
  padding: 14px;
}
.popover fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.popover legend,
.order-label {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
#category-options {
  max-height: 270px;
  overflow: auto;
  margin: 7px 0;
}
.popover label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 4px;
}
.popover input {
  accent-color: var(--green);
}
.quiet,
.textbutton {
  font-weight: 600;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 0;
}
.catalogue-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  text-align: left;
  display: flex;
  flex-direction: column;
}
.card[aria-pressed='true'] {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green);
}
.card img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #12392d;
}
.card-info {
  display: block;
  padding: 11px 12px 14px;
}
.card small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.card strong {
  font: 550 clamp(15px, 1.35vw, 20px) / 1.2 var(--serif);
  overflow-wrap: anywhere;
}
.check {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid #ccceb8;
  background: #f5f6e9;
  color: transparent;
  border-radius: 6px;
}
.card[aria-pressed='true'] .check {
  background: #e6c887;
  color: #133a2e;
  border-color: #e6c887;
}
.editor {
  position: sticky;
  top: 15px;
  border-radius: 12px;
  border: 1px solid #bfcbba;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 5px 18px #1737290a;
}
.editor-head {
  background: #143f32;
  color: #fff2d1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
}
.editor-head h2 {
  font-size: 27px;
}
.counter {
  border: 1px solid #8d9d7e;
  color: #f4dfae;
  border-radius: 20px;
  min-width: 28px;
  text-align: center;
  padding: 1px 6px;
  font-size: 13px;
}
.editor-body {
  padding: 18px;
}
.field,
.timing {
  display: flex;
  gap: 5px;
  font-weight: 600;
  font-size: 13px;
}
.field {
  flex-direction: column;
}
.field input {
  padding: 9px 11px;
  font-weight: 400;
  width: 100%;
}
.timing {
  align-items: center;
  justify-content: space-between;
  margin: 14px 0;
}
.timing input {
  width: 70px;
  padding: 6px 8px;
}
.order-label {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.empty-draft {
  text-align: center;
  margin: 10px 0 18px;
  border: 1px dashed #c9d1c1;
  border-radius: 8px;
  padding: 20px 12px;
  color: var(--muted);
  font-size: 13px;
}
.empty-draft span {
  font-size: 25px;
  line-height: 1;
}
.empty-draft p {
  margin-top: 6px;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  min-height: 39px;
  padding: 7px 14px;
}
.primary {
  background: var(--green);
  color: #fff9e8;
}
.secondary {
  border: 1px solid #aab9a5;
  background: var(--white);
}
.editor .primary,
.editor .secondary {
  width: 100%;
  margin-top: 6px;
}
#sequence {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  max-height: min(34vh, 320px);
  overflow: auto;
}
.seq-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 1px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.seq-name {
  flex: 1;
}
.seq-number {
  color: var(--muted);
  width: 17px;
}
.seq-row button {
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 25px;
  min-height: 28px;
  padding: 0;
}
#status:not(:empty) {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 5;
  background: #153e30;
  color: white;
  box-shadow: 0 4px 16px #0002;
  border-radius: 8px;
  padding: 10px 16px;
  max-width: min(90vw, 720px);
  width: max-content;
}
.saved-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 38px 0 24px;
}
.saved-title p {
  color: var(--muted);
}
.saved-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 315px), 1fr));
  gap: 15px;
}
.saved-item,
.saved-empty {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.saved-item h2 {
  font-size: 25px;
}
.saved-item p {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 18px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.saved-item .textbutton {
  margin-top: 12px;
}
.saved-empty .secondary {
  margin-top: 14px;
}
#player {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #04110c;
  color: white;
  outline: none;
  overflow: hidden;
}
#player:fullscreen {
  width: 100%;
  height: 100%;
}
#picture,
#slide {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.display-link body {
  background: #04110c;
}
.display-link .mast,
.display-link #studio {
  display: none;
}
.playing {
  overflow: hidden;
}
.player-tools {
  position: absolute;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  max-width: 97%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: #07281fee;
  border: 1px solid #c8d6bc70;
  border-radius: 12px;
  transition: opacity 0.25s;
}
.player-tools.hide:not(:focus-within) {
  opacity: 0;
  pointer-events: none;
}
.player-tools button {
  font-weight: 600;
  white-space: nowrap;
  color: #fff7df;
  border-radius: 5px;
  padding: 7px 9px;
}
.player-tools button:hover {
  background: #ffffff22;
}
.player-tools span {
  font-size: 12px;
  white-space: nowrap;
  color: #ead7a9;
}
.player-idle {
  cursor: none;
}
#player-message:not(:empty) {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  background: #0b3026;
  color: white;
  padding: 16px;
  border-radius: 10px;
  text-align: center;
}
@media (min-width: 1580px) {
  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .studio-grid {
    grid-template-columns: minmax(0, 1fr) 282px;
  }
  .hero-art {
    width: 43%;
  }
  .filters select {
    max-width: 125px;
  }
}
@media (max-width: 760px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .editor {
    position: static;
  }
  .hero {
    min-height: 130px;
    margin: 16px 0 20px;
  }
  .hero-art {
    right: 0;
    width: 40%;
    opacity: 0.65;
  }
  .hero-art img {
    height: 142%;
    right: -20%;
  }
  .hero p {
    max-width: 60%;
    font-size: 14px;
  }
  .mast-inner {
    min-height: 66px;
    gap: 8px;
  }
  .brand span {
    font-size: 17px;
  }
  .brand img {
    width: 33px;
    height: 33px;
  }
  .brand {
    gap: 6px;
  }
  nav {
    gap: 6px;
  }
  nav button {
    font-size: 12px;
  }
  .saved-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .cards {
    gap: 10px;
  }
  .studio-grid {
    margin-bottom: 20px;
  }
  .editor:target {
    scroll-margin-top: 10px;
  }
  .player-tools {
    gap: 1px;
    padding: 5px;
  }
  .player-tools button {
    padding: 6px;
  }
  .popover {
    left: auto;
    right: 0;
  }
  .catalogue-bar {
    gap: 8px;
  }
  .card-info {
    padding: 8px;
  }
  .mobile-jump {
    display: inline !important;
  }
  .search {
    min-width: 155px;
  }
  .filters summary,
  .filters select {
    padding: 8px;
    font-size: 12px;
  }
}
.mobile-jump {
  display: none;
}
.player-tools.hide:not(:focus-within) * {
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.jump {
  display: none;
}
@media (max-width: 760px) {
  .jump:not([hidden]) {
    position: fixed;
    z-index: 3;
    right: 14px;
    bottom: max(13px, env(safe-area-inset-bottom));
    display: block;
    background: var(--green);
    color: white;
    text-decoration: none;
    border: 1px solid #dac28c;
    border-radius: 30px;
    padding: 10px 16px;
    box-shadow: 0 3px 14px #0002;
  }
  .studio-grid {
    padding-bottom: 50px;
  }
  #status:not(:empty) {
    bottom: 62px;
  }
}
.playing .jump {
  display: none;
}

.filter-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.filter-actions .primary {
  font-size: 12px;
  min-height: 34px;
}
.play-icon:before {
  content: '';
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}
