@font-face {
    font-family: "JetBrains Mono";
    src:
        local("JetBrains Mono Regular"),
        local("JetBrainsMono-Regular"),
        url("/fonts/jetbrains-mono/JetBrainsMono-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src:
        local("JetBrains Mono Bold"),
        local("JetBrainsMono-Bold"),
        url("/fonts/jetbrains-mono/JetBrainsMono-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-brand: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-brand);
    background-color: #fdfd96;
    background-image: radial-gradient(circle at center, #ff6b6b 1px, transparent 1px);
    background-size: 24px 24px;
    min-height: 100vh;
}

.container {
    max-width: 896px;
    margin: 0 auto;
    padding: 48px 16px;
}

.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;
}

.profile-card {
    background: white;
    border: 4px solid black;
    box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 1);
    padding: 32px;
    margin-bottom: 48px;
    text-align: center;
}

.profile-image-container {
    width: 192px;
    height: 192px;
    margin: 0 auto 32px;
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 4px solid black;
}

.profile-name {
    font-size: 3.75rem;
    font-weight: bold;
    margin-bottom: 16px;
}

.profile-handle {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.profile-bio {
    font-size: 1.125rem;
    max-width: 672px;
    margin: 0 auto;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
    list-style: none;
}

.social-icon {
    color: var(--brand-color);
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: scale(1.25);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.facebook {
    --brand-color: #4267b2;
}

.x {
    --brand-color: #000;
}

.instagram {
    --brand-color: #e4405f;
}

.youtube {
    --brand-color: #f00;
}

.spotify {
    --brand-color: #1db954;
}

.github {
    --brand-color: #333;
}

.linkedin {
    --brand-color: #0077b5;
}

.now-playing-card {
    background: white;
    border: 4px solid black;
    box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 1);
    padding: 16px 20px;
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.now-playing-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: black;
    border: 2px solid black;
}

.now-playing-artwork-link {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: block;
}

.now-playing-artwork {
    width: 64px;
    height: 64px;
    display: block;
    object-fit: cover;
    border: 2px solid black;
}

.now-playing-icon[hidden],
.now-playing-artwork-link[hidden] {
    display: none;
}

.now-playing-icon svg {
    width: 32px;
    height: 32px;
}

.now-playing-content {
    flex: 1;
    min-width: 0;
}

.now-playing-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 5px;
}

.online-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.online-status-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border: 1px solid black;
    border-radius: 50%;
    background: #a3a3a3;
}

.online-status-dot[data-state="playing"] {
    background: #c4a7ff;
}

.now-playing-label {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.playback-status {
    border: 2px solid black;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.6875rem;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}

.playback-status[data-state="playing"] {
    background: #c4a7ff;
}

.playback-status[data-state="recent"] {
    background: #fdfd96;
}

.playback-status[data-state="empty"],
.playback-status[data-state="unavailable"] {
    background: #e5e5e5;
}

.now-playing-track {
    font-size: 1.125rem;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.now-playing-artist {
    margin-top: 2px;
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listen-along {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: #eef4ff;
    border: 2px solid black;
    border-radius: 8px;
    color: black;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

.listen-along svg {
    width: 20px;
    height: 20px;
}

.listen-along:hover,
.listen-along:focus-visible {
    background: #5b7cfa;
    transform: translateY(-2px);
}

.listen-along:focus-visible {
    outline: 3px solid #5b7cfa;
    outline-offset: 3px;
}

.listen-along[hidden] {
    display: none;
}

.videos-card {
    background: white;
    border: 4px solid black;
    box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 1);
    padding: 24px;
    margin-bottom: 48px;
    border-radius: 8px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    list-style: none;
}

.video-container {
    margin: 0;
    aspect-ratio: 16 / 9;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: 2px solid black;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
    list-style: none;
}

.link-card {
    background: white;
    border: 4px solid black;
    box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 1);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    overflow: hidden;
}

.links-grid > li,
.link-card {
    height: 100%;
}

.link-card:hover {
    box-shadow: none;
    transform: translate(4px, 4px);
}

.link-card svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.link-card span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-grow: 1;
    min-width: 0;
}

@media (min-width: 640px) {
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
        justify-content: center;
    }

    .links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .profile-name {
        font-size: 2rem;
    }

    .now-playing-card {
        padding: 14px;
        gap: 12px;
    }

    .now-playing-content {
        flex: 1 1 0;
    }

    .listen-along {
        width: 44px;
    }
}
