:root {
    --bg-top: #f4faff;
    --bg-bottom: #dceeff;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(111, 166, 238, 0.35);
    --text-main: #103762;
    --text-soft: #577399;
    --blue-400: #4a93f2;
    --blue-600: #1f67cc;
    --shadow-soft: 0 18px 55px rgba(37, 93, 168, 0.2);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Nunito Sans", "Segoe UI", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 10% 20%, rgba(129, 189, 255, 0.6), transparent 45%),
        radial-gradient(circle at 88% 15%, rgba(79, 155, 244, 0.25), transparent 42%),
        linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vw, 42px);
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 12px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    background: #0f3a6d;
    box-shadow: 0 10px 20px rgba(22, 77, 140, 0.3);
}

.skip-link:focus-visible {
    top: 12px;
}

.app {
    width: min(980px, 100%);
}

.page-nav {
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.page-nav a {
    border-radius: 999px;
    padding: 8px 14px;
    text-decoration: none;
    color: #1f67cc;
    font-weight: 700;
    font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(102, 160, 235, 0.32);
}

.page-nav a[aria-current="page"] {
    color: #ffffff;
    background: #1f67cc;
    border-color: #1f67cc;
}

.page-nav a:hover {
    background: rgba(255, 255, 255, 0.95);
}

.page-nav a:focus-visible {
    outline: 3px solid #0f3a6d;
    outline-offset: 2px;
}

.player-card {
    display: grid;
    grid-template-columns: minmax(220px, 290px) 1fr auto;
    align-items: center;
    gap: clamp(32px, 6.4vw, 64px);
    padding: clamp(32px, 6.4vw, 64px);
    border-radius: 28px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.cover-wrap {
    margin: 0;
    width: 100%;
    max-width: 340px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 24px rgba(59, 109, 178, 0.24);
}

.cover-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.player-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.redes {
    justify-self: end;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.redes a {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(102, 160, 235, 0.35);
    box-shadow: 0 8px 18px rgba(56, 113, 190, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.redes a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(56, 113, 190, 0.25);
}

.redes a:focus-visible {
    outline: 3px solid #0f3a6d;
    outline-offset: 2px;
}

.redes img {
    max-width: 26px;
    max-height: 26px;
    width: auto;
    height: auto;
    display: block;
    opacity: 0.55;
}

.redes img:hover {
    opacity: 1;
}

.eyebrow {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-soft);
}

h1 {
    margin: 0;
    font-family: "Sora", "Trebuchet MS", sans-serif;
    font-size: clamp(1.55rem, 3.1vw, 2.45rem);
    line-height: 1.15;
}

.status {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    color: #335b8f;
}

.status-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #34c87e;
    box-shadow: 0 0 0 0 rgba(52, 200, 126, 0.55);
    animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 12px rgba(52, 200, 126, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(52, 200, 126, 0);
    }
}

.player-controls {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.volume-control {
    margin-top: 10px;
    display: grid;
    grid-template-columns: auto minmax(140px, 1fr) auto;
    align-items: center;
    gap: 12px;
    color: #335b8f;
    font-weight: 700;
}

.volume-slider {
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #79b0fa, #4a93f2);
    outline: none;
}

.volume-slider:focus-visible {
    outline: 3px solid #0f3a6d;
    outline-offset: 2px;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: #1f67cc;
    box-shadow: 0 4px 10px rgba(31, 103, 204, 0.35);
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: #1f67cc;
    box-shadow: 0 4px 10px rgba(31, 103, 204, 0.35);
    cursor: pointer;
}

#volumeValue {
    min-width: 40px;
    text-align: right;
    font-size: 0.92rem;
}

#playBtn {
    width: clamp(64px, 6.4vw, 82px);
    height: clamp(64px, 6.4vw, 82px);
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
    color: white;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 14px 28px rgba(44, 122, 228, 0.32);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

#playBtn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 20px 32px rgba(44, 122, 228, 0.33);
}

#playBtn:focus-visible {
    outline: 3px solid #0f3a6d;
    outline-offset: 3px;
}

#playBtn:active {
    transform: scale(0.98);
}

#playBtn:disabled {
    opacity: 0.7;
    cursor: progress;
    transform: none;
}

.sound-wave {
    height: 36px;
    display: flex;
    align-items: flex-end;
    gap: 5px;
}

.sound-wave span {
    width: 6px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, #80b6fa, #468fef);
    transform-origin: bottom;
}

.sound-wave.is-playing span {
    animation: wave 0.95s ease-in-out infinite;
}

.sound-wave.is-playing span:nth-child(2) {
    animation-delay: 0.14s;
}

.sound-wave.is-playing span:nth-child(3) {
    animation-delay: 0.28s;
}

.sound-wave.is-playing span:nth-child(4) {
    animation-delay: 0.42s;
}

.sound-wave.is-playing span:nth-child(5) {
    animation-delay: 0.56s;
}

.project-notice {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(102, 160, 235, 0.35);
    box-shadow: 0 8px 18px rgba(56, 113, 190, 0.16);
}

.project-notice h2 {
    margin: 0;
    font-family: "Sora", "Trebuchet MS", sans-serif;
    font-size: 1rem;
}

.project-notice p {
    margin: 8px 0 0;
    color: #335b8f;
    line-height: 1.5;
}

.project-notice a {
    color: #1f67cc;
    font-weight: 700;
}

.project-notice a:focus-visible {
    outline: 2px solid #0f3a6d;
    outline-offset: 2px;
    border-radius: 6px;
}

.site-footer {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(102, 160, 235, 0.35);
    box-shadow: 0 8px 18px rgba(56, 113, 190, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.github-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(56, 113, 190, 0.25);
}

.github-link:focus-visible {
    outline: 3px solid #1f67cc;
    outline-offset: 2px;
}

.github-icon {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
}

.github-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.noscript-warning {
    width: min(980px, 100%);
    margin: 14px auto 0;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
    color: #0f3a6d;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(83, 146, 229, 0.45);
    box-shadow: 0 8px 16px rgba(56, 113, 190, 0.18);
}

@keyframes wave {
    0%,
    100% {
        height: 8px;
    }

    50% {
        height: 32px;
    }
}

@media (max-width: 760px) {
    body {
        place-items: start;
    }

    .player-card {
        grid-template-columns: 1fr;
        gap: 18px;
        border-radius: 24px;
    }

    .cover-wrap {
        margin-inline: auto;
    }

    .player-controls {
        justify-content: space-between;
    }

    .volume-control {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    #volumeValue {
        text-align: left;
    }

    .redes {
        justify-self: stretch;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .redes a {
        width: 44px;
        height: 44px;
    }
}

@media (min-width: 761px) and (max-width: 920px) {
    .player-card {
        grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
        gap: 22px;
        padding: clamp(22px, 4.8vw, 36px);
    }

    .redes {
        grid-column: 1 / -1;
        justify-self: start;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
