:root {
    --bg: #0b1220;
    --text: rgba(20, 26, 38, 0.95);
    --muted: rgba(20, 26, 38, 0.60);
    --line: rgba(0, 0, 0, 0.12);
    --shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
    --radius: 26px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-rounded, "SF Pro Rounded", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    overflow-x: hidden;
}

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

a:hover {
    text-decoration: underline;
}

.wrap {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 18px;
}

.shell {
    width: min(780px, 100%);
}

.brand {
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    margin: 14px 0 16px;
}

.brand-logo img {
    max-width: 38%;
    border-radius: 5%;
    box-shadow: 0px 0px 50px;
}

.book-title {
    font-weight: 900;
    letter-spacing: 0.2px;
    font-size: clamp(28px, 4.2vw, 40px);
    text-shadow: 0 10px 18px rgba(0, 0, 0, 0.10);
    margin: 0;
    padding: 0;
    line-height: 1.08;
}

.book-title p {
    font-family: "Ole", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 90px;
    margin: 20px;
    margin-bottom: -20px;
    color: rgb(255, 255, 255);
    text-shadow: 2px 2px 30px #000;
}

.sub {
    color: var(--muted);
    font-size: 13px;
}

.card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.card-inner {
    padding: 18px;
}

.player {
    display: flex;
    gap: 14px;
    align-items: center;
}

.play {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.26);
    color: rgba(20, 26, 38, 0.92);
    display: grid;
    place-items: center;
    cursor: pointer;
    user-select: none;
    transition: transform 0.10s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 14px 22px rgba(0, 0, 0, 0.18), inset 0 8px 0 rgba(255, 255, 255, 0.35);
}

.play:hover {
    background: rgba(255, 255, 255, 0.32);
}

.play:active {
    transform: scale(0.99);
}

.play svg {
    width: 26px;
    height: 26px;
}

.meta {
    flex: 1;
    min-width: 0;
}

.track {
    font-weight: 900;
    font-size: 18px;
    margin: 0 0 10px 0;
    color: rgba(20, 26, 38, 0.92);
}

.progress-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time {
    width: 108px;
    text-align: right;
    color: rgba(20, 26, 38, 0.62);
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    font-weight: 800;
}

.bar {
    flex: 1;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, 0.14);
    background: rgba(255, 255, 255, 0.72);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.08);
}

.fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff2f8f, #ff7a00, #ffd93d, #5cff8a, #1fd6ff, #3e7bff, #b14bff);
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45);
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(20, 26, 38, 0.60);
    font-size: 12px;
    font-weight: 700;
}

body.kid {
    background: #ffecf3;
}

body.kid::before,
body.kid::after {
    content: "";
    position: fixed;
    inset: -30%;
    z-index: -5;
    pointer-events: none;
    will-change: transform, filter;
    transform: translate3d(0, 0, 0);
}

body.kid::before {
    filter: blur(16px);
    opacity: 0.98;
    /* background:
        radial-gradient(circle at 16% 22%, rgba(255, 47, 143, 0.98) 0%, transparent 45%),
        radial-gradient(circle at 86% 18%, rgba(255, 122, 0, 0.95) 0%, transparent 48%),
        radial-gradient(circle at 60% 86%, rgba(255, 217, 61, 0.94) 0%, transparent 50%),
        radial-gradient(circle at 14% 88%, rgba(31, 214, 255, 0.92) 0%, transparent 48%),
        radial-gradient(circle at 90% 84%, rgba(177, 75, 255, 0.86) 0%, transparent 52%),
        radial-gradient(circle at 48% 40%, rgba(255, 95, 210, 0.70) 0%, transparent 56%); */
    background: blue;
    animation: kidDanceA 6.5s ease-in-out infinite;
}

body.kid::after {
    filter: blur(26px);
    opacity: 0.72;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 95, 210, 0.88) 0%, transparent 52%),
        radial-gradient(circle at 72% 22%, rgba(255, 120, 79, 0.86) 0%, transparent 54%),
        radial-gradient(circle at 52% 72%, rgba(156, 255, 87, 0.74) 0%, transparent 58%),
        radial-gradient(circle at 22% 62%, rgba(77, 214, 255, 0.78) 0%, transparent 56%),
        radial-gradient(circle at 82% 70%, rgba(62, 123, 255, 0.62) 0%, transparent 60%);
    animation: kidDanceB 4.8s ease-in-out infinite alternate;
}

@keyframes kidDanceA {
    0% {
        transform: translate3d(-2%, -1%, 0) scale(1.06) rotate(-1deg);
    }

    25% {
        transform: translate3d(3%, -4%, 0) scale(1.12) rotate(1deg);
    }

    50% {
        transform: translate3d(-4%, 3%, 0) scale(1.10) rotate(-0.6deg);
    }

    75% {
        transform: translate3d(4%, 4%, 0) scale(1.14) rotate(1.2deg);
    }

    100% {
        transform: translate3d(-2%, -1%, 0) scale(1.06) rotate(-1deg);
    }
}

@keyframes kidDanceB {
    0% {
        transform: translate3d(3%, 2%, 0) scale(1.12) rotate(1deg);
    }

    50% {
        transform: translate3d(-3%, 1%, 0) scale(1.18) rotate(-1deg);
    }

    100% {
        transform: translate3d(2%, -3%, 0) scale(1.14) rotate(0.6deg);
    }
}

@media (prefers-reduced-motion: reduce) {

    body.kid::before,
    body.kid::after {
        animation: none !important;
    }
}

@media (max-width:600px) {
    .wrap {
        min-height: 100svh;
        padding: 18px 14px;
        align-items: center;
        justify-content: center;
    }

    .shell {
        width: 100%;
        max-width: 560px;
    }

    .brand {
        margin: 10px 0 16px;
    }

    .book-title {
        font-size: clamp(30px, 8.2vw, 44px);
    }

    .book-title p {
        font-size: 70px;
        margin-bottom: 0;
    }

    .brand-logo img {
        max-width: 50%;
    }

    .card-inner {
        padding: 20px;
    }

    .player {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    .play {
        width: 112px;
        height: 112px;
        border-radius: 32px;
    }

    .play svg {
        width: 40px;
        height: 40px;
    }

    .meta {
        width: 100%;
        text-align: center;
    }

    .track {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .progress-row {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .bar {
        width: 100%;
        height: 36px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.92);
        border: 2px solid rgba(0, 0, 0, 0.16);
        box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.10), 0 12px 20px rgba(0, 0, 0, 0.14);
        padding: 15px;
    }

    .bar::before {
        content: "";
        position: absolute;
        left: -14px;
        right: -14px;
        top: -18px;
        bottom: -18px;
        border-radius: 999px;
        background: transparent;
    }

    .fill::after {
        content: "";
        position: absolute;
        right: -14px;
        top: 50%;
        width: 30px;
        height: 30px;
        transform: translateY(-50%);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.98);
        border: 2px solid rgba(0, 0, 0, 0.16);
        box-shadow: 0 10px 16px rgba(0, 0, 0, 0.20);
    }

    .time {
        width: auto;
        text-align: center;
        font-size: 14px;
    }

    .footer {
        padding: 14px 16px;
        font-size: 13px;
        display: flex;
        justify-content: center;
        flex-direction: column;
    }
}

/* Social Media Footer */
.social-section {
    margin-top: 32px;
    text-align: center;
}

.social-title {
    font-family: "Dancing Script", cursive;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    font-size: 24px;
    color: #fff;
    margin-bottom: 18px;
    text-shadow: 2px 2px 30px rgba(0, 0, 0, 0.55);
}

.social-bubbles {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.social-bubbles a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.22),
        inset 0 6px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-bubbles a:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow:
        0 18px 32px rgba(0, 0, 0, 0.28),
        inset 0 6px 0 rgba(255, 255, 255, 0.40);
}

.social-bubbles img {
    width: 22px;
    height: 22px;
}

@media (max-width:600px) {
    .social-title {
        font-size: 1em;
    }

    .social-bubbles a {
        width: 36px;
        height: 36px;
    }

    .social-bubbles img {
        width: 18px;
        height: 18px;
    }
}