:root {
    --page-bg: radial-gradient(circle at top, #1f365c 0%, #08101c 52%, #04070d 100%);
    --text: #f2f5ff;
    --muted: #b8c3df;
    --card-color: #74d4ff;
    --card-opacity: 1;
    --profile-card-width: 440px;
    --profile-card-height: 610px;
    --profile-card-radius: 19px;
    --profile-card-glow: 0 0 0 rgba(0, 0, 0, 0);
    --profile-card-backdrop-blur: 10px;
    --profile-card-outline-opacity: 1;
    --profile-card-outline-opacity-percent: 100%;
    --profile-photo-outline-opacity: 1;
    --profile-avatar-radius: 50%;
    --profile-background-blur: 0px;
    --profile-background-scale: 1;
    --profile-background-scrim-opacity: 1;
    --chip-bg: rgba(255, 255, 255, 0.12);
    --chip-hover: rgba(255, 255, 255, 0.2);
    --theme-body-bg:
        radial-gradient(circle at 15% 20%, rgba(79, 180, 255, 0.2), transparent 34%),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(5, 10, 18, 0.96), rgba(4, 8, 15, 1));
    --theme-loader-bg:
        linear-gradient(180deg, rgba(5, 10, 18, 0.96), rgba(4, 8, 15, 1)),
        radial-gradient(circle at 15% 20%, rgba(79, 180, 255, 0.2), transparent 34%),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.08), transparent 24%);
    --theme-page-scrim:
        linear-gradient(180deg, rgba(5, 10, 18, 0.36), rgba(4, 8, 15, 0.82)),
        radial-gradient(circle at 15% 20%, rgba(79, 180, 255, 0.2), transparent 34%),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.08), transparent 24%);
    --theme-card-bg: rgba(7, 17, 29, var(--card-opacity));
    --theme-card-border: color-mix(in srgb, var(--card-color), white 30%);
    --theme-card-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
    --theme-card-texture: linear-gradient(transparent, transparent);
    --theme-card-texture-opacity: 0;
    --theme-card-ribbon: transparent;
    --theme-photo-frame: linear-gradient(135deg, var(--card-color), rgba(255, 255, 255, 0.88));
    --theme-control-bg:
        linear-gradient(135deg, rgba(7, 17, 29, 0.9), rgba(7, 17, 29, 0.72)),
        radial-gradient(circle at top right, color-mix(in srgb, var(--card-color), white 10%) 0%, transparent 58%);
    --theme-control-border: rgba(255, 255, 255, 0.16);
    --theme-ambient-one: rgba(92, 173, 255, 0.35);
    --theme-ambient-two: rgba(90, 255, 212, 0.18);
    user-select: none;
}

:root[data-profile-theme="aurora"] {
    --page-bg: linear-gradient(135deg, #03151a 0%, #062524 52%, #15182c 100%);
    --theme-body-bg:
        linear-gradient(135deg, rgba(3, 21, 26, 0.98), rgba(6, 37, 36, 0.96) 43%, rgba(21, 24, 44, 0.98)),
        linear-gradient(90deg, rgba(90, 255, 214, 0.16), rgba(255, 216, 117, 0.12));
    --theme-loader-bg: var(--theme-body-bg);
    --theme-page-scrim:
        linear-gradient(180deg, rgba(3, 21, 26, 0.26), rgba(4, 12, 18, 0.84)),
        linear-gradient(120deg, rgba(124, 247, 222, 0.16), transparent 45%, rgba(255, 217, 120, 0.1));
    --theme-card-bg: linear-gradient(160deg, rgba(6, 25, 32, var(--card-opacity)), rgba(8, 18, 34, var(--card-opacity)));
    --theme-card-border: color-mix(in srgb, var(--card-color), #9fffe7 36%);
    --theme-card-shadow: 0 26px 68px rgba(0, 28, 30, 0.52);
    --theme-card-ribbon: linear-gradient(90deg, #7cf7de, var(--card-color), #ffd978);
    --theme-photo-frame: linear-gradient(135deg, #7cf7de, var(--card-color), #ffd978);
    --chip-bg: rgba(118, 249, 220, 0.12);
    --chip-hover: rgba(255, 217, 120, 0.18);
    --theme-control-border: rgba(126, 255, 224, 0.22);
    --theme-ambient-one: rgba(124, 247, 222, 0.28);
    --theme-ambient-two: rgba(255, 217, 120, 0.18);
}

:root[data-profile-theme="sunset"] {
    --page-bg: linear-gradient(140deg, #1d0a17 0%, #411224 52%, #0b1a27 100%);
    --theme-body-bg:
        linear-gradient(140deg, rgba(29, 10, 23, 0.98), rgba(65, 18, 36, 0.94) 46%, rgba(11, 26, 39, 0.98)),
        linear-gradient(90deg, rgba(255, 108, 136, 0.14), rgba(255, 219, 118, 0.15));
    --theme-loader-bg: var(--theme-body-bg);
    --theme-page-scrim:
        linear-gradient(180deg, rgba(29, 10, 23, 0.28), rgba(7, 12, 20, 0.84)),
        linear-gradient(120deg, rgba(255, 111, 145, 0.14), transparent 46%, rgba(255, 209, 102, 0.12));
    --theme-card-bg: linear-gradient(160deg, rgba(31, 12, 29, var(--card-opacity)), rgba(13, 20, 34, var(--card-opacity)));
    --theme-card-border: color-mix(in srgb, var(--card-color), #ff9b87 34%);
    --theme-card-shadow: 0 26px 68px rgba(45, 9, 24, 0.56);
    --theme-card-ribbon: linear-gradient(90deg, #ff6f91, #ffd166, #5dd6d6);
    --theme-photo-frame: linear-gradient(135deg, #ff6f91, #ffd166, var(--card-color));
    --chip-bg: rgba(255, 128, 150, 0.13);
    --chip-hover: rgba(255, 209, 102, 0.18);
    --theme-control-border: rgba(255, 209, 102, 0.24);
    --theme-ambient-one: rgba(255, 111, 145, 0.24);
    --theme-ambient-two: rgba(255, 209, 102, 0.16);
}

:root[data-profile-theme="sakura"] {
    --page-bg: linear-gradient(145deg, #2b0d1f 0%, #521a37 50%, #141226 100%);
    --theme-body-bg:
        linear-gradient(145deg, rgba(43, 13, 31, 0.98), rgba(82, 26, 55, 0.95) 48%, rgba(20, 18, 38, 0.98)),
        linear-gradient(90deg, rgba(255, 151, 190, 0.18), rgba(194, 164, 255, 0.12));
    --theme-loader-bg: var(--theme-body-bg);
    --theme-page-scrim:
        linear-gradient(180deg, rgba(43, 13, 31, 0.28), rgba(10, 11, 22, 0.84)),
        linear-gradient(120deg, rgba(255, 159, 200, 0.14), transparent 46%, rgba(194, 164, 255, 0.1));
    --theme-card-bg: linear-gradient(160deg, rgba(48, 17, 39, var(--card-opacity)), rgba(21, 20, 38, var(--card-opacity)));
    --theme-card-border: color-mix(in srgb, var(--card-color), #ff9fc8 40%);
    --theme-card-shadow: 0 26px 68px rgba(45, 8, 32, 0.58);
    --theme-card-ribbon: linear-gradient(90deg, #ff9fc8, #ffd6e7, #c2a4ff);
    --theme-photo-frame: linear-gradient(135deg, #ff9fc8, #ffd6e7, var(--card-color));
    --chip-bg: rgba(255, 159, 200, 0.13);
    --chip-hover: rgba(255, 214, 231, 0.18);
    --theme-control-border: rgba(255, 159, 200, 0.25);
    --theme-ambient-one: rgba(255, 159, 200, 0.24);
    --theme-ambient-two: rgba(194, 164, 255, 0.16);
}

:root[data-profile-theme="mono"] {
    --page-bg: linear-gradient(180deg, #16181c 0%, #040507 100%);
    --theme-body-bg:
        linear-gradient(180deg, rgba(22, 24, 28, 0.98), rgba(4, 5, 7, 1)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(130, 255, 199, 0.08));
    --theme-loader-bg: var(--theme-body-bg);
    --theme-page-scrim:
        linear-gradient(180deg, rgba(22, 24, 28, 0.22), rgba(4, 5, 7, 0.86)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent);
    --theme-card-bg: linear-gradient(180deg, rgba(22, 24, 28, var(--card-opacity)), rgba(7, 8, 11, var(--card-opacity)));
    --theme-card-border: rgba(244, 248, 255, 0.42);
    --theme-card-shadow: 0 26px 68px rgba(0, 0, 0, 0.64);
    --theme-card-ribbon: linear-gradient(90deg, #f7fbff, var(--card-color), #111317);
    --theme-photo-frame: linear-gradient(135deg, #f7fbff, var(--card-color), #23262d);
    --chip-bg: rgba(255, 255, 255, 0.09);
    --chip-hover: rgba(255, 255, 255, 0.18);
    --theme-control-border: rgba(255, 255, 255, 0.22);
    --theme-ambient-one: rgba(255, 255, 255, 0.16);
    --theme-ambient-two: rgba(130, 255, 199, 0.12);
}

:root[data-profile-theme="prism"] {
    --page-bg: linear-gradient(135deg, #081223 0%, #0f1c1d 48%, #1c1123 100%);
    --theme-body-bg:
        linear-gradient(135deg, rgba(8, 18, 35, 0.98), rgba(15, 28, 29, 0.96) 45%, rgba(28, 17, 35, 0.98)),
        linear-gradient(90deg, rgba(255, 230, 92, 0.12), rgba(93, 214, 214, 0.14), rgba(255, 111, 145, 0.12));
    --theme-loader-bg: var(--theme-body-bg);
    --theme-page-scrim:
        linear-gradient(180deg, rgba(8, 18, 35, 0.28), rgba(6, 10, 18, 0.84)),
        linear-gradient(120deg, rgba(255, 230, 109, 0.12), transparent 34%, rgba(93, 214, 214, 0.12) 50%, transparent 68%, rgba(255, 111, 145, 0.1));
    --theme-card-bg: linear-gradient(160deg, rgba(9, 20, 33, var(--card-opacity)), rgba(15, 14, 28, var(--card-opacity)));
    --theme-card-border: color-mix(in srgb, var(--card-color), #ffe66d 30%);
    --theme-card-shadow: 0 26px 68px rgba(5, 18, 30, 0.56);
    --theme-card-ribbon: linear-gradient(90deg, #ffe66d, #5dd6d6, #ff6f91, var(--card-color));
    --theme-photo-frame: linear-gradient(135deg, #ffe66d, #5dd6d6, #ff6f91);
    --chip-bg: rgba(93, 214, 214, 0.12);
    --chip-hover: rgba(255, 230, 109, 0.16);
    --theme-control-border: rgba(93, 214, 214, 0.24);
    --theme-ambient-one: rgba(93, 214, 214, 0.22);
    --theme-ambient-two: rgba(255, 111, 145, 0.16);
}

:root[data-profile-theme="botanical"] {
    --page-bg: linear-gradient(145deg, #051a16 0%, #0c2c21 50%, #0d1219 100%);
    --theme-body-bg:
        linear-gradient(145deg, rgba(5, 26, 22, 0.98), rgba(12, 44, 33, 0.96) 48%, rgba(13, 18, 25, 0.98)),
        linear-gradient(90deg, rgba(151, 226, 137, 0.13), rgba(247, 215, 112, 0.11));
    --theme-loader-bg: var(--theme-body-bg);
    --theme-page-scrim:
        linear-gradient(180deg, rgba(5, 26, 22, 0.28), rgba(7, 12, 16, 0.84)),
        linear-gradient(120deg, rgba(151, 226, 137, 0.12), transparent 48%, rgba(247, 215, 112, 0.1));
    --theme-card-bg: linear-gradient(160deg, rgba(7, 31, 25, var(--card-opacity)), rgba(10, 19, 25, var(--card-opacity)));
    --theme-card-border: color-mix(in srgb, var(--card-color), #97e289 34%);
    --theme-card-shadow: 0 26px 68px rgba(0, 31, 20, 0.54);
    --theme-card-ribbon: linear-gradient(90deg, #97e289, #f7d770, var(--card-color));
    --theme-photo-frame: linear-gradient(135deg, #97e289, #f7d770, var(--card-color));
    --chip-bg: rgba(151, 226, 137, 0.13);
    --chip-hover: rgba(247, 215, 112, 0.16);
    --theme-control-border: rgba(151, 226, 137, 0.22);
    --theme-ambient-one: rgba(151, 226, 137, 0.2);
    --theme-ambient-two: rgba(247, 215, 112, 0.15);
}

@keyframes profile-rainbow-border-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

:root[data-profile-texture="aurora-lines"] {
    --theme-card-texture:
        linear-gradient(118deg, transparent 0 26%, rgba(128, 255, 224, 0.13) 26% 27%, transparent 27% 58%, rgba(255, 222, 132, 0.1) 58% 59%, transparent 59% 100%);
    --theme-card-texture-opacity: 1;
}

:root[data-profile-texture="diagonal-lines"] {
    --theme-card-texture:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 15px);
    --theme-card-texture-opacity: 0.8;
}

:root[data-profile-texture="mono-grid"] {
    --theme-card-texture:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 18px),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 18px);
    --theme-card-texture-opacity: 0.42;
}

:root[data-profile-texture="prism-sheen"] {
    --theme-card-texture:
        linear-gradient(120deg, rgba(255, 230, 109, 0.14), transparent 18% 38%, rgba(93, 214, 214, 0.13) 46%, transparent 62%, rgba(255, 111, 145, 0.12));
    --theme-card-texture-opacity: 0.9;
}

:root[data-profile-texture="botanical-weave"] {
    --theme-card-texture:
        repeating-linear-gradient(118deg, rgba(151, 226, 137, 0.12) 0 2px, transparent 2px 18px),
        linear-gradient(180deg, transparent, rgba(247, 215, 112, 0.08));
    --theme-card-texture-opacity: 0.72;
}

:root[data-profile-avatar-shape="rounded"] {
    --profile-avatar-radius: 1.25rem;
}

:root[data-profile-avatar-shape="square"] {
    --profile-avatar-radius: 0.45rem;
}

:root[data-profile-avatar-shape="arch"] {
    --profile-avatar-radius: 46% 46% 1.15rem 1.15rem;
}

:root[data-profile-avatar-shape="blob"] {
    --profile-avatar-radius: 58% 42% 52% 48% / 46% 54% 44% 56%;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

html {
    background: var(--page-bg);
}

body {
    margin: 0;
    min-height: 100dvh;
    color: var(--text);
    font-family: "Zalando Sans Expanded", sans-serif;
    background: var(--theme-body-bg);
    overflow-x: hidden;
}

body.is-loading {
    overflow: hidden;
}

body.has-profile-cursor .page-shell,
body.has-profile-cursor .page-shell * {
    cursor: var(--profile-cursor, crosshair) !important;
}

body.has-profile-animated-cursor .page-shell,
body.has-profile-animated-cursor .page-shell * {
    cursor: inherit !important;
}

.page-shell {
    position: relative;
    min-height: 100dvh;
    padding: 1.5rem 1rem;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease;
}

@supports (overflow: clip) {
    .page-shell {
        overflow: clip;
    }
}

body.is-ready .page-shell {
    opacity: 1;
    visibility: visible;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: var(--theme-loader-bg);
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

body.is-ready .page-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader__panel {
    min-width: min(320px, 100%);
    padding: 1.25rem 1.4rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(7, 17, 29, 0.88);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
    display: grid;
    justify-items: center;
    gap: 0.85rem;
    text-align: center;
    backdrop-filter: blur(12px);
}

.page-loader__spinner {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.14);
    border-top-color: var(--card-color);
    animation: profile-loader-spin 0.9s linear infinite;
}

.page-loader__text {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

@keyframes profile-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.page-background-image,
.page-background-scrim {
    position: absolute;
    inset: 0;
}

.page-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(var(--profile-background-blur));
    transform: scale(var(--profile-background-scale));
}

.page-background-scrim {
    background: var(--theme-page-scrim);
    opacity: var(--profile-background-scrim-opacity);
    pointer-events: none;
}

.ambient {
    position: fixed;
    inset: auto;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    pointer-events: none;
}

.ambient-one {
    top: -8rem;
    left: -10rem;
    background: var(--theme-ambient-one);
}

.ambient-two {
    right: -8rem;
    bottom: -10rem;
    background: var(--theme-ambient-two);
}

.profile-stage {
    min-height: calc(100dvh - 3rem);
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
}

.user-card {
    width: min(var(--profile-card-width), 100%);
    min-height: var(--profile-card-height);
    border-radius: var(--profile-card-radius);
    border: 2px solid color-mix(in srgb, var(--theme-card-border) var(--profile-card-outline-opacity-percent), transparent);
    background: var(--theme-card-bg);
    box-shadow: var(--theme-card-shadow), var(--profile-card-glow);
    overflow: hidden;
    position: relative;
    padding: 1.6rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    isolation: isolate;
    -webkit-backdrop-filter: blur(var(--profile-card-backdrop-blur));
    backdrop-filter: blur(var(--profile-card-backdrop-blur));
}

:root[data-profile-theme="rainbow-fade"] .user-card {
    border-color: transparent;
}

.card-border-effect {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: none;
    border-radius: inherit;
    padding: 2px;
    pointer-events: none;
    background: linear-gradient(120deg, #ff4d6d, #ffd166, #59e48f, #45d6ff, #8b6cff, #ff5bd6, #ff4d6d);
    background-size: 320% 320%;
    opacity: var(--profile-card-outline-opacity);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
}

:root[data-profile-theme="rainbow-fade"] .card-border-effect {
    display: block;
    animation: profile-rainbow-border-flow 6s linear infinite;
}

.user-card::before,
.user-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.user-card::before {
    inset: 0;
    background: var(--theme-card-texture);
    opacity: var(--theme-card-texture-opacity);
}

.user-card::after {
    inset: auto 0 0;
    height: 0.42rem;
    background: var(--theme-card-ribbon);
}

.profile-photo-wrap,
.username,
.bio,
.music-player,
.url-preview,
.platform-links,
.view-count {
    position: relative;
    z-index: 1;
}

.profile-photo-wrap {
    width: 130px;
    height: 130px;
    border-radius: var(--profile-avatar-radius);
    padding: 4px;
    margin-top: 0.5rem;
    background: transparent;
    overflow: hidden;
    isolation: isolate;
}

.profile-photo-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: var(--theme-photo-frame);
    opacity: var(--profile-photo-outline-opacity);
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: var(--profile-avatar-radius);
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    background: rgba(11, 20, 32, 0.92);
}

.profile-photo[hidden],
.page-background-image[hidden] {
    display: none;
}

.username {
    margin: 0.95rem 0 0;
    font-size: clamp(1.2rem, 2.8vw, 1.35rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-align: center;
    word-break: break-word;
}

.username-text {
    display: inline-block;
}

.premium-badge,
.og-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    flex: 0 0 auto;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--card-color), white 36%);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--card-color), rgba(255, 255, 255, 0.22) 22%), rgba(255, 255, 255, 0.08)),
        rgba(7, 17, 29, 0.72);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    cursor: help;
    outline: none;
}

.premium-badge[hidden],
.og-badge[hidden] {
    display: none !important;
}

.og-badge {
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.premium-badge__logo {
    width: 1.4rem;
    height: 1.4rem;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.28));
}

.premium-badge::before,
.premium-badge::after,
.og-badge::before,
.og-badge::after {
    position: absolute;
    left: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.premium-badge::before,
.og-badge::before {
    content: "";
    bottom: calc(100% + 0.18rem);
    transform: translate(-50%, 0.3rem);
    border-width: 0.38rem 0.34rem 0;
    border-style: solid;
    border-color: rgba(9, 17, 28, 0.96) transparent transparent;
}

.premium-badge::after,
.og-badge::after {
    content: attr(data-tooltip);
    bottom: calc(100% + 0.55rem);
    transform: translate(-50%, 0.3rem);
    padding: 0.45rem 0.65rem;
    border-radius: 0.65rem;
    background: rgba(9, 17, 28, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text);
    font-size: 0.73rem;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.premium-badge:hover::before,
.premium-badge:hover::after,
.premium-badge:focus-visible::before,
.premium-badge:focus-visible::after,
.og-badge:hover::before,
.og-badge:hover::after,
.og-badge:focus-visible::before,
.og-badge:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.premium-badge:focus-visible,
.og-badge:focus-visible {
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.22),
        0 0 0 2px color-mix(in srgb, var(--card-color), white 18%);
}

.bio {
    margin: 0.45rem 0 0;
    color: #d8def0;
    text-align: center;
    max-width: 290px;
}

.music-player {
    --music-progress: 0%;
    position: absolute;
    right: 1.1rem;
    bottom: 0.95rem;
    z-index: 8;
    width: min(224px, calc(100% - 9rem));
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.45rem;
    border-radius: 999px;
    background: var(--theme-control-bg);
    border: 1px solid var(--theme-control-border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px);
}

.music-audio {
    display: none;
}

.music-volume-control {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.music-volume-control::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 2.25rem;
    height: 0.85rem;
    transform: translateX(-50%);
}

.music-btn {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    padding: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--text);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.music-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.18);
}

.music-btn:active {
    transform: translateY(0);
}

.music-btn:focus-visible,
.music-progress:focus-visible,
.music-volume:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--card-color), white 18%);
    outline-offset: 2px;
}

.music-btn--play {
    background: color-mix(in srgb, var(--card-color), rgba(255, 255, 255, 0.24) 18%);
    color: #04121c;
}

.music-btn--play:hover {
    background: color-mix(in srgb, var(--card-color), white 18%);
}

.music-btn-icon {
    width: 1rem;
    height: 1rem;
    display: block;
}

.icon-pause,
.icon-muted {
    display: none;
}

.music-btn--play.is-playing .icon-play,
.music-btn--mute.is-muted .icon-volume {
    display: none;
}

.music-btn--play.is-playing .icon-pause,
.music-btn--mute.is-muted .icon-muted {
    display: block;
}

.music-progress {
    width: 100%;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(90deg,
            color-mix(in srgb, var(--card-color), white 8%) 0%,
            color-mix(in srgb, var(--card-color), white 8%) var(--music-progress),
            rgba(255, 255, 255, 0.18) var(--music-progress),
            rgba(255, 255, 255, 0.18) 100%);
    border-radius: 999px;
    height: 0.36rem;
    cursor: pointer;
}

.music-progress:disabled {
    cursor: default;
    opacity: 0.55;
}

.music-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 0.75rem;
    height: 0.75rem;
    border: 0;
    border-radius: 50%;
    background: #f7fbff;
    box-shadow: 0 0 0 2px rgba(4, 18, 28, 0.32);
}

.music-progress::-moz-range-thumb {
    width: 0.75rem;
    height: 0.75rem;
    border: 0;
    border-radius: 50%;
    background: #f7fbff;
    box-shadow: 0 0 0 2px rgba(4, 18, 28, 0.32);
}

.music-volume-popover {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.35rem);
    width: 2.75rem;
    min-height: 7.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0.5rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(7, 17, 29, 0.94);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 10;
    transform: translateX(-50%) translateY(0.25rem);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.music-volume-control:hover,
.music-volume-control:focus-within,
.music-volume-control.is-open {
    z-index: 12;
}

.music-volume-control:hover .music-volume-popover,
.music-volume-control:focus-within .music-volume-popover,
.music-volume-control.is-open .music-volume-popover,
.music-volume-popover:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s;
}

.music-volume-control.is-open .music-btn--mute {
    background: rgba(255, 255, 255, 0.18);
}

.music-volume {
    --music-volume: 25%;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 88px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(90deg,
            color-mix(in srgb, var(--card-color), white 8%) 0%,
            color-mix(in srgb, var(--card-color), white 8%) var(--music-volume),
            rgba(255, 255, 255, 0.18) var(--music-volume),
            rgba(255, 255, 255, 0.18) 100%);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 0.32rem;
    border-radius: 999px;
    height: 1.65rem;
    cursor: pointer;
    transform: translate(-50%, -50%) rotate(-90deg);
    transform-origin: center;
}

.music-volume:disabled {
    cursor: default;
    opacity: 0.55;
}

.music-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 0.68rem;
    height: 0.68rem;
    border: 0;
    border-radius: 50%;
    background: #f7fbff;
    box-shadow: 0 0 0 2px rgba(4, 18, 28, 0.32);
}

.music-volume::-moz-range-thumb {
    width: 0.68rem;
    height: 0.68rem;
    border: 0;
    border-radius: 50%;
    background: #f7fbff;
    box-shadow: 0 0 0 2px rgba(4, 18, 28, 0.32);
}

.url-preview {
    margin: 0.7rem 0 0;
    font-size: 0.85rem;
    color: #bed0f6;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
}

.platform-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: auto;
    margin-bottom: 4.25rem;
    padding-inline: 0.1rem;
    overflow: visible;
    z-index: 4;
}

.platform-link {
    width: 100%;
    max-width: 78px;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    background: var(--chip-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    text-decoration: none;
    justify-self: center;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
    position: relative;
}

.platform-link[data-tooltip]::before,
.platform-link[data-tooltip]::after {
    position: absolute;
    left: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 6;
}

.platform-link[data-tooltip]::before {
    content: "";
    bottom: calc(100% + 0.28rem);
    width: 0.55rem;
    height: 0.55rem;
    background: rgba(5, 9, 18, 0.94);
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    transform: translate(-50%, 8px) rotate(45deg);
}

.platform-link[data-tooltip]::after {
    content: attr(data-tooltip);
    bottom: calc(100% + 0.5rem);
    width: max-content;
    max-width: min(190px, calc(100vw - 3rem));
    padding: 0.45rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(5, 9, 18, 0.94);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
    color: #f7fbff;
    font-size: 0.72rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
    text-align: center;
    transform: translate(-50%, 4px);
}

.platform-link[data-tooltip]:nth-child(4n+1)::after {
    left: 0;
    text-align: left;
    transform: translate(0, 4px);
}

.platform-link[data-tooltip]:nth-child(4n)::after {
    right: 0;
    left: auto;
    text-align: right;
    transform: translate(0, 4px);
}

.platform-link[data-tooltip]:hover::before,
.platform-link[data-tooltip]:focus-visible::before {
    opacity: 1;
    transform: translate(-50%, 2px) rotate(45deg);
}

.platform-link[data-tooltip]:hover::after,
.platform-link[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.platform-link[data-tooltip]:nth-child(4n+1):hover::after,
.platform-link[data-tooltip]:nth-child(4n+1):focus-visible::after,
.platform-link[data-tooltip]:nth-child(4n):hover::after,
.platform-link[data-tooltip]:nth-child(4n):focus-visible::after {
    transform: translate(0, 0);
}

.platform-link:hover {
    transform: translateY(-3px);
    background: var(--chip-hover);
    border-color: color-mix(in srgb, var(--card-color), white 25%);
}

:root[data-profile-link-style="outline"] .platform-link {
    background: transparent;
    border-color: color-mix(in srgb, var(--card-color), white 18%);
}

:root[data-profile-link-style="outline"] .platform-link:hover {
    background: color-mix(in srgb, var(--card-color), transparent 88%);
}

:root[data-profile-link-style="solid"] .platform-link {
    background: color-mix(in srgb, var(--card-color), white 8%);
    border-color: transparent;
}

:root[data-profile-link-style="solid"] .platform-link:hover {
    background: color-mix(in srgb, var(--card-color), white 20%);
}

:root[data-profile-link-style="glow"] .platform-link {
    border-color: color-mix(in srgb, var(--card-color), white 24%);
    box-shadow: 0 0 22px color-mix(in srgb, var(--card-color), transparent 58%);
}

:root[data-profile-link-style="glow"] .platform-link:hover {
    box-shadow: 0 0 30px color-mix(in srgb, var(--card-color), transparent 44%);
}

.platform-link:active {
    transform: translateY(0);
}

.platform-link img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.view-count {
    position: absolute;
    left: 1.25rem;
    bottom: 1.1rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.linkorae-profile-ad {
    position: fixed;
    left: 50%;
    bottom: 0.85rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    max-width: calc(100vw - 1.5rem);
    padding: 0.42rem 0.5rem 0.42rem 0.58rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(6, 12, 22, 0.52);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    color: rgba(247, 251, 255, 0.84);
    font-family: "Zalando Sans Expanded", sans-serif;
    font-size: 0.7rem;
    line-height: 1.2;
    backdrop-filter: blur(10px);
    opacity: 0.8;
    transform: translateX(-50%);
    transition: opacity 0.18s ease;
    animation: profile-ad-rise 0.5s ease-out 0.2s backwards;
}

.linkorae-profile-ad:hover,
.linkorae-profile-ad:focus-within {
    opacity: 1;
}

.linkorae-profile-ad[hidden] {
    display: none !important;
}

.linkorae-profile-ad__logo {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    object-fit: contain;
}

.linkorae-profile-ad p {
    margin: 0;
    color: rgba(216, 222, 240, 0.74);
    white-space: nowrap;
}

.linkorae-profile-ad a {
    flex: 0 0 auto;
    padding: 0.36rem 0.54rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(247, 251, 255, 0.9);
    text-decoration: none;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.linkorae-profile-ad a:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.linkorae-profile-ad a:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--card-color), white 18%);
    outline-offset: 2px;
}

@keyframes profile-ad-rise {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(calc(100% + 1rem));
    }

    to {
        opacity: 0.8;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 560px) {
    .page-shell {
        padding: 0.85rem;
    }

    .page-loader__panel {
        width: 100%;
    }

    .profile-stage {
        min-height: calc(100dvh - 1.7rem);
    }

    .user-card {
        padding: 1.2rem 1rem;
    }

    .platform-link {
        max-width: 64px;
    }

    .platform-link img {
        width: 30px;
        height: 30px;
    }

    .music-player {
        right: 0.9rem;
        bottom: 0.8rem;
        width: min(198px, calc(100% - 7.4rem));
        padding: 0.35rem 0.4rem;
    }

    .music-btn {
        width: 1.8rem;
        height: 1.8rem;
    }

    .linkorae-profile-ad {
        bottom: 0.65rem;
        gap: 0.45rem;
        padding: 0.38rem 0.42rem 0.38rem 0.5rem;
        font-size: 0.64rem;
    }

    .linkorae-profile-ad p {
        max-width: 8rem;
        white-space: normal;
    }

    .linkorae-profile-ad a {
        padding: 0.38rem 0.52rem;
    }
}

@media (hover: none), (pointer: coarse) {
    .music-volume-control::after {
        display: none;
    }

    .music-volume-popover {
        bottom: calc(100% + 0.3rem);
        width: 2.4rem;
        min-height: 6.2rem;
        padding: 0.55rem 0.35rem;
    }

    .music-volume {
        width: 72px;
        min-width: 72px;
        max-width: 72px;
    }
}
