:root {
    --accent: #3ecf8e;
    --accent-dim: rgba(62, 207, 142, 0.12);
    --glass: rgba(18, 22, 20, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text: #e8ece9;
    --text-dim: rgba(255, 255, 255, 0.4);
    --radius: 20px;
}

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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #050806;
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

.parallax {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.parallax__bg {
    width: 103%;
    height: 103%;
    object-fit: cover;
    position: absolute;
    top: -1.5%;
    left: -1.5%;
    will-change: transform;
    transition: transform 0.15s ease-out;
}

.parallax__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 20%, rgba(5, 8, 6, 0.65) 100%),
        linear-gradient(to top, rgba(5, 8, 6, 0.8) 0%, transparent 35%),
        linear-gradient(to bottom, rgba(5, 8, 6, 0.4) 0%, transparent 25%);
}

.layout {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-bottom: 100px;
}

.title {
    position: fixed;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
    font-size: clamp(5rem, 12vw, 9rem);
    font-weight: 700;
    letter-spacing: 24px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 0 80px rgba(62, 207, 142, 0.15);
    will-change: transform;
    transition: transform 0.15s ease-out;
    user-select: none;
    text-indent: 24px;
}

.vinyl-wrap {
    width: 300px;
    height: 300px;
    z-index: 1;
    margin-bottom: -90px;
}

.vinyl {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle,
        #1a1a1a 0%,
        #0d0d0d 25%,
        #181818 26%,
        #101010 40%,
        #1a1a1a 41%,
        #0e0e0e 55%,
        #181818 56%,
        #111 70%,
        #1a1a1a 71%,
        #0d0d0d 100%
    );
    position: relative;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.04),
        0 10px 40px rgba(0, 0, 0, 0.6);
    animation: spin-vinyl 3s linear infinite;
    animation-play-state: paused;
}

.vinyl.spinning {
    animation-play-state: running;
}

@keyframes spin-vinyl {
    to { transform: rotate(360deg); }
}

.vinyl__groove {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.025);
}

.vinyl__groove:nth-child(1) { inset: 18%; }
.vinyl__groove--2 { inset: 26%; }
.vinyl__groove--3 { inset: 34%; }
.vinyl__groove--4 { inset: 42%; }

.vinyl__label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #2ab478);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 24px rgba(62, 207, 142, 0.2);
}

.vinyl__label::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0a0a0a;
    position: absolute;
}

.vinyl__label-text {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(0, 0, 0, 0.45);
    position: absolute;
    top: 10px;
}

.input-card {
    position: relative;
    z-index: 2;
    width: 440px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(40px) saturate(1.2);
    -webkit-backdrop-filter: blur(40px) saturate(1.2);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 24px 60px rgba(0, 0, 0, 0.45);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-card .field,
.input-card .btn {
    width: 100%;
}

.field__input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.field__input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.field__input:focus {
    border-color: rgba(62, 207, 142, 0.35);
    box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.07);
}

.btn {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn--primary {
    background: var(--accent);
    color: #0b0e11;
}

.btn--primary:hover {
    background: #4dd89a;
    box-shadow: 0 4px 16px rgba(62, 207, 142, 0.25);
    transform: translateY(-1px);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--ghost {
    background: var(--accent-dim);
    color: var(--accent);
    margin-top: 8px;
}

.btn--ghost:hover {
    background: rgba(62, 207, 142, 0.18);
}

.error {
    color: #f87171;
    font-size: 13px;
    text-align: center;
}

.hidden {
    display: none !important;
}

.player-bar {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 520px;
    max-width: 90vw;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(40px) saturate(1.2);
    -webkit-backdrop-filter: blur(40px) saturate(1.2);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 16px 48px rgba(0, 0, 0, 0.4);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.player-bar__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.player-bar__title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-bar__artist {
    font-size: 12px;
    color: var(--text-dim);
}

.player-bar__controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ctrl-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.ctrl-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.ctrl-btn--main {
    width: 54px;
    height: 54px;
    background: var(--accent);
    color: #0b0e11;
}

.ctrl-btn--main:hover {
    background: #4dd89a;
    color: #0b0e11;
    box-shadow: 0 4px 14px rgba(62, 207, 142, 0.3);
    transform: scale(1.05);
}

.player-bar__volume {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vol-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.vol-btn:hover {
    color: var(--text);
}

.vol-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
}

.vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    transition: box-shadow 0.15s;
}

.vol-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 8px rgba(62, 207, 142, 0.4);
}

.vol-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

.vol-slider::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    position: relative;
    width: 400px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px 28px 28px;
    backdrop-filter: blur(40px) saturate(1.2);
    -webkit-backdrop-filter: blur(40px) saturate(1.2);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 24px 64px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.modal__close:hover {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
    transform: none;
    box-shadow: none;
}

.modal__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 12px;
    background: var(--accent-dim);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.modal__subtitle {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.modal .field {
    text-align: left;
    margin-bottom: 14px;
}

.result {
    margin-top: 16px;
    padding: 14px;
    background: rgba(62, 207, 142, 0.05);
    border: 1px solid rgba(62, 207, 142, 0.1);
    border-radius: 12px;
    word-break: break-all;
}

.result__label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.result__link {
    display: block;
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
}

.result__link:hover {
    text-decoration: underline;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(11, 14, 17, 0.2);
    border-top-color: #0b0e11;
    border-radius: 50%;
    animation: spinner 0.5s linear infinite;
    vertical-align: middle;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}
