:root {
  color-scheme: dark;
  --bg: #0c0910;
  --surface: #151019;
  --raised: #1c1421;
  --field: #100c15;
  --line: #34263d;
  --text: #f6eef7;
  --muted: #b8a9bd;
  --accent: #ee3265;
  --purple: #c49aff;
  --max: 1420px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; background: var(--bg); color: var(--text); }
.site-shell { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.site-shell > main.container { flex: 1 0 auto; min-height: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--purple); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #ddaefd; outline-offset: 3px; }
h1,h2,h3,p { margin: 0; overflow-wrap: anywhere; }
h1,h2,h3 { line-height: 1.16; letter-spacing: -.025em; }
p { margin-block: .55em; }
img { display: block; max-width: 100%; }
.skip { position: absolute; z-index: 10; top: .5rem; left: .5rem; padding: .65rem; background: var(--raised); transform: translateY(-160%); }
.skip:focus { transform: none; }
.container { width: min(calc(100% - 72px), var(--max)); margin-inline: auto; }
main.container { min-height: 70vh; padding-block: 30px 64px; }
.topbar { background: #100c13; border-bottom: 1px solid #261a2d; }
.top-inner { display: flex; align-items: center; gap: clamp(16px,2.4vw,38px); width: min(calc(100% - 72px), var(--max)); margin: auto; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 1 auto; min-width: 0; font-size: 1.35rem; font-weight: 850; letter-spacing: -.065em; }
.brand > span:last-child { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; min-width: 34px; width: 34px; height: 34px; padding-left: 2px; border-radius: 11px; background: linear-gradient(145deg,#f74870,#a81243); box-shadow: 0 3px 14px #d3184b60; color: #fff; font-size: .78rem; }
.brand-mark::before { content: ""; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid white; }
.brand-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 47px;
  height: 47px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #a05279;
  border-radius: 13px;
  background: radial-gradient(ellipse at 36% 26%, #572336, #21101f 76%);
  box-shadow: 0 0 15px #bd407b45, inset 0 1px 0 #f5b2d22b;
}
.brand-logo img { width: 41px; height: 41px; object-fit: contain; filter: brightness(1.55) saturate(1.08); mix-blend-mode: screen; }
.brand .brand-name {
  color: #f6bdd4;
  font: 700 italic clamp(1.5rem,2.3vw,1.92rem)/1.15 Georgia, serif;
  letter-spacing: -.035em;
}
@supports (background-clip: text) {
  .brand .brand-name {
    background: linear-gradient(155deg,#fff2f6 12%,#f4bad3 48%,#ec80af 88%);
    background-clip: text;
    color: transparent;
  }
}
.watermark-preview { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #110b16; }
.site-nav { display: flex; align-self: stretch; gap: clamp(14px,1.7vw,24px); white-space: nowrap; }
.site-nav a { display: grid; place-items: center; position: relative; color: var(--muted); font-size: .875rem; font-weight: 650; }
.site-nav a:hover, .site-nav [aria-current] { color: var(--text); }
.site-nav [aria-current]::after { position: absolute; inset: auto 0 0; height: 2px; background: var(--accent); content: ""; }
.search { display: flex; flex: 1 1 16rem; max-width: 420px; margin: 0 0 0 auto; border: 1px solid var(--line); background: #19111d; border-radius: 11px; min-width: 0; }
.search input { width: 100%; min-width: 0; padding: 8px 2px 8px 12px; border: 0; background: transparent; color: var(--text); outline-offset: 0; }
.search button { border: 0; border-radius: 10px; background: transparent; color: var(--muted); width: 38px; flex: 0 0 38px; font-size: 1.35rem; line-height: 1; }
.search-icon { position: relative; display: inline-block; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; vertical-align: 1px; }
.search-icon::after { position: absolute; top: 8px; left: 8px; width: 5px; height: 1.5px; background: currentColor; content: ""; transform: rotate(45deg); transform-origin: 0 50%; }
.search button:hover { color: white; }
.top-actions { display: flex; gap: clamp(.65rem,1.5vw,1.3rem); align-items: center; white-space: nowrap; }
.top-signin { font-weight: 650; font-size: .88rem; }
.account-menu { position: relative; }
.account-menu summary { cursor: pointer; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu > div { background: var(--raised); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 26px #0008; padding: 6px; position: absolute; z-index: 5; right: 0; min-width: 170px; }
.account-menu a, .signout { display: block; width: 100%; padding: .55rem .7rem; color: var(--text); border: 0; background: transparent; text-align: left; border-radius: 7px; }
.account-menu a:hover, .signout:hover { background: #2b1d32; }
.account-menu form { margin: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .54rem .95rem; border: 1px solid var(--line); border-radius: 9px; background: var(--raised); color: var(--text); font-weight: 720; font-size: .875rem; line-height: 1.2; text-align: center; }
.button:hover { color: #fff; background: #302039; border-color: #634d70; }
.primary { color: #fff; border-color: #ed4974; background: linear-gradient(115deg,#ca1d4c,#a91944); }
.primary:hover { border-color: #ff668c; background: linear-gradient(115deg,#db2354,#b6234d); }
.glass { background: #16101999; border-color: #f3d3f24a; }
.danger { color: #ffafc2; background: #2b1420; border-color: #713047; }
.compact { min-height: 34px; padding: .35rem .65rem; font-size: .8rem; }
.hero { display: flex; align-items: center; min-height: clamp(340px,31vw,465px); border-radius: 23px; overflow: hidden; border: 1px solid #51314d; background: linear-gradient(90deg,#110a17 0%,#110a17ef 19%,#110a17a0 48%,#110a1715 81%), url(/assets/hero.webp) center 55% / cover no-repeat #190d1c; box-shadow: 0 15px 38px #05010665; }
.hero-inner { padding: clamp(26px,5.1vw,76px); max-width: 760px; }
.hero-kicker { display: flex; align-items: center; gap: .65rem; color: #f2c7ea; font-size: .69rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; }
.hero-kicker span { display: inline-block; width: 7px; height: 7px; border-radius: 100%; background: #ff477a; box-shadow: 0 0 14px #ff477a; }
.hero h1 { max-width: 11ch; margin-block: .28em .2em; font-size: clamp(3rem,6.7vw,6.15rem); font-weight: 850; letter-spacing: -.09em; line-height: .99; }
.hero h1 em { display: block; color: #f9a7cf; font-style: normal; }
.hero p { margin: 0 0 1.6rem; color: #e4cde2; font-size: clamp(.95rem,1.4vw,1.15rem); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .button { padding-inline: 1.2rem; }
.home-layout { margin-top: 30px; }
.feeds { display: grid; gap: 30px; }
.shelf { min-width: 0; }
.shelf-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.shelf-heading h2 { display: flex; align-items: center; gap: .55rem; font-size: clamp(1.24rem,2.1vw,1.55rem); }
.shelf-heading a { font-size: .83rem; color: var(--purple); white-space: nowrap; }
.shelf-icon { color: #f867a1; background: #2c1527; border: 1px solid #4c263e; font-size: .95rem; border-radius: 8px; width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; }
.shelf-icon.latest { color: #ccacff; background: #241634; border-color: #412857; }
.empty { display: grid; place-items: center; text-align: center; min-height: 114px; padding: 20px; border-radius: 13px; border: 1px dashed #4a3352; background: linear-gradient(135deg,#17101c,#100c15); color: var(--muted); }
.empty p { margin: .25rem 0 0; font-size: .9rem; }
.empty-icon { color: #d9abf8; font-size: 1.3rem; line-height: 1; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,220px),1fr)); gap: 19px; }
.video-catalog { grid-template-columns: repeat(4,minmax(0,1fr)); }
.video-card { min-width: 0; }
.thumbnail { display: block; overflow: hidden; aspect-ratio: 16/9; position: relative; background: #23182a; border: 1px solid #3f2848; border-radius: 12px; }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease; }
.thumbnail:hover img { transform: scale(1.04); }
.duration { position: absolute; right: 7px; bottom: 7px; background: #08060ae8; color: #fff; border-radius: 5px; padding: 1px 5px; font-size: .75rem; }
.card-info { padding: 9px 2px; }
.card-info h3 { margin-bottom: 4px; font-size: .99rem; }
.meta, .muted, .field-note { color: var(--muted); }
.meta, .field-note { font-size: .85rem; }
.field-note { margin: .35rem 0 1rem; }
.preline { white-space: pre-wrap; overflow-wrap: anywhere; }
.back-to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #7a3b64;
  border-radius: 50%;
  background: #25162e;
  color: #fff;
  font: 700 1.25rem/1 system-ui, sans-serif;
  box-shadow: 0 4px 16px #0008;
  cursor: pointer;
}
.back-to-top:hover { background: #57213e; border-color: var(--accent); }
.back-to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.footer { border-top: 1px solid var(--line); background: #100c15; color: var(--muted); }
.footer .container { display: grid; justify-items: center; gap: .65rem; padding-block: 1.2rem; text-align: center; font-size: .86rem; }
.footer .container > span { color: var(--text); font-weight: 750; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem 1.5rem; }
.footer-links a:hover, .footer-links a[aria-current="page"] { text-decoration: underline; }
.content-heading { margin-bottom: 22px; }
.content-heading h1, .panel > h1 { font-size: clamp(1.85rem,4vw,3rem); font-weight: 820; letter-spacing: -.055em; }
.content-heading p { color: var(--muted); margin-bottom: 0; }
.section-heading { margin: 0 0 12px; }
.section-heading h2, .panel h2 { font-size: 1.35rem; }
.section-heading p { color: var(--muted); }
.panel { min-width: 0; padding: clamp(15px,2.45vw,29px); border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.panel + .panel { margin-top: 18px; }
.panel h2 { margin-bottom: .7rem; }
.form-panel { max-width: 760px; }
.form-panel .field { margin-bottom: 12px; }
.upload-progress { margin-top: 1rem; }
.upload-progress progress { display: block; width: 100%; height: .7rem; accent-color: var(--accent); }
.upload-progress p { color: var(--muted); }
[data-upload-error] { margin-top: 1rem; }
.upload-page, .profile-edit-page { max-width: 760px; margin-inline: auto; }
.upload-page .content-heading, .profile-edit-page .content-heading, .profile-edit-page .form-panel > h2 { text-align: center; }
.profile-edit-page .tabs { justify-content: center; }
.profile-edit-page form > .avatar {
  display: grid;
  margin-inline: auto;
}
.profile-edit-page .form-panel form:not(.inline-form) > .button {
  display: flex;
  margin-inline: auto;
}
.narrow { max-width: 500px; margin-inline: auto; }
.auth-panel { margin-top: 18px; }
.auth-panel .content-heading h1 { font-size: clamp(1.8rem,4vw,2.75rem); }
.auth-links { display: flex; flex-wrap: wrap; gap: .65rem 1rem; margin-top: 1rem; color: var(--purple); font-size: .88rem; }
.field { display: grid; gap: 5px; color: #f1e5f4; font-size: .875rem; font-weight: 680; margin: .68rem 0; min-width: 0; }
.field input, .field select, .field textarea { min-width: 0; width: 100%; padding: .62rem .75rem; color: var(--text); border: 1px solid #493551; border-radius: 8px; background: var(--field); font-weight: 450; }
.invite-recipient-count {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.invite-recipient-count input {
  width: 8rem;
  max-width: 100%;
}
.field input[type=file] { padding: .55rem; }
.field input::file-selector-button { border: 1px solid #563a63; border-radius: 6px; background: #2c1c36; padding: .35rem .65rem; color: var(--text); cursor: pointer; margin-right: .6rem; }
.field textarea { min-height: 96px; resize: vertical; }
fieldset { margin: .9rem 0; padding: .7rem 1rem; min-width: 0; border: 1px solid var(--line); border-radius: 10px; }
legend { padding-inline: .25rem; font-size: .88rem; font-weight: 700; }
legend span { color: var(--muted); margin-left: .35rem; font-size: .75rem; font-weight: 450; }
.check { display: flex; align-items: flex-start; gap: .57rem; font-size: .9rem; margin-block: .4rem; cursor: pointer; overflow-wrap: anywhere; }
.check input { width: 1.05rem; height: 1.05rem; flex: 0 0 1.05rem; accent-color: #df4776; margin: .15rem 0 0; }
.choice-grid { display: flex; flex-wrap: wrap; column-gap: 1.4rem; }
.file-source { border: 1px dashed #60476a; border-radius: 10px; padding: .65rem 1rem; margin: 0 0 .85rem; background: #120c17; }
.panel form:not(.inline-form) > .button { margin: .45rem .45rem 0 0; }
.flash, .inline-notice { background: #251b32; border: 1px solid #503962; border-radius: 10px; padding: .8rem 1rem; margin-bottom: 17px; }
.flash.error { color: #ffc4d1; background: #321822; border-color: #71374a; }
.flash.success { color: #d1f2e3; background: #172622; border-color: #3b5d50; }
.error-text { color: #ff9fba; }
.inline-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.tabs a { min-height: 36px; display: flex; align-items: center; color: var(--muted); font-size: .85rem; padding: .35rem .75rem; border-radius: 7px; }
.tabs a:hover, .tabs [aria-current], .tabs .selected { color: var(--text); background: #342140; }
.row-heading, .list-row, .row-actions, .inline-form, .taxonomy-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.row-heading { margin-bottom: 13px; }
.row-heading h2 { margin: 0 auto 0 0; }
.list-row { justify-content: space-between; border-bottom: 1px solid var(--line); padding: .8rem 0; overflow-wrap: anywhere; }
.list-row:last-child { border-bottom: 0; }
.row-actions { justify-content: flex-start; }
.status { padding: .18rem .5rem; border-radius: 999px; color: #eacff4; background: #2c1c35; border: 1px solid #513764; font-size: .73rem; font-weight: 690; white-space: nowrap; }
.status.ready { color: #b3f1d5; border-color: #396753; background: #152c25; }
.status.pending, .status.queued, .status.processing { color: #ffe3a7; border-color: #6e5539; background: #2b2118; }
.status.failed { color: #ffc1d3; border-color: #752f47; background: #371922; }
.pager { display: flex; justify-content: flex-end; gap: 9px; margin-top: 16px; }
.edit-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(250px,1fr); gap: 18px; align-items: start; }
.inline-form { align-items: flex-end; margin-bottom: 10px; }
.inline-form .field { margin: 0; flex: 1 1 128px; }
.taxonomy-row { border-top: 1px solid var(--line); padding: .65rem 0; align-items: flex-end; }
.taxonomy-row > .inline-form { flex: 1 1 180px; margin: 0; }
.taxonomy-row form:not(.inline-form) > .button { margin: 0; }
.stat-grid, .directory { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,225px),1fr)); gap: 12px; margin-bottom: 18px; }
.stat.panel { margin-top: 0; }
.stat strong, .stat span, .directory-item span, .directory-item strong { display: block; }
.stat strong { font-size: 2.2rem; line-height: 1.2; }
.stat span, .directory-item span { color: var(--muted); font-size: .85rem; }
.directory-item { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 14px; overflow-wrap: anywhere; }
.directory-item:hover { border-color: #79598b; }
.category-browser { max-width: 1060px; margin-inline: auto; }
.category-browser .content-heading { text-align: center; }
.category-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.category-grid .directory-item {
  flex: 0 1 calc((100% - 42px)/4);
  min-width: 0;
  min-height: 94px;
  display: grid;
  align-content: center;
  gap: .28rem;
  text-align: center;
  border: 2px solid #62476f;
}
.category-grid .directory-item:hover { border-color: var(--accent); }
.member-card, .profile-header { display: flex; align-items: center; gap: 13px; }
.avatar { width: 36px; height: 36px; flex: 0 0 36px; object-fit: cover; border-radius: 50%; border: 1px solid #6b4877; }
.avatar.avatar-fallback { display: grid; place-items: center; color: #f5cbff; background: #42254c; font-weight: 750; }
.avatar-large { width: 74px; height: 74px; flex: 0 0 74px; font-size: 1.8rem; }
.profile-header { margin-bottom: 17px; flex-wrap: wrap; }
.profile-header .button { margin-left: auto; }
.profile-about { margin-bottom: 20px; }
.profile-about .section-heading:not(:first-child) { margin-top: 1.3rem; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { background: #26192f; color: #eed7f8; border: 1px solid #563661; padding: .27rem .65rem; border-radius: 999px; font-size: .8rem; }
.watch-shell { max-width: 1080px; margin-inline: auto; }
.player { display: block; width: 100%; max-height: 76vh; aspect-ratio: 16/9; background: #000; border-radius: 14px; }
.watch-controls, .watch-controls form, .watch-meta { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 9px; }
.watch-controls { margin: 8px 0 20px; }
.watch-controls .field { margin: 0; }
.watch-meta { align-items: center; color: var(--muted); margin: -10px 0 15px; }
.description { padding: .85rem; margin-bottom: 13px; background: var(--surface); border-radius: 10px; }
.back-link { display: inline-block; color: var(--purple); margin: 0 0 12px; }
.recovery, .setup-key { background: #231730; color: #f4dffb; border: 1px solid #553b67; padding: .7rem .85rem; border-radius: 8px; }
.recovery ul { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); padding-left: 1.2rem; }
.setup-key { display: block; font-size: 1rem; overflow-wrap: anywhere; user-select: all; }
.age-page { min-height: 100vh; background: linear-gradient(#09060ae8,#100814c9),url(/assets/hero.webp) center / cover fixed; }
.age-page main.container { display: grid; place-items: center; }
.age-card .check { margin-top: 1rem; }
.age-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; color: #ffd5df; background: #381522; border: 1px solid #9a3152; font-weight: 850; margin-bottom: 1rem; }

@media (max-width: 1024px) {
  .brand .brand-name { display: none; }
}
@media (max-width: 985px) {
  .top-inner { flex-wrap: wrap; row-gap: 6px; padding-block: 11px 0; }
  .site-nav { width: 100%; flex: 1 0 100%; order: 4; min-height: 42px; }
  .search { margin-left: auto; }
  .top-actions { order: 2; }
}
@media (max-width: 850px) {
  .video-catalog { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .category-grid .directory-item { flex-basis: calc((100% - 28px)/3); }
}
@media (max-width: 720px) {
  .container,.top-inner { width: calc(100% - 32px); }
  main.container { padding-top: 19px; }
  .edit-grid { grid-template-columns: minmax(0,1fr); }
  .home-layout { gap: 21px; margin-top: 22px; }
  .hero { background-position: 61% center; min-height: 340px; border-radius: 17px; }
  .hero-inner { padding-inline: 22px; }
  .video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
}
@media (max-width: 490px) {
  .top-inner { column-gap: 9px; }
  .top-actions { margin-left: auto; }
  .brand { font-size: 1.13rem; gap: 7px; }
  .brand > span:last-child { max-width: 8ch; }
  .brand-logo { width: 37px; height: 37px; border-radius: 10px; }
  .brand-logo img { width: 32px; height: 32px; }
  .brand-mark { width: 30px; min-width: 30px; height: 30px; }
  .top-actions .button { min-height: 37px; padding-inline: 8px; }
  .search { order: 3; flex: 1 0 100%; max-width: none; margin: 2px 0 0; }
  .site-nav { justify-content: space-between; gap: 5px; }
  .site-nav a { padding: 0 2px; font-size: .79rem; }
  .hero { min-height: 306px; background-position: 64% center; }
  .hero h1 { font-size: clamp(2.75rem,11vw,3.5rem); }
  .hero-kicker { letter-spacing: .12em; font-size: .61rem; }
  .hero .button { padding-inline: .72rem; }
  .video-grid { grid-template-columns: minmax(0,1fr); }
  .category-grid { gap: 10px; }
  .category-grid .directory-item { flex-basis: calc((100% - 10px)/2); }
  .list-row { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

.legal-page { max-width: 800px; margin-inline: auto; }
.legal-page h2 { margin-top: 1.8rem; }
.legal-page h3 { margin-top: 1.25rem; }
.legal-page li + li { margin-top: .35rem; }
.legal-page a, .auth-panel .check a { text-decoration: underline; }

.conversion-log {
  max-height: 60vh;
  overflow: auto;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #120c16;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: .85rem/1.5 ui-monospace, monospace;
}

.admin-video-identification { display: flex; align-items: center; gap: .85rem; min-width: 0; overflow-wrap: anywhere; }
.staff-thumbnail {
  display: block;
  flex: 0 0 auto;
  width: 112px;
  height: 63px;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.staff-thumbnail-empty { display: grid; place-items: center; color: var(--muted); font-size: .73rem; }

.turnstile-field { margin-block: .9rem; min-width: 0; }
.category-grid .category-card { align-content: start; overflow: hidden; padding: 0 0 .7rem; }
.category-card > strong, .category-card > span:not(.category-art) {
  padding-inline: .4rem;
  overflow-wrap: anywhere;
}
.category-grid .category-card .category-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  margin-bottom: .35rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 25% 20%, #572640, #21142c 67%, #17101d);
}
.category-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.category-art .category-initial { color: #e3b8dc; font-size: clamp(1.5rem, 5vw, 2.7rem); font-weight: 750; }
.category-image-preview { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 7px; }

.management-tabs {
  width: fit-content;
  max-width: 100%;
  margin-top: -.4rem;
}
.management-tabs a[aria-current] {
  background: #573358;
  color: #fff;
}

.support-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.5rem;
  align-items: center;
}
.support-packages {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr));
  gap: .85rem;
}
.support-package {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: .45rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .75rem;
}
.support-package strong { font-size: 1.2rem; }
.support-pass { border-color: #81612f; }
.supporter-star { color: #ffd277; }
.supporter-badge {
  display: inline-block;
  max-width: 100%;
  color: #ffe5ad;
  background: #3c2c20;
  border: 1px solid #99723d;
  border-radius: 999px;
  font-weight: 700;
  font-size: .82rem;
  padding: .24rem .65rem;
}

.avatar.reputation-green { border: 2px solid #69d79a; }
.avatar.reputation-yellow { border: 2px solid #f2cc66; }
.avatar.reputation-red, .avatar.reputation-banned { border: 2px solid #ff7387; }
.avatar.reputation-banned {
  display: grid;
  place-items: center;
  color: #ff7387;
  background: #301d27;
  font-weight: 800;
}
.break-text { min-width: 0; overflow-wrap: anywhere; }
.video-report { margin-block: 1rem; }

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
  align-items: start;
}
.admin-grid > .panel + .panel { margin-top: 0; }
.admin-grid > .panel, .admin-grid > .admin-span { min-width: 0; }
.admin-span { grid-column: 1 / -1; }
.admin-grid .admin-span > .form-panel { max-width: none; }
.admin-grid #s3-storage > form:first-of-type {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0 18px;
  align-items: start;
}
.admin-grid #s3-storage > form:first-of-type > .check,
.admin-grid #s3-storage > form:first-of-type > .field-note,
.admin-grid #s3-storage > form:first-of-type > .button { grid-column: 1 / -1; justify-self: start; }
.admin-taxonomy-panels, .admin-overview-panels { display: grid; gap: 18px; }
.admin-taxonomy-panels > .panel + .panel, .admin-overview-panels > .panel + .panel { margin-top: 0; }
.admin-overview-panels { margin-top: 18px; }
.admin-member-row { min-width: 0; }
.account-dot {
  display: inline-grid;
  place-items: center;
  width: .72rem;
  height: .72rem;
  margin-right: .2rem;
  border-radius: 50%;
  vertical-align: middle;
}
.dot-green { background: #69d79a; }
.dot-yellow { background: #f2cc66; }
.dot-red { background: #ff7387; }
.dot-banned { color: #ff7387; font-size: 1.3rem; line-height: .72rem; }
.user-row-menu { position: relative; }
.user-row-menu > summary { list-style: none; cursor: pointer; }
.user-row-menu > summary::-webkit-details-marker { display: none; }
.user-row-menu > .panel {
  position: absolute;
  z-index: 5;
  inset-inline-end: 0;
  top: calc(100% + 5px);
  display: grid;
  width: max-content;
  min-width: 9.5rem;
  padding: .25rem;
  box-shadow: 0 12px 30px #0008;
}
.user-row-menu a { padding: .45rem .6rem; border-radius: .35rem; }
.user-row-menu a:hover, .user-row-menu a:focus-visible { background: #342140; }
[data-user-search-status]:empty { display: none; }
.admin-metrics, .admin-activity {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}
.admin-metrics > div, .activity-series {
  display: grid;
  gap: .35rem;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .85rem;
}
.activity-bars {
  display: grid;
  grid-template-columns: repeat(14,minmax(0,1fr));
  gap: 3px;
  height: 82px;
}
.activity-bars > div {
  position: relative;
  min-width: 0;
  background: #32273a;
  border-radius: 3px;
}
.activity-bars meter {
  appearance: none;
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  writing-mode: vertical-lr;
  direction: rtl;
  accent-color: var(--chart-color);
}
.activity-uploads { --chart-color: #ea7fae; }
.activity-registrations { --chart-color: #a995f6; }
.activity-donations { --chart-color: #f2cc66; }
.activity-bars meter::-webkit-meter-bar { background: transparent; border: 0; }
.activity-bars meter::-webkit-meter-optimum-value { background: var(--chart-color); border-radius: 3px; }
.activity-bars meter::-moz-meter-bar { background: var(--chart-color); }
.activity-dates { display: flex; justify-content: space-between; gap: .25rem; font-size: .75rem; color: var(--muted); }
.admin-table-scroll { overflow-x: auto; }
.admin-table-scroll th, .admin-table-scroll td { padding: .45rem .65rem; text-align: start; white-space: nowrap; }
.admin-activity + details { margin-top: .85rem; }
.news-markdown { overflow-wrap: anywhere; }
.news-markdown img, .news-markdown video { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.news-markdown video { width: 100%; }
.news-markdown pre { overflow: auto; }
.news-markdown blockquote { margin-inline: 0; padding-inline-start: .75rem; border-inline-start: 2px solid var(--line); }
@media (max-width: 760px) {
  .admin-grid, .admin-metrics, .admin-activity, .admin-grid #s3-storage > form:first-of-type { grid-template-columns: minmax(0,1fr); }
}

.hero:has(.community-ticker) { display: grid; grid-template-rows: 1fr auto; align-items: center; }
.hero:has(.community-ticker) .hero-inner { padding-bottom: clamp(24px,3vw,42px); }
.community-ticker {
  min-width: 0;
  height: 72px;
  display: grid;
  grid-template-columns: max-content minmax(0,1fr) auto;
  align-items: center;
  gap: clamp(8px,1.8vw,26px);
  padding: 0 clamp(15px,5.1vw,76px);
  border-top: 1px solid #f5affb30;
  background: linear-gradient(90deg,#170f1ee6,#211328bd,#160f1ab5);
}
.community-ticker h2 {
  margin: 0;
  font-size: .85rem;
  color: #f7b3d7;
}
.ticker-window { min-width: 0; overflow: hidden; padding: 3px; }
.ticker-story {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ticker-story[hidden], .ticker-controls[hidden] { display: none; }
.ticker-copy { display: grid; min-width: 0; line-height: 1.35; }
.ticker-copy strong, .ticker-excerpt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker-copy strong { font-size: .88rem; }
.ticker-excerpt { font-size: .8rem; color: #ddc9de; }
.ticker-read { flex: none; color: #ffd0ea; font-size: .8rem; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.ticker-controls { display: flex; gap: .25rem; }
.ticker-controls button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #dfb0e35b;
  border-radius: 6px;
  background: #261a2b;
  color: #f8dcfa;
  font-size: 1rem;
  cursor: pointer;
}
.ticker-controls button:hover { background: #43264c; }
.ticker-story.is-entering { animation: ticker-rise 800ms ease-out; }
@keyframes ticker-rise {
  from { transform: translateY(105%); opacity: .2; }
  to { transform: translateY(0); opacity: 1; }
}
.community-news-dialog {
  width: min(720px,calc(100% - 30px));
  max-height: 86dvh;
  padding: clamp(15px,3vw,28px);
  overflow: auto;
  border: 1px solid #65466c;
  border-radius: 16px;
  background: #1c161f;
  color: var(--text);
  box-shadow: 0 24px 70px #060208b3;
}
.community-news-dialog::backdrop { background: #08050cbd; }
.news-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; margin-bottom: 1.15rem; }
.news-dialog-head h2 { overflow-wrap: anywhere; }
.news-dialog-head > div { min-width: 0; }
.news-dialog-head form { flex: none; }
.latest-shelf {
  border: 1px solid #3f2848;
  border-radius: 15px;
  padding: clamp(10px,1.6vw,22px);
  background: linear-gradient(155deg,#1f1426,#141017);
}
.home-layout .video-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
@media (max-width: 900px) {
  .home-layout .video-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .home-layout .video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .community-ticker {
    grid-template: 27px minmax(0,1fr) / minmax(0,1fr) auto;
    gap: 0 8px;
    padding-block: 4px;
  }
  .ticker-window { grid-column: 1 / -1; grid-row: 2; }
  .ticker-controls { grid-column: 2; grid-row: 1; }
  .ticker-controls button { width: 27px; height: 25px; }
  .ticker-copy strong { font-size: .82rem; }
  .ticker-excerpt, .ticker-read { font-size: .75rem; }
}
@media (max-width: 490px) {
  .home-layout .video-grid { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-story.is-entering { animation: none; }
}

.irc-chat-frame {
  display: block;
  width: 100%;
  height: clamp(24rem, 76vh, 58rem);
  height: clamp(24rem, 76dvh, 58rem);
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

@media (max-width: 700px) {
  .irc-chat-frame {
    height: clamp(22rem, 80vh, 58rem);
    height: clamp(22rem, 80dvh, 58rem);
    border-radius: .7rem;
  }
}
