.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 8rem;
}

.avatar-frame {
    position: relative;
    width: 220px;
    height: 220px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(var(--accent) calc(var(--progress, 0) * 1%), var(--card-border) 0);
    -webkit-mask: radial-gradient(transparent 62%, black 63%);
    mask: radial-gradient(transparent 62%, black 63%);
    pointer-events: none;
    z-index: -1;
    opacity: 1;
    transition: opacity 0.5s ease;
}

[data-theme="light"] .progress-ring {
    background: conic-gradient(#0ea5e9 calc(var(--progress, 0) * 1%), var(--card-border) 0);
}

.progress-ring.loaded {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.avatar-container {
    position: relative;
    width: 190px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-container::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(192, 132, 252, 0.7) 0%, rgba(129, 140, 248, 0.4) 35%, transparent 70%);
    z-index: -1;
    opacity: 0.65;
    filter: blur(18px);
    transition: opacity 0.3s ease;
}

.avatar-container:hover::after {
    opacity: 1;
    filter: blur(24px);
}

[data-theme="light"] .avatar-container::after,
[data-theme="light"] .avatar-container:hover::after {
    display: none !important;
}

.vinyl {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(24, 24, 27, 1) 0 22%, transparent 23%),
        repeating-radial-gradient(circle at 50% 50%, #111827 0 2px, #0f172a 3px 4px);
    box-shadow:
        inset 0 0 0 2px rgba(255,255,255,0.04),
        0 10px 30px rgba(0,0,0,0.5);
    transform: translate(-50%, -50%);
    z-index: 1;
}

.vinyl::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        repeating-conic-gradient(from 12deg, transparent 0deg 2deg, rgba(255,255,255,0.03) 2deg 2.4deg),
        repeating-conic-gradient(from 78deg, transparent 0deg 3deg, rgba(255,255,255,0.02) 3deg 3.3deg);
    opacity: 0.8;
    pointer-events: none;
}

.vinyl::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(255,255,255,0.04) 0 1px, transparent 2px),
        radial-gradient(circle at 65% 70%, rgba(255,255,255,0.03) 0 1px, transparent 2px),
        radial-gradient(circle at 50% 85%, rgba(255,255,255,0.03) 0 1px, transparent 2px),
        radial-gradient(circle at 25% 60%, rgba(255,255,255,0.025) 0 1px, transparent 2px);
    opacity: 0.9;
    pointer-events: none;
}

.avatar-container.playing .vinyl {
    animation: spin 5s linear infinite;
}

[data-theme="light"] .vinyl {
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 1) 0 22%, transparent 23%),
        repeating-radial-gradient(circle at 50% 50%, #ffffff 0 2px, #f8fafc 3px 4px);
    box-shadow:
        inset 0 0 0 2px rgba(0,0,0,0.04),
        0 10px 30px rgba(0,0,0,0.12);
}

[data-theme="light"] .vinyl::before {
    background:
        repeating-conic-gradient(from 12deg, transparent 0deg 2deg, rgba(0,0,0,0.03) 2deg 2.4deg),
        repeating-conic-gradient(from 78deg, transparent 0deg 3deg, rgba(0,0,0,0.02) 3deg 3.3deg);
    opacity: 0.8;
}

[data-theme="light"] .vinyl::after {
    background:
        radial-gradient(circle at 35% 35%, rgba(0,0,0,0.04) 0 1px, transparent 2px),
        radial-gradient(circle at 65% 70%, rgba(0,0,0,0.03) 0 1px, transparent 2px),
        radial-gradient(circle at 50% 85%, rgba(0,0,0,0.03) 0 1px, transparent 2px),
        radial-gradient(circle at 25% 60%, rgba(0,0,0,0.025) 0 1px, transparent 2px);
    opacity: 0.9;
}

.tonearm-wrap {
    position: absolute;
    top: -75px;
    right: 50px;
    width: 160px;
    height: 160px;
    z-index: 3;
    transform-origin: 80px 24px;
    transform: rotate(25deg);
    transition: transform 0.5s ease;
    pointer-events: none;
    --tonearm-color: #f8fafc;
    --tonearm-contrast: #09090b;
}

[data-theme="light"] .tonearm-wrap {
    --tonearm-color: #09090b;
    --tonearm-contrast: #f8fafc;
}

.tonearm-wrap svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.tonearm-path {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

.needle {
    filter: drop-shadow(0 0 4px rgba(248,250,252,0.6));
}

.bulb {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar-container.playing .bulb {
    opacity: 1;
    filter: drop-shadow(0 0 3px #ef4444) drop-shadow(0 0 6px rgba(239, 68, 68, 0.7));
}

.avatar-container.playing .tonearm-wrap {
    transform: rotate(0deg);
}

.avatar {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--card-border);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background-color: var(--avatar-bg);
    cursor: pointer;
    z-index: 2;
    filter: brightness(0.7) contrast(1.1);
    user-select: none;
    -webkit-user-select: none;
}

.note {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 1.2rem;
    color: var(--accent);
    pointer-events: none;
    opacity: 0;
    z-index: 6;
    transform: translate(-50%, -50%) scale(0.4);
    text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.5);
    user-select: none;
    -webkit-user-select: none;
}

[data-theme="light"] .note {
    color: #0ea5e9;
    text-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
}

.avatar:hover {
    transform: scale(1.05);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.intro-line {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 400;
}
