:root {
  color-scheme: dark;
  --bg: #101214;
  --panel: #171a1e;
  --surface: #1b1e22;
  --line: #292e32;
  --muted: #a4acb1;
  --bright: #f2f4f0;
  --lime: #c6fa75;
  --lime-ink: #17200f;
  --radius: 16px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--bright);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
svg { flex-shrink: 0; vertical-align: middle; }
p { color: var(--muted); line-height: 1.6; margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.035em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 680; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 640; }
h3 { font-size: 1.14rem; font-weight: 650; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1232px, calc(100% - 96px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; clip: rect(0, 0, 0, 0); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; inset: 12px auto auto 12px; padding: 12px; background: var(--lime); color: var(--lime-ink); }
.header { border-bottom: 1px solid #26292a; background: #121416; }
.head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; min-height: 72px; }
.wordmark { display: inline-flex; gap: 10px; align-items: center; width: fit-content; font-weight: 720; font-size: 1.25rem; letter-spacing: -.045em; }
.wordmark svg { color: var(--lime); }
.head nav { display: flex; gap: 35px; align-items: stretch; height: 100%; }
.head nav a { display: flex; align-items: center; font-size: .89rem; color: var(--muted); font-weight: 580; position: relative; }
.head nav a:hover, .head nav a[aria-current] { color: var(--bright); }
.head nav a[aria-current]::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--lime); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: fit-content; min-height: 41px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; font-size: .86rem; font-weight: 680; line-height: 1.2; transition: background .15s, border-color .15s; }
.primary { background: var(--lime); color: var(--lime-ink); }
.primary:hover { background: #dcffa8; }
.button-muted { color: var(--bright); background: #202427; border-color: #383d40; }
.button-muted:hover { background: #2b3134; border-color: #50585c; }
.button-danger { color: #ffc1b5; background: #352421; border-color: #75453d; }
.button-danger:hover { background: #492b27; border-color: #b97163; }
.head-action { justify-self: end; }
.home { padding-top: 31px; padding-bottom: 46px; }
.hero {
  min-height: 416px; overflow: hidden; isolation: isolate; position: relative;
  display: flex; align-items: center; padding: 48px 56px; border-radius: 20px; border: 1px solid #313a34;
  background: #14271c url("/assets/aurora.jpg") center 52% / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #101713 0%, #101713f0 21%, #10171397 46%, #1017130a 78%), linear-gradient(0deg, #101713e8 0%, transparent 40%); }
.hero-copy { position: relative; max-width: 535px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; color: var(--lime); font-family: "Cascadia Mono", Consolas, monospace; font-size: .73rem; line-height: 1.4; letter-spacing: .125em; font-weight: 600; }
.live { width: 7px; height: 7px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 14px #c6fa7590; }
.hero h1 { font-size: clamp(3.3rem, 6.15vw, 5.5rem); font-weight: 690; letter-spacing: -.078em; line-height: .96; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero-summary { max-width: 355px; color: #d1d8d1; margin: 20px 0 23px; font-size: 1rem; }
.hero .button { min-height: 44px; padding-inline: 17px; }
.hero-feature { position: absolute; right: 28px; bottom: 26px; display: flex; align-items: center; gap: 12px; background: #101711d9; border: 1px solid #d1ebd148; border-radius: 12px; padding: 11px 12px; color: #edf3ea; backdrop-filter: blur(12px); transition: background .15s; }
.hero-feature:hover { background: #293e2af5; }
.hero-feature small, .hero-index, .sample-tag { font: 600 .64rem/1.4 "Cascadia Mono", Consolas, monospace; letter-spacing: .1em; }
.hero-feature small { color: #bdcbbd; display: block; margin-bottom: 2px; }
.hero-feature strong { display: block; font-size: .93rem; }
.hero-feature > svg { color: #c1cfbf; margin-left: 12px; }
.hero-play { color: var(--lime); border: 1px solid #c6fa7580; border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; }
.hero-index { position: absolute; top: 22px; right: 25px; color: #eff7ea; border: 1px solid #d1ebd145; border-radius: 6px; background: #0d1714a8; padding: 4px 8px; }
.library { padding-top: 46px; scroll-margin-top: 16px; }
.section-head, .library-bar { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.65rem); }
.section-head .eyebrow { margin-bottom: 6px; }
.search { display: flex; align-items: center; gap: 10px; width: min(286px, 100%); border: 1px solid #33383b; border-radius: 9px; padding-inline: 12px; background: #181c1f; color: #a1a9af; }
.search:focus-within { border-color: var(--lime); }
.search input { min-width: 0; width: 100%; height: 40px; background: transparent; border: 0; outline: none; color: var(--bright); font-size: .88rem; }
.search input:focus-visible { outline: 0; }
.search button { display: grid; place-items: center; padding: 4px; margin-left: -4px; border: 0; border-radius: 5px; color: inherit; background: transparent; }
.search button:hover { color: var(--lime); }
.library-bar { align-items: center; margin: 20px 0 15px; }
.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { color: #b9c1c4; padding: 7px 12px; border-radius: 6px; background: #181b1e; border: 1px solid #303537; font-size: .82rem; font-weight: 570; }
.pill:hover { border-color: #68716a; color: var(--bright); }
.pill.selected { color: var(--lime); border-color: #506339; background: #26311f; }
.count { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); background: var(--panel); border-radius: 13px; min-width: 0; }
.card:hover { border-color: #4d5c4d; }
.card-link { display: block; border-radius: inherit; }
.cover { position: relative; aspect-ratio: 16 / 8.6; background: #192221; overflow: hidden; border-radius: 12px 12px 0 0; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover img { transform: scale(1.045); }
.play-mark { display: grid; place-items: center; color: #eaf5e6; background: #101613d9; border: 1px solid #e7f5e54f; position: absolute; left: 13px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; }
.card:hover .play-mark { background: var(--lime); color: var(--lime-ink); }
.sample-tag { position: absolute; top: 12px; right: 12px; color: #f2f5f0; background: #151a18dc; border: 1px solid #ecf5e347; border-radius: 5px; padding: 3px 7px; }
.card-meta { padding: 15px 16px 16px; }
.card-meta p { margin-top: 4px; font-size: .84rem; overflow-wrap: anywhere; }
.card-line { display: flex; align-items: start; justify-content: space-between; gap: 9px; }
.card-line h3 { overflow-wrap: anywhere; }
.card-line svg { color: var(--muted); }
.card-rights { margin-top: 13px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; color: #c8e8ad; border: 1px solid #3c5036; background: #232e22; border-radius: 5px; font-size: .72rem; line-height: 1.25; font-weight: 600; }
.badge.reserved { color: #e1d1a2; border-color: #50462f; background: #30291e; }
.rights-note { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin-top: 33px; padding: 18px 22px; border: 1px solid #343e2e; border-radius: 12px; background: #1a211a; }
.note-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; background: #2b3a25; color: var(--lime); }
.rights-note p { margin-top: 3px; font-size: .87rem; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); border: 1px dashed #3a413d; border-radius: 12px; }
.empty h3 { color: var(--bright); margin: 8px 0; }
.empty a { display: inline-block; margin-top: 12px; color: var(--lime); }
.pagination { margin-top: 18px; }
.footer { display: grid; grid-template-columns: auto 1fr auto; gap: 17px; align-items: center; padding-block: 22px 26px; border-top: 1px solid var(--line); font-size: .84rem; }
.footer .wordmark { font-size: 1rem; }
.footer > a:last-child { color: var(--muted); }
.footer > a:hover { color: var(--lime); }
.inner { padding-top: 42px; padding-bottom: 58px; min-height: 70vh; }
.lede { margin-top: 12px; margin-bottom: 28px; max-width: 635px; font-size: 1rem; }
.back { display: inline-block; margin-bottom: 22px; color: #bec9bd; font-size: .86rem; }
.back:hover { color: var(--lime); }
.media-body { background: #080a0b; }
.media-view { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.media-stage { display: grid; place-items: center; min-width: 0; padding: 12px 12px 0; }
.player { display: block; max-width: 100%; max-height: calc(100vh - 68px); max-height: calc(100svh - 68px); object-fit: contain; }
video.player { width: min(1080px, 100%); }
.media-stage:has(.player-error:not([hidden])) .player { display: none; }
.media-actions { display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom, 0); }
.media-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: #c2c9c4; font-size: .86rem; }
.media-actions a:hover { color: var(--lime); }
.media-info { max-width: 720px; }
.info-title { margin: 5px 0 12px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.info-title > div { min-width: 0; }
.info-title h1 { font-size: clamp(1.8rem, 5vw, 3.25rem); overflow-wrap: anywhere; }
.media-info .watch-rights { margin-top: 22px; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; }
.player-error { margin: 0; color: #ffb7a8; text-align: center; }
.player-error a { text-decoration: underline; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 23px; min-width: 0; }
.panel h2 { margin-bottom: 12px; font-size: 1.36rem; }
.panel p + p { margin-top: 10px; }
.watch-rights .badge { margin-bottom: 19px; }
.watch-rights .holder { color: var(--bright); font-weight: 600; overflow-wrap: anywhere; }
.copyright-line { margin-top: 6px; overflow-wrap: anywhere; }
.copyright-line span { color: #a4acb1; font-size: .8rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 19px 0; }
.text-link { display: flex; gap: 6px; align-items: center; width: fit-content; margin-top: 14px; font-weight: 620; font-size: .87rem; color: var(--lime); }
.text-link:hover { text-decoration: underline; }
.report-link { color: #c2c9c4; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px; width: 100%; }
.policy-grid, .studio-grid { display: grid; gap: 16px; align-items: start; grid-template-columns: minmax(230px, .85fr) minmax(0, 1.5fr); }
.studio-grid { grid-template-columns: minmax(0, 1.15fr) minmax(265px, .85fr); }
.policy-aside, .studio-aside { display: grid; gap: 14px; }
.notice-tabs { margin: 0 0 18px; }
form:not(.search) { display: grid; gap: 15px; }
.field { display: grid; gap: 7px; color: #e7ece8; font-weight: 570; font-size: .87rem; }
.field input, .field select, .field textarea { padding: 10px 11px; width: 100%; min-width: 0; border: 1px solid #3a4142; background: #101315; color: var(--bright); border-radius: 7px; font-size: .92rem; }
.field textarea { resize: vertical; }
.field small, .fine { font-weight: 400; font-size: .79rem; color: var(--muted); line-height: 1.55; }
.fields-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check { display: flex; gap: 9px; align-items: start; color: #ced5d0; font-size: .85rem; line-height: 1.55; }
.check input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--lime); flex: 0 0 16px; }
.form-status { color: var(--lime); font-size: .85rem; overflow-wrap: anywhere; }
.form-status.error { color: #ffb1a2; }
.sign-in { max-width: 500px; }
.sign-in .note-icon { margin-bottom: 14px; }
.sign-in .button { margin-top: 18px; }
.auth-page { display: grid; justify-items: center; align-content: start; }
.auth-page .sign-in { width: min(100%, 480px); }
.auth-page h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); }
.auth-description { margin: 12px 0 18px; }
.auth-page form { margin-top: 16px; }
.auth-page form .button { margin-top: 0; }
.studio-heading { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: start; margin-bottom: 25px; }
.studio-heading .lede { margin-bottom: 0; }
.file-drop { display: grid; justify-items: center; gap: 7px; padding: 17px 12px; text-align: center; border: 1px dashed #52664b; background: #202b20; border-radius: 10px; color: #e3f1df; }
.file-drop > svg { color: var(--lime); }
.file-drop span { color: #b8c7b5; font-size: .8rem; overflow-wrap: anywhere; max-width: 100%; }
.file-drop input { max-width: 100%; font-size: .78rem; color: #b8c7b5; }
.file-drop input::file-selector-button { color: var(--lime-ink); background: var(--lime); padding: 5px 8px; border: 0; border-radius: 5px; cursor: pointer; }
.upload-preview { max-height: 220px; width: 100%; object-fit: contain; background: #080908; border-radius: 7px; }
.link-options { margin: 0; min-width: 0; padding: 12px; border: 1px solid #3a4142; border-radius: 9px; }
.link-options legend { padding-inline: 5px; color: #e7ece8; font-size: .87rem; font-weight: 620; }
.link-modes { display: flex; gap: 7px; flex-wrap: wrap; }
.link-modes label { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding-inline: 9px; border: 1px solid #343b36; border-radius: 7px; cursor: pointer; font-size: .85rem; }
.link-modes label:has(:checked) { background: #26311f; border-color: #506339; color: var(--lime); }
.link-modes input { margin: 0; accent-color: var(--lime); }
.custom-link { margin-top: 12px; }
.link-preview, .manage-list .item-path { margin-top: 9px; font: .8rem/1.5 "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; }
.link-preview { color: #c5dcb7; }
.publish-success { margin-bottom: 16px; background: #1d281b; border-color: #435638; scroll-margin-top: 14px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.share-row .field { flex: 1 1 240px; min-width: 0; }
.share-row textarea { font: .88rem/1.35 "Cascadia Mono", Consolas, monospace; resize: none; overflow-wrap: anywhere; }
.share-row .button { align-self: start; }
.manage-list { padding: 0; list-style: none; margin: 0; }
.manage-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.manage-list li > div:first-child { flex: 1 1 145px; min-width: 0; overflow-wrap: anywhere; }
.manage-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.manage-list .item-path { margin-top: 2px; }
.manage-list li a { font-weight: 620; overflow-wrap: anywhere; }
.manage-list li a:hover { color: var(--lime); }
.manage-list li p { font-size: .8rem; }
.manage-list .button { min-height: 32px; padding: 0 8px; font-size: .76rem; }
.notice { border-top: 1px solid var(--line); padding-block: 11px; }
summary { cursor: pointer; font-weight: 640; }
summary > span { display: inline-block; }
summary small { display: block; font-weight: 450; color: var(--muted); margin-top: 4px; }
.notice dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 9px; font-size: .83rem; }
.notice dt { color: var(--muted); }
.notice dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.notice .button, .agent-settings form { margin-top: 13px; }
@media (max-width: 920px) {
  .wrap { width: calc(100% - 48px); }
  .hero { min-height: 380px; padding: 42px; }
  .hero h1 { font-size: clamp(3.3rem, 8vw, 5.3rem); }
}
@media (max-width: 810px) {
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .head { gap: 10px; min-height: 62px; grid-template-columns: 1fr auto; padding-top: 9px; }
  .head nav { grid-row: 2; grid-column: 1 / -1; min-height: 41px; gap: 20px; }
  .head nav a { font-size: .82rem; }
  .head .wordmark { font-size: 1.1rem; gap: 8px; }
  .head-action { min-height: 42px; font-size: .78rem; padding-inline: 9px; }
  .head-action svg { width: 15px; }
  .home { padding-top: 16px; padding-bottom: 30px; }
  .hero { min-height: 0; display: grid; justify-items: start; gap: 16px; padding: 26px 20px; background-position: 60% 50%; }
  .hero::before { background: linear-gradient(90deg, #101713f5, #10171361), linear-gradient(0deg, #101713d9, transparent 60%); }
  .hero h1 { font-size: clamp(2.65rem, 10.8vw, 4.5rem); }
  .hero-summary { font-size: .91rem; }
  .hero-index { display: none; }
  .hero-feature { position: static; max-width: 100%; padding: 8px; }
  .hero-play { width: 32px; height: 32px; }
  .hero-play svg { width: 18px; }
  .library { padding-top: 30px; }
  .section-head { align-items: start; flex-direction: column; gap: 12px; }
  .search { width: 100%; }
  .search input, .field input, .field select, .field textarea { font-size: 1rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .card-meta { padding: 10px 10px 12px; }
  .card-meta h3 { font-size: .99rem; }
  .card-meta p { font-size: .75rem; }
  .rights-note { grid-template-columns: auto 1fr; padding: 13px; gap: 10px; }
  .rights-note .button { grid-column: 2; }
  .footer { grid-template-columns: 1fr auto; }
  .footer p { grid-row: 2; grid-column: 1 / -1; }
  .inner { padding-top: 27px; }
  .policy-grid, .studio-grid { grid-template-columns: 1fr; }
  .policy-grid .form-panel { grid-row: 1; }
  .panel { padding: 17px; }
  .pill, .link-modes label, .manage-list .button, .share-row .button { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 440px) {
  .grid { grid-template-columns: 1fr; }
  .fields-row { grid-template-columns: 1fr; }
  .library-bar { flex-wrap: wrap; }
  .share-row .field { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
