@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&display=swap');

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

html, body {
    height: 100%;
    font-family: 'JetBrains Mono', monospace;
    background: #0a0a0a;
    color: #ce168c;
}

body {
    background-image: url('../images/Haili_Hintergrund.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.82);
    z-index: 0;
}

#boot {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 999;
    transition: opacity 0.3s ease;
}

#boot.hidden {
    opacity: 0;
    pointer-events: none;
}

.boot-line {
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 300;
    color: rgba(206, 22, 140, 0.3);
    animation: pulseText 1s ease infinite;
}

@keyframes pulseText {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.boot-bar {
    width: 120px;
    height: 2px;
    background: rgba(206, 22, 140, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.boot-bar span {
    display: block;
    height: 100%;
    width: 30%;
    background: #ce168c;
    border-radius: 2px;
    animation: bootLoad 1.2s ease infinite;
}

@keyframes bootLoad {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

.hidden { display: none !important; }

#hud {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
    animation: hudIn 0.6s ease;
}

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

.scanline {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(206, 22, 140, 0.015) 2px,
        rgba(206, 22, 140, 0.015) 4px
    );
}

.hud-top {
    padding: 48px 0 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(206, 22, 140, 0.08);
}

.hex-avatar {
    width: 80px;
    height: 92px;
    flex-shrink: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: rgba(206, 22, 140, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}

.hex-inner {
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    overflow: hidden;
}

.hex-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hud-title .tag {
    font-size: 9px;
    letter-spacing: 3px;
    font-weight: 300;
    color: rgba(206, 22, 140, 0.3);
}

.hud-title h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: rgba(255, 255, 255, 0.9);
    margin: 2px 0 6px;
    text-transform: uppercase;
}

.status {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.2);
}

.blink {
    color: #ce168c;
    animation: blink 1.4s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.hud-body {
    flex: 1;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panel {
    border: 1px solid rgba(206, 22, 140, 0.06);
    background: rgba(206, 22, 140, 0.02);
    border-radius: 0;
    padding: 0;
    transition: border-color 0.2s ease;
}

.panel:hover {
    border-color: rgba(206, 22, 140, 0.15);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(206, 22, 140, 0.04);
}

.panel-tag {
    font-size: 9px;
    letter-spacing: 3px;
    font-weight: 300;
    color: rgba(206, 22, 140, 0.3);
}

.eq {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 16px;
}

.eq span {
    display: block;
    width: 2px;
    background: #ce168c;
    border-radius: 1px;
    animation: eqWave 0.8s ease infinite;
}

.eq span:nth-child(1) { height: 6px; animation-delay: 0s; }
.eq span:nth-child(2) { height: 10px; animation-delay: 0.15s; }
.eq span:nth-child(3) { height: 14px; animation-delay: 0.3s; }
.eq span:nth-child(4) { height: 10px; animation-delay: 0.45s; }
.eq span:nth-child(5) { height: 6px; animation-delay: 0.6s; }

@keyframes eqWave {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

.panel-content {
    padding: 16px;
}

.track {
    margin-bottom: 14px;
}

.track-name {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2px;
}

.track-artist {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 300;
}

.progress-hud {
    height: 2px;
    background: rgba(206, 22, 140, 0.06);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 14px;
}

.progress-hud-fill {
    height: 100%;
    width: 0%;
    background: #ce168c;
    border-radius: 2px;
    transition: width 0.3s linear;
}

.controls-hud {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hud-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(206, 22, 140, 0.1);
    background: rgba(206, 22, 140, 0.04);
    color: #ce168c;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.hud-btn:hover {
    background: rgba(206, 22, 140, 0.1);
    border-color: rgba(206, 22, 140, 0.2);
}

.vol-hud {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    color: rgba(206, 22, 140, 0.2);
    font-size: 11px;
}

#vol-slider {
    flex: 1;
    height: 2px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(206, 22, 140, 0.06);
    border-radius: 2px;
    outline: none;
}

#vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 0;
    background: #ce168c;
    cursor: pointer;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

#vol-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

#vol-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 0;
    background: #ce168c;
    cursor: pointer;
    border: none;
}

.link-panel {
    padding: 0;
}

.hud-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
}

.hud-link:hover {
    background: rgba(206, 22, 140, 0.02);
}

.link-tag {
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 300;
    color: rgba(88, 101, 242, 0.3);
    min-width: 65px;
}

.link-name {
    flex: 1;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

.link-name i {
    margin-right: 8px;
    color: #5865f2;
}

.link-arrow {
    font-size: 14px;
    color: rgba(206, 22, 140, 0.15);
    transition: transform 0.2s ease;
}

.hud-link:hover .link-arrow {
    transform: translateX(4px);
}

.hud-footer {
    padding: 20px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(206, 22, 140, 0.04);
}

.sys {
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 300;
    color: rgba(206, 22, 140, 0.12);
}

.sig {
    font-size: 16px;
    color: rgba(206, 22, 140, 0.2);
    animation: blink 1s step-end infinite;
}

@media (max-width: 480px) {
    #hud { padding: 16px; }
    .hud-top { padding: 36px 0 20px; gap: 16px; }
    .hex-avatar { width: 64px; height: 74px; }
    .hud-title h1 { font-size: 22px; }
    .panel-header { padding: 10px 14px; }
    .panel-content { padding: 14px; }
}
