:root {
    --bg: #070708;
    --panel: rgba(15, 15, 18, 0.82);
    --panel-solid: #111114;
    --panel-2: #17171b;
    --red: #e50914;
    --red-2: #ff2632;
    --red-soft: rgba(229, 9, 20, 0.14);
    --red-glow: rgba(229, 9, 20, 0.38);
    --white: #ffffff;
    --muted: #929299;
    --muted-2: #66666f;
    --line: rgba(255, 255, 255, 0.1);
    --green: #55e58d;
    --header-h: 86px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--white);
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
}

button,
input,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--red-2);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

/* -------------------------------------------------------------
   CINEMATIC BACKGROUND VIDEO
------------------------------------------------------------- */
.video-background-wrapper {
    position: fixed;
    inset: 0;
    z-index: -20;
    overflow: hidden;
    background: #050506;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    filter: saturate(0.9) contrast(1.08) brightness(0.82);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 5, 6, 0.86) 0%, rgba(5, 5, 6, 0.52) 42%, rgba(5, 5, 6, 0.46) 100%),
        linear-gradient(0deg, rgba(5, 5, 6, 0.88) 0%, rgba(5, 5, 6, 0.10) 56%, rgba(5, 5, 6, 0.50) 100%);
}

.video-grain {
    position: absolute;
    inset: 0;
    opacity: 0.11;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------
   BOOT STATE
------------------------------------------------------------- */
.boot-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    background: #060607;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.boot-loader.is-done {
    opacity: 0;
    visibility: hidden;
}

.boot-mark {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border: 1px solid var(--red);
    color: var(--red);
    font-family: "Bebas Neue", sans-serif;
    font-size: 42px;
    box-shadow: 0 0 34px var(--red-glow);
    animation: bootPulse 1.2s ease-in-out infinite;
}

.boot-loader p {
    color: #77777f;
    font-size: 10px;
    letter-spacing: 0.25em;
    font-weight: 800;
}

@keyframes bootPulse {
    50% { transform: scale(0.94); opacity: 0.64; }
}

/* -------------------------------------------------------------
   HEADER
------------------------------------------------------------- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: var(--header-h);
    padding: 0 4.5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(5, 5, 6, 0.88), rgba(5, 5, 6, 0.56));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.logo {
    border: 0;
    background: transparent;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
    line-height: 1;
}

.logo span {
    font-family: "Bebas Neue", sans-serif;
    font-size: 35px;
    letter-spacing: 0.09em;
    color: var(--red);
    text-shadow: 0 0 24px rgba(229, 9, 20, 0.38);
}

.logo small {
    margin-top: 3px;
    font-size: 8px;
    letter-spacing: 0.33em;
    color: #83838c;
    font-weight: 800;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.auth-btn {
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid var(--red);
    background: rgba(229, 9, 20, 0.06);
    color: #ff4952;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: 0.2s ease;
}

.auth-btn:hover {
    color: #fff;
    background: var(--red);
    box-shadow: 0 0 22px var(--red-glow);
}

.soft-btn,
.logout-btn {
    border-color: rgba(255, 255, 255, 0.16);
    color: #b7b7bd;
    background: rgba(255, 255, 255, 0.035);
}

.soft-btn:hover,
.logout-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: none;
}

.member-badge {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid rgba(85, 229, 141, 0.42);
    background: rgba(85, 229, 141, 0.065);
    color: var(--green);
    border-radius: 3px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.member-badge.admin-badge {
    border-color: rgba(229, 9, 20, 0.5);
    background: rgba(229, 9, 20, 0.08);
    color: #ff3a45;
}

/* -------------------------------------------------------------
   LANDING / LOGIN GATE
------------------------------------------------------------- */
.landing-view {
    min-height: calc(100vh - var(--header-h));
    padding: clamp(50px, 8vh, 95px) 5vw 55px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    align-items: center;
    gap: clamp(42px, 7vw, 120px);
    max-width: 1500px;
    margin: 0 auto;
}

.landing-content {
    max-width: 860px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: #b2b2b8;
    font-size: 10px;
    letter-spacing: 0.24em;
    font-weight: 800;
}

.eyebrow span {
    width: 34px;
    height: 1px;
    background: var(--red);
}

.landing-content h1 {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(64px, 8vw, 126px);
    line-height: 0.82;
    letter-spacing: 0.015em;
    font-weight: 400;
    color: #f5f5f5;
    text-wrap: balance;
}

.landing-content h1 strong {
    color: var(--red);
    font-weight: 400;
    text-shadow: 0 0 50px rgba(229, 9, 20, 0.18);
}

.landing-copy {
    max-width: 690px;
    margin-top: 28px;
    color: #a8a8af;
    font-size: clamp(14px, 1.05vw, 17px);
    line-height: 1.85;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
}

.primary-cta,
.secondary-cta,
.admin-link-btn {
    min-height: 50px;
    padding: 0 23px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: 0.22s ease;
}

.primary-cta {
    border: 1px solid var(--red);
    background: var(--red);
    color: #fff;
    box-shadow: 0 14px 40px rgba(229, 9, 20, 0.22);
}

.primary-cta:hover {
    transform: translateY(-2px);
    background: #f20b17;
    box-shadow: 0 18px 46px rgba(229, 9, 20, 0.36);
}

.secondary-cta {
    border: 1px solid rgba(255, 255, 255, 0.19);
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
    backdrop-filter: blur(12px);
}

.secondary-cta:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.35);
}

.admin-link-btn {
    border: 0;
    background: transparent;
    color: #87878e;
    padding-left: 10px;
}

.admin-link-btn:hover {
    color: #fff;
}

.future-strip {
    margin-top: 45px;
    padding-top: 20px;
    max-width: 740px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.future-strip span {
    position: relative;
    color: #67676f;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.future-strip span::before {
    content: "";
    width: 4px;
    height: 4px;
    display: inline-block;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--red);
    vertical-align: 1px;
}

.access-card {
    position: relative;
    padding: clamp(28px, 3vw, 42px);
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: linear-gradient(145deg, rgba(21, 21, 25, 0.8), rgba(9, 9, 11, 0.72));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
    overflow: hidden;
}

.access-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -90px;
    top: -90px;
    border-radius: 50%;
    background: rgba(229, 9, 20, 0.16);
    filter: blur(25px);
}

.access-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #73737b;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.access-card-top i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 16px var(--red);
}

.access-card h2 {
    margin-top: 32px;
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(42px, 4vw, 64px);
    font-weight: 400;
    letter-spacing: 0.03em;
}

.access-card > p {
    margin: 8px 0 30px;
    color: #929299;
    font-size: 12px;
    line-height: 1.75;
}

.access-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #8a8a91;
    font-size: 10px;
}

.access-row strong {
    color: #d3d3d7;
    font-size: 8px;
    letter-spacing: 0.12em;
}

/* -------------------------------------------------------------
   LOGGED-IN APP
------------------------------------------------------------- */
.app-shell {
    min-height: calc(100vh - var(--header-h));
    background: linear-gradient(180deg, rgba(7, 7, 8, 0.54), rgba(7, 7, 8, 0.88) 58%, #070708 100%);
}

.content-wrapper {
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: 55px 4.5vw 80px;
}

.view {
    display: none;
    animation: viewIn 0.32s ease both;
}

.view.active {
    display: block;
}

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

.member-welcome {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 28px;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.section-kicker,
.category-heading-wrap > span {
    display: block;
    margin-bottom: 7px;
    color: var(--red);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.19em;
}

.member-welcome h1,
.active-cat-heading {
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    letter-spacing: 0.03em;
}

.member-welcome h1 {
    font-size: clamp(48px, 6vw, 82px);
    line-height: 0.95;
}

.member-welcome p {
    margin-top: 8px;
    color: #8d8d94;
    font-size: 12px;
}

.membership-mini-card {
    min-width: 210px;
    padding: 14px 16px;
    border-left: 2px solid var(--red);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
}

.membership-mini-card span,
.membership-mini-card small {
    display: block;
    color: #696970;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.membership-mini-card strong {
    display: block;
    margin: 4px 0 5px;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.05em;
}

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

.cat-card {
    position: relative;
    min-height: 205px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    overflow: hidden;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.085);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(20, 20, 24, 0.82)),
        rgba(14, 14, 17, 0.72);
    border-radius: 18px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}


.cat-card {
    isolation: isolate;
}

.cat-media {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: -2;
}

.cat-card.has-visual .cat-media {
    opacity: 0.92;
}

.cat-media > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.preview-box video {
    display: block;
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 12px;
    background: #050506;
}

.cat-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,8,12,0.12) 0%, rgba(8,8,12,0.38) 48%, rgba(7,7,10,0.92) 100%);
    z-index: -1;
}

.cat-card.has-visual:hover .cat-media {
    transform: scale(1.04);
}

.cat-card::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.25s ease;
}

.cat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 9, 20, 0.55);
    background: linear-gradient(145deg, rgba(229, 9, 20, 0.1), rgba(15, 15, 18, 0.9));
}

.cat-card:hover::before {
    width: 100%;
}

.cat-badge {
    position: absolute;
    top: 19px;
    left: 22px;
    color: rgba(255, 255, 255, 0.18);
    font-family: "Bebas Neue", sans-serif;
    font-size: 29px;
}

.cat-card h2 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 31px;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.cat-card p {
    margin-top: 2px;
    color: #76767e;
    font-size: 9px;
    line-height: 1.5;
}

.cat-arrow {
    position: absolute;
    right: 20px;
    bottom: 22px;
    color: #5f5f66;
    font-size: 17px;
    transition: 0.2s ease;
}

.cat-card:hover .cat-arrow,
.cat-card:hover h2 {
    color: var(--red-2);
}

/* Category detail */
.detail-top-bar {
    min-height: 86px;
    margin-bottom: 28px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

.category-heading-wrap {
    text-align: center;
}

.active-cat-heading {
    color: #fff;
    font-size: clamp(42px, 5vw, 66px);
    line-height: 0.9;
}

.back-btn,
.add-item-btn {
    min-height: 40px;
    width: max-content;
    padding: 0 15px;
    border-radius: 18px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.09em;
    cursor: pointer;
    transition: 0.2s ease;
}

.back-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.035);
    color: #98989f;
}

.back-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

.add-item-btn {
    justify-self: end;
    border: 1px solid var(--red);
    background: var(--red);
    color: #fff;
}

.add-item-btn:hover {
    background: #f20b17;
    box-shadow: 0 0 22px var(--red-glow);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.media-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.085);
    background: rgba(14, 14, 17, 0.9);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.media-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.24);
}

.media-thumb {
    aspect-ratio: 4 / 5;
    background: #0e0e10;
    overflow: hidden;
}

.media-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.media-card:hover .media-thumb img {
    transform: scale(1.025);
}

.media-info {
    padding: 14px;
}

.media-title {
    color: #f4f4f5;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 800;
}

.media-tag {
    margin-top: 7px;
    color: var(--red-2);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.media-desc {
    margin-top: 8px;
    color: #74747c;
    font-size: 9px;
    line-height: 1.55;
}

.admin-card-actions {
    position: absolute;
    z-index: 4;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 5px;
}

.btn-card-action {
    min-height: 28px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(4, 4, 5, 0.88);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.btn-card-action.edit:hover { background: #262a34; }
.btn-card-action.delete:hover { background: var(--red); border-color: var(--red); }

.premium-chip {
    position: absolute;
    z-index: 4;
    left: 8px;
    top: 8px;
    padding: 6px 8px;
    background: rgba(229, 9, 20, 0.92);
    color: #fff;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.vault-state {
    grid-column: 1 / -1;
    min-height: 220px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(10, 10, 12, 0.62);
    text-align: center;
}

.vault-state strong {
    font-family: "Bebas Neue", sans-serif;
    font-size: 25px;
    font-weight: 400;
    letter-spacing: 0.06em;
}

.vault-state span {
    max-width: 540px;
    color: #77777f;
    font-size: 10px;
    line-height: 1.6;
}

.loading-state strong { color: #d9d9dc; }
.error-state strong,
.error-state span { color: #ff5962; }

/* -------------------------------------------------------------
   MODALS
------------------------------------------------------------- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    padding: 22px;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    background: rgba(2, 2, 3, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.modal-card {
    position: relative;
    width: min(440px, 100%);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 2px solid var(--red);
    background: linear-gradient(155deg, #151518, #0d0d10 72%);
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.58);
    animation: modalIn 0.22s ease both;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(9px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-modal-card {
    width: min(460px, 100%);
}

.admin-auth-card {
    border-top-color: #ff1f2b;
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.62), 0 0 40px rgba(229, 9, 20, 0.08);
}

.upload-modal-card {
    width: min(560px, 100%);
    max-height: calc(100vh - 44px);
    overflow-y: auto;
}

.account-card {
    width: min(500px, 100%);
}

.close-modal {
    position: absolute;
    top: 14px;
    right: 17px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #6c6c74;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.close-modal:hover { color: #fff; }

.modal-kicker {
    color: #8b8b92;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.modal-kicker.danger { color: var(--red-2); }

.modal-title {
    margin-top: 7px;
    color: #fff;
    font-family: "Bebas Neue", sans-serif;
    font-size: 39px;
    font-weight: 400;
    letter-spacing: 0.03em;
}

.modal-sub {
    margin-top: 4px;
    margin-bottom: 22px;
    color: #7f7f87;
    font-size: 10px;
    line-height: 1.65;
}

.modal-sub code {
    color: #ff626a;
    font-family: monospace;
}

#target-cat-name {
    color: var(--red-2);
    font-weight: 800;
}

.auth-tabs {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line);
}

.auth-tab-btn {
    min-height: 42px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #696970;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.auth-tab-btn.active {
    color: #fff;
    border-bottom-color: var(--red);
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #85858c;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: #09090b;
    color: #fff;
    padding: 12px 13px;
    font-size: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 0;
    border-color: rgba(229, 9, 20, 0.7);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.06);
}

.form-group input[type="file"] {
    color: #85858c;
    font-size: 10px;
}

.form-group input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 7px 10px;
    border: 0;
    background: #242429;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    cursor: pointer;
}

.or-separator {
    display: block;
    margin: 9px 0;
    color: #55555d;
    text-align: center;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.btn-action {
    width: 100%;
    min-height: 46px;
    margin-top: 5px;
    border: 1px solid var(--red);
    border-radius: 18px;
    background: var(--red);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.11em;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-action:hover:not(:disabled) {
    background: #f20b17;
    box-shadow: 0 0 24px var(--red-glow);
}

.btn-action:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.admin-action {
    background: #d80712;
}

.text-action {
    width: 100%;
    margin-top: 13px;
    border: 0;
    background: transparent;
    color: #787880;
    text-align: center;
    font-size: 9px;
    cursor: pointer;
}

.text-action:hover { color: #fff; }

.form-note {
    margin-top: 14px;
    color: #65656d;
    font-size: 9px;
    line-height: 1.6;
}

.form-note strong { color: #a9a9af; }

.preview-box {
    margin: 4px 0 14px;
    height: 180px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #050506;
}

.preview-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Account */
.account-profile-row {
    margin: 24px 0 18px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
}

.account-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(229, 9, 20, 0.55);
    background: rgba(229, 9, 20, 0.1);
    color: var(--red-2);
    font-family: "Bebas Neue", sans-serif;
    font-size: 25px;
}

.account-profile-row strong,
.account-profile-row span {
    display: block;
}

.account-profile-row strong {
    font-size: 12px;
}

.account-profile-row span {
    margin-top: 5px;
    color: #77777f;
    font-size: 9px;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.account-stats > div {
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0b0b0d;
}

.account-stats span,
.account-stats strong {
    display: block;
}

.account-stats span {
    color: #5f5f67;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.account-stats strong {
    margin-top: 5px;
    color: #e8e8e9;
    font-size: 9px;
}

.premium-placeholder {
    margin-top: 18px;
    padding: 18px;
    border-left: 2px solid var(--red);
    background: rgba(229, 9, 20, 0.055);
}

.premium-placeholder span {
    color: var(--red-2);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.premium-placeholder h3 {
    margin-top: 5px;
    font-family: "Bebas Neue", sans-serif;
    font-size: 27px;
    font-weight: 400;
}

.premium-placeholder p {
    margin-top: 4px;
    color: #73737b;
    font-size: 9px;
    line-height: 1.65;
}

/* Toast */
.toast {
    position: fixed;
    z-index: 500;
    right: 22px;
    bottom: 22px;
    max-width: min(420px, calc(100vw - 44px));
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: #151518;
    color: #fff;
    font-size: 10px;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.4);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid #ff3540; }
.toast.info { border-left: 3px solid #7c7cff; }

/* -------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------- */
@media (max-width: 1180px) {
    .landing-view {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 48px;
    }

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

    .media-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    :root { --header-h: 76px; }

    .main-header {
        padding: 0 20px;
    }

    .landing-view {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 70px 24px 60px;
    }

    .landing-content h1 {
        font-size: clamp(65px, 15vw, 105px);
    }

    .access-card {
        width: min(560px, 100%);
    }

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

@media (max-width: 680px) {
    .main-header {
        min-height: auto;
        padding: 13px 14px;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .logo span { font-size: 29px; }
    .logo small { font-size: 7px; }

    .header-right {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .auth-btn,
    .member-badge {
        min-height: 34px;
    }

    .member-badge {
        order: -1;
        width: 100%;
        justify-content: center;
    }

    .landing-view {
        padding: 54px 17px 42px;
    }

    .eyebrow {
        font-size: 8px;
        letter-spacing: 0.18em;
    }

    .eyebrow span { width: 20px; }

    .landing-content h1 {
        font-size: clamp(58px, 19vw, 88px);
        line-height: 0.86;
    }

    .landing-copy {
        margin-top: 20px;
        font-size: 13px;
        line-height: 1.7;
    }

    .landing-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-cta,
    .secondary-cta,
    .admin-link-btn {
        width: 100%;
    }

    .admin-link-btn {
        text-align: center;
    }

    .future-strip {
        margin-top: 34px;
    }

    .access-card {
        padding: 25px 20px;
    }

    .content-wrapper {
        padding: 38px 14px 60px;
    }

    .member-welcome {
        align-items: flex-start;
        flex-direction: column;
    }

    .membership-mini-card {
        width: 100%;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cat-card {
        min-height: 150px;
    }

    .detail-top-bar {
        grid-template-columns: 1fr;
        padding-bottom: 18px;
        text-align: left;
    }

    .category-heading-wrap {
        order: -1;
        text-align: left;
    }

    .back-btn,
    .add-item-btn {
        width: 100%;
        justify-self: stretch;
    }

    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .media-info {
        padding: 11px;
    }

    .modal-overlay {
        padding: 12px;
        align-items: flex-start;
    }

    .modal-card {
        margin: auto 0;
        padding: 27px 18px 22px;
    }

    .account-stats {
        grid-template-columns: 1fr;
    }

    .toast {
        right: 12px;
        bottom: 12px;
        max-width: calc(100vw - 24px);
    }
}

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

    .media-thumb {
        aspect-ratio: 4 / 4.6;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =============================================================
   PUBLIC ARCHIVE UPDATE — Upcoming Show + optional Member Login
============================================================= */
:root {
    --show-banner-h: 42px;
}

/* Top Upcoming Show ticker: seamless LEFT -> RIGHT loop */
.show-banner {
    position: sticky;
    top: 0;
    z-index: 80;
    height: var(--show-banner-h);
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(90deg, #b9060f, #e50914 38%, #a8050d);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.show-ticker {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.show-ticker-track {
    width: max-content;
    height: 100%;
    display: flex;
    align-items: center;
    will-change: transform;
    animation: showTickerRight 24s linear infinite;
}

.show-ticker-segment {
    min-width: 100vw;
    height: 100%;
    padding: 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.90);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.show-ticker-segment strong,
.show-ticker-segment b {
    color: #fff;
    font-weight: 900;
}

.show-ticker-segment b {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.12em;
}

.show-ticker-segment a {
    color: #fff;
    text-decoration: none;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 18px;
}

.show-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 8px;
    letter-spacing: 0.17em;
}

.show-divider {
    opacity: 0.48;
}

.show-live-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px rgba(255,255,255,.9);
    animation: showDotPulse 1.2s ease-in-out infinite;
}

@keyframes showTickerRight {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@keyframes showDotPulse {
    50% { opacity: .42; transform: scale(.72); }
}

.main-header {
    top: var(--show-banner-h);
}

body.show-banner-hidden .main-header {
    top: 0;
}

/* The home hero is public, not an authentication gate. */
.landing-view {
    min-height: calc(100vh - var(--header-h) - var(--show-banner-h));
}

body.show-banner-hidden .landing-view {
    min-height: calc(100vh - var(--header-h));
}

.app-shell {
    display: block;
}

.premium-btn {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.premium-btn:hover {
    border-color: var(--red);
    background: var(--red);
}

/* Premium media stays visually gated until Member eligibility exists. */
.premium-locked-card .media-thumb img {
    filter: blur(12px) brightness(.34) saturate(.55);
    transform: scale(1.08);
}

.premium-locked-card:hover .media-thumb img {
    transform: scale(1.1);
}

.premium-gate {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 18px;
    text-align: center;
    background: linear-gradient(180deg, rgba(5,5,6,.18), rgba(5,5,6,.76));
}

.premium-lock-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(229, 9, 20, .62);
    transform: rotate(45deg);
    color: var(--red-2);
    font-size: 10px;
    background: rgba(229, 9, 20, .10);
}

.premium-gate strong {
    margin-top: 5px;
    font-size: 9px;
    letter-spacing: .12em;
}

.premium-gate button {
    min-height: 31px;
    padding: 0 11px;
    border: 1px solid var(--red);
    border-radius: 18px;
    background: var(--red);
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .09em;
    cursor: pointer;
}

.toggle-row {
    margin: 10px 0 17px;
    min-height: 44px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.10);
    background: #09090b;
    color: #a0a0a7;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    cursor: pointer;
}

.toggle-row input {
    accent-color: var(--red);
}

.premium-toggle {
    border-color: rgba(229, 9, 20, .28);
    background: rgba(229, 9, 20, .04);
}

@media (max-width: 900px) {
    :root { --show-banner-h: 40px; }

    .show-ticker-segment {
        min-width: max(100vw, 780px);
        justify-content: flex-start;
        padding: 0 24px;
        gap: 12px;
    }
}

@media (max-width: 680px) {
    :root { --show-banner-h: 38px; }

    .show-ticker-track {
        animation-duration: 20s;
    }

    .show-ticker-segment {
        min-width: 760px;
        padding: 0 18px;
        gap: 10px;
        font-size: 8px;
    }

    .show-label { font-size: 7px; }

    .main-header {
        top: var(--show-banner-h);
    }

    .header-right {
        gap: 7px;
    }

    .auth-btn {
        padding: 0 10px;
        font-size: 8px;
    }

    .landing-view {
        min-height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .show-ticker-track { animation-duration: 80s; }
    .show-live-dot { animation: none; }
}

/* =============================================================
   SHOW BANNER V2 — premium concert marquee
   Requested cleanup: no Open Access card, no Get Premium CTA,
   no Public Visitor access card on the archive heading.
============================================================= */
:root {
    --show-banner-h: 86px;
}

/* Hero becomes a clean one-column composition after removing the access card. */
.landing-view {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.landing-content {
    max-width: 980px;
}

.member-welcome {
    display: block;
}

/* Premium concert marquee */
.show-banner {
    height: var(--show-banner-h);
    isolation: isolate;
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.16);
    background:
        linear-gradient(100deg, rgba(8,8,10,.98) 0%, rgba(21,6,8,.98) 34%, rgba(112,4,11,.96) 66%, rgba(12,10,12,.98) 100%);
    box-shadow: 0 14px 44px rgba(0,0,0,.42), inset 0 -1px 0 rgba(229,9,20,.28);
}

.show-banner::before,
.show-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.show-banner::before {
    z-index: -1;
    opacity: .34;
    background-image:
        linear-gradient(115deg, transparent 0 38%, rgba(255,255,255,.055) 38.5% 39%, transparent 39.5% 100%),
        repeating-linear-gradient(90deg, transparent 0 92px, rgba(255,255,255,.025) 93px, transparent 94px);
}

.show-banner::after {
    z-index: 3;
    box-shadow: inset 0 0 36px rgba(0,0,0,.42);
}

.show-banner-glow {
    position: absolute;
    z-index: -1;
    width: 300px;
    height: 140px;
    top: -44px;
    left: 54%;
    border-radius: 50%;
    background: rgba(229,9,20,.30);
    filter: blur(42px);
    pointer-events: none;
}

.show-ticker-track {
    animation-duration: 30s;
}

.show-ticker-segment {
    min-width: max(100vw, 1120px);
    padding: 0 46px;
    justify-content: center;
    gap: 24px;
    font-size: 10px;
    letter-spacing: .08em;
}

.show-event-badge {
    min-width: 174px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.show-event-badge > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.show-event-badge small,
.show-countdown-box small {
    display: block;
    color: rgba(255,255,255,.48);
    font-size: 7px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .20em;
}

.show-event-badge b {
    color: #fff;
    font-family: "Bebas Neue", sans-serif;
    font-size: 23px;
    font-weight: 400;
    line-height: .95;
    letter-spacing: .08em;
}

.show-live-dot {
    width: 11px;
    height: 11px;
    flex-basis: 11px;
    background: #ff1b27;
    border: 2px solid rgba(255,255,255,.86);
    box-shadow: 0 0 0 5px rgba(229,9,20,.13), 0 0 22px rgba(255,20,31,.92);
}

.show-rule {
    width: 1px;
    height: 44px;
    flex: 0 0 1px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,.28), transparent);
}

.show-event-copy {
    min-width: 330px;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.show-event-copy > strong {
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    font-family: "Bebas Neue", sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .055em;
    text-shadow: 0 5px 26px rgba(0,0,0,.34);
}

.show-venue {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.62);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .15em;
}

.show-venue i {
    color: #ff2934;
    font-size: 7px;
    font-style: normal;
}

.show-countdown-box {
    min-width: 240px;
    min-height: 56px;
    padding: 10px 17px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(255,255,255,.15);
    border-left-color: rgba(255,48,58,.82);
    background: linear-gradient(135deg, rgba(255,255,255,.065), rgba(255,255,255,.018));
    box-shadow: inset 0 0 22px rgba(255,255,255,.018), 0 8px 25px rgba(0,0,0,.18);
    backdrop-filter: blur(12px);
}

.show-countdown-box b {
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .13em;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 18px rgba(229,9,20,.32);
}

.show-ticket-link,
.show-ticker-segment a.show-ticket-link {
    min-height: 43px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    color: #09090b;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .14em;
    box-shadow: 0 10px 26px rgba(0,0,0,.23);
    transition: transform .2s ease, background .2s ease;
}

.show-ticket-link:hover {
    transform: translateY(-1px);
    background: #fff;
}

.show-ticket-link span {
    color: #d00812;
    font-size: 13px;
}

@media (max-width: 900px) {
    :root { --show-banner-h: 74px; }

    .show-ticker-segment {
        min-width: 1040px;
        padding: 0 28px;
        gap: 19px;
    }

    .show-event-badge { min-width: 154px; }
    .show-event-badge b { font-size: 20px; }
    .show-rule { height: 38px; }
    .show-event-copy { min-width: 285px; }
    .show-event-copy > strong { font-size: 25px; }
    .show-countdown-box { min-width: 222px; min-height: 50px; }
}

@media (max-width: 680px) {
    :root { --show-banner-h: 68px; }

    .show-ticker-track { animation-duration: 24s; }

    .show-ticker-segment {
        min-width: 960px;
        padding: 0 20px;
        gap: 16px;
    }

    .show-event-badge { min-width: 143px; gap: 10px; }
    .show-event-badge b { font-size: 19px; }
    .show-live-dot { width: 9px; height: 9px; flex-basis: 9px; }
    .show-event-copy { min-width: 260px; gap: 5px; }
    .show-event-copy > strong { font-size: 23px; }
    .show-countdown-box { min-width: 210px; min-height: 48px; padding: 8px 14px; }
    .show-countdown-box b { font-size: 12px; }
    .show-ticket-link,
    .show-ticker-segment a.show-ticket-link { min-height: 38px; }
}

/* =============================================================
   MEMBER GOOGLE AUTH + POSTER MARKETPLACE (FOSSILS.04)
   ============================================================= */
.google-auth-btn {
    width: 100%;
    min-height: 54px;
    border: 1px solid rgba(255,255,255,.16);
    background: #fff;
    color: #121212;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
    margin: 18px 0 12px;
}
.google-auth-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.google-auth-btn:disabled { opacity: .65; cursor: wait; transform: none; }
.google-g {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    border: 1px solid #dadce0;
    color: #4285f4;
    background: #fff;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 18px;
    color: rgba(255,255,255,.36);
    font-size: .61rem;
    font-weight: 800;
    letter-spacing: .18em;
}
.auth-divider::before,
.auth-divider::after { content: ''; height: 1px; background: rgba(255,255,255,.09); flex: 1; }

.poster-access-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 2px 0 30px;
}
.poster-access-tabs[hidden] { display: none !important; }
.poster-tab-btn {
    position: relative;
    min-height: 88px;
    padding: 18px 22px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(12,12,14,.76);
    color: #fff;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.poster-tab-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: transparent;
}
.poster-tab-btn span { display: block; font-size: .92rem; font-weight: 900; letter-spacing: .09em; }
.poster-tab-btn small { display: block; margin-top: 7px; color: rgba(255,255,255,.46); font-size: .68rem; line-height: 1.5; }
.poster-tab-btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.2); }
.poster-tab-btn.active { border-color: rgba(229,9,20,.55); background: linear-gradient(120deg, rgba(229,9,20,.12), rgba(12,12,14,.86)); }
.poster-tab-btn.active::before { background: #e50914; }

.poster-card { position: relative; }
.poster-premium-card { border-color: rgba(229,9,20,.18); }
.poster-access-chip,
.poster-price-chip,
.watermarked-preview-badge {
    position: absolute;
    z-index: 5;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    letter-spacing: .08em;
    backdrop-filter: blur(8px);
}
.poster-access-chip {
    top: 12px;
    left: 12px;
    padding: 8px 10px;
    font-size: .56rem;
    border: 1px solid rgba(255,255,255,.12);
}
.poster-access-chip.free { background: rgba(10,10,12,.82); color: #fff; }
.poster-access-chip.premium { background: rgba(229,9,20,.88); color: #fff; }
.poster-price-chip {
    top: 12px;
    right: 12px;
    padding: 8px 10px;
    font-size: .68rem;
    background: rgba(6,6,8,.86);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
}
.poster-thumb { cursor: default; }
.poster-premium-card .poster-thumb { cursor: zoom-in; }
.watermarked-preview-badge {
    bottom: 12px;
    left: 12px;
    padding: 7px 9px;
    font-size: .52rem;
    background: rgba(5,5,7,.84);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.82);
}
.poster-card-actions { display: grid; gap: 9px; margin-top: 16px; }
.poster-primary-btn,
.poster-secondary-btn {
    width: 100%;
    min-height: 45px;
    border-radius: 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .08em;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.poster-primary-btn { border: 1px solid #e50914; background: #e50914; color: #fff; }
.poster-primary-btn:hover { transform: translateY(-1px); background: #ff1722; }
.poster-primary-btn.free-download { border-color: rgba(255,255,255,.2); background: #fff; color: #0b0b0d; }
.poster-primary-btn.unlocked { background: #fff; border-color: #fff; color: #0b0b0d; }
.poster-secondary-btn { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #fff; }
.poster-secondary-btn:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.07); }

.poster-sale-fields {
    border: 1px solid rgba(229,9,20,.20);
    background: linear-gradient(135deg, rgba(229,9,20,.07), rgba(255,255,255,.02));
    padding: 16px;
    margin: 12px 0;
}
.poster-sale-fields[hidden] { display: none !important; }
.poster-sale-fields select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255,255,255,.12);
    background: #0e0e11;
    color: #fff;
    padding: 0 13px;
    font: 700 .78rem 'Montserrat', sans-serif;
    outline: none;
}
.poster-sale-fields select:focus { border-color: rgba(229,9,20,.65); }
.field-help { display: block; margin-top: 7px; color: rgba(255,255,255,.42); font-size: .64rem; line-height: 1.5; }
.poster-watermark-note {
    padding: 13px 14px;
    border-left: 2px solid #e50914;
    background: rgba(0,0,0,.22);
    color: rgba(255,255,255,.62);
    font-size: .68rem;
    line-height: 1.6;
}
.poster-watermark-note strong { display: block; color: #fff; font-size: .62rem; letter-spacing: .12em; margin-bottom: 5px; }
.poster-watermark-note b { color: #fff; }

.poster-preview-overlay { padding: 24px; align-items: center; }
.poster-preview-card {
    width: min(1180px, 96vw);
    max-height: 94vh;
    background: rgba(6,6,8,.97);
    border: 1px solid rgba(255,255,255,.11);
    box-shadow: 0 30px 100px rgba(0,0,0,.72);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.poster-preview-close { top: 15px; right: 15px; z-index: 8; }
.poster-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 64px 18px 26px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.poster-preview-head h2 { margin: 5px 0 5px; font-family: 'Bebas Neue', sans-serif; font-size: clamp(1.9rem, 4vw, 3.3rem); letter-spacing: .035em; }
.poster-preview-head p { margin: 0; color: rgba(255,255,255,.48); font-size: .72rem; }
.poster-preview-price { font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 900; color: #fff; white-space: nowrap; }
.poster-preview-stage {
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: #050505;
    display: grid;
    place-items: center;
    padding: 20px;
}
.poster-preview-stage img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    box-shadow: 0 18px 55px rgba(0,0,0,.45);
}
.poster-preview-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    border-top: 1px solid rgba(255,255,255,.08);
    background: rgba(10,10,12,.97);
}
.secure-original-note { color: rgba(255,255,255,.47); font-size: .66rem; line-height: 1.45; }
.poster-preview-actions .btn-action { width: auto; min-width: 250px; margin: 0; }

@media (max-width: 760px) {
    .poster-access-tabs { grid-template-columns: 1fr; }
    .poster-tab-btn { min-height: 75px; }
    .poster-preview-overlay { padding: 8px; }
    .poster-preview-card { width: 100%; max-height: 96vh; }
    .poster-preview-head { padding: 21px 50px 15px 17px; gap: 12px; }
    .poster-preview-head p { font-size: .62rem; }
    .poster-preview-stage { padding: 10px; }
    .poster-preview-actions { flex-direction: column; align-items: stretch; padding: 14px; }
    .poster-preview-actions .btn-action { width: 100%; min-width: 0; }
    .secure-original-note { text-align: center; }
}

.poster-preview-stage img { cursor: zoom-in; }
.poster-preview-stage img.zoomed { max-width: none; cursor: zoom-out; }


/* =============================================================
   FOSSILS.06 — CLEAN HOME + FRIENDLIER POSTERS + DOWNLOAD ADS
   ============================================================= */
/* Keep the homepage cinematic and concise. */
.landing-view {
    min-height: min(82vh, 820px);
    padding-top: clamp(52px, 8vh, 92px);
    padding-bottom: clamp(42px, 7vh, 72px);
}
.landing-content { max-width: 760px; }
.landing-content h1 { font-size: clamp(66px, 9vw, 132px); }
.landing-copy {
    max-width: 520px;
    margin-top: 22px;
    font-size: clamp(13px, 1vw, 16px);
    line-height: 1.65;
    color: rgba(255,255,255,.66);
}
.landing-actions { margin-top: 27px; }
.member-welcome {
    padding: 0 0 22px;
    min-height: 0;
    background: transparent;
    border: 0;
}
.member-welcome p { max-width: 520px; }

/* Poster tabs work as a clear segmented switch. */
.poster-access-tabs {
    max-width: 760px;
    margin: 0 auto 28px;
    padding: 5px;
    gap: 5px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: rgba(7,7,9,.72);
    backdrop-filter: blur(15px);
}
.poster-tab-btn {
    min-height: 72px;
    padding: 14px 18px;
    border: 0;
    border-radius: 10px;
    background: transparent;
}
.poster-tab-btn::before { display: none; }
.poster-tab-btn.active {
    border: 0;
    background: linear-gradient(135deg, rgba(229,9,20,.95), rgba(139,5,12,.86));
    box-shadow: 0 10px 28px rgba(229,9,20,.18);
}
.poster-tab-btn.active small { color: rgba(255,255,255,.78); }
.poster-tab-btn span { font-size: .86rem; }
.poster-tab-btn small { margin-top: 4px; }

.poster-card {
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(18,18,21,.86), rgba(8,8,10,.94));
    border-color: rgba(255,255,255,.09);
    box-shadow: 0 18px 50px rgba(0,0,0,.2);
}
.poster-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.18);
}
.poster-thumb {
    aspect-ratio: 4 / 5;
    background: #070709;
    overflow: hidden;
}
.poster-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.poster-card:hover .poster-thumb img { transform: scale(1.02); }
.poster-premium-card .poster-thumb:hover::after {
    content: "PREVIEW";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .18em;
    background: rgba(0,0,0,.38);
    backdrop-filter: blur(2px);
}
.watermarked-preview-badge { display: none !important; }
.poster-access-chip,
.poster-price-chip {
    border-radius: 999px;
    padding: 7px 10px;
}
.poster-card-actions {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 13px;
}
.poster-primary-btn,
.poster-secondary-btn { border-radius: 8px; min-height: 47px; }
.poster-premium-card .poster-card-actions { grid-template-columns: minmax(0,.8fr) minmax(0,1.4fr); }

/* Free Poster / Wallpaper download panel. */
.free-download-overlay { padding: 20px; align-items: center; }
.free-download-card {
    width: min(920px, 96vw);
    max-height: 92vh;
    display: grid;
    grid-template-columns: minmax(260px,.88fr) minmax(320px,1.12fr);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 16px;
    background: rgba(8,8,10,.98);
    box-shadow: 0 30px 100px rgba(0,0,0,.7);
}
.free-download-preview {
    min-height: 520px;
    padding: 18px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 35%, rgba(229,9,20,.12), transparent 50%), #050506;
    overflow: hidden;
}
.free-download-preview img {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    box-shadow: 0 18px 55px rgba(0,0,0,.46);
}
.free-download-content {
    padding: clamp(28px, 4vw, 46px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.free-download-content h2 {
    margin: 8px 0 8px;
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    line-height: .95;
}
.free-download-content > p { color: rgba(255,255,255,.54); line-height: 1.55; }
.confirm-free-download { width: 100%; min-height: 52px; }

@media (max-width: 780px) {
    .landing-view { min-height: 68vh; padding-top: 42px; }
    .poster-access-tabs { grid-template-columns: 1fr 1fr; }
    .poster-tab-btn { min-height: 66px; padding: 12px 10px; text-align: center; }
    .poster-tab-btn span { font-size: .72rem; }
    .poster-tab-btn small { font-size: .56rem; }
    .poster-premium-card .poster-card-actions { grid-template-columns: 1fr; }
    .free-download-overlay { padding: 8px; }
    .free-download-card { grid-template-columns: 1fr; overflow-y: auto; }
    .free-download-preview { min-height: 0; max-height: 44vh; padding: 12px; }
    .free-download-preview img { max-height: 40vh; }
    .free-download-content { padding: 22px 17px 18px; }
}
.poster-thumb { position: relative; }

/* =============================================================
   EVENT-BASED GALLERY
   ============================================================= */

.gallery-events-view,
.gallery-event-view {
    width: 100%;
}
.gallery-events-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 8px 0 24px;
    padding: 0 2px;
}
.gallery-events-intro h2 {
    margin: 4px 0 5px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(34px, 4.5vw, 58px);
    line-height: .95;
    letter-spacing: .02em;
}
.gallery-events-intro p {
    margin: 0;
    color: rgba(255,255,255,.58);
    font-size: 13px;
}
.gallery-event-total {
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    color: rgba(255,255,255,.72);
    background: rgba(255,255,255,.04);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
}
.gallery-events-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.gallery-event-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 22px;
    background: rgba(12,12,14,.82);
    box-shadow: 0 22px 55px rgba(0,0,0,.24);
    cursor: pointer;
    outline: none;
    transition: transform .28s ease, border-color .28s ease, background .28s ease;
}
.gallery-event-card:hover,
.gallery-event-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(229,9,20,.54);
    background: rgba(17,17,20,.94);
}
.gallery-event-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #070708;
}
.gallery-event-cover::after {
    content: '';
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,.78));
    pointer-events: none;
}
.gallery-event-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    transition: transform .45s ease, filter .35s ease;
}
.gallery-event-card:hover .gallery-event-cover img { transform: scale(1.025); }
.gallery-photo-count {
    position: absolute;
    left: 14px;
    bottom: 13px;
    z-index: 2;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(5,5,7,.7);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
}
.gallery-event-card-body { padding: 17px 18px 19px; }
.gallery-event-date {
    display: block;
    margin-bottom: 7px;
    color: #e50914;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
}
.gallery-event-card-body h3 {
    margin: 0 0 7px;
    color: #fff;
    font-size: clamp(17px, 2vw, 23px);
    line-height: 1.15;
}
.gallery-event-card-body p {
    margin: 0;
    color: rgba(255,255,255,.54);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gallery-event-admin-actions {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 4;
    display: flex;
    gap: 7px;
}
.gallery-event-admin-actions button {
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 9px;
    padding: 7px 10px;
    background: rgba(7,7,9,.78);
    color: #fff;
    font: inherit;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    cursor: pointer;
    backdrop-filter: blur(10px);
}
.gallery-event-admin-actions button.danger { border-color: rgba(229,9,20,.48); color: #ff7379; }

.gallery-event-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px 26px;
    align-items: end;
    padding: 8px 0 26px;
    border-bottom: 1px solid rgba(255,255,255,.09);
    margin-bottom: 24px;
}
.gallery-event-head-controls {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.gallery-event-head-controls button,
.gallery-events-back {
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 10px;
    padding: 9px 12px;
    background: rgba(255,255,255,.045);
    color: #fff;
    font: inherit;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .11em;
    cursor: pointer;
}
.gallery-event-head-controls button:hover { border-color: rgba(229,9,20,.5); background: rgba(229,9,20,.1); }
.gallery-event-info span {
    color: #e50914;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}
.gallery-event-info h2 {
    margin: 7px 0 8px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(38px, 6vw, 70px);
    line-height: .92;
    letter-spacing: .015em;
}
.gallery-event-info p {
    max-width: 760px;
    margin: 0;
    color: rgba(255,255,255,.62);
    font-size: 13px;
    line-height: 1.7;
}
.gallery-event-head-count {
    min-width: 92px;
    text-align: right;
}
.gallery-event-head-count strong {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 46px;
    line-height: .9;
}
.gallery-event-head-count span {
    color: rgba(255,255,255,.5);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .15em;
}

.gallery-photo-grid {
    columns: 4 220px;
    column-gap: 12px;
}
.gallery-photo-tile {
    position: relative;
    margin: 0 0 12px;
    break-inside: avoid;
    overflow: hidden;
    border-radius: 13px;
    border: 1px solid rgba(255,255,255,.08);
    background: #0a0a0c;
}
.gallery-photo-open {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}
.gallery-photo-open img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    transition: transform .3s ease, filter .3s ease;
}
.gallery-photo-tile:hover .gallery-photo-open img { transform: scale(1.015); filter: brightness(1.045); }
.gallery-photo-tile figcaption {
    padding: 9px 10px 10px;
    color: rgba(255,255,255,.62);
    font-size: 11px;
    line-height: 1.45;
}
.gallery-photo-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 31px;
    height: 31px;
    border: 1px solid rgba(255,75,84,.55);
    border-radius: 50%;
    background: rgba(7,7,9,.8);
    color: #ff7076;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.gallery-event-admin-card { max-width: 720px; }
.gallery-event-form-grid {
    display: grid;
    grid-template-columns: 1fr 190px;
    gap: 12px;
}
.gallery-photo-upload-box {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 12px 18px;
    align-items: center;
    margin: 14px 0;
    padding: 16px;
    border: 1px dashed rgba(255,255,255,.18);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
}
.gallery-photo-upload-box strong { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .12em; }
.gallery-photo-upload-box span { color: rgba(255,255,255,.55); font-size: 11px; line-height: 1.5; }
.gallery-file-picker {
    padding: 10px 13px;
    border: 1px solid rgba(229,9,20,.52);
    border-radius: 10px;
    color: #fff;
    background: rgba(229,9,20,.11);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .11em;
    cursor: pointer;
    white-space: nowrap;
}
.gallery-file-summary {
    grid-column: 1 / -1;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.07);
    color: rgba(255,255,255,.72);
    font-size: 11px;
}
.gallery-upload-progress { margin: 12px 0 16px; }
.gallery-progress-track {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
}
.gallery-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #e50914;
    transition: width .2s ease;
}
.gallery-upload-progress small { display: block; margin-top: 7px; color: rgba(255,255,255,.55); font-size: 10px; }

.gallery-lightbox[hidden] { display: none !important; }
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    grid-template-rows: auto minmax(0,1fr) auto;
    background: rgba(3,3,5,.97);
    backdrop-filter: blur(16px);
}
body.gallery-viewer-open { overflow: hidden; }
.gallery-lightbox-top {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    border-bottom: 1px solid rgba(255,255,255,.09);
    background: rgba(8,8,10,.84);
}
.gallery-lightbox-top small { display: block; color: #e50914; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.gallery-lightbox-top strong { display: block; max-width: 60vw; margin-top: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.gallery-zoom-controls { display: flex; align-items: center; gap: 5px; }
.gallery-zoom-controls button,
.gallery-lightbox-close {
    min-width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: rgba(255,255,255,.045);
    color: #fff;
    font: inherit;
    cursor: pointer;
}
#gallery-zoom-label { min-width: 56px; font-size: 9px; font-weight: 900; }
.gallery-lightbox-close { font-size: 23px; }
.gallery-lightbox-stage {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 64px;
    overscroll-behavior: contain;
}
.gallery-lightbox-stage img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}
.gallery-lightbox-stage img.is-zoomed { cursor: zoom-out; height: auto; }
.gallery-lightbox-nav {
    position: fixed;
    top: 50%;
    z-index: 6;
    width: 44px;
    height: 64px;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 12px;
    background: rgba(8,8,10,.65);
    color: #fff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
}
.gallery-lightbox-nav.prev { left: 12px; }
.gallery-lightbox-nav.next { right: 12px; }
.gallery-lightbox-caption {
    min-height: 42px;
    padding: 11px 72px 14px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.65);
    text-align: center;
    font-size: 11px;
    line-height: 1.45;
}

@media (max-width: 800px) {
    .gallery-events-grid { grid-template-columns: 1fr; gap: 16px; }
    .gallery-events-intro { align-items: flex-start; }
    .gallery-event-head { grid-template-columns: minmax(0,1fr) auto; }
    .gallery-photo-grid { columns: 3 150px; column-gap: 8px; }
    .gallery-photo-tile { margin-bottom: 8px; border-radius: 10px; }
    .gallery-event-form-grid { grid-template-columns: 1fr; }
    .gallery-photo-upload-box { grid-template-columns: 1fr; }
    .gallery-file-summary { grid-column: 1; }
    .gallery-file-picker { justify-self: start; }
    .gallery-lightbox-stage { padding: 10px 46px; }
    .gallery-lightbox-nav { width: 36px; height: 54px; }
    .gallery-lightbox-nav.prev { left: 5px; }
    .gallery-lightbox-nav.next { right: 5px; }
    .gallery-lightbox-caption { padding-left: 48px; padding-right: 48px; }
}

@media (max-width: 520px) {
    .gallery-events-intro { gap: 12px; }
    .gallery-event-total { display: none; }
    .gallery-event-card { border-radius: 16px; }
    .gallery-event-card-body { padding: 14px 14px 16px; }
    .gallery-event-head { display: block; }
    .gallery-event-head-controls { margin-bottom: 16px; }
    .gallery-event-head-count { display: flex; align-items: baseline; gap: 7px; margin-top: 14px; text-align: left; }
    .gallery-event-head-count strong { font-size: 34px; }
    .gallery-photo-grid { columns: 2 120px; }
    .gallery-lightbox-top { grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 10px; }
    .gallery-zoom-controls { grid-row: 2; grid-column: 1 / -1; justify-content: center; }
    .gallery-lightbox-top strong { max-width: 68vw; }
    .gallery-lightbox-stage { padding: 8px 38px; }
    .gallery-lightbox-caption { padding: 10px 40px 12px; }
}


/* Section visuals / albums */
.soft-mini-btn {
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
    color: #f3f3f4;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
}
.album-track-builder {
    margin-top: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 14px;
    background: rgba(255,255,255,0.03);
}
.album-track-builder-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.album-track-rows {
    display: grid;
    gap: 10px;
}
.album-track-row {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr 90px auto;
    gap: 10px;
}
.album-track-row .remove-track-btn {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(229,9,20,0.12);
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
}
.album-list {
    display: grid;
    gap: 18px;
}
.album-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(8,8,12,0.88));
}
.album-cover {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    object-fit: cover;
    background: rgba(255,255,255,0.04);
}
.album-cover.fallback {
    display:flex;align-items:center;justify-content:center;font-family:"Bebas Neue",sans-serif;font-size:42px;color:#fff;
}
.album-meta-head { display:flex; align-items:flex-start; justify-content:space-between; gap: 14px; }
.album-meta-head h3 { font-family:"Bebas Neue",sans-serif; font-size:42px; letter-spacing:0.04em; }
.album-song-count { color:#c4c4ca; font-size:12px; letter-spacing:0.18em; }
.album-note { color:#9f9fa6; margin-top:6px; }
.album-tracks { margin-top: 14px; display:grid; gap: 10px; }
.album-track-item {
    display:grid;
    grid-template-columns: 54px 1fr auto;
    gap: 12px;
    align-items:center;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.035);
    border:1px solid rgba(255,255,255,0.06);
}
.album-track-thumb {
    width: 54px; height:54px; border-radius:12px; object-fit:cover; background: rgba(255,255,255,0.04);
}
.album-track-thumb.fallback { display:flex;align-items:center;justify-content:center;font-family:"Bebas Neue",sans-serif;font-size:22px;color:#fff; }
.album-track-title { font-weight: 700; }
.album-track-link {
    border: 1px solid rgba(229,9,20,0.35);
    color: #fff;
    text-decoration:none;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.12em;
}
.section-visual-status { color:#9f9fa6; font-size:12px; margin-top:8px; }
@media (max-width: 920px) {
    .album-card { grid-template-columns: 1fr; }
    .album-cover { width: 100%; height: 220px; }
    .album-track-row { grid-template-columns: 1fr; }
    .album-track-item { grid-template-columns: 48px 1fr; }
    .album-track-link { grid-column: 1 / -1; text-align:center; }
}

/* =============================================================
   FOSSILS.09 — Lyrics reader
   ============================================================= */

/* Lyrics index */
.lyrics-index-view {
    width: min(100%, 980px);
    margin: 0 auto;
}
.lyrics-index-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.lyrics-index-head h2 {
    margin-top: 4px;
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 400;
    letter-spacing: .04em;
}
.lyrics-index-count {
    color: #8c8c94;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    white-space: nowrap;
}
.lyrics-song-list {
    display: grid;
    gap: 10px;
}
.lyrics-song-row {
    position: relative;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.075);
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(12,12,15,0.75));
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.lyrics-song-row:hover {
    transform: translateY(-2px);
    border-color: rgba(229,9,20,.4);
    background: linear-gradient(140deg, rgba(229,9,20,.07), rgba(12,12,15,.88));
}
.lyrics-song-open {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.lyrics-song-number {
    width: 34px;
    color: rgba(255,255,255,.24);
    font-family: "Bebas Neue", sans-serif;
    font-size: 25px;
}
.lyrics-song-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f7f7f8;
    font-size: 15px;
    font-weight: 750;
    letter-spacing: .02em;
}
.lyrics-song-chevron {
    color: #68686f;
    font-size: 18px;
}
.lyrics-admin-row-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.lyrics-admin-row-actions button {
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(255,255,255,.035);
    color: #d7d7db;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .1em;
    cursor: pointer;
}
.lyrics-admin-row-actions button:last-child { color: #ff676f; }

/* Lyrics reader */
.lyrics-reader {
    width: min(100%, 900px);
    margin: 0 auto;
}
.lyrics-reader-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.lyrics-back-btn,
.lyrics-copy-btn {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    padding: 10px 15px;
    background: rgba(255,255,255,.035);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    cursor: pointer;
}
.lyrics-copy-btn {
    border-color: rgba(229,9,20,.4);
    background: rgba(229,9,20,.09);
}
.lyrics-reader-header {
    margin-bottom: 18px;
    padding: 22px 22px 18px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    background: rgba(10,10,13,.72);
}
.lyrics-reader-header h2 {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(42px, 6vw, 68px);
    font-weight: 400;
    letter-spacing: .035em;
    line-height: .96;
}
.lyrics-reader-meta {
    margin-top: 8px;
    color: #8d8d95;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.lyrics-text-card {
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(14,14,18,.88), rgba(8,8,11,.93));
}
.lyrics-text {
    margin: 0;
    color: #e8e8eb;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(14px, 1.8vw, 17px);
    line-height: 1.95;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    user-select: text;
}
.lyrics-editor-modal { max-width: 820px; }
.lyrics-admin-textarea {
    min-height: 340px;
    resize: vertical;
    line-height: 1.65;
}

/* Album lyrics shortcut */
.album-track-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.album-track-lyrics-link {
    border: 1px solid rgba(255,255,255,.13);
    color: #dddde1;
    background: rgba(255,255,255,.035);
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    cursor: pointer;
}
.album-track-lyrics-link[disabled] {
    opacity: .35;
    cursor: default;
}
.album-track-row.n09 {
    grid-template-columns: minmax(130px, 1fr) minmax(180px, 1.25fr) minmax(120px, .8fr) minmax(150px, .9fr) auto;
}
.album-track-row .album-track-lyrics-select {
    min-width: 0;
}

@media (max-width: 920px) {
    .lyrics-index-head { align-items: flex-start; flex-direction: column; }
    .lyrics-reader-topbar { align-items: stretch; }
    .lyrics-back-btn, .lyrics-copy-btn { flex: 1; }
    .album-track-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .album-track-row.n09 { grid-template-columns: 1fr; }
}

/* =============================================================
   BOOK LIBRARY
   ============================================================= */
.books-library-view {
    display: grid;
    gap: 22px;
}

.books-library-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 4px 2px 8px;
}

.books-library-intro h2 {
    margin-top: 5px;
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(34px, 5vw, 62px);
    font-weight: 400;
    letter-spacing: 0.045em;
}

.books-library-intro p {
    max-width: 620px;
    margin-top: 4px;
    color: #8d8d95;
    font-size: 12px;
    line-height: 1.7;
}

.books-total {
    flex: 0 0 auto;
    color: #a6a6ad;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.book-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 19px;
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(8,8,11,.91));
    box-shadow: 0 14px 34px rgba(0,0,0,.2);
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.book-card:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 9, 20, .42);
    box-shadow: 0 18px 46px rgba(0,0,0,.34);
}

.book-card-cover {
    position: relative;
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    background: #0d0d10;
    cursor: pointer;
}

.book-card-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 35%;
    background: linear-gradient(180deg, transparent, rgba(5,5,8,.8));
    pointer-events: none;
}

.book-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.book-card:hover .book-card-cover img {
    transform: scale(1.025);
}

.book-library-chip {
    position: absolute;
    left: 13px;
    bottom: 12px;
    z-index: 2;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(7,7,10,.75);
    color: #f4f4f5;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .16em;
    backdrop-filter: blur(10px);
}

.book-card-body {
    padding: 17px 17px 18px;
}

.book-card-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: 27px;
    font-weight: 400;
    letter-spacing: .035em;
    line-height: 1.05;
}

.book-card-review {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 54px;
    margin-top: 8px;
    color: #85858d;
    font-size: 10px;
    line-height: 1.75;
}

.book-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 15px;
}

.book-card-actions.has-link {
    grid-template-columns: 1fr 1fr;
}

.book-detail-btn,
.book-external-btn,
.book-open-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    font-family: "Montserrat", sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .11em;
    text-decoration: none;
    cursor: pointer;
}

.book-detail-btn {
    background: rgba(255,255,255,.045);
    color: #f7f7f8;
}

.book-external-btn,
.book-open-link {
    border-color: rgba(229,9,20,.42);
    background: rgba(229,9,20,.12);
    color: #fff;
}

.book-detail-btn:hover,
.book-external-btn:hover,
.book-open-link:hover {
    border-color: rgba(229,9,20,.72);
    background: rgba(229,9,20,.18);
}

.book-admin-actions {
    position: absolute;
    z-index: 4;
    top: 11px;
    right: 11px;
    display: flex;
    gap: 6px;
}

.book-admin-actions button {
    padding: 7px 9px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 9px;
    background: rgba(6,6,9,.82);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.book-admin-actions button.delete {
    border-color: rgba(229,9,20,.4);
}

.book-cover-preview-box img {
    max-height: 420px;
    object-fit: contain;
}

.book-detail-card {
    width: min(940px, calc(100vw - 32px));
    max-height: min(820px, calc(100vh - 34px));
    overflow: auto;
}

.book-detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 310px) 1fr;
    gap: 30px;
    align-items: start;
}

.book-detail-cover-wrap {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.1);
    background: #0b0b0e;
}

.book-detail-cover-wrap img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
}

.book-detail-content {
    padding-top: 10px;
}

.book-detail-divider {
    width: 56px;
    height: 2px;
    margin: 16px 0 20px;
    background: #e50914;
}

.book-detail-review {
    color: #c2c2c7;
    font-size: 13px;
    line-height: 1.9;
    white-space: pre-wrap;
}

.book-open-link {
    width: fit-content;
    margin-top: 24px;
    padding-inline: 18px;
}

.book-no-link-note {
    margin-top: 22px;
    color: #707078;
    font-size: 10px;
    letter-spacing: .08em;
}

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

@media (max-width: 760px) {
    .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .books-library-intro { align-items: flex-start; flex-direction: column; }
    .book-detail-layout { grid-template-columns: 1fr; }
    .book-detail-cover-wrap { width: min(280px, 78vw); margin: 0 auto; }
}

@media (max-width: 470px) {
    .books-grid { grid-template-columns: 1fr; }
    .book-card { max-width: 360px; width: 100%; margin-inline: auto; }
}

/* =============================================================
   FOSSILS: professional link directories + contact footer
   ============================================================= */
.professional-link-grid { display: grid; gap: 24px; }
.professional-section-intro {
    display: flex; align-items: end; justify-content: space-between; gap: 18px;
    padding: 20px 22px; border: 1px solid rgba(255,255,255,.08); border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(8,8,12,.72));
}
.professional-section-intro h2 { margin-top: 4px; font-family: "Bebas Neue", sans-serif; font-size: clamp(28px,4vw,46px); font-weight: 400; letter-spacing: .045em; }
.professional-section-intro p { max-width: 680px; margin-top: 6px; color: #8d8d95; font-size: 12px; line-height: 1.65; }
.professional-section-intro > span { flex: 0 0 auto; color: #aaaab1; font-size: 10px; letter-spacing: .18em; }
.professional-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.professional-link-card {
    position: relative; overflow: hidden; min-width: 0;
    border: 1px solid rgba(255,255,255,.08); border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(8,8,11,.92));
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
}
.professional-card-cover { aspect-ratio: 16/10; overflow: hidden; background: #0b0b0e; }
.professional-card-cover.merch-cover { aspect-ratio: 1/1; }
.professional-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.professional-link-card:hover .professional-card-cover img { transform: scale(1.035); }
.professional-card-body { display: grid; gap: 10px; padding: 18px; }
.professional-card-body h3 { font-family: "Bebas Neue", sans-serif; font-size: 30px; font-weight: 400; letter-spacing: .04em; line-height: 1.05; }
.professional-card-body p { color: #8e8e96; font-size: 11px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.professional-card-badge { width: fit-content; color: #d3d3d8; font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }
.professional-open-link {
    width: fit-content; margin-top: 4px; padding: 11px 15px; border: 1px solid rgba(229,9,20,.38); border-radius: 999px;
    color: #fff; background: rgba(229,9,20,.08); text-decoration: none; font-size: 10px; font-weight: 800; letter-spacing: .11em;
}
.professional-open-link:hover { background: rgba(229,9,20,.18); border-color: rgba(229,9,20,.7); }
.fossils-admin-actions { z-index: 5; }

.gallery-event-modal-card { max-width: 760px; }
.gallery-event-form-grid .full { grid-column: 1 / -1; }
.gallery-file-summary { margin: 8px 0 12px; color: #aaaab1; font-size: 11px; }
.gallery-progress-track { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.gallery-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--red); transition: width .18s ease; }

.site-contact-footer {
    position: relative; z-index: 5; margin-top: 60px; padding: 28px clamp(18px,4vw,52px) 34px;
    border-top: 1px solid rgba(255,255,255,.08); background: rgba(6,6,9,.82); backdrop-filter: blur(18px);
}
.site-contact-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(180px,.8fr) 1.3fr auto; gap: 28px; align-items: center; }
.site-contact-brand span { display: block; font-family: "Bebas Neue", sans-serif; font-size: 34px; letter-spacing: .06em; }
.site-contact-brand small { color: #777780; font-size: 8px; letter-spacing: .18em; }
.site-contact-details { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.site-contact-line { display: grid; gap: 3px; }
.site-contact-line > span { color: #666670; font-size: 8px; letter-spacing: .16em; }
.site-contact-line strong, .site-contact-line a { color: #e8e8eb; font-size: 11px; font-weight: 600; text-decoration: none; }
.contact-empty { color: #777780; font-size: 11px; }
.site-social-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.site-social-links a { padding: 9px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; color: #dddde2; text-decoration: none; font-size: 9px; letter-spacing: .1em; }
.site-social-links a:hover { border-color: rgba(229,9,20,.6); color: #fff; }

@media (max-width: 980px) {
    .professional-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .site-contact-inner { grid-template-columns: 1fr; }
    .site-social-links { justify-content: flex-start; }
}
@media (max-width: 620px) {
    .professional-section-intro { align-items: flex-start; flex-direction: column; }
    .professional-card-grid { grid-template-columns: 1fr; }
    .professional-link-card { border-radius: 18px; }
    .site-contact-footer { margin-top: 40px; }
}

/* =============================================================
   NEMESSIS.13 — compact albums, lyrics cards, search, reporting
   ============================================================= */
.detail-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.section-report-btn,
.inline-report-btn {
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.035);
    color: #a9a9b0;
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .12em;
    cursor: pointer;
    transition: .2s ease;
}
.section-report-btn:hover,
.inline-report-btn:hover { color:#fff; border-color:rgba(229,9,20,.48); background:rgba(229,9,20,.08); }
.reportable-card { position:relative; }
.reportable-card > .inline-report-btn { position:absolute; right:9px; bottom:9px; z-index:7; backdrop-filter:blur(10px); background:rgba(8,8,11,.78); }

.collection-search-head {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(260px,420px);
    gap:24px;
    align-items:end;
    margin-bottom:22px;
}
.collection-search-head h2 { margin-top:3px; font-family:"Bebas Neue",sans-serif; font-size:clamp(38px,5vw,64px); font-weight:400; letter-spacing:.04em; line-height:.95; }
.collection-search-head p { max-width:680px; margin-top:8px; color:#85858d; font-size:11px; line-height:1.7; }
.collection-search-box {
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:9px;
    min-height:48px;
    padding:0 12px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:13px;
    background:rgba(7,7,10,.78);
}
.collection-search-box span { color:#6e6e76; font-size:20px; }
.collection-search-box input { width:100%; border:0; outline:0; background:transparent; color:#fff; font:600 12px/1.2 "Montserrat",sans-serif; }
.collection-search-box input::placeholder { color:#5f5f67; }
.collection-search-box button { border:0; background:transparent; color:#73737b; font-size:20px; cursor:pointer; }

.album-library-view { width:100%; }
.album-cover-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(155px,1fr));
    gap:18px;
    align-items:start;
}
.album-poster-card {
    min-width:0;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.075);
    border-radius:9px;
    background:#0c0c0f;
    transition:transform .2s ease,border-color .2s ease;
}
.album-poster-card:hover { transform:translateY(-3px); border-color:rgba(229,9,20,.42); }
.album-poster-open { width:100%; border:0; background:transparent; color:inherit; text-align:left; padding:0; cursor:pointer; }
.album-poster-open > img { width:100%; aspect-ratio:2/3; display:block; object-fit:cover; background:#111; }
.album-poster-copy { display:block; min-height:105px; padding:10px 10px 34px; }
.album-poster-copy strong { display:block; color:#fff; font-size:12px; line-height:1.45; font-weight:800; }
.album-poster-copy small { display:block; margin-top:6px; color:#b7b7bd; font-size:8px; line-height:1.5; font-weight:700; letter-spacing:.08em; }
.album-poster-copy em { display:-webkit-box; margin-top:7px; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:3; color:#74747c; font-size:8px; font-style:normal; line-height:1.55; }
.album-poster-card > .fossils-admin-actions { top:7px; right:7px; }
.album-poster-card > .inline-report-btn { font-size:7px; padding:6px 8px; }

.album-search-results { display:grid; gap:9px; }
.album-search-result {
    width:100%; display:grid; grid-template-columns:62px minmax(0,1fr) auto; align-items:center; gap:13px;
    border:1px solid rgba(255,255,255,.075); border-radius:13px; background:rgba(11,11,14,.78); color:#fff; padding:8px; text-align:left; cursor:pointer;
}
.album-search-result:hover { border-color:rgba(229,9,20,.4); }
.album-search-result img { width:62px; height:76px; object-fit:cover; border-radius:8px; background:#111; }
.album-search-result span { min-width:0; display:grid; gap:3px; }
.album-search-result small { color:#777780; font-size:8px; font-weight:800; letter-spacing:.13em; }
.album-search-result strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.album-search-result em { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#85858e; font-size:9px; font-style:normal; }
.album-search-result b { color:#d2d2d7; font-size:8px; letter-spacing:.1em; }
.album-search-result.song-match { background:linear-gradient(90deg,rgba(229,9,20,.055),rgba(11,11,14,.8)); }

.album-detail-view { width:min(100%,1050px); margin:0 auto; }
.album-detail-nav { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:18px; }
.album-detail-nav .inline-report-btn { position:static; }
.album-detail-hero {
    display:grid; grid-template-columns:220px minmax(0,1fr); gap:24px; align-items:end;
    padding:18px; border:1px solid rgba(255,255,255,.08); border-radius:18px;
    background:linear-gradient(135deg,rgba(229,9,20,.06),rgba(8,8,11,.86));
}
.album-detail-hero > img { width:220px; aspect-ratio:2/3; object-fit:cover; border-radius:12px; background:#111; }
.album-detail-hero h2 { margin-top:4px; font-family:"Bebas Neue",sans-serif; font-size:clamp(48px,8vw,82px); line-height:.93; font-weight:400; letter-spacing:.035em; }
.album-detail-hero p { max-width:680px; margin-top:12px; color:#9a9aa1; font-size:11px; line-height:1.75; }
.album-detail-tracks { display:grid; gap:10px; margin-top:18px; }
.album-detail-track {
    display:grid; grid-template-columns:74px minmax(0,1fr) auto; gap:14px; align-items:center;
    min-height:94px; padding:10px; border:1px solid rgba(255,255,255,.07); border-radius:14px; background:rgba(12,12,15,.74); transition:.2s ease;
}
.album-detail-track.track-search-focus { border-color:rgba(229,9,20,.72); box-shadow:0 0 0 2px rgba(229,9,20,.13); }
.album-detail-track > img { width:74px; height:74px; object-fit:cover; border-radius:10px; background:#111; }
.album-detail-track-info small { color:#6f6f77; font-size:7px; font-weight:800; letter-spacing:.15em; }
.album-detail-track-info h3 { margin-top:2px; color:#fff; font-size:14px; }
.album-detail-track-info p { margin-top:5px; color:#85858d; font-size:9px; line-height:1.55; }
.album-detail-track .inline-report-btn { position:static; }
.album-track-row.n13 { grid-template-columns:minmax(120px,1fr) minmax(160px,1.15fr) minmax(140px,1fr) minmax(160px,1fr) minmax(140px,.9fr) auto; }
.album-track-row.n13 input,.album-track-row.n13 select { min-width:0; }

.lyrics-library-view { width:100%; }
.lyrics-poster-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(155px,1fr)); gap:18px; align-items:start; }
.lyrics-poster-card { overflow:hidden; border:1px solid rgba(255,255,255,.075); border-radius:9px; background:#0c0c0f; transition:.2s ease; }
.lyrics-poster-card:hover { transform:translateY(-3px); border-color:rgba(229,9,20,.4); }
.lyrics-poster-open { width:100%; padding:0; border:0; background:transparent; color:inherit; text-align:left; cursor:pointer; }
.lyrics-poster-open img { width:100%; aspect-ratio:2/3; display:block; object-fit:cover; background:#111; }
.lyrics-poster-open > span { display:block; min-height:104px; padding:10px 10px 35px; }
.lyrics-poster-open strong { display:block; color:#fff; font-size:12px; line-height:1.45; }
.lyrics-poster-open small { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin-top:5px; color:#86868e; font-size:8px; line-height:1.45; }
.lyrics-poster-open em { display:block; margin-top:7px; color:#d8d8dc; font-size:7px; font-weight:800; font-style:normal; letter-spacing:.1em; }
.lyrics-card-admin { position:absolute; top:7px; right:7px; z-index:8; padding:5px; border-radius:999px; background:rgba(5,5,8,.78); backdrop-filter:blur(10px); }
.lyrics-card-admin button { font-size:7px; padding:5px 7px; }
.lyrics-poster-card > .inline-report-btn { font-size:7px; padding:6px 8px; }
.lyrics-reader-actions { display:flex; align-items:center; gap:8px; }
.lyrics-reader-actions .inline-report-btn { position:static; }
.lyrics-reader-header.enhanced { display:grid; grid-template-columns:105px minmax(0,1fr); gap:18px; align-items:center; }
.lyrics-reader-header.enhanced > img { width:105px; aspect-ratio:2/3; object-fit:cover; border-radius:10px; background:#111; }
.lyrics-reader-header.enhanced h2 { margin-top:4px; }

.report-modal-card { max-width:650px; }
.report-context-label { margin:4px 0 16px; padding:10px 12px; border:1px solid rgba(229,9,20,.22); border-radius:10px; background:rgba(229,9,20,.055); color:#d8d8dd; font-size:9px; font-weight:800; letter-spacing:.12em; }
.report-contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.reports-inbox-card { width:min(94vw,920px); max-width:920px; max-height:88vh; overflow:auto; }
.reports-inbox-toolbar { display:flex; gap:8px; margin:16px 0; }
.reports-inbox-toolbar .active { border-color:rgba(229,9,20,.48); background:rgba(229,9,20,.1); }
.reports-inbox-list { display:grid; gap:10px; }
.admin-report-card { padding:14px; border:1px solid rgba(255,255,255,.085); border-radius:14px; background:rgba(10,10,13,.82); }
.admin-report-card.resolved { opacity:.62; }
.admin-report-head { display:grid; grid-template-columns:auto 1fr auto; gap:10px; align-items:center; }
.admin-report-head span { color:#ff3b46; font-size:8px; font-weight:900; letter-spacing:.12em; }
.admin-report-head strong { color:#fff; font-size:12px; }
.admin-report-head small { color:#6f6f76; font-size:8px; }
.admin-report-type { margin-top:8px; color:#a8a8af; font-size:8px; font-weight:800; text-transform:uppercase; letter-spacing:.1em; }
.admin-report-card p { margin-top:7px; color:#d2d2d6; font-size:11px; line-height:1.65; white-space:pre-wrap; }
.admin-report-contact { margin-top:8px; color:#74747c; font-size:9px; }
.admin-report-actions { display:flex; gap:8px; justify-content:flex-end; margin-top:12px; }
.admin-report-actions button { border:1px solid rgba(255,255,255,.12); border-radius:999px; padding:7px 10px; background:rgba(255,255,255,.035); color:#ddd; font-size:8px; font-weight:800; cursor:pointer; }
.admin-report-actions .delete { color:#ff6870; }

@media (max-width: 920px) {
    .collection-search-head { grid-template-columns:1fr; }
    .album-cover-grid,.lyrics-poster-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
    .album-detail-hero { grid-template-columns:130px minmax(0,1fr); gap:14px; padding:12px; align-items:center; }
    .album-detail-hero > img { width:130px; }
    .album-detail-track { grid-template-columns:62px minmax(0,1fr); }
    .album-detail-track > img { width:62px; height:62px; }
    .album-detail-track .album-track-actions { grid-column:1/-1; justify-content:flex-start; }
    .album-track-row.n13 { grid-template-columns:1fr; }
    .report-contact-grid { grid-template-columns:1fr; }
}
@media (max-width: 560px) {
    .detail-actions { width:100%; justify-content:flex-start; }
    .section-report-btn { order:2; }
    .album-poster-copy,.lyrics-poster-open > span { min-height:112px; }
    .album-detail-hero { grid-template-columns:100px minmax(0,1fr); }
    .album-detail-hero > img { width:100px; }
    .album-detail-hero h2 { font-size:38px; }
    .lyrics-reader-header.enhanced { grid-template-columns:78px minmax(0,1fr); }
    .lyrics-reader-header.enhanced > img { width:78px; }
    .admin-report-head { grid-template-columns:1fr; gap:4px; }
}

/* =============================================================
   NEMESSIS.15 — Album groups + scoped Member Admin
   ============================================================= */
.album-group-tabs {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:0 0 18px;
}
.album-group-tab {
    border:1px solid rgba(255,255,255,.10);
    border-radius:999px;
    padding:10px 14px;
    background:rgba(255,255,255,.035);
    color:#c9c9cf;
    font-size:9px;
    font-weight:900;
    letter-spacing:.11em;
    cursor:pointer;
    transition:.2s ease;
}
.album-group-tab:hover,.album-group-tab.active {
    border-color:rgba(229,9,20,.55);
    background:rgba(229,9,20,.10);
    color:#fff;
}
.album-group-tab b { margin-left:7px; color:#7e7e87; }
.album-group-tab.active b { color:#ff6870; }
.album-group-heading {
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:12px;
    margin:4px 0 14px;
}
.album-group-heading h3 {
    font-family:"Bebas Neue",sans-serif;
    font-size:clamp(30px,4vw,48px);
    font-weight:400;
    letter-spacing:.045em;
}
.album-group-heading span { color:#777780; font-size:9px; font-weight:800; letter-spacing:.12em; }
.album-group-chip {
    display:inline-flex;
    align-items:center;
    margin-top:7px;
    padding:5px 8px;
    border:1px solid rgba(229,9,20,.25);
    border-radius:999px;
    color:#ff7a82;
    font-size:7px;
    font-weight:900;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.member-admins-card { width:min(94vw,880px); max-width:880px; max-height:88vh; overflow:auto; }
.member-admin-grant-form {
    display:grid;
    grid-template-columns:minmax(0,1.4fr) minmax(180px,.8fr) auto;
    gap:12px;
    align-items:end;
    margin-top:18px;
}
.member-admin-grant-form .form-group { margin:0; }
.member-admin-grant-form .btn-action { margin:0; white-space:nowrap; }
.member-admin-note {
    margin:14px 0;
    padding:11px 12px;
    border:1px solid rgba(255,255,255,.07);
    border-radius:12px;
    background:rgba(255,255,255,.025);
    color:#8c8c95;
    font-size:9px;
    line-height:1.65;
}
.member-admin-list { display:grid; gap:9px; margin-top:14px; }
.member-admin-row {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto;
    gap:12px;
    align-items:center;
    padding:12px 13px;
    border:1px solid rgba(255,255,255,.075);
    border-radius:13px;
    background:rgba(10,10,13,.78);
}
.member-admin-row strong { display:block; color:#fff; font-size:11px; }
.member-admin-row small { display:block; margin-top:3px; color:#73737c; font-size:8px; }
.member-admin-section-chip {
    padding:6px 9px;
    border:1px solid rgba(229,9,20,.28);
    border-radius:999px;
    color:#ff7078;
    font-size:8px;
    font-weight:900;
    letter-spacing:.10em;
}
.member-admin-revoke {
    border:1px solid rgba(255,255,255,.12);
    border-radius:999px;
    padding:7px 10px;
    background:rgba(255,255,255,.035);
    color:#ff747c;
    font-size:8px;
    font-weight:900;
    cursor:pointer;
}
.member-admin-empty { padding:20px; text-align:center; color:#777780; font-size:10px; }
.section-admin-badge-note { color:#ff6d75; }

@media (max-width:760px) {
    .member-admin-grant-form { grid-template-columns:1fr; }
    .member-admin-row { grid-template-columns:1fr; }
    .member-admin-section-chip,.member-admin-revoke { justify-self:start; }
}

/* =============================================================
   NEMESSIS.16 — requested UX refinements only
   ============================================================= */

/* Keep the archive hero out of the way while a collection/detail is open. */
body.collection-open #landing-view {
    display: none !important;
}

/* Stronger Back to Vault affordance. */
.back-btn {
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid rgba(255, 38, 50, 0.72);
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.2), rgba(12, 12, 15, 0.9));
    color: #fff;
    box-shadow: 0 0 0 1px rgba(229,9,20,0.08) inset, 0 10px 32px rgba(0,0,0,0.24);
    font-size: 10px;
}
.back-btn:hover {
    border-color: var(--red-2);
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.35), rgba(16, 16, 20, 0.96));
    box-shadow: 0 0 24px rgba(229,9,20,0.22);
    transform: translateX(-2px);
}

/* Small persistent background-audio control. */
.bg-audio-toggle {
    position: fixed;
    right: 18px;
    top: clamp(132px, 15vh, 178px);
    z-index: 4200;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(8,8,11,0.82);
    color: #fff;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 26px rgba(0,0,0,0.28);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.bg-audio-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.34);
}
.bg-audio-toggle.is-muted {
    color: #b3b3b8;
}
.bg-audio-icon { font-size: 14px; line-height: 1; }
.bg-audio-label {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
}
.bg-audio-toggle.sound-attention {
    border-color: var(--red-2);
    background: rgba(229,9,20,0.95);
    box-shadow: 0 0 0 5px rgba(229,9,20,0.14), 0 0 34px rgba(229,9,20,0.46);
    animation: n16SoundPulse .9s ease-in-out infinite alternate;
}
@keyframes n16SoundPulse {
    from { transform: scale(1); }
    to { transform: scale(1.055); }
}

/* 9 selectable Lyrics themes. */
.lyrics-theme-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}
.lyrics-theme-choice {
    min-height: 78px;
    padding: 8px;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 7px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.025);
    cursor: pointer;
    overflow: hidden;
    text-align: left;
}
.lyrics-theme-choice > span {
    min-height: 38px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,0.09);
    background: #121216;
}
.lyrics-theme-choice > b {
    font-size: 9px;
    letter-spacing: .08em;
}
.lyrics-theme-choice.active {
    border-color: var(--red-2);
    box-shadow: 0 0 0 2px rgba(229,9,20,0.16);
}
.lyrics-theme-choice.theme-crimson_stage > span,
.lyrics-theme-crimson_stage {
    background-image:
        radial-gradient(circle at 18% 22%, rgba(255,35,64,.34), transparent 28%),
        radial-gradient(circle at 82% 16%, rgba(255,100,0,.15), transparent 30%),
        linear-gradient(135deg, #1c070c 0%, #0a0a0d 52%, #28050c 100%);
}
.lyrics-theme-choice.theme-electric_blue > span,
.lyrics-theme-electric_blue {
    background-image:
        radial-gradient(circle at 24% 25%, rgba(0,166,255,.42), transparent 30%),
        radial-gradient(circle at 76% 70%, rgba(23,72,255,.26), transparent 34%),
        linear-gradient(140deg, #06111e, #08090d 55%, #081f34);
}
.lyrics-theme-choice.theme-purple_haze > span,
.lyrics-theme-purple_haze {
    background-image:
        radial-gradient(circle at 20% 18%, rgba(196,50,255,.38), transparent 32%),
        radial-gradient(circle at 82% 82%, rgba(105,31,206,.32), transparent 32%),
        linear-gradient(135deg, #16061d, #0a0910 58%, #25082e);
}
.lyrics-theme-choice.theme-neon_bloom > span,
.lyrics-theme-neon_bloom {
    background-image:
        radial-gradient(circle at 22% 25%, rgba(255,0,162,.42) 0 7%, transparent 22%),
        radial-gradient(circle at 58% 18%, rgba(0,235,255,.34) 0 8%, transparent 25%),
        radial-gradient(circle at 78% 66%, rgba(193,255,0,.24) 0 7%, transparent 24%),
        radial-gradient(circle at 34% 78%, rgba(109,65,255,.42) 0 8%, transparent 25%),
        linear-gradient(140deg, #101017, #071016 58%, #13101c);
}
.lyrics-theme-choice.theme-smoke_steel > span,
.lyrics-theme-smoke_steel {
    background-image:
        radial-gradient(circle at 70% 24%, rgba(255,255,255,.11), transparent 25%),
        linear-gradient(115deg, rgba(255,255,255,.04) 0 1px, transparent 1px 22px),
        linear-gradient(140deg, #22242a, #090a0d 58%, #17191e);
}
.lyrics-theme-choice.theme-inferno > span,
.lyrics-theme-inferno {
    background-image:
        radial-gradient(circle at 25% 78%, rgba(255,43,0,.46), transparent 31%),
        radial-gradient(circle at 75% 24%, rgba(255,145,0,.28), transparent 29%),
        linear-gradient(135deg, #230805, #090908 56%, #2a1205);
}
.lyrics-theme-choice.theme-vintage_amp > span,
.lyrics-theme-vintage_amp {
    background-image:
        repeating-linear-gradient(0deg, rgba(255,233,188,.028) 0 1px, transparent 1px 4px),
        radial-gradient(circle at 74% 22%, rgba(209,151,67,.2), transparent 35%),
        linear-gradient(135deg, #281f15, #11100d 54%, #332414);
}
.lyrics-theme-choice.theme-midnight_spotlight > span,
.lyrics-theme-midnight_spotlight {
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(225,238,255,.23), transparent 36%),
        radial-gradient(circle at 20% 75%, rgba(230,9,20,.15), transparent 26%),
        linear-gradient(150deg, #0b0f18, #050507 60%, #11121b);
}
.lyrics-theme-choice.theme-monochrome_noise > span,
.lyrics-theme-monochrome_noise {
    background-image:
        radial-gradient(circle at 20% 18%, rgba(255,255,255,.12), transparent 25%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 1px, transparent 1px 8px),
        linear-gradient(135deg, #1b1b1d, #070708 62%, #202024);
}

.lyrics-reader.lyrics-themed-reader {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 22px;
    padding: clamp(16px, 2.4vw, 30px);
    background-size: cover;
    background-attachment: local;
}
.lyrics-reader.lyrics-themed-reader::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(5,5,8,.38), rgba(5,5,8,.72)),
        radial-gradient(circle at 50% 30%, transparent, rgba(0,0,0,.4) 80%);
    pointer-events: none;
}
.lyrics-reader.lyrics-themed-reader .lyrics-text-card,
.lyrics-reader.lyrics-themed-reader .lyrics-reader-header,
.lyrics-reader.lyrics-themed-reader .lyrics-reader-topbar {
    position: relative;
    z-index: 1;
}
.lyrics-reader.lyrics-themed-reader .lyrics-text-card {
    background: rgba(7,7,10,.72);
    backdrop-filter: blur(12px);
    border-color: rgba(255,255,255,.13);
}

/* Extra optional track links. */
.album-track-extra-links-editor {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.025);
}
.album-track-extra-links-editor > small {
    color: #888891;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
}
.album-extra-link-row {
    display: grid;
    grid-template-columns: minmax(120px,.65fr) minmax(180px,1.35fr);
    gap: 8px;
}
.album-track-more-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.album-track-extra-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.045);
    color: #fff;
    text-decoration: none;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}
.album-track-extra-link:hover {
    border-color: var(--red-2);
    background: rgba(229,9,20,.12);
}

@media (max-width: 720px) {
    .bg-audio-toggle {
        right: 10px;
        top: 126px;
        padding: 0 10px;
    }
    .bg-audio-label { display: none; }
    .lyrics-theme-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .album-extra-link-row { grid-template-columns: 1fr; }
    .back-btn { min-height: 44px; padding: 0 15px; }
}

/* Legal/policy footer links */
.site-legal-links {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.075);
}
.site-legal-links a {
    color: #96969f;
    text-decoration: none;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .11em;
    transition: color .2s ease;
}
.site-legal-links a:hover,
.site-legal-links a:focus-visible { color: #fff; }

/* =============================================================
   NEMESSIS.19 — AdSense-ready UX polish + shareable archive URLs
   ============================================================= */

/* Keep the floating sound control clear of header/admin/logout controls. */
.bg-audio-toggle {
    top: auto !important;
    right: 18px;
    bottom: 18px;
    max-width: calc(100vw - 36px);
}

/* Stronger visual separation for the three Album directories. */
.album-group-tabs {
    padding: 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(229,9,20,.055), rgba(8,8,11,.78));
    box-shadow: 0 12px 34px rgba(0,0,0,.18);
}
.album-group-tab {
    min-height: 42px;
    padding: 0 16px;
    border-color: rgba(255,255,255,.18);
    background: rgba(255,255,255,.055);
    color: #f0f0f2;
    font-size: 10px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}
.album-group-tab:hover {
    border-color: rgba(229,9,20,.72);
    background: rgba(229,9,20,.16);
    box-shadow: 0 0 22px rgba(229,9,20,.13);
}
.album-group-tab.active {
    border-color: rgba(255,65,75,.92);
    background: linear-gradient(135deg, rgba(229,9,20,.88), rgba(129,5,13,.82));
    color: #fff;
    box-shadow: 0 0 0 2px rgba(229,9,20,.12), 0 0 30px rgba(229,9,20,.24);
}
.album-group-tab.active b { color: #fff; }
.album-group-heading {
    padding: 0 3px 10px;
    border-bottom: 1px solid rgba(229,9,20,.19);
}

/* Slightly more compact Books cards on wide screens. */
@media (min-width: 1180px) {
    .books-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 14px;
    }
}
.book-card { border-radius: 15px; }
.book-card-body { padding: 14px 14px 15px; }
.book-card-title { font-size: 23px; }
.book-card-review { font-size: 9px; line-height: 1.65; min-height: 46px; }
.book-card-actions { margin-top: 12px; }
.book-detail-btn,
.book-external-btn,
.book-open-link { min-height: 38px; padding: 8px 10px; }

/* Share controls for clean section/item links. */
.section-share-btn,
.inline-share-btn,
.reader-share-btn {
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.055);
    color: #f1f1f3;
    font-weight: 900;
    letter-spacing: .1em;
    cursor: pointer;
    transition: .2s ease;
}
.section-share-btn {
    min-height: 38px;
    padding: 0 13px;
    border-radius: 4px;
    font-size: 8px;
}
.section-share-btn:hover,
.inline-share-btn:hover,
.reader-share-btn:hover {
    border-color: rgba(229,9,20,.7);
    background: rgba(229,9,20,.14);
    color: #fff;
}
.shareable-card { position: relative; }
.inline-share-btn {
    position: absolute;
    left: 9px;
    bottom: 9px;
    z-index: 9;
    min-height: 27px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 7px;
    backdrop-filter: blur(10px);
    background: rgba(8,8,11,.8);
}
.reader-share-btn {
    min-height: 37px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 8px;
}
.shared-route-focus {
    border-color: rgba(229,9,20,.86) !important;
    box-shadow: 0 0 0 2px rgba(229,9,20,.16), 0 0 34px rgba(229,9,20,.18) !important;
    animation: n19SharedFocus 1.25s ease 2;
}
@keyframes n19SharedFocus {
    50% { transform: translateY(-2px) scale(1.012); }
}

@media (max-width: 720px) {
    .bg-audio-toggle {
        top: auto !important;
        right: 10px;
        bottom: 12px;
    }
    .section-share-btn { min-height: 34px; padding: 0 10px; }
    .album-group-tabs { padding: 9px; gap: 8px; }
    .album-group-tab { min-height: 39px; padding: 0 12px; font-size: 8px; }
}

/* =============================================================
   NEMESSIS.21 — user-requested logo, compact controls/videos,
   editable home sections. Existing names/modules remain unchanged.
   ============================================================= */
#bg-audio-toggle { display: none !important; }

.boot-logo-mark {
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #0a0a0c;
}
.boot-logo-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.logo {
    flex-direction: row;
    align-items: center;
    gap: 11px;
}
.site-logo-square {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: block;
    overflow: hidden;
    border-radius: 11px;
    border: 1px solid rgba(255,255,255,.12);
    background: #0b0b0d;
}
.site-logo-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.site-logo-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}
.logo .site-logo-copy > span {
    font-family: "Bebas Neue", sans-serif;
    font-size: 35px;
    letter-spacing: .09em;
    color: var(--red);
}
.logo .site-logo-copy > small {
    margin-top: 4px;
}

/* Smaller controls; Share stays intentionally red/highlighted. */
.section-report-btn,
.inline-report-btn {
    padding: 5px 8px;
    font-size: 7px;
    letter-spacing: .09em;
}
.reportable-card > .inline-report-btn { right: 7px; bottom: 7px; }
.section-share-btn,
.inline-share-btn,
.reader-share-btn {
    color: #fff;
    border-color: rgba(255,55,65,.82);
    background: rgba(229,9,20,.9);
    box-shadow: 0 8px 22px rgba(229,9,20,.16);
}
.section-share-btn {
    min-height: 29px;
    padding: 0 9px;
    font-size: 7px;
    border-radius: 999px;
}
.inline-share-btn {
    left: 7px;
    bottom: 7px;
    min-height: 23px;
    padding: 4px 7px;
    font-size: 6.5px;
    background: rgba(190,8,18,.92);
}
.reader-share-btn {
    min-height: 30px;
    padding: 0 9px;
    font-size: 7px;
}
.section-share-btn:hover,
.inline-share-btn:hover,
.reader-share-btn:hover {
    color: #fff;
    border-color: #ff6169;
    background: #e50914;
}

/* Video directory only: slightly smaller cards. */
.video-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.video-card-grid .professional-link-card { border-radius: 17px; }
.video-card-grid .professional-card-cover { aspect-ratio: 16 / 9; }
.video-card-grid .professional-card-body { gap: 8px; padding: 13px; }
.video-card-grid .professional-card-body h3 { font-size: 24px; }
.video-card-grid .professional-card-body p { font-size: 10px; -webkit-line-clamp: 3; }
.video-card-grid .professional-open-link { padding: 8px 11px; font-size: 8px; }

/* Lighter off-screen work for large archive lists. */
.media-card,
.professional-link-card,
.book-card,
.album-poster-card,
.lyrics-poster-card,
.gallery-event-card {
    content-visibility: auto;
    contain-intrinsic-size: 320px 420px;
}
#bg-video { backface-visibility: hidden; }

/* Site logo settings */
.site-branding-card { max-width: 720px; }
.branding-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.branding-upload-block {
    padding: 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    background: rgba(255,255,255,.025);
}
.branding-preview {
    width: 150px;
    aspect-ratio: 1 / 1;
    margin: 10px auto 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    background: #08080a;
}
.branding-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Editable home sections */
.home-sections-manager-card {
    width: min(94vw, 920px);
    max-width: 920px;
    max-height: 88vh;
    overflow: auto;
}
.home-section-manager-actions { display: flex; justify-content: flex-end; margin: 12px 0 16px; }
.home-section-manager-actions .btn-action { width: auto; min-width: 190px; }
.home-sections-admin-list { display: grid; gap: 10px; }
.home-section-admin-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.085);
    border-radius: 15px;
    background: rgba(8,8,11,.72);
}
.home-section-admin-row small {
    display: block;
    margin-bottom: 4px;
    color: #777780;
    font-size: 8px;
    letter-spacing: .12em;
}
.home-section-admin-row strong { display: block; color: #fff; font-size: 14px; }
.home-section-admin-row p { margin: 5px 0 0; color: #8e8e96; font-size: 10px; line-height: 1.5; }
.home-section-admin-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.danger-soft { color: #ff6a72 !important; border-color: rgba(229,9,20,.35) !important; }

.home-section-editor-card { max-width: 760px; max-height: 90vh; overflow: auto; }
.home-subsection-inputs { display: grid; gap: 12px; margin-bottom: 14px; }
.home-subsection-row {
    padding: 13px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 15px;
    background: rgba(255,255,255,.022);
}
.home-subsection-row-head { margin-bottom: 8px; color: #ff525b; font-size: 9px; letter-spacing: .12em; }

.custom-home-section-view { display: grid; gap: 20px; }
.custom-home-section-intro {
    padding: 20px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(8,8,12,.72));
}
.custom-home-section-intro h2 {
    margin-top: 5px;
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(34px,5vw,56px);
    font-weight: 400;
    letter-spacing: .045em;
}
.custom-home-section-intro p { max-width: 760px; margin-top: 8px; color: #9a9aa2; font-size: 12px; line-height: 1.7; }
.custom-home-subsection-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.custom-home-subsection-card {
    padding: 17px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 17px;
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(8,8,11,.9));
}
.custom-home-subsection-card > span { color: #ff4c55; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.custom-home-subsection-card h3 { margin: 14px 0 7px; font-family: "Bebas Neue",sans-serif; font-size: 27px; font-weight: 400; letter-spacing: .04em; }
.custom-home-subsection-card p { color: #919199; font-size: 10px; line-height: 1.6; }
.custom-home-subsection-card small { display: inline-block; margin-top: 14px; color: #66666e; font-size: 7px; letter-spacing: .13em; }

@media (max-width: 1100px) {
    .video-card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 820px) {
    .video-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .custom-home-subsection-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
    .branding-grid { grid-template-columns: 1fr; }
    .home-section-admin-row { grid-template-columns: 1fr; align-items: start; }
    .home-section-admin-actions { justify-content: flex-start; }
    .custom-home-subsection-grid { grid-template-columns: 1fr; }
    .site-logo-square { width: 38px; height: 38px; flex-basis: 38px; }
    .logo .site-logo-copy > span { font-size: 29px; }
}
@media (max-width: 480px) {
    .video-card-grid { grid-template-columns: 1fr; }
}


/* =============================================================
   NEMESSIS.22 — requested fixes only
   ============================================================= */

/* Smooth page movement without changing archive layout. */
html {
    scroll-behavior: smooth !important;
    scroll-padding-top: 112px;
}
body {
    -webkit-overflow-scrolling: touch;
}
#bg-video {
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

/* Share / Report: icon-only and away from card download/action buttons. */
.detail-actions { gap: 7px; }
.section-share-btn,
.section-report-btn {
    width: 31px !important;
    height: 31px !important;
    min-width: 31px !important;
    min-height: 31px !important;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center;
    border-radius: 50% !important;
    font-size: 15px !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}
.section-share-btn {
    color: #fff !important;
    background: #e50914 !important;
    border-color: rgba(255, 83, 91, .9) !important;
}
.section-report-btn {
    color: #ddd !important;
    background: rgba(8, 8, 11, .78) !important;
    border-color: rgba(255,255,255,.18) !important;
}

.shareable-card,
.reportable-card { position: relative; }

.inline-share-btn,
.inline-report-btn {
    position: absolute !important;
    top: 8px !important;
    bottom: auto !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center;
    border-radius: 50% !important;
    font-size: 13px !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    z-index: 12 !important;
    backdrop-filter: blur(9px);
}
.inline-share-btn {
    left: 8px !important;
    right: auto !important;
    color: #fff !important;
    background: rgba(229, 9, 20, .94) !important;
    border-color: rgba(255, 94, 101, .9) !important;
}
.reportable-card > .inline-report-btn {
    right: 8px !important;
    left: auto !important;
    color: #fff !important;
    background: rgba(8, 8, 11, .82) !important;
    border-color: rgba(255,255,255,.22) !important;
}
.reader-share-btn,
.album-detail-nav .inline-report-btn,
.album-detail-track .inline-report-btn,
.lyrics-reader-actions .inline-report-btn {
    position: static !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center;
    border-radius: 50% !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

/* Manage Sections modal controls. */
.home-section-editor-card .toggle-row {
    margin: 8px 0 16px;
}
.home-section-editor-card .preview-box {
    margin-bottom: 14px;
}

@media (max-width: 720px) {
    html { scroll-padding-top: 94px; }
    .section-share-btn,
    .section-report-btn {
        width: 29px !important;
        height: 29px !important;
        min-width: 29px !important;
        min-height: 29px !important;
    }
    .inline-share-btn,
    .inline-report-btn {
        top: 7px !important;
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
    }
    .inline-share-btn { left: 7px !important; }
    .reportable-card > .inline-report-btn { right: 7px !important; }
}

/* =============================================================
   NEMESSIS.23 — requested fixes only
   ============================================================= */

/* Native scrolling: no wheel interception / delayed easing. */
html.native-smooth-scroll {
    scroll-behavior: smooth !important;
    scroll-padding-top: 112px;
}
body {
    touch-action: pan-y;
    overscroll-behavior-y: auto;
}
#bg-video {
    will-change: auto !important;
    backface-visibility: hidden;
}

/* Share / Report utilities stay in normal document flow, never over content. */
.inline-share-btn,
.inline-report-btn,
.reportable-card > .inline-report-btn {
    position: static !important;
    inset: auto !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center;
    border-radius: 50% !important;
    font-size: 13px !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    z-index: auto !important;
    backdrop-filter: none !important;
}
.inline-share-btn {
    color: #fff !important;
    background: #e50914 !important;
    border: 1px solid rgba(255,94,101,.9) !important;
}
.inline-report-btn,
.reportable-card > .inline-report-btn {
    color: #e4e4e7 !important;
    background: rgba(20,20,24,.92) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
}
.card-utility-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 9px;
    min-height: 30px;
}
.album-poster-card > .card-utility-row,
.lyrics-poster-card > .card-utility-row,
.gallery-photo-tile > .card-utility-row {
    padding: 0 9px 9px;
    margin-top: 0;
}
.gallery-event-card-body > .card-utility-row,
.professional-card-body > .card-utility-row,
.media-info > .card-utility-row,
.book-card-body > .card-utility-row {
    margin-top: 10px;
}
.poster-card-actions.n23-download-actions {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto auto !important;
    align-items: center;
    gap: 8px !important;
}
.poster-premium-card .poster-card-actions.n23-download-actions {
    grid-template-columns: minmax(0,.8fr) minmax(0,1.4fr) auto auto !important;
}
.album-track-actions .inline-share-btn,
.album-track-actions .inline-report-btn {
    flex: 0 0 auto;
}

/* Lyrics -> Album identity/link shown beneath the song title beside meta. */
.lyrics-reader-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 7px;
}
.lyrics-reader-meta-line .lyrics-reader-meta {
    margin: 0;
}
.lyrics-reader-album-link {
    min-height: 28px;
    padding: 6px 10px;
    border: 1px solid rgba(229,9,20,.42);
    border-radius: 999px;
    background: rgba(229,9,20,.09);
    color: #f2f2f4;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    cursor: pointer;
}
.lyrics-reader-album-link:hover {
    border-color: rgba(255,70,80,.8);
    background: rgba(229,9,20,.16);
}

@media (max-width: 720px) {
    .poster-card-actions.n23-download-actions,
    .poster-premium-card .poster-card-actions.n23-download-actions {
        grid-template-columns: minmax(0,1fr) auto auto !important;
    }
    .poster-premium-card .poster-card-actions.n23-download-actions > .poster-secondary-btn {
        grid-column: 1 / -1;
    }
}

/* =============================================================
   NEMESSIS.24 — requested stability/UI fixes only
   ============================================================= */

/* Keep wheel/touch scrolling native and immediate. Programmatic navigation
   still asks for smooth behaviour explicitly in JavaScript where needed. */
html,
html.native-smooth-scroll {
    scroll-behavior: auto !important;
    scroll-padding-top: 112px;
}
body {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior-y: auto;
}

/* Long archive lists render off-screen cards lazily, reducing scroll jank. */
.media-card,
.gallery-event-card,
.gallery-photo-tile,
.book-card,
.professional-link-card,
.album-poster-card,
.lyrics-poster-card {
    content-visibility: auto;
    contain-intrinsic-size: 320px 420px;
}

/* Background video remains a simple GPU composited layer. */
.video-background-wrapper,
#bg-video {
    pointer-events: none;
}
#bg-video {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Share / Report are a separate compact utility footer, never over the
   thumbnail and never mixed into Download / Buy controls. */
.poster-card-actions.n23-download-actions,
.poster-premium-card .poster-card-actions.n23-download-actions {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: stretch;
    gap: 9px !important;
}
.poster-card-actions .poster-primary-btn {
    flex: 1 1 auto;
}
.poster-utility-row,
.card-utility-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 11px;
    min-height: 30px;
}
.poster-utility-row {
    padding-top: 9px;
    border-top: 1px solid rgba(255,255,255,.07);
}

/* Premium-looking primary download / purchase actions. */
.poster-primary-btn,
.confirm-free-download {
    position: relative;
    min-height: 48px !important;
    padding: 12px 18px !important;
    border-radius: 13px !important;
    border: 1px solid rgba(255,82,91,.72) !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), transparent 46%),
        linear-gradient(135deg, #d40712 0%, #8f0710 55%, #55050a 100%) !important;
    color: #fff !important;
    font-weight: 900 !important;
    letter-spacing: .055em !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.16),
        0 10px 26px rgba(148,5,13,.25) !important;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease !important;
}
.poster-primary-btn::before,
.confirm-free-download::before {
    content: "↓";
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-right: 7px;
    border-radius: 50%;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.16);
    vertical-align: -1px;
}
.poster-primary-btn:hover,
.confirm-free-download:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.07);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.18),
        0 13px 30px rgba(185,6,17,.32) !important;
}
.poster-primary-btn.free-download,
.poster-primary-btn.unlocked {
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), transparent 46%),
        linear-gradient(135deg, #202126 0%, #111216 60%, #09090b 100%) !important;
    border-color: rgba(255,255,255,.22) !important;
    color: #fff !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.10),
        0 9px 24px rgba(0,0,0,.28) !important;
}
.poster-secondary-btn {
    min-height: 48px !important;
    border-radius: 13px !important;
}

/* Keep utility icons understated/premium and clearly separate. */
.inline-share-btn,
.inline-report-btn,
.reportable-card > .inline-report-btn {
    width: 29px !important;
    height: 29px !important;
    min-width: 29px !important;
    min-height: 29px !important;
    border-radius: 9px !important;
}
.inline-share-btn {
    box-shadow: 0 6px 16px rgba(229,9,20,.14);
}

@media (max-width: 720px) {
    html, html.native-smooth-scroll { scroll-padding-top: 94px; }
    .poster-card-actions,
    .poster-card-actions.n23-download-actions,
    .poster-premium-card .poster-card-actions.n23-download-actions {
        flex-direction: column;
    }
    .poster-primary-btn,
    .poster-secondary-btn,
    .confirm-free-download {
        width: 100%;
    }
}
