:root {
    --accent: #050207;
    --accent-light: #c084fc;
    --muted: #a78bfa;
    --text: #ffffff;
    --bg-dark: #1a0a2e00;
    --bg-overlay: #0000003d;
}

body.light-theme {
    --accent: #7c3aed;
    --accent-light: #8b5cf6;
    --muted: #6b7280;
    --text: #1f2937;
    --bg-dark: #f3f4f6;
    --bg-overlay: #0000003d;
}

* {
    box-sizing: border-box;
    cursor: url('../images/cursor.png'), auto !important
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    background: var(--bg-dark) url('../images/background.gif') center/cover fixed;
    color: var(--text);
    transition: background 0.3s, color 0.3s
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-overlay) 0%, var(--bg-overlay) 50%, var(--bg-overlay) 100%);
    pointer-events: none;
    z-index: 0;
    transition: background 0.3s
}

.wrap {
    height: 90vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 20px;
    position: relative;
    z-index: 1
}

.card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.4), rgba(76, 29, 149, 0.3));
    border: 2px solid rgba(168, 85, 247, 0.3);
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(168, 85, 247, 0.15);
    text-align: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px)
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 3px solid var(--accent);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.5)
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

h1 {
    font-size: 26px;
    margin: 4px 0;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5)
}

p.handle {
    margin: 0 0 16px;
    color: var(--accent-light);
    font-size: 15px;
    font-weight: 500
}

.links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0
}

.link {
    display: block;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.08));
    color: var(--text);
    text-decoration: none;
    border: 1px solid rgba(168, 85, 247, 0.4);
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3)
}

.link:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(168, 85, 247, 0.15));
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
    border-color: var(--accent)
}

.link .label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px
}

.small {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px
}

.player {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(168, 85, 247, 0.08));
    border: 1px solid rgba(168, 85, 247, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3)
}

.btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #9333ea);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.5);
    transition: all 0.2s
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.7)
}

.btn:active {
    transform: scale(0.95)
}

.progress {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden
}

.bar .fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transition: width 0.1s;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.6)
}

.time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
    font-weight: 500
}

.vol-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px
}

.vol {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative
}

.vol input {
    width: 70px;
    height: 6px;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    outline: none
}

.vol-fill {
    position: absolute;
    left: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 6px;
    pointer-events: none;
    transition: width 0.1s;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.6)
}

.vol input::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-light);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
    z-index: 10
}

.vol input::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-light);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.8)
}

.vol-label {
    font-size: 10px;
    color: var(--muted);
    font-weight: 600
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 50px;
    width: 70px;
    height: 38px;
    display: inline-block;
    z-index: 100
}

.theme-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(168, 85, 247, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    transition: all 0.3s;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3)
}

.theme-slider:before {
    content: '☽';
    position: absolute;
    height: 28px;
    width: 30px;
    left: 2px;
    top: 2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3)
}

.theme-checkbox:checked+.theme-slider {
    background: rgba(251, 191, 36, 0.3)
}

.theme-checkbox:checked+.theme-slider:before {
    content: '☼';
    transform: translateX(30px);
    color: #000000;
    background: linear-gradient(135deg, #ffc1f2, #f2d5ff)
}

.theme-toggle:hover .theme-slider {
    background: rgba(168, 85, 247, 0.4)
}

.theme-checkbox:checked+.theme-slider:hover {
    background: rgba(244, 36, 251, 0.281)
}

.theme-toggle:active .theme-slider:before {
    transform: scale(0.95)
}

.theme-checkbox:checked+.theme-toggle:active .theme-slider:before {
    transform: translateX(30px) scale(0.95)
}

body.light-theme .card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(243, 244, 246, 0.7));
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 40px rgba(124, 58, 237, 0.1)
}

body.light-theme h1 {
    color: #1f2937
}

body.light-theme .link {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(124, 58, 237, 0.05));
    border-color: rgba(124, 58, 237, 0.3)
}

body.light-theme .link:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(124, 58, 237, 0.1))
}

body.light-theme .player {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.05));
    border-color: rgba(124, 58, 237, 0.25)
}

@media(max-width:480px) {
    .card {
        padding: 20px;
        max-width: 95%
    }

    .avatar {
        width: 90px;
        height: 90px
    }

    h1 {
        font-size: 22px
    }

    .links {
        gap: 8px
    }

    .theme-toggle {
        width: 65px;
        height: 38px;
        font-size: 20px;
        top: 15px;
        right: 20px
    }
}