@import url('https://fonts.googleapis.com/css?family=Roboto+Condensed');

* {
    box-sizing: border-box;
    font-family: 'Roboto Condensed', sans-serif;
}

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

body {
    overflow-x: hidden;
    color: #e9eef8;
    background: #05070c;
}

#bgVideo {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
    background: #05070c;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 18, 0.28);
    z-index: -1;
    pointer-events: none;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.content-card {
    width: min(92vw, 760px);
    padding: 28px 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 26px;
    background: rgba(10, 16, 29, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.music-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.icon-button {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    min-height: 96px;
    touch-action: manipulation;
}

#play {
    display: block;
    width: 96px;
    height: auto;
    transition: transform 0.2s ease, filter 0.2s ease;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.icon-button:hover #play,
.icon-button:focus-visible #play {
    transform: scale(1.08);
}

.icon-button:active #play {
    transform: scale(0.96);
}

#header {
    text-align: center;
}

p {
    margin: 16px 0 8px;
    font-size: clamp(20px, 2.5vw, 28px);
    color: #f4f7ff;
}

#link,
#username,
#content,
#avatar {
    width: 100%;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: clamp(16px, 2vw, 22px);
    outline: none;
}

#link::placeholder,
#username::placeholder,
#content::placeholder,
#avatar::placeholder {
    color: rgba(255, 255, 255, 0.68);
}

#btn {
    width: 100%;
    margin-top: 22px;
    padding: 16px 20px;
    border: 0;
    border-radius: 18px;
    font-size: clamp(18px, 2.3vw, 24px);
    font-weight: 700;
    color: #14324f;
    background: linear-gradient(135deg, #b9ecff 0%, #ffc2ea 100%);
    box-shadow: 0 12px 28px rgba(255, 180, 220, 0.28);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    touch-action: manipulation;
}

#btn:hover,
#btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(170, 225, 255, 0.32);
    filter: brightness(1.02);
}

#btn:active {
    transform: scale(0.985);
}

#log {
    min-height: 24px;
    margin: 14px 0 0;
    font-size: 16px;
    color: #eaf6ff;
}

.audio-fallback {
    margin-top: 16px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
}

.audio-fallback p {
    margin-top: 0;
    font-size: 16px;
}

.audio-fallback audio {
    width: 100%;
}

@media (max-width: 640px) {
    .page-shell {
        align-items: flex-start;
        padding: 18px 12px 28px;
    }

    .content-card {
        width: 100%;
        padding: 22px 14px 18px;
        border-radius: 20px;
        background: rgba(10, 16, 29, 0.42);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }

    #play {
        width: 110px;
    }

    .icon-button {
        min-width: 112px;
        min-height: 112px;
    }

    p {
        font-size: 20px;
    }

    #link,
    #username,
    #content,
    #avatar,
    #btn {
        font-size: 18px;
    }
}
