:root {
    --bg: #0b0b0c;
    --surface: #181718;
    --surface-raised: #211f20;
    --surface-soft: rgba(255, 255, 255, .045);
    --text: #f8f9fa;
    --text-2: rgba(255, 255, 255, .82);
    --muted: rgba(255, 255, 255, .58);
    --brand: #f0a7be;
    --brand-2: #f6c3d2;
    --brand-dark: #e57fa6;
    --border: rgba(255, 255, 255, .11);
    --brand-border: rgba(240, 167, 190, .25);
    --danger: #ed7182;
    --success: #65d494;
    --warning: #efc56d;
    --radius: 14px;
    --shadow: 0 22px 56px rgba(0, 0, 0, .36);
    --content-width: 1440px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
    min-height: 100vh; margin: 0; display: flex; flex-direction: column;
    color: var(--text); background:
        radial-gradient(circle at 12% -8%, rgba(240, 167, 190, .11), transparent 30rem),
        radial-gradient(circle at 96% 24%, rgba(119, 68, 94, .09), transparent 28rem), var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
p { color: var(--text-2); }
img, video { max-width: 100%; -webkit-user-drag: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 2000; top: 8px; left: 8px; padding: 8px 12px; background: var(--brand); color: #111; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-container, .site-footer-inner { width: min(calc(100% - 32px), var(--content-width)); margin-inline: auto; }
.site-main { flex: 1 0 auto; padding: clamp(22px, 4vw, 48px) 0 clamp(50px, 7vw, 90px); }
.site-nav { position: sticky; top: 0; z-index: 1040; min-height: 68px; border-bottom: 1px solid var(--border); background: rgba(10,10,11,.91); backdrop-filter: blur(16px); box-shadow: 0 12px 32px rgba(0,0,0,.24); }
.site-nav-inner { max-width: var(--content-width); }
.brand { color: #fff !important; font-weight: 950; letter-spacing: -.055em; text-decoration: none; font-size: clamp(1.2rem, 3vw, 1.55rem); }
.brand span { color: var(--brand); }
.site-nav .nav-link { color: rgba(255,255,255,.7); font-size: .86rem; font-weight: 750; border-radius: 8px; padding: .55rem .72rem !important; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: #fff; background: rgba(255,255,255,.055); }
.site-nav .staff-link { color: var(--warning); }
.account-nav { gap: .35rem; }
.nav-register { margin-left: .25rem; }
.dropdown-menu { border: 1px solid var(--brand-border); border-radius: 11px; padding: .4rem; background: #151415; box-shadow: var(--shadow); }
.dropdown-item { border-radius: 7px; font-size: .88rem; }
.dropdown-item:hover, .dropdown-item:focus { color: #fff; background: rgba(240,167,190,.1); }

.site-messages { display: grid; gap: .5rem; margin-bottom: 1rem; }
.site-messages .alert { margin: 0; border: 1px solid var(--border); border-radius: 10px; color: #fff; background: rgba(28,28,29,.98); }
.site-messages .alert-success { background: rgba(38,85,57,.95); }
.site-messages .alert-danger, .site-messages .alert-error { background: rgba(91,34,43,.95); }
.panel { padding: clamp(18px, 3vw, 30px); border: 1px solid var(--brand-border); border-radius: var(--radius); background: rgba(24,23,24,.95); box-shadow: var(--shadow); }
.eyebrow { display: inline-block; margin-bottom: .45rem; color: var(--brand-2); font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.btn-brand { border-color: var(--brand); background: var(--brand); color: #121212; font-weight: 800; }
.btn-brand:hover, .btn-brand:focus { border-color: var(--brand-2); background: var(--brand-2); color: #121212; box-shadow: 0 0 0 .2rem rgba(240,167,190,.16); }
.btn-outline-light { border-color: rgba(240,167,190,.5); }
.btn-outline-light:hover { color: #fff; border-color: var(--brand); background: rgba(240,167,190,.1); }
.form-control, .form-select, textarea { min-height: 44px; border-color: var(--border); color: #fff; background: #111; }
.form-control:focus, .form-select:focus, textarea:focus { color: #fff; border-color: var(--brand); background: #111; box-shadow: 0 0 0 .2rem rgba(240,167,190,.13); }
.form-control::placeholder, textarea::placeholder { color: rgba(255,255,255,.38); }
.errorlist { margin: .35rem 0 0; padding-left: 1.1rem; color: #ff9aaa; font-size: .82rem; }

.feed-toolbar { margin-bottom: 1.2rem; }
.feed-filters { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(150px, 190px) auto; align-items: end; gap: .55rem; width: min(100%, 900px); }
.feed-toolbar .feed-filters { width: 100%; }
.feed-search { position: relative; min-width: 0; }
.feed-search .form-control { width: 100%; }
.tag-suggestions { position: absolute; z-index: 40; top: calc(100% + 5px); left: 0; width: 100%; max-height: min(360px,55vh); overflow-y: auto; padding: .35rem; border: 1px solid var(--brand-border); border-radius: 10px; background: rgba(17,17,18,.99); box-shadow: 0 18px 45px rgba(0,0,0,.6); }
.tag-suggestion { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem .7rem; border: 0; border-radius: 7px; color: var(--text); background: transparent; text-align: left; }
.tag-suggestion:hover, .tag-suggestion.active { color: #fff; background: rgba(240,167,190,.12); }
.tag-suggestion span { overflow: hidden; font-size: .84rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.tag-suggestion small { flex: 0 0 auto; color: var(--muted); font-size: .68rem; }
.content-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
.content-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content-grid.browse-grid { --card-grid-gap: clamp(12px,2vw,22px); grid-template-columns: repeat(auto-fit, 300px); justify-content: center; gap: var(--card-grid-gap); }
.content-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); box-shadow: 0 12px 30px rgba(0,0,0,.25); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.content-card:hover { transform: translateY(-3px); border-color: var(--brand-border); box-shadow: 0 18px 38px rgba(0,0,0,.36); }
.content-card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #111; }
.content-card-media img { display: block; width: 100%; height: 100%; margin: auto; object-fit: cover; object-position: 50% 50%; transition: transform .25s ease; }
.content-card-media img.video-thumbnail { object-fit: contain; background: #050505; }
.content-card:hover .content-card-media img { transform: scale(1.025); }
.media-type-badge, .duration-badge, .gallery-count { position: absolute; border-radius: 6px; padding: .22rem .42rem; color: #fff; background: rgba(8,8,8,.82); font-size: .66rem; font-weight: 850; text-transform: uppercase; backdrop-filter: blur(6px); }
.media-type-badge { left: .55rem; top: .55rem; color: var(--brand-2); }
.duration-badge { right: .55rem; bottom: .55rem; }
.gallery-count { right: .55rem; top: .55rem; }
.media-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--muted); }
.content-card-body { display: flex; align-items: start; justify-content: space-between; gap: .65rem; padding: .8rem .85rem .9rem; }
.content-card-copy { min-width: 0; }
.content-card-copy h2 { margin: 0; overflow: hidden; font-size: .97rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.content-card-copy h2 a { color: #fff; text-decoration: none; }
.content-card-copy p { margin: .22rem 0 0; color: var(--muted); font-size: .73rem; }
.social-summary { display: flex; flex: 0 0 auto; gap: .5rem; color: var(--muted); font-size: .72rem; }
.load-more-wrap { display: flex; justify-content: center; min-height: 45px; margin-top: 2rem; }
.empty-state { padding: 4rem 1rem; text-align: center; }
.empty-state h2 { font-weight: 850; }

.ad-slot { position: relative; display: grid; width: min(100%,calc(var(--ad-width) + 2px)); min-height: var(--ad-height); margin: 1rem auto 1.25rem; place-items: center; overflow: hidden; border: 1px dashed rgba(255,255,255,.18); border-radius: 10px; color: rgba(255,255,255,.42); background: rgba(255,255,255,.025); font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ad-slot > span { position: absolute; top: 2px; left: 5px; z-index: 1; font-size: .52rem; opacity: .7; }
.ad-provider-mount { position: relative; width: 100%; min-height: var(--ad-height); overflow: hidden; }
.ad-provider-frame { position: absolute; top: 0; left: 50%; display: block; max-width: none; border: 0; background: transparent; transform: translateX(-50%); transform-origin: top center; }
.ad-device-mobile { display: none; }
.content-grid > .ad-slot { grid-column: 1 / -1; justify-self: center; margin: 0; }
.browse-grid > .content-card, .content-ad-row > .content-card { width: 300px; height: 274px; }
.browse-grid > .content-card { display: grid; grid-template-rows: minmax(0,1fr) auto; }
.browse-grid > .content-card > .content-card-media, .browse-grid > .content-card > .content-card-body { min-width: 0; width: 100%; }
.browse-grid > .content-card > .content-card-media { min-height: 0; aspect-ratio: auto; }
.content-ad-anchor { display: none; }
.content-ad-row { display: grid; grid-template-columns: repeat(auto-fit,300px); grid-column: 1 / -1; justify-content: center; gap: var(--card-grid-gap,clamp(12px,2vw,22px)); }
.content-ad-card { position: relative; display: grid; min-height: 0; place-items: center; background: #101011; }
.content-ad-card:hover { transform: none; border-color: var(--brand-border); }
.content-ad-card .ad-provider-mount { min-height: 0; }
.content-ad-label { position: absolute; z-index: 2; top: .35rem; left: .4rem; padding: .16rem .3rem; border-radius: 5px; color: rgba(255,255,255,.78); background: rgba(8,8,8,.72); font-size: .5rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }

.back-link { display: inline-block; margin-bottom: .45rem; color: var(--text-2); font-size: .8rem; font-weight: 700; text-decoration: none; }
.detail-top-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 34px; margin-bottom: .45rem; }
.detail-top-actions .back-link { margin-bottom: 0; }
.staff-manage-shortcut { flex: 0 0 auto; }
.detail-header { margin: 0; }
.detail-header h1 { margin: 0; font-size: clamp(1.25rem, 3vw, 2.15rem); font-weight: 900; letter-spacing: -.03em; }
.detail-meta { color: var(--muted); font-size: .82rem; }
.detail-layout, .detail-main { min-width: 0; }
.media-detail-panel { display: grid; gap: .85rem; margin-top: 1rem; }
.detail-description { margin: 0; color: var(--text-2); }
.tag-box { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .7rem; min-width: 0; padding: .65rem .75rem; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.025); }
.tag-box-label { color: #fff; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.tag-list { display: flex; min-width: 0; gap: .4rem; overflow: hidden; flex-wrap: nowrap; white-space: nowrap; }
.tag-list a { flex: 0 0 auto; padding: .35rem .55rem; border: 1px solid var(--brand-border); border-radius: 99px; background: rgba(240,167,190,.055); font-size: .74rem; text-decoration: none; }
.tag-box.is-expanded { align-items: start; }
.tag-box.is-expanded .tag-list { overflow: visible; flex-wrap: wrap; white-space: normal; }
.tag-toggle { padding: .25rem .45rem; border: 0; color: var(--brand-2); background: transparent; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.tag-toggle:hover, .tag-toggle:focus-visible { color: #fff; text-decoration: underline; }

.player-shell { overflow: hidden; border: 1px solid var(--brand-border); border-radius: var(--radius); background: #080808; box-shadow: var(--shadow); }
.player-stage { position: relative; display: grid; width: 100%; aspect-ratio: var(--media-aspect-ratio, 16 / 9); place-items: center; overflow: hidden; background: #050505; }
.player-stage.is-portrait { width: auto; max-width: 100%; height: min(82vh, 900px); height: min(82svh, 900px); margin-inline: auto; }
.player-stage:fullscreen, .player-stage:-webkit-full-screen { width: 100dvw; max-width: none; height: 100dvh; max-height: none; aspect-ratio: auto; background: #000; }
.player-stage:fullscreen::backdrop { background: #000; }
.player-stage:fullscreen .player-video, .player-stage:-webkit-full-screen .player-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain !important; background: #000; }
.player-image, .player-video { width: 100%; height: 100%; object-fit: contain; }
.player-audio { position: relative; display: grid; width: 100%; height: 100%; place-items: center; overflow: hidden; }
.player-audio img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(28px) brightness(.45); transform: scale(1.12); }
.player-audio strong { position: relative; z-index: 1; color: var(--brand-2); font-size: clamp(2rem, 8vw, 5rem); letter-spacing: .15em; }
.player-gate-message { position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; color: var(--text-2); text-align: center; background: radial-gradient(circle, rgba(240,167,190,.1), transparent 55%); }
.player-overlay-play { position: absolute; z-index: 3; display: grid; width: clamp(58px,8vw,76px); height: clamp(58px,8vw,76px); padding: 0; place-items: center; touch-action: manipulation; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: #fff; background: rgba(0,0,0,.68); box-shadow: 0 8px 30px rgba(0,0,0,.42); opacity: 1; transition: opacity .18s ease, transform .18s ease, background .18s ease; }
.player-overlay-play.d-none { display: none !important; }
.player-overlay-play:focus-visible { color: #fff; background: rgba(0,0,0,.82); opacity: 1; transform: scale(1.06); }
.player-overlay-play .control-icon { width: clamp(29px,4vw,38px); height: clamp(29px,4vw,38px); }
.in-video-ad-overlay { position: absolute; z-index: 6; right: .65rem; bottom: 4.35rem; width: min(var(--ad-width),calc(100% - 1rem)); min-height: var(--ad-height); overflow: hidden; border: 1px solid rgba(255,255,255,.28); border-radius: 9px; background: rgba(5,5,5,.96); box-shadow: 0 10px 36px rgba(0,0,0,.58); }
.in-video-ad-overlay .ad-provider-mount { min-height: var(--ad-height); }
.in-video-ad-label { position: absolute; z-index: 3; top: 3px; left: 5px; padding: .12rem .28rem; border-radius: 4px; color: rgba(255,255,255,.78); background: rgba(0,0,0,.74); font-size: .48rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.in-video-ad-close { position: absolute; z-index: 4; top: 4px; right: 4px; display: grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: #fff; background: rgba(0,0,0,.86); font-size: 1.2rem; line-height: 1; }
.in-video-ad-close:hover, .in-video-ad-close:focus-visible { color: #111; background: #fff; }
.native-interstitial { position: fixed; z-index: 2100; inset: 0; display: grid; grid-template-rows: auto 1fr; width: 100vw; height: 100dvh; overflow: hidden; color: #fff; background: #050505; }
.native-interstitial-toolbar { display: flex; min-height: 58px; padding: .65rem clamp(.75rem,3vw,1.5rem); align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,.16); background: #111; }
.native-interstitial-toolbar span { color: var(--text-2); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.native-interstitial-toolbar .btn { flex: none; font-weight: 800; }
.native-interstitial-frame { width: 100%; height: 100%; border: 0; background: #fff; }
.player-controls { position: absolute; z-index: 4; right: 0; bottom: 0; left: 0; display: grid !important; grid-template-columns: auto max-content minmax(80px,1fr) auto auto auto; align-items: center; gap: .55rem; padding: 1rem .8rem .7rem; background: linear-gradient(transparent, rgba(0,0,0,.94)); opacity: 0; transform: translateY(10px); transition: opacity .18s, transform .18s; }
.player-stage:focus-within .player-controls, .player-controls.visible { opacity: 1; transform: none; }
.player-controls.d-none { display: none !important; }
.control-button { display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 0; border-radius: 8px; color: #fff; background: transparent; }
.control-button:hover, .control-button:focus-visible { color: #fff; background: rgba(255,255,255,.13); }
@media (hover: hover) and (pointer: fine) {
    .player-overlay-play:hover { color: #fff; background: rgba(0,0,0,.82); opacity: 1; transform: scale(1.06); }
    .player-stage:hover .player-controls { opacity: 1; transform: none; }
}
.control-icon { grid-area: 1 / 1; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.control-icon[hidden] { display: none; }
.player-seek { width: 100%; min-width: 0; margin: 0; accent-color: #fff; cursor: pointer; }
.player-time { color: rgba(255,255,255,.88); font-size: .7rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.player-quality select { min-height: 34px; padding: .25rem 1.75rem .25rem .45rem; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; color: #fff; background-color: rgba(0,0,0,.62); font-size: .7rem; font-weight: 800; }
.player-gallery { display: flex; gap: .55rem; overflow-x: auto; padding: .7rem; border-top: 1px solid var(--border); scrollbar-width: thin; }
.player-thumb { position: relative; flex: 0 0 92px; overflow: hidden; aspect-ratio: 16 / 10; padding: 0; border: 2px solid transparent; border-radius: 8px; color: #fff; background: #1b1b1b; }
.player-thumb.active { border-color: var(--brand); }
.player-thumb img { width: 100%; height: 100%; object-fit: cover; }
.player-thumb small { position: absolute; right: .25rem; bottom: .2rem; padding: .1rem .25rem; border-radius: 4px; background: rgba(0,0,0,.8); font-size: .6rem; }
.post-image-gallery { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: #0c0c0d; }
.post-gallery-heading { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.post-gallery-heading span { color: var(--muted); font-size: .76rem; }
.post-gallery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.post-gallery-item { position: relative; display: grid; overflow: hidden; aspect-ratio: 1; padding: 0; place-items: center; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); background: #050505; }
.post-gallery-item.featured { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.post-gallery-item img { width: 100%; height: 100%; object-fit: contain; }
.image-viewer[hidden] { display: none; }
.image-viewer { position: fixed; z-index: 1200; inset: 0; display: grid; place-items: center; padding: 12px; }
.image-viewer-backdrop { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.94); }
.image-viewer-shell { position: relative; display: grid; grid-template-rows: auto minmax(0,1fr) auto; width: min(100%,1400px); height: min(96dvh,1000px); border: 1px solid var(--border); border-radius: 14px; background: #090909; box-shadow: 0 30px 90px rgba(0,0,0,.8); }
.image-viewer-shell header { display: flex; align-items: center; justify-content: space-between; padding: .65rem .8rem; color: var(--muted); font-size: .78rem; }
.image-viewer-shell header button { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); font-size: 1.5rem; }
.image-viewer-stage { position: relative; display: grid; min-height: 0; place-items: center; overflow: hidden; background: #000; }
.image-viewer-stage > img { display: block; width: 100%; min-width: 0; height: 100%; min-height: 0; object-fit: contain; }
.image-viewer-arrow { position: absolute; z-index: 2; top: 50%; display: grid; width: 44px; height: 58px; place-items: center; transform: translateY(-50%); border: 1px solid var(--border); border-radius: 10px; color: #fff; background: rgba(0,0,0,.62); font-size: 2rem; }
.image-viewer-arrow.previous { left: .75rem; }
.image-viewer-arrow.next { right: .75rem; }
.image-viewer-arrow:disabled { visibility: hidden; }
.image-viewer-rail { display: flex; gap: .45rem; overflow-x: auto; padding: .65rem; scrollbar-width: thin; }
.image-viewer-rail button { flex: 0 0 74px; overflow: hidden; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 8px; background: #111; }
.image-viewer-rail button.active { border-color: var(--brand); }
.image-viewer-rail img { width: 100%; height: 100%; object-fit: cover; }
.viewer-open { overflow: hidden; }

.conversation { margin-top: 1rem; }
.conversation-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.conversation-header h2 { margin: 0; font-size: 1.3rem; }
.like-button { min-width: 72px; padding: .45rem .7rem; border: 1px solid var(--brand-border); border-radius: 99px; color: var(--text-2); background: rgba(255,255,255,.035); font-weight: 800; }
.like-button.liked { color: #141414; border-color: var(--brand); background: var(--brand); }
.comment-form { margin: 1.2rem 0; }
.comment-form label { margin-bottom: .4rem; font-size: .78rem; font-weight: 800; }
.comment-form > div { display: grid; grid-template-columns: 1fr auto; gap: .6rem; }
.comment-form textarea { min-height: 82px; padding: .7rem; border-radius: 9px; resize: vertical; }
.form-status { min-height: 1rem; margin: .35rem 0 0; color: var(--danger); font-size: .75rem; }
.comment-list { display: grid; gap: .55rem; }
.comment { position: relative; display: grid; grid-template-columns: 38px 1fr auto; gap: .7rem; padding: .75rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.comment-avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: #111; background: var(--brand); font-weight: 900; }
.comment header { display: flex; gap: .55rem; align-items: baseline; }
.comment header time { color: var(--muted); font-size: .68rem; }
.comment p { margin: .25rem 0 0; }
.comment-hide { align-self: start; border: 0; color: var(--muted); background: transparent; font-size: .7rem; }
.related-section { margin-top: 2.5rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-heading h2 { margin: 0; font-size: 1.35rem; }
.section-heading p { margin: .2rem 0 0; }

.auth-shell { width: min(100%, 600px); margin: 1rem auto; }
.auth-card h1 { margin-bottom: 1.2rem; font-weight: 900; letter-spacing: -.035em; }
.stack-form { display: grid; gap: 1rem; }
.stack-form label { display: block; margin-bottom: .35rem; font-size: .78rem; font-weight: 800; }
.stack-form small, .form-note { color: var(--muted); font-size: .72rem; }
.stack-form ul { margin: .35rem 0 0; color: var(--muted); font-size: .72rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.auth-switch, .auth-links { margin-top: 1.2rem; font-size: .85rem; }
.auth-links { display: flex; justify-content: space-between; }
.account-layout { display: grid; grid-template-columns: minmax(250px,.7fr) minmax(0,1.3fr); gap: 1rem; }
.account-facts { display: grid; gap: .8rem; }
.account-facts div { padding-bottom: .8rem; border-bottom: 1px solid var(--border); }
.account-facts dt { color: var(--muted); font-size: .7rem; text-transform: uppercase; }
.account-facts dd { margin: .2rem 0 0; }

.staff-header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.staff-header h1 { margin: 0; font-weight: 900; letter-spacing: -.04em; }
.staff-header p { margin: .25rem 0 0; }
.staff-tabs { display: flex; overflow-x: auto; gap: .35rem; margin: -0.35rem 0 1rem; padding-bottom: .65rem; border-bottom: 1px solid var(--border); }
.staff-tabs a { flex: 0 0 auto; padding: .45rem .75rem; border-radius: 8px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.staff-tabs a:hover, .staff-tabs a.active { color: var(--text); background: rgba(255,255,255,.07); }
.staff-actions, .button-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: .7rem; margin-bottom: 1rem; }
.metric { display: grid; padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.metric strong { color: var(--brand-2); font-size: 1.8rem; }
.metric span { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.staff-section { margin-top: 1rem; }
.staff-content-heading-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: end; gap: .7rem; }
.staff-content-heading-actions form { margin: 0; }
.staff-content-filters { display: grid; grid-template-columns: minmax(220px,1.5fr) minmax(150px,.65fr) minmax(150px,.65fr) auto; align-items: end; gap: .65rem; margin-bottom: 1rem; padding: .8rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.staff-content-filters label { display: grid; gap: .35rem; min-width: 0; }
.staff-content-filters label > span { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.staff-filter-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.staff-list { display: grid; gap: .5rem; }
.staff-list > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem; border: 1px solid var(--border); border-radius: 8px; }
.staff-list p { margin: .2rem 0 0; font-size: .75rem; }
.staff-table { width: 100%; border-collapse: collapse; }
.staff-table th, .staff-table td { padding: .75rem; border-bottom: 1px solid var(--border); text-align: left; font-size: .82rem; }
.staff-table th { color: var(--muted); font-size: .68rem; text-transform: uppercase; }
.staff-content-row { cursor: pointer; transition: background-color .15s ease; }
.staff-content-row:hover, .staff-content-row:focus-visible { outline: none; background: rgba(240,167,190,.07); }
.staff-not-live { color: var(--muted); }
.ad-settings-list { display: grid; gap: .85rem; }
.ad-policy-card { display: grid; grid-template-columns: minmax(210px,.55fr) minmax(420px,1.45fr); gap: 1rem; margin-bottom: 1rem; padding: 1rem; border: 1px solid var(--brand-border); border-radius: 12px; background: linear-gradient(135deg,rgba(240,167,190,.08),var(--surface) 42%); }
.ad-policy-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; }
.ad-policy-grid label { display: grid; align-content: start; gap: .3rem; min-width: 0; }
.ad-policy-grid label > span { color: var(--text-2); font-size: .68rem; font-weight: 800; line-height: 1.25; }
.ad-policy-grid .errorlist { margin: 0; padding: 0; color: #ff9fa7; font-size: .68rem; list-style: none; }
.ad-settings-card { display: grid; grid-template-columns: minmax(210px,.7fr) minmax(300px,1.3fr); gap: 1rem; padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.ad-settings-meta { display: grid; align-content: start; gap: .35rem; }
.ad-settings-meta h2 { margin: 0; font-size: 1rem; }
.ad-settings-meta p { margin: 0; color: var(--muted); font-size: .78rem; }
.ad-size-badge { width: max-content; padding: .25rem .45rem; border-radius: 99px; color: var(--brand-2); background: rgba(240,167,190,.1); font-size: .7rem; font-weight: 850; }
.ad-code-field { display: grid; gap: .45rem; }
.ad-code-field textarea { min-height: 150px; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: .76rem; }
.ad-active-toggle { display: flex; align-items: center; gap: .5rem; font-weight: 800; }
.staff-pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.staff-page-summary { color: var(--muted); font-size: .75rem; }
.staff-page-links { display: flex; flex-wrap: wrap; justify-content: end; gap: .35rem; }
.staff-page-links a, .staff-page-links span { display: grid; min-width: 34px; min-height: 34px; padding: .35rem .55rem; place-items: center; border: 1px solid var(--border); border-radius: 7px; font-size: .75rem; font-weight: 800; text-decoration: none; }
.staff-page-links a:hover, .staff-page-links a:focus-visible { border-color: var(--brand); background: rgba(240,167,190,.08); }
.staff-page-links .current { color: #111; border-color: var(--brand); background: var(--brand); }
.staff-page-links .ellipsis { min-width: 24px; border-color: transparent; color: var(--muted); }
.status { display: inline-flex; width: max-content; padding: .2rem .42rem; border-radius: 99px; color: var(--muted); background: rgba(255,255,255,.07); font-size: .65rem; font-weight: 850; text-transform: uppercase; }
.status.published, .status.ready { color: var(--success); background: rgba(101,212,148,.11); }
.status.online { color: var(--success); background: rgba(101,212,148,.11); }
.status.failed { color: #ff9aaa; background: rgba(237,113,130,.1); }
.status.offline, .status.disabled { color: #ff9aaa; background: rgba(237,113,130,.1); }
.status.uploading, .status.pending, .status.processing { color: var(--warning); background: rgba(239,197,109,.1); }
.status.queued, .status.downloading { color: var(--warning); background: rgba(239,197,109,.1); }
.status.complete { color: var(--success); background: rgba(101,212,148,.11); }
.status.never { color: var(--warning); background: rgba(239,197,109,.1); }
.status.update-requested, .status.update-acknowledged, .status.update-installing { color: var(--warning); background: rgba(239,197,109,.1); }
.status.update-completed { color: var(--success); background: rgba(101,212,148,.11); }
.status.update-failed { color: #ff9aaa; background: rgba(237,113,130,.1); }
.worker-metrics { grid-template-columns: repeat(3,1fr); }
.worker-create-form { display: grid; max-width: 620px; gap: .4rem; }
.worker-create-form label { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.worker-create-form > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .55rem; }
.video-import-form { display: grid; gap: .4rem; }
.video-import-form > label { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.video-import-form > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .55rem; }
.video-import-form .errorlist { margin: 0; color: var(--danger); font-size: .76rem; }
.import-choices { display: grid; gap: .65rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.import-choices legend { padding: 0 0 .65rem; }
.import-choice { display: flex; align-items: center; gap: .8rem; padding: .8rem; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.import-choice:has(input:checked) { border-color: var(--brand); background: rgba(237,113,130,.08); }
.import-choice:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.import-choice input { flex: 0 0 auto; accent-color: var(--brand); }
.import-choice img, .import-choice-placeholder { width: clamp(72px,16vw,160px); aspect-ratio: 16 / 9; object-fit: contain; flex: 0 0 auto; border-radius: 6px; background: #111; }
.import-choice-placeholder { display: grid; place-items: center; color: var(--muted); font-size: .7rem; }
.import-choice-details { display: grid; gap: .3rem; min-width: 0; overflow-wrap: anywhere; }
.import-choice-details small { color: var(--muted); }
.import-selection-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.import-table td { vertical-align: middle; }
.import-table td small { display: block; margin-top: .25rem; color: var(--text-2); font-size: .68rem; }
.worker-table td { vertical-align: middle; }
.worker-secondary { color: var(--text-2); }
.worker-idle { color: var(--text); font-weight: 750; }
.worker-actions { display: flex; justify-content: end; gap: .35rem; }
.worker-job { display: block; color: var(--brand-2); font-size: .75rem; font-weight: 750; }
.worker-job:hover, .worker-job:focus-visible { color: #fff; }
.worker-job + .worker-job { margin-top: .3rem; }
.worker-job span { display: block; color: var(--danger); font-size: .65rem; }
.worker-update-error { display: block; margin-top: .3rem; color: var(--danger); font-size: .66rem; }
.queue-content-link { color: var(--brand-2); font-weight: 800; }
.queue-content-link:hover, .queue-content-link:focus-visible { color: #fff; }
.queue-progress { width: 110px; height: 7px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.1); }
.queue-progress span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.queue-table small { color: var(--text-2); font-size: .66rem; }
.queue-error { display: block; max-width: 260px; color: var(--danger); font-size: .7rem; }
.token-reveal { border-color: var(--brand-border); background: rgba(240,167,190,.06); }
.token-reveal p { margin-bottom: .65rem; }
.worker-token { display: block; overflow-wrap: anywhere; padding: .85rem; border: 1px solid var(--border); border-radius: 8px; color: var(--brand-2); background: #09090a; user-select: all; }
.delete-confirmation { max-width: 720px; }
.staff-editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.media-admin-list { display: grid; gap: .6rem; }
.media-admin-item { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: .8rem; padding: .65rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.media-admin-thumb { display: grid; overflow: hidden; aspect-ratio: 16 / 10; place-items: center; border-radius: 7px; color: var(--muted); background: #111; font-size: .68rem; }
.media-admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-admin-thumb img.video-thumbnail { object-fit: contain; background: #050505; }
.media-admin-copy { display: grid; gap: .3rem; min-width: 0; }
.media-admin-copy p { margin: 0; overflow: hidden; color: #ff9aaa; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.media-admin-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: .3rem; }
.processing-action { color: var(--muted); font-size: .7rem; }
.upload-field { display: grid; gap: .75rem; }
.upload-dropzone { position: relative; display: grid; min-height: 190px; padding: 1.4rem; place-items: center; align-content: center; gap: .32rem; border: 2px dashed var(--border); border-radius: 14px; color: var(--text-2); background: rgba(255,255,255,.025); text-align: center; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.upload-dropzone:hover, .upload-dropzone:focus-visible, .upload-dropzone.is-dragover { border-color: var(--brand); outline: none; background: rgba(240,167,190,.08); }
.upload-dropzone.is-dragover { transform: scale(1.01); }
.upload-dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.upload-dropzone-icon { display: grid; width: 48px; height: 48px; margin-bottom: .25rem; place-items: center; border-radius: 50%; color: #111; background: var(--brand); font-size: 1.65rem; font-weight: 900; }
.upload-dropzone strong { color: var(--text); font-size: 1rem; }
.upload-dropzone span:not(.upload-dropzone-icon), .upload-dropzone small { color: var(--muted); font-size: .76rem; }
.upload-preview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
.upload-preview-card { display: grid; grid-template-columns: 84px minmax(0,1fr); align-items: center; gap: .65rem; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.upload-preview-visual { display: grid; overflow: hidden; aspect-ratio: 1; place-items: center; color: var(--brand-2); background: #0d0d0e; }
.upload-preview-visual img, .upload-preview-visual video { width: 100%; height: 100%; }
.upload-preview-visual img { object-fit: cover; }
.upload-preview-visual video { object-fit: contain; }
.upload-audio-mark { font-size: 2rem; }
.upload-preview-copy { display: grid; min-width: 0; padding-right: .6rem; }
.upload-preview-copy strong { overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.upload-preview-copy small { color: var(--muted); font-size: .66rem; }
.upload-errors ul { margin: 0; color: var(--danger); font-size: .76rem; }
.direct-upload-status { min-height: 1rem; color: var(--muted); font-size: .76rem; }
.direct-upload-status.error { color: var(--danger); }
.legal-page { max-width: 860px; margin-inline: auto; }
.legal-page h1 { margin: 0; font-weight: 900; letter-spacing: -.035em; }
.legal-page h2 { margin: 2rem 0 .65rem; color: var(--text); font-size: 1.15rem; font-weight: 850; }
.legal-page p, .legal-page li { color: var(--text-2); line-height: 1.7; }
.legal-page li + li { margin-top: .45rem; }
.legal-page a { text-decoration: underline; text-underline-offset: 3px; }
.legal-header { margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.legal-updated { margin: .4rem 0 0; color: var(--muted) !important; font-size: .74rem; }
.legal-callout { margin: 1.5rem 0; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.legal-callout h2, .removal-success h2 { margin: 0 0 .4rem; font-size: 1rem; }
.legal-callout p, .removal-success p { margin: 0; }
.legal-callout-danger { border-color: rgba(237,113,130,.38); background: rgba(237,113,130,.08); }
.removal-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.removal-form label:not(.removal-certification) { color: var(--text); font-size: .94rem; line-height: 1.45; }
.removal-form .form-control, .removal-form .form-select { min-height: 48px; font-size: 1rem; line-height: 1.5; }
.removal-form small, .removal-page .form-note { color: var(--text-2); font-size: .84rem; line-height: 1.55; }
.removal-form .btn { width: max-content; }
.removal-certification { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .65rem; color: var(--text); font-size: .92rem; line-height: 1.55; cursor: pointer; }
.removal-certification input { margin-top: .18rem; }
.removal-form .errorlist { margin: .35rem 0 0; padding-left: 1.1rem; color: var(--danger); font-size: .86rem; }
.legal-fine-print { margin: 1.25rem 0 0; color: var(--text-2) !important; font-size: .82rem; }
.removal-success { border-color: rgba(101,212,148,.35); color: var(--text); background: rgba(101,212,148,.09); }

.age-gate { border: 1px solid var(--brand-border); border-radius: var(--radius); color: #fff; background: #181718; box-shadow: 0 30px 90px rgba(0,0,0,.75); }
.age-gate .modal-header, .age-gate .modal-footer { border-color: var(--border); }
.age-gate h2 { margin: 0; font-weight: 900; }
.agegate-backdrop { opacity: .94 !important; backdrop-filter: blur(18px); }
.site-footer { padding: 2rem 0; border-top: 1px solid var(--border); background: rgba(8,8,9,.8); }
.site-footer-inner { display: flex; justify-content: space-between; gap: 2rem; }
.brand-footer { font-size: 1.05rem; }
.site-footer p { margin: .4rem 0 0; color: var(--muted); font-size: .76rem; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: .78rem; }

@media (max-width: 1199.98px) {
    .content-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .feed-filters { width: 100%; }
}
@media (max-width: 991.98px) {
    .account-nav { align-items: stretch !important; padding: .5rem 0; }
    .nav-register { margin: .25rem 0; }
    .content-grid.compact { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .staff-editor-grid { grid-template-columns: 1fr; }
    .staff-content-filters { grid-template-columns: 1fr 1fr; }
    .staff-content-filters label:first-child { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    .ad-device-desktop { display: none; }
    .ad-device-mobile { display: grid; }
    .site-container, .site-footer-inner { width: min(calc(100% - 22px), var(--content-width)); }
    .content-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
    .content-grid.browse-grid { --card-grid-gap: 10px; }
    .feed-filters { grid-template-columns: minmax(0,1fr) auto; }
    .feed-search { grid-column: 1 / -1; }
    .player-controls { grid-template-columns: auto max-content minmax(60px,1fr) auto auto auto; gap: .25rem; padding-inline: .45rem; }
    .account-layout { grid-template-columns: 1fr; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .worker-metrics { grid-template-columns: repeat(3,1fr); }
    .worker-create-form > div { grid-template-columns: 1fr; }
    .video-import-form > div { grid-template-columns: 1fr; }
    .staff-pagination { align-items: stretch; flex-direction: column; }
    .ad-settings-card { grid-template-columns: 1fr; }
    .ad-policy-card { grid-template-columns: 1fr; }
    .ad-policy-grid { grid-template-columns: 1fr 1fr; }
    .staff-page-links { justify-content: start; }
    .media-admin-item { grid-template-columns: 90px 1fr; }
    .media-admin-actions { grid-column: 1 / -1; justify-content: start; }
    .upload-preview-grid { grid-template-columns: 1fr; }
    .site-footer-inner { flex-direction: column; gap: 1rem; }
    .legal-page { padding: 1.1rem; }
}
@media (max-width: 479.98px) {
    .feed-filters { grid-template-columns: 1fr; }
    .in-video-ad-overlay { right: 50%; bottom: 4.15rem; transform: translateX(50%); }
    .ad-policy-grid { grid-template-columns: 1fr; }
    .worker-metrics { grid-template-columns: 1fr; }
    .staff-content-filters { grid-template-columns: 1fr; }
    .staff-content-filters label:first-child { grid-column: auto; }
    .staff-filter-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 321.98px) {
    .content-grid.browse-grid, .content-ad-row { grid-template-columns: minmax(0,1fr); }
    .browse-grid > .content-card, .content-ad-row > .content-card { width: 100%; height: auto; aspect-ratio: 300 / 274; }
}
@media (max-width: 420px) {
    .site-main { padding-top: 16px; }
    .content-card-body { padding: .65rem; }
    .content-card-copy h2 { font-size: .84rem; }
    .social-summary { display: none; }
    .feed-filters { grid-template-columns: 1fr; }
    .feed-filters label, .feed-filters label:first-child, .feed-filters .btn { grid-column: auto; }
    .player-controls { grid-template-columns: auto minmax(60px,1fr) auto auto auto; }
    .player-time { display: none; }
    .player-thumb { flex-basis: 76px; }
    .image-viewer { padding: 0; }
    .image-viewer-shell { width: 100%; height: 100dvh; border: 0; border-radius: 0; }
    .image-viewer-arrow { width: 38px; height: 52px; }
    .comment-form > div { grid-template-columns: 1fr; }
    .comment { grid-template-columns: 34px 1fr; }
    .comment-hide { grid-column: 2; justify-self: start; }
    .staff-header { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
