:root {
    --bg: #fafafa;
    --text: #090909;
    --muted: #727272;
    --line: #e7e7e7;
    --panel: #ffffff;
    --max: 1440px;
    --gallery-max: 1260px;
    --gutter: clamp(20px, 4vw, 68px);
}

* {
    box-sizing: border-box;
}

*:focus,
*:focus-visible {
    outline: 0;
}

* {
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Outfit, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
}

.home,
.gallery-page {
    max-width: var(--max);
    margin: 0 auto;
    padding: 20px var(--gutter) 64px;
}

.masonry {
    position: relative;
    max-width: var(--gallery-max);
    margin: 0 auto;
}

.stream-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--gallery-max);
    margin: 0 auto 20px;
    color: #090909;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.stream-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 4px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.stream-home-link {
    color: inherit;
}

.stream-pill.is-online {
    background: #15a800;
}

.stream-pill.is-offline {
    background: #999999;
}

.metro-hub {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(200px, auto));
    gap: 12px;
    max-width: var(--gallery-max);
    margin: 0 auto 12px;
}

.metro-tile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 148px;
    padding: 28px;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    overflow: hidden;
}

.metro-large {
    grid-column: 3 / span 2;
    grid-row: 1 / span 2;
}

.metro-wide {
    grid-column: 1 / span 2;
}

.metro-twitter {
    grid-row: 1;
}

.metro-twitch {
    grid-row: 2;
}

.metro-onlyfans {
    background: #21b8ff;
}

.metro-twitter {
    background: #000000;
}

.metro-twitch {
    background: #7c3cff;
}

.metro-stripchat {
    grid-column: 5;
    grid-row: 1;
    background: #ff4f6d;
}

.metro-telegram {
    grid-column: 6;
    grid-row: 1;
    background: #247fa3;
}

.metro-throne {
    grid-column: 5;
    grid-row: 2;
    background: #8b8cff;
}

.metro-donate {
    grid-column: 6;
    grid-row: 2;
    background: #0070ba;
}

.related-galleries {
    margin-top: 12px;
}

.masonry-item {
    position: relative;
    display: block;
    width: 100%;
    min-height: 200px;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: hidden;
}

.masonry-ready {
    min-height: 200px;
}

.masonry-item > img,
.showcase-image,
.showcase-image img {
    height: 100%;
}

.masonry-item > img,
.showcase-image > img {
    object-fit: cover;
    background: #efefef;
    transition: transform 420ms ease, filter 420ms ease;
}

.showcase-image {
    display: block;
}

.showcase-card:hover .showcase-image > img,
.masonry-item:hover > img {
    filter: brightness(0.96);
    transform: scale(1.025);
}

.external-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

.external-badge img {
    width: 18px;
    height: 18px;
    background: transparent;
    object-fit: contain;
    opacity: 1;
    transform: none;
    filter: none;
}

.promo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.promo-onlyfans {
    background: #21b8ff;
}

.promo-twitch {
    background: #7c3cff;
}

.promo-twitter {
    background: #000000;
}

.social-dock {
    --dock-icon: 50px;
    --dock-gap: 18px;
    --dock-width: calc(var(--dock-icon) * 6 + var(--dock-gap) * 5);
    position: fixed;
    left: 50%;
    bottom: 32px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--dock-gap);
    width: min(var(--dock-width), calc(100vw - 48px));
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 120%);
    transition: opacity 260ms ease, transform 320ms ease;
}

.social-dock.is-visible,
.social-dock.is-always {
    pointer-events: auto;
    opacity: 1;
    transform: translate(-50%, 0);
}

.social-dock.is-hidden-mobile {
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 120%);
}

.dock-onlyfans {
    display: block;
    width: 100%;
    border-radius: 999px;
    background: #21b8ff;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

.dock-onlyfans img {
    display: block;
    width: 100%;
    height: auto;
    background: transparent;
}

.dock-top {
    display: flex;
    align-items: center;
    gap: var(--dock-gap);
    width: 100%;
}

.dock-return {
    display: flex;
    flex: 0 0 var(--dock-icon);
    align-items: center;
    justify-content: center;
    width: var(--dock-icon);
    height: var(--dock-icon);
    border-radius: 999px;
    background: #f07c12;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.dock-return img {
    width: var(--dock-icon);
    height: var(--dock-icon);
    object-fit: contain;
}

.social-dock.is-internal .dock-onlyfans {
    flex: 0 0 calc(var(--dock-icon) * 5 + var(--dock-gap) * 4);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.dock-icons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--dock-gap);
    width: 100%;
}

.dock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--dock-icon);
    height: var(--dock-icon);
    border-radius: 999px;
    background: transparent;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.dock-icon img {
    width: var(--dock-icon);
    height: var(--dock-icon);
    object-fit: contain;
}

.tile-panoramic {
    aspect-ratio: 2 / 1;
}

.tile-short {
    aspect-ratio: 16 / 9;
}

.tile-wide {
    aspect-ratio: 3 / 2;
}

.tile-portrait {
    aspect-ratio: 3 / 4;
}

.tile-tall {
    aspect-ratio: 2 / 3;
}

.tile-large {
    aspect-ratio: 1 / 1;
}

.image-open {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.empty-state {
    max-width: 680px;
    min-height: 160px;
    margin: 0 auto;
    padding: 0;
}

.lightbox {
    width: min(92vw, 1280px);
    max-height: 92vh;
    padding: 0;
    border: 0;
    background: transparent;
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.84);
}

.lightbox img {
    width: 100%;
    max-height: 92vh;
    object-fit: contain;
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    z-index: 2;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    font-size: 44px;
    line-height: 0.8;
    cursor: pointer;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 22px;
}

.lightbox-next {
    right: 22px;
}

@media (min-width: 621px) and (max-width: 1180px) {
    .metro-hub {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: repeat(3, minmax(180px, auto));
    }

    .metro-large {
        grid-column: 3 / span 2;
        grid-row: 1 / span 2;
    }

    .metro-wide {
        grid-column: 1 / span 2;
    }

    .metro-twitter {
        grid-row: 1;
    }

    .metro-twitch {
        grid-row: 2;
    }

    .metro-stripchat {
        grid-column: 1;
        grid-row: 3;
    }

    .metro-telegram {
        grid-column: 2;
        grid-row: 3;
    }

    .metro-throne {
        grid-column: 3;
        grid-row: 3;
    }

    .metro-donate {
        grid-column: 4;
        grid-row: 3;
    }

    .metro-tile {
        font-size: clamp(28px, 4.5vw, 40px);
    }

    .metro-stripchat,
    .metro-telegram,
    .metro-throne,
    .metro-donate {
        font-size: clamp(24px, 3.2vw, 34px);
    }
}

@media (max-width: 620px) {
    .home,
    .gallery-page {
        padding-top: 20px;
        padding-right: 0;
        padding-left: 0;
    }

    .masonry {
        max-width: none;
    }

    .stream-bar {
        padding: 0 12px;
        margin-bottom: 20px;
        font-size: 16px;
    }

    .stream-pill {
        min-height: 24px;
        padding: 5px 9px;
        font-size: 13px;
    }

    .metro-hub {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: calc((100vw - 12px) / 2);
        grid-template-rows: none;
        max-width: none;
        margin-bottom: 12px;
    }

    .metro-tile {
        min-height: 0;
        padding: 12px;
        font-size: clamp(32px, 11vw, 48px);
    }

    .metro-large {
        grid-column: 1 / -1;
        grid-row: 3 / span 2;
    }

    .metro-wide {
        grid-column: 1 / -1;
    }

    .metro-twitter {
        grid-row: 1;
    }

    .metro-twitch {
        grid-row: 2;
    }

    .metro-stripchat {
        grid-column: 1;
        grid-row: 5;
    }

    .metro-telegram {
        grid-column: 2;
        grid-row: 5;
    }

    .metro-throne {
        grid-column: 1;
        grid-row: 6;
    }

    .metro-donate {
        grid-column: 2;
        grid-row: 6;
    }

    .masonry-item,
    .tile-panoramic,
    .tile-short,
    .tile-wide,
    .tile-portrait,
    .tile-tall,
    .tile-large {
        aspect-ratio: auto;
        height: auto;
        min-height: 0;
        margin-bottom: 12px;
    }

    .masonry-item > img,
    .showcase-image,
    .showcase-image img {
        height: auto;
    }

    .masonry-item > img {
        object-fit: contain;
    }

    .promo-card {
        min-height: calc((100vw - 12px) / 2);
        font-size: clamp(32px, 11vw, 48px);
    }

    .promo-onlyfans {
        aspect-ratio: 1 / 1;
    }

    .promo-twitch,
    .promo-twitter {
        aspect-ratio: 2 / 1;
    }

    .image-open,
    .lightbox-nav,
    .lightbox {
        display: none;
    }

    .social-dock {
        --dock-icon: 48px;
        --dock-gap: max(4px, calc((100vw - 48px - var(--dock-icon) * 6) / 5));
        bottom: 32px;
        width: min(var(--dock-width), calc(100vw - 48px));
    }

    .dock-onlyfans {
        width: 100%;
    }

    .dock-onlyfans img {
        width: 100%;
    }

    .social-dock.is-internal .dock-onlyfans {
        flex-basis: calc(var(--dock-icon) * 5 + var(--dock-gap) * 4);
        width: auto;
        max-width: none;
    }

    .dock-icons {
        width: 100%;
        justify-content: space-between;
    }

}
