/* Project theme on top of Bootstrap. */

:root {
    --accent: #a16dff;
    --accent-2: #ff4f9f;
    --accent-3: #38d6c2;
    --accent-4: #b31345;
    --accent-gradient: linear-gradient(135deg, #f8f2ff 0, var(--accent) 34%, var(--accent-2) 72%, #f1f5ff 100%);
    --chrome-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(166, 163, 188, 0.2) 30%, rgba(255, 79, 159, 0.58) 58%, rgba(56, 214, 194, 0.4));
    --metal-border: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 79, 159, 0.4) 42%, rgba(56, 214, 194, 0.24) 72%, rgba(255, 255, 255, 0.16));
    --surface: rgba(20, 17, 31, 0.76);
    --surface-strong: rgba(12, 10, 20, 0.9);
    --bg: #050509;
    --ink: #f7f3ff;
    --muted: #b7adc9;
    --night: #050509;
    --night-2: #120d1c;
    --table-surface: rgba(16, 13, 24, 0.94);
    --soft-border: rgba(233, 224, 255, 0.14);
    --radius: 0.75rem;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 18px 52px rgba(0, 0, 0, 0.46), 0 0 32px rgba(255, 79, 159, 0.08);
}

body {
    position: relative;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 19% 7%, rgba(88, 35, 137, 0.35), transparent 28rem),
        radial-gradient(circle at 84% 18%, rgba(179, 19, 69, 0.18), transparent 24rem),
        linear-gradient(145deg, #030306 0, #0a0710 38%, #170d25 74%, #040407 100%);
    color: var(--ink);
    overflow-x: hidden;
}

.site-meovv {
    isolation: isolate;
}

.site-meovv::before,
.site-meovv::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.site-meovv::before {
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.12) 1px, transparent 0),
        linear-gradient(110deg, transparent 0 44%, rgba(255, 79, 159, 0.05) 45%, transparent 46%);
    background-size: 5px 5px, 190px 190px;
    opacity: 0.28;
}

.site-meovv::after {
    background:
        linear-gradient(90deg, rgba(255, 79, 159, 0.13), transparent 18%, transparent 82%, rgba(56, 214, 194, 0.1)),
        radial-gradient(circle at 0 32%, rgba(161, 109, 255, 0.16), transparent 24rem),
        radial-gradient(circle at 100% 42%, rgba(179, 19, 69, 0.13), transparent 24rem);
    opacity: 0.72;
}

main,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-meovv .bg-white,
.site-meovv .table {
    background-color: var(--table-surface) !important;
    color: var(--ink);
}

.site-meovv .text-muted {
    color: var(--muted) !important;
}

.site-meovv .table {
    --bs-table-bg: var(--table-surface);
    --bs-table-color: var(--ink);
    --bs-table-border-color: var(--soft-border);
}

.site-meovv a {
    color: #d8c8ff;
}

.btn {
    border-radius: 0.22rem;
}

/* ---- Navbar ---- */

.site-navbar {
    z-index: 1030;
    background: rgba(5, 5, 9, 0.84);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
    isolation: isolate;
}

.site-navbar::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: max(env(safe-area-inset-top), 16px);
    background: var(--night);
    pointer-events: none;
    z-index: -1;
}

@supports (-webkit-touch-callout: none) {
    .site-navbar {
        background: var(--night);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.site-navbar .nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    border-radius: 0.5rem;
    padding-inline: 0.75rem;
}

.site-navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.site-navbar .btn-link.nav-link {
    color: rgba(255, 255, 255, 0.82);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.28);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(141, 92, 255, 0.35);
}

.navbar-toggler-icon {
    filter: invert(1);
}

.brand-mark {
    width: 2.15rem;
    height: 1.22rem;
    display: inline-block;
    flex: 0 0 auto;
    margin-right: 0.15rem;
    background: url("../img/cat-eye-mark.svg") center / contain no-repeat;
    filter: drop-shadow(0 0 14px rgba(255, 79, 159, 0.44));
    vertical-align: -0.22rem;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.brand-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.navbar-search .form-control {
    border-radius: 999px;
    min-width: 220px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.navbar-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.navbar-search .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(124, 92, 255, 0.15);
    background: #fff;
    color: #191722;
}

/* ---- Buttons, chips, links ---- */

.btn-accent {
    position: relative;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(135deg, #6d35ff, #ff2f8f 68%, #f5f2ff);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 0.22rem;
    box-shadow:
        0 0 18px rgba(255, 79, 159, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.52);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    overflow: hidden;
}

.btn-accent::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 0 42%, rgba(255, 255, 255, 0.56) 48%, transparent 54%);
    transform: translateX(-120%);
    transition: transform 0.32s ease;
}

.btn-accent:hover {
    color: #fff;
    filter: brightness(1.1);
    box-shadow:
        0 0 28px rgba(255, 79, 159, 0.48),
        0 0 40px rgba(56, 214, 194, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.btn-accent:hover::after {
    transform: translateX(120%);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus {
    background: #6a4cf0;
    border-color: #6a4cf0;
}

.btn-outline-light,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-warning,
.btn-outline-success {
    border-radius: 0.22rem;
    border-color: rgba(236, 228, 255, 0.45);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    color: #f7f3ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-outline-light:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-warning:hover,
.btn-outline-success:hover {
    border-color: rgba(255, 79, 159, 0.78);
    background: rgba(255, 79, 159, 0.14);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 79, 159, 0.22);
}

.chip {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 0.22rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(236, 228, 255, 0.18);
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 79, 159, 0.7);
    color: #fff;
    box-shadow: 0 0 18px rgba(255, 79, 159, 0.16);
}

.link-accent {
    color: #ff8ac0;
    text-decoration: none;
    font-weight: 700;
}

.link-accent:hover {
    text-decoration: underline;
}

.section-title {
    font-weight: 700;
    letter-spacing: 0;
}

/* ---- Cards / tiles ---- */

.card {
    border: 1px solid transparent;
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(22, 18, 34, 0.86), rgba(9, 8, 15, 0.88)) padding-box,
        var(--metal-border) border-box;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow:
        var(--shadow-lg),
        0 0 28px rgba(255, 79, 159, 0.16);
}

.card-title a {
    color: #f9f5ff;
}

.card-title a:hover {
    color: #ff8ac0;
}

.release-type-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.16rem 0.52rem;
    border: 1px solid rgba(255, 79, 159, 0.32);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255, 79, 159, 0.18), rgba(161, 109, 255, 0.16)),
        rgba(255, 255, 255, 0.06);
    color: #ffb2d6;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.035em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 18px rgba(255, 79, 159, 0.1);
}

.photocard-tile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.card-img-square {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    width: 100%;
}

/* Photocard images match the real card: 55x85 mm proportions and
   slightly rounded corners, like a physical card on the tile. */
.card-img-photocard {
    aspect-ratio: 55 / 85;
    object-fit: cover;
    width: 100%;
    border-radius: 10px;
}

.photocard-img-detail {
    border-radius: 1.45rem;
    overflow: hidden;
}

.photocard-meta-table {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.35rem;
    background:
        linear-gradient(145deg, rgba(22, 18, 34, 0.94), rgba(9, 8, 15, 0.9)) padding-box,
        var(--metal-border) border-box;
    color: var(--ink);
    overflow: hidden;
}

.photocard-meta-table th,
.photocard-meta-table td {
    padding: 0.7rem 0.9rem;
    border-color: rgba(255, 255, 255, 0.08);
    background: transparent !important;
    vertical-align: middle;
}

.photocard-meta-table tr:last-child th,
.photocard-meta-table tr:last-child td {
    border-bottom: 0;
}

.photocard-meta-icon {
    width: 3.2rem;
}

.photocard-meta-icon svg {
    display: block;
    width: 2rem;
    height: 2rem;
    padding: 0.42rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.85rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 79, 159, 0.11)),
        rgba(255, 255, 255, 0.05);
    fill: none;
    stroke: #ffe8f3;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(255, 79, 159, 0.36));
}

/* Group tiles on the groups list: landscape, fits a full group shot. */
.card-img-group,
.placeholder-img.card-img-group {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

.circle-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.placeholder-img {
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(255, 92, 168, 0.1));
    color: #8d93a5;
    font-size: 2rem;
}

/* ---- Forms / filter panel ---- */

.panel {
    border: 1px solid transparent;
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(24, 19, 36, 0.82), rgba(9, 8, 15, 0.86)) padding-box,
        var(--metal-border) border-box;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.form-control,
.form-select {
    border-radius: 0.22rem;
    background-color: rgba(5, 5, 9, 0.62);
    border-color: var(--soft-border);
    color: var(--ink);
}

.form-control::placeholder {
    color: rgba(247, 243, 255, 0.52);
}

.form-select option {
    background: #110d1a;
    color: #f7f3ff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    background-color: rgba(9, 8, 15, 0.88);
    color: var(--ink);
    box-shadow:
        0 0 0 0.18rem rgba(161, 109, 255, 0.18),
        0 0 22px rgba(255, 79, 159, 0.12);
}

.flash-messages {
    position: fixed;
    top: 5rem;
    left: 50%;
    z-index: 1080;
    width: min(34rem, calc(100vw - 2rem));
    transform: translateX(-50%);
    pointer-events: none;
}

.flash-messages .alert {
    pointer-events: auto;
    box-shadow: var(--shadow-lg);
}

.gallery-filter {
    position: relative;
}

.gallery-filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 0.6rem;
    align-items: center;
}

.gallery-filter-search .form-control {
    height: 2.55rem;
    border-radius: 999px;
    padding-inline: 1rem;
}

.gallery-filter-toggle {
    position: relative;
    border-radius: 999px;
    white-space: nowrap;
}

.gallery-filter-dot {
    position: absolute;
    top: 0.45rem;
    right: 0.5rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--accent-2);
    box-shadow: 0 0 0 2px rgba(5, 5, 9, 0.9), 0 0 16px rgba(255, 79, 159, 0.5);
}

.gallery-filter-panel {
    position: relative;
    z-index: 5;
}

.gallery-filter-panel .form-label {
    color: rgba(247, 243, 255, 0.72);
    font-weight: 600;
}

.filter-select {
    position: relative;
}

.filter-select-button {
    width: 100%;
    height: 2.55rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--soft-border);
    border-radius: 0.22rem;
    background: rgba(5, 5, 9, 0.62);
    color: var(--ink);
    font: inherit;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-select-button::after {
    content: "";
    flex: none;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid rgba(247, 243, 255, 0.72);
    border-bottom: 2px solid rgba(247, 243, 255, 0.72);
    transform: rotate(45deg) translateY(-2px);
}

.filter-select-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-select-button:focus {
    border-color: var(--accent);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(124, 92, 255, 0.15);
}

.filter-select-button:disabled {
    color: rgba(247, 243, 255, 0.34);
    background: rgba(255, 255, 255, 0.04);
    cursor: not-allowed;
}

.filter-select-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 20;
    display: none;
    max-height: 16rem;
    overflow-y: auto;
    padding: 0.35rem;
    border: 1px solid var(--soft-border);
    border-radius: 0.35rem;
    background: rgba(12, 10, 20, 0.96);
    box-shadow: var(--shadow-lg);
}

.filter-select.is-open .filter-select-menu {
    display: grid;
    gap: 0.15rem;
}

.filter-select-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.15rem;
    padding: 0.35rem 0.45rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.92rem;
}

.filter-select-option:hover {
    background: rgba(255, 79, 159, 0.14);
}

.filter-select-option input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--accent);
}

.filter-select-option span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-select-empty {
    padding: 0.55rem 0.65rem;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 767.98px) {
    .gallery-filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-filter-search {
        grid-column: 1 / -1;
    }
}

/* ---- MEOVV single-group experience ---- */

.page-title-light {
    color: var(--ink);
}

.meovv-kicker {
    color: var(--accent-3);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.meovv-hero,
.meovv-group-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    background:
        linear-gradient(135deg, rgba(255, 79, 159, 0.16), rgba(56, 214, 194, 0.08)),
        linear-gradient(145deg, #171722, #11111a 62%, #21162a);
    color: #fff;
    box-shadow: 0 18px 46px rgba(12, 11, 18, 0.28);
}

.meovv-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.meovv-hero::before,
.meovv-group-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(115deg, transparent 0, #000 36%, transparent 100%);
    opacity: 0.45;
    pointer-events: none;
}

.meovv-hero-copy,
.meovv-group-copy,
.meovv-hero-visual,
.meovv-group-media,
.meovv-hero-stats {
    position: relative;
    z-index: 1;
}

.meovv-hero-title {
    max-width: 12ch;
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 5.4rem);
    line-height: 0.92;
    font-weight: 800;
    letter-spacing: 0;
}

.meovv-hero-text {
    max-width: 38rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.76);
}

.meovv-hero-visual {
    min-height: 14rem;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.meovv-hero-visual img,
.meovv-group-media img {
    width: 100%;
    height: 100%;
    min-height: 14rem;
    object-fit: cover;
    border-radius: 1rem;
}

.meovv-cat-signal {
    display: flex;
    gap: clamp(1.5rem, 6vw, 3rem);
    align-items: center;
    justify-content: center;
}

.meovv-cat-signal span {
    width: clamp(4.5rem, 13vw, 7.5rem);
    height: clamp(7rem, 18vw, 11rem);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, var(--night) 0 18%, transparent 19%),
        linear-gradient(135deg, var(--accent-3), var(--accent-2));
    box-shadow: 0 0 32px rgba(56, 214, 194, 0.32);
    transform: rotate(14deg);
}

.meovv-cat-signal span:nth-child(2) {
    transform: rotate(-14deg);
}

.meovv-hero {
    min-height: clamp(32rem, 72vh, 45rem);
    grid-template-columns: minmax(0, 0.92fr) minmax(20rem, 0.72fr);
    align-items: center;
    padding: clamp(1.4rem, 5vw, 4rem);
    border: 1px solid rgba(230, 218, 255, 0.18);
    border-radius: 1.4rem;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 79, 159, 0.24), transparent 22rem),
        radial-gradient(circle at 78% 18%, rgba(56, 214, 194, 0.12), transparent 18rem),
        linear-gradient(122deg, rgba(255, 47, 143, 0.16), transparent 38%),
        linear-gradient(18deg, rgba(94, 15, 48, 0.54), transparent 39%),
        linear-gradient(145deg, #020204 0, #0d0b14 38%, #211327 73%, #040407 100%);
    box-shadow:
        0 26px 70px rgba(7, 5, 12, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    isolation: isolate;
}

.meovv-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(103deg, transparent 0 26px, rgba(255, 255, 255, 0.05) 27px, transparent 29px),
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.14) 1px, transparent 0),
        radial-gradient(circle at 22% 24%, rgba(255, 47, 143, 0.18), transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(190, 197, 210, 0.14), transparent 24%),
        radial-gradient(circle at 56% 102%, rgba(92, 42, 130, 0.4), transparent 38%);
    background-size: auto, 5px 5px, auto, auto, auto;
    opacity: 0.8;
    pointer-events: none;
}

.meovv-hero::after {
    content: "";
    position: absolute;
    inset: -12%;
    background:
        radial-gradient(ellipse at 74% 45%, rgba(0, 0, 0, 0.45) 0 6%, transparent 7%),
        linear-gradient(90deg, transparent 0 12%, rgba(255, 255, 255, 0.045) 12.4%, transparent 12.8%),
        repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 4px);
    mix-blend-mode: screen;
    opacity: 0.22;
    pointer-events: none;
}

.meovv-hero-copy {
    position: relative;
    max-width: 48rem;
}

.meovv-hero-title {
    position: relative;
    isolation: isolate;
    max-width: 11ch;
    font-size: 6.8rem;
    line-height: 0.86;
    text-transform: uppercase;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.24),
        0 0 30px rgba(255, 79, 159, 0.3),
        0 0 80px rgba(161, 109, 255, 0.18);
}

.meovv-hero-text {
    max-width: 34rem;
    color: rgba(245, 242, 255, 0.74);
    font-weight: 600;
}

.meovv-hero .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.meovv-hero-scratch,
.meovv-hero-paw,
.meovv-hero-cat-shadow {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.meovv-hero-scratch {
    top: 5%;
    right: 4%;
    width: 15rem;
    height: 11.5rem;
    background: url("../img/claw-scratches.svg") center / contain no-repeat;
    opacity: 0.62;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 22px rgba(255, 79, 159, 0.28));
    animation: meovv-claw-reveal 6.5s ease-in-out infinite;
}

.meovv-hero-paw {
    width: var(--paw-size, 4.6rem);
    height: var(--paw-size, 4.6rem);
    background: url("../img/paw-print.svg") center / contain no-repeat;
    opacity: var(--paw-opacity, 0.24);
    filter: blur(0.1px) drop-shadow(0 0 18px rgba(255, 79, 159, 0.18));
    transform: rotate(var(--paw-rotate, 0deg));
    animation: meovv-paw-float 8s ease-in-out infinite;
}

.meovv-hero-paw-one {
    --paw-rotate: -16deg;
    --paw-opacity: 0.26;
    left: 5%;
    bottom: 9%;
}

.meovv-hero-paw-two {
    --paw-size: 3.5rem;
    --paw-rotate: 18deg;
    --paw-opacity: 0.22;
    right: 31%;
    bottom: 23%;
    animation-delay: -2.2s;
}

.meovv-hero-paw-three {
    --paw-size: 4rem;
    --paw-rotate: 9deg;
    --paw-opacity: 0.18;
    left: 41%;
    top: 12%;
    animation-delay: -4.4s;
}

.meovv-hero-paw-four {
    --paw-size: 3rem;
    --paw-rotate: -24deg;
    --paw-opacity: 0.2;
    right: 8%;
    top: 39%;
    animation-delay: -1.3s;
}

.meovv-hero-paw-five {
    --paw-size: 3.4rem;
    --paw-rotate: 14deg;
    --paw-opacity: 0.16;
    left: 22%;
    bottom: 35%;
    animation-delay: -5.6s;
}

.meovv-hero-cat-shadow {
    right: 17%;
    bottom: 5%;
    width: 16rem;
    height: 13rem;
    background: url("../img/cat-shadow.svg") center / contain no-repeat;
    opacity: 0.2;
    filter: blur(1.4px);
    animation: meovv-float-shadow 10s ease-in-out infinite;
}

.meovv-hero-visual {
    min-height: clamp(15rem, 34vw, 25rem);
    width: min(100%, 34rem);
    justify-self: end;
    overflow: hidden;
    border-radius: 1.15rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
        linear-gradient(145deg, rgba(76, 16, 63, 0.82), rgba(7, 7, 13, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 20px 46px rgba(0, 0, 0, 0.32);
}

.meovv-hero-visual::before {
    content: "";
    position: absolute;
    inset: 15% 9%;
    border-radius: 46% 54% 42% 50%;
    background:
        linear-gradient(145deg, rgba(0, 0, 0, 0.94), rgba(38, 20, 45, 0.8)),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 52%);
    clip-path: polygon(12% 45%, 24% 9%, 39% 32%, 52% 28%, 68% 9%, 80% 46%, 72% 82%, 49% 91%, 24% 80%);
    opacity: 0.9;
    filter: drop-shadow(0 0 26px rgba(255, 79, 159, 0.28));
}

.meovv-hero-visual:has(img)::before,
.meovv-hero-visual:has(img)::after {
    display: none;
}

.meovv-hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(116deg, transparent 0 58%, rgba(255, 255, 255, 0.22) 59%, transparent 60%),
        linear-gradient(128deg, transparent 0 65%, rgba(255, 47, 143, 0.28) 66%, transparent 67%),
        linear-gradient(140deg, transparent 0 72%, rgba(196, 22, 80, 0.38) 73%, transparent 74%);
    opacity: 0.8;
}

.meovv-hero-visual img {
    position: relative;
    z-index: 1;
    opacity: 1;
    mix-blend-mode: normal;
    filter: none;
    object-fit: cover;
}

.meovv-cat-signal {
    position: relative;
    z-index: 1;
}

.meovv-cat-signal::before,
.meovv-cat-signal::after {
    content: "";
    width: clamp(4.5rem, 12vw, 7.5rem);
    height: clamp(7rem, 18vw, 11rem);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #050509 0 18%, transparent 19%),
        linear-gradient(135deg, #f5f2ff, #8f839d 52%, #25172f);
    box-shadow: 0 0 24px rgba(255, 79, 159, 0.18);
}

.meovv-cat-signal span {
    display: none;
}

.meovv-hero-stats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.meovv-stat-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.meovv-stat-card summary {
    min-height: 5.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.9rem 1rem;
    cursor: pointer;
    list-style: none;
}

.meovv-stat-card summary::-webkit-details-marker {
    display: none;
}

.meovv-stat-card summary::after {
    content: "+";
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 800;
}

.meovv-stat-card[open] summary::after {
    content: "-";
}

.meovv-stat-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0 1rem 1rem;
}

.meovv-stat-value,
.meovv-stat-label {
    display: block;
}

.meovv-stat-value {
    font-size: 1.7rem;
    font-weight: 800;
}

.meovv-stat-label {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.meovv-hero-chip,
.meovv-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.2rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.meovv-hero-chip:hover,
.meovv-hero-link:hover {
    border-color: rgba(255, 79, 159, 0.58);
    color: #fff;
}

.meovv-hero-chip small {
    color: rgba(255, 255, 255, 0.58);
    font-weight: 700;
}

.meovv-index-panel {
    border: 1px solid rgba(25, 23, 34, 0.08);
}

.meovv-chip-grid,
.meovv-release-list {
    display: grid;
    gap: 0.55rem;
}

.meovv-chip-grid {
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
}

.meovv-chip,
.meovv-release {
    min-height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(25, 23, 34, 0.12);
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(141, 92, 255, 0.08), rgba(56, 214, 194, 0.05));
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.meovv-chip:hover,
.meovv-release:hover {
    border-color: rgba(141, 92, 255, 0.45);
    color: var(--accent);
}

.meovv-release small {
    color: var(--muted);
    font-weight: 700;
}

.meovv-release-list.compact {
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.meovv-group-hero {
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
    padding: clamp(1rem, 2.4vw, 1.35rem);
}

.meovv-group-media {
    min-height: 22rem;
}

.meovv-group-copy {
    align-self: center;
    padding: clamp(0.5rem, 2vw, 1rem);
}

.meovv-group-copy h1 {
    margin: 0;
    font-size: clamp(2.5rem, 8vw, 5.8rem);
    line-height: 0.9;
    font-weight: 800;
    letter-spacing: 0;
}

.meovv-group-description {
    max-width: 44rem;
    color: rgba(255, 255, 255, 0.78);
}

.meovv-group-hero .text-muted {
    color: rgba(255, 255, 255, 0.62) !important;
}

.meovv-group-hero .meovv-chip,
.meovv-group-hero .meovv-release {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.meovv-group-hero .meovv-release small {
    color: rgba(255, 255, 255, 0.62);
}

@keyframes meovv-float-shadow {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(-2deg);
    }

    50% {
        transform: translate3d(0.45rem, -0.75rem, 0) rotate(2deg);
    }
}

@keyframes meovv-paw-float {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(var(--paw-rotate, 0deg));
    }

    50% {
        transform: translate3d(0.35rem, -0.55rem, 0) rotate(calc(var(--paw-rotate, 0deg) + 2deg));
    }
}

@keyframes meovv-claw-reveal {
    0%,
    28% {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }

    43%,
    78% {
        clip-path: inset(0 0 0 0);
        opacity: 0.7;
    }

    100% {
        clip-path: inset(0 0 0 0);
        opacity: 0.28;
    }
}

@media (max-width: 991.98px) {
    .meovv-hero,
    .meovv-group-hero {
        grid-template-columns: 1fr;
    }

    .meovv-hero-title {
        font-size: 4.9rem;
    }

    .meovv-group-media {
        min-height: 16rem;
    }
}

@media (max-width: 575.98px) {
    .meovv-hero {
        min-height: auto;
    }

    .meovv-hero-title {
        font-size: 3.2rem;
    }

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

    .meovv-hero-scratch {
        width: 10rem;
        height: 8rem;
        right: -1.5rem;
    }

    .meovv-hero-cat-shadow {
        width: 11rem;
        right: -2rem;
        bottom: 18%;
    }
}

/* ---- Virtual binder ---- */

.binder-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 1rem;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.binder-controls > .form-select {
    width: auto;
    min-width: 9.25rem;
}

.binder-add-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.binder-add-page .form-select {
    min-width: 11rem;
}

.binder-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.binder-stat {
    padding: 1rem;
}

.binder-stat span,
.binder-stat small {
    display: block;
}

.binder-stat span {
    font-size: 1.4rem;
    font-weight: 800;
}

.binder-stat small {
    color: var(--muted);
    font-weight: 600;
}

.binder-pages {
    display: grid;
    gap: 1rem;
}

.binder-carousel {
    display: grid;
    gap: 1rem;
}

.binder-carousel-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.binder-carousel-button {
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(17, 17, 26, 0.88);
    color: #fff;
    box-shadow: var(--shadow-sm);
    font-size: 1.5rem;
    line-height: 1;
}

.binder-carousel-button:hover,
.binder-carousel-button:focus {
    background: var(--accent);
    outline: 0;
}

.binder-carousel-button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.binder-carousel-count {
    min-width: 4.25rem;
    text-align: center;
    color: var(--muted);
    font-weight: 800;
}

.binder-page[hidden] {
    display: none !important;
}

.binder-page {
    border: 1px solid rgba(25, 23, 34, 0.08);
}

.binder-sheet {
    display: grid;
    grid-template-columns: repeat(var(--binder-columns, 2), minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.75rem;
    border-radius: 1rem;
    background:
        linear-gradient(135deg, rgba(17, 17, 26, 0.96), rgba(33, 22, 42, 0.96)),
        var(--night);
}

.binder-sheet[data-binder-layout="center-5"] {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.binder-sheet[data-binder-layout="center-5"] .binder-slot {
    grid-column: span 2;
}

.binder-sheet[data-binder-layout="center-5"] .binder-slot:nth-child(1) {
    grid-column: 2 / span 2;
}

.binder-sheet[data-binder-layout="center-5"] .binder-slot:nth-child(2) {
    grid-column: 4 / span 2;
}

.binder-sheet[data-binder-layout="center-5"] .binder-slot:nth-child(n+3) {
    grid-column: span 2;
}

.binder-sheet[data-binder-background="pearl"] {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(232, 227, 242, 0.92)),
        #f7f4fb;
}

.binder-sheet[data-binder-background="pink"] {
    background:
        linear-gradient(135deg, rgba(255, 79, 159, 0.78), rgba(25, 23, 34, 0.88)),
        #2a1424;
}

.binder-sheet[data-binder-background="mint"] {
    background:
        linear-gradient(135deg, rgba(56, 214, 194, 0.78), rgba(17, 17, 26, 0.9)),
        #10211f;
}

.binder-sheet[data-binder-background="pearl"] .binder-slot {
    border-color: rgba(25, 23, 34, 0.14);
    background: rgba(25, 23, 34, 0.05);
    color: var(--ink);
}

.binder-sheet[data-binder-background="pearl"] .binder-slot-number {
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink);
}

.binder-sheet[data-binder-background="pearl"] .binder-empty-copy {
    color: var(--muted);
}

.binder-slot {
    position: relative;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 55 / 85;
    display: grid;
    align-content: center;
    gap: 0.5rem;
    padding: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    overflow: hidden;
}

.binder-slot.is-filled {
    align-content: stretch;
    grid-template-rows: 1fr;
}

.binder-slot-number {
    position: absolute;
    top: 0.45rem;
    left: 0.45rem;
    z-index: 2;
    min-width: 1.55rem;
    height: 1.55rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(17, 17, 26, 0.72);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.75rem;
    font-weight: 800;
}

.binder-slot-remove {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    z-index: 3;
}

.binder-slot-remove button {
    width: 1.7rem;
    height: 1.7rem;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(10, 9, 16, 0.72);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    font-weight: 800;
}

.binder-slot-remove button:hover,
.binder-slot-remove button:focus {
    background: rgba(255, 79, 159, 0.86);
    outline: 0;
}

.binder-card-link {
    min-width: 0;
    display: block;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    border-radius: 0.55rem;
}

.binder-card-link img {
    width: 100%;
    height: 100%;
    display: block;
    min-height: 0;
    object-fit: cover;
    border-radius: 0.55rem;
}

.binder-slot-form {
    display: grid;
    gap: 0.45rem;
}

.binder-slot-form .form-select {
    min-width: 0;
    font-size: 0.78rem;
}

.binder-empty-copy {
    display: grid;
    gap: 0.25rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
}

.binder-empty-copy small {
    font-size: 0.76rem;
}

@media (max-width: 767.98px) {
    .binder-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .binder-sheet {
        gap: 0.45rem;
        padding: 0.5rem;
    }

    .binder-slot {
        padding: 0.45rem;
    }
}

@media (max-width: 575.98px) {
    .binder-controls {
        width: 100%;
    }

    .binder-controls > .form-select {
        width: 100%;
    }

    .binder-add-page {
        width: 100%;
    }

    .binder-add-page .form-select {
        min-width: 0;
        flex: 1;
    }
}

/* ---- Collection progress ---- */

.album-progress-item {
    height: 100%;
    padding: 1rem;
    border: 1px solid rgba(31, 35, 48, 0.08);
    border-radius: 0.75rem;
    background: rgba(31, 35, 48, 0.02);
}

.album-progress-bar {
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(31, 35, 48, 0.08);
}

.album-progress-bar .progress-bar {
    background: var(--accent-gradient);
}

.album-progress-native {
    width: 100%;
    height: 0.65rem;
    display: block;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: rgba(31, 35, 48, 0.08);
    appearance: none;
}

.album-progress-native::-webkit-progress-bar {
    background: rgba(31, 35, 48, 0.08);
    border-radius: 999px;
}

.album-progress-native::-webkit-progress-value {
    background: var(--accent-gradient);
    border-radius: 999px;
}

.album-progress-native::-moz-progress-bar {
    background: var(--accent-gradient);
    border-radius: 999px;
}

.album-version-progress {
    display: grid;
    gap: 0.35rem;
}

.legacy-card-tools {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 0.75rem;
}

.legacy-card-tools > summary {
    cursor: pointer;
    width: fit-content;
    color: var(--muted);
    font-weight: 600;
}

.legacy-card-tools > summary:hover,
.legacy-card-tools > summary:focus {
    color: var(--ink);
}

.group-lore {
    overflow: hidden;
    border: 1px solid rgba(141, 92, 255, 0.18);
    background:
        linear-gradient(135deg, rgba(141, 92, 255, 0.08), rgba(56, 214, 194, 0.06)),
        #fff;
}

.group-lore-text {
    color: var(--muted);
    line-height: 1.7;
}

.group-lore-text p:last-child {
    margin-bottom: 0;
}

/* ---- Member profile ---- */

.badge-position {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.member-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
}

.fact {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.fact-icon {
    width: 42px;
    height: 42px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(255, 92, 168, 0.12));
    color: var(--accent);
}

.fact-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #8d93a5;
}

.fact-value {
    font-weight: 600;
}

/* ---- Pagination ---- */

.breadcrumb {
    width: fit-content;
    max-width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
}

:root[data-theme="dark"] .breadcrumb {
    background: rgba(24, 24, 33, 0.94);
}

.pagination .page-link {
    color: var(--accent);
    border-radius: 0.6rem;
    margin: 0 0.15rem;
    border-color: rgba(31, 35, 48, 0.1);
}

.pagination .page-item.disabled .page-link {
    color: #8d93a5;
}

/* ---- Login gate ---- */

.login-gate {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.07), rgba(255, 92, 168, 0.07));
    border: 1px dashed rgba(124, 92, 255, 0.35);
    border-radius: var(--radius);
}

/* ---- Market preview gate ---- */

.market-alert-note {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(124, 92, 255, 0.22);
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(255, 92, 168, 0.08));
}

.market-preview-gate {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    min-height: 420px;
}

.market-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    filter: blur(8px);
    transform: scale(1.02);
    opacity: 0.72;
    pointer-events: none;
    user-select: none;
}

.market-preview-card {
    min-height: 260px;
    padding: 0.85rem;
    border: 1px solid rgba(31, 35, 48, 0.1);
    border-radius: 0.75rem;
    background: #fafafa;
}

.market-preview-avatar,
.market-preview-time,
.market-preview-badges span,
.market-preview-text,
.market-preview-image,
.market-preview-lines span {
    display: block;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(124, 92, 255, 0.22), rgba(255, 92, 168, 0.18), rgba(31, 35, 48, 0.08));
}

.market-preview-avatar {
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 50%;
}

.market-preview-lines span:first-child {
    width: 70%;
    height: 0.75rem;
    margin-bottom: 0.45rem;
}

.market-preview-lines span:last-child {
    width: 46%;
    height: 0.6rem;
}

.market-preview-time {
    width: 2rem;
    height: 0.7rem;
}

.market-preview-badges {
    display: flex;
    gap: 0.4rem;
}

.market-preview-badges span {
    width: 4.5rem;
    height: 1.35rem;
}

.market-preview-text {
    height: 0.75rem;
    margin-bottom: 0.55rem;
}

.market-preview-image {
    height: 110px;
    border-radius: 0.6rem;
}

.market-preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(246, 246, 251, 0.72);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* ---- Market alert settings ---- */

.market-alert-filter {
    min-width: min(100%, 28rem);
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
}

.market-alert-members {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
}

/* ---- Saved market posts ---- */

.saved-market-list {
    display: grid;
    gap: 1rem;
}

.saved-market-post {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.9rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 79, 159, 0.06)),
        rgba(12, 10, 20, 0.92);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
}

.saved-market-text {
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.55;
}

.saved-market-post .text-bg-light {
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: var(--ink) !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.saved-market-member-badge {
    color: #ffb2d6;
    background: rgba(255, 79, 159, 0.14);
    border: 1px solid rgba(255, 139, 194, 0.28);
}

.saved-market-media {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
}

.saved-market-media img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.7rem;
    background: rgba(31, 35, 48, 0.08);
}

/* ---- Events ---- */

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: 1rem;
}

.event-card,
.event-detail {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 1rem;
    background:
        linear-gradient(145deg, rgba(22, 18, 34, 0.9), rgba(9, 8, 15, 0.92)) padding-box,
        var(--metal-border) border-box;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.event-card {
    padding: 1rem;
}

.event-card::before,
.event-detail::before {
    content: "";
    position: absolute;
    inset: -45% -18% auto auto;
    width: 18rem;
    height: 18rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 79, 159, 0.2), transparent 68%);
    pointer-events: none;
}

.event-card.is-featured {
    box-shadow:
        var(--shadow-lg),
        0 0 34px rgba(255, 79, 159, 0.16);
}

.event-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.event-type-badge,
.event-featured-badge,
.event-member-badge,
.event-meta-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 1.45rem;
    padding: 0.16rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.event-type-badge {
    border: 1px solid rgba(255, 79, 159, 0.36);
    background: rgba(255, 79, 159, 0.14);
    color: #ffb2d6;
}

.event-featured-badge {
    border: 1px solid rgba(56, 214, 194, 0.36);
    background: rgba(56, 214, 194, 0.12);
    color: #b5fff4;
}

.event-member-badge,
.event-meta-chip {
    border: 1px solid rgba(236, 228, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(247, 243, 255, 0.86);
}

.event-title-link {
    color: #fff;
    text-decoration: none;
}

.event-title-link:hover {
    color: #ffb2d6;
}

.event-description {
    color: rgba(247, 243, 255, 0.78);
    line-height: 1.6;
}

.event-description-large {
    max-width: 48rem;
}

.event-media-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    max-width: 34rem;
}

.event-media-grid[data-event-media-count="1"] {
    grid-template-columns: minmax(0, 1fr);
}

.event-media-grid a {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(236, 228, 255, 0.16);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.06);
}

.event-media-grid img {
    display: block;
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.event-media-grid[data-event-media-count="1"] img,
.event-media-grid-large img {
    height: auto;
    max-height: 34rem;
    object-fit: contain;
}

.event-media-grid-large {
    max-width: 46rem;
}

.event-countdown {
    min-width: 9rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(236, 228, 255, 0.2);
    border-radius: 0.35rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 79, 159, 0.08)),
        rgba(5, 5, 9, 0.62);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 800;
    text-align: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 18px rgba(255, 79, 159, 0.12);
}

.event-countdown[data-event-state="live"] {
    border-color: rgba(56, 214, 194, 0.46);
    color: #b5fff4;
    box-shadow: 0 0 24px rgba(56, 214, 194, 0.14);
}

.event-countdown[data-event-state="past"] {
    opacity: 0.64;
}

.event-time {
    position: relative;
    z-index: 1;
}

/* ---- Empty states & footer ---- */

.empty-state {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.empty-state-icon {
    font-size: 2.5rem;
}

.site-footer {
    background: var(--night);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.82);
}

.site-footer .text-muted,
.site-footer .link-secondary {
    color: rgba(255, 255, 255, 0.62) !important;
}

.site-footer .link-secondary:hover {
    color: #fff !important;
}
