html,
body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Space Grotesk', sans-serif;
    min-height: 100vh;
    margin: 0;
    overflow-y: auto;
}

* {
    font-family: 'Space Grotesk', sans-serif;
    box-sizing: border-box;
}

#reactive-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Cursor spotlight */
#spotlight {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(600px circle at var(--cx, -9999px) var(--cy, -9999px),
        rgba(62, 74, 120, 0.13) 0%, transparent 70%);
}

/* Page layout */

.page-wrapper {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

/* Hero section */

.hero {
    text-align: center;
    padding: 40px 24px;
    margin-bottom: 56px;
    background: rgba(10, 10, 12, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -1px;
}

.hero h2 {
    font-size: 1rem;
    font-weight: 400;
    color: #c2c6d6;
    margin: 0 0 2rem;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    line-height: 1.6;
}

.hero .links {
    margin-bottom: 2rem;
}

.hero .contact h3 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #888;
}

.hero a {
    color: #e0e0e0;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    margin: 5px;
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 999px;
    background: rgba(18, 18, 24, 0.6);
    backdrop-filter: blur(8px);
}

.hero a:hover {
    background-color: rgba(62, 74, 120, 0.45);
    border-color: rgba(168, 180, 255, 0.55);
    color: #f4f7ff;
}

/* Content sections */

.section {
    margin-bottom: 56px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 28px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.subsection {
    margin-bottom: 32px;
}

.subsection:last-child {
    margin-bottom: 0;
}

.subsection h3 {
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin: 0 0 16px;
}

/* Card grid */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

/* Media cards */

.media-card {
    display: block;
    text-decoration: none;
    color: #e0e0e0;
    background: rgba(10, 10, 12, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: border-color 0.3s ease, transform 0.15s ease;
    will-change: transform;
}

.media-card:hover {
    border-color: rgba(168, 180, 255, 0.4);
    transform: translateY(-2px);
}

.media-card.tilt-reset {
    transition: border-color 0.3s ease, transform 0.4s ease;
}

.media-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
}

.card-info {
    padding: 10px 12px;
}

.card-title {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 0.75rem;
    color: #999;
    margin-top: 4px;
    line-height: 1.4;
}

/* Stars */

.stars {
    color: #f5c518;
    letter-spacing: 1px;
}

.star-empty {
    color: #444;
}

/* Artist card */

.artist-feature {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: #e0e0e0;
    background: rgba(10, 10, 12, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(12px);
    transition: border-color 0.3s ease;
}

.artist-feature:hover {
    border-color: rgba(168, 180, 255, 0.4);
}

.artist-feature img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.artist-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.artist-meta {
    font-size: 0.85rem;
    color: #999;
    margin-top: 4px;
}

/* Track rows */

.track-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: #e0e0e0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease;
}

.track-row:last-child {
    border-bottom: none;
}

.track-row:hover {
    background: rgba(168, 180, 255, 0.08);
}

.track-row img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-name {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 0.75rem;
    color: #999;
    margin-top: 2px;
}

.track-time {
    font-size: 0.7rem;
    color: #a8b4ff;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Skeleton loading */

.skeleton-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    aspect-ratio: 2 / 3;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Error state */

.error-message {
    color: #777;
    font-size: 0.85rem;
    padding: 24px;
    text-align: center;
    grid-column: 1 / -1;
}

.error-message code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.error-message a {
    color: #a8b4ff;
    text-decoration: underline;
    text-decoration-color: rgba(168, 180, 255, 0.4);
}

.error-message a:hover {
    text-decoration-color: rgba(168, 180, 255, 0.8);
}

.retry-link {
    color: #a8b4ff !important;
    text-decoration: underline !important;
}

:focus-visible {
    outline: 2px solid #c2c6d6;
    outline-offset: 3px;
    border-radius: 3px;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* Film grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: -50%;
    pointer-events: none;
    opacity: 0.035;
    filter: url(#grain);
    background: #fff;
    z-index: 9999;
    animation: grain-shift 0.5s steps(1) infinite;
}

@keyframes grain-shift {
    0%   { transform: translate(0, 0); }
    10%  { transform: translate(-2%, -3%); }
    20%  { transform: translate(3%,  2%); }
    30%  { transform: translate(-1%,  4%); }
    40%  { transform: translate(4%, -1%); }
    50%  { transform: translate(-3%,  3%); }
    60%  { transform: translate(2%, -4%); }
    70%  { transform: translate(-4%,  1%); }
    80%  { transform: translate(3%, -2%); }
    90%  { transform: translate(-2%,  4%); }
}

@media (prefers-reduced-motion: reduce) {
    body::after { animation: none; }
}

/* Responsive */

@media (max-width: 640px) {
    .page-wrapper {
        padding: 32px 16px 60px;
    }

    .hero {
        padding: 28px 20px;
        margin-bottom: 40px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 0.85rem;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .artist-feature {
        padding: 16px;
        gap: 16px;
    }

    .artist-feature img {
        width: 80px;
        height: 80px;
    }
}
