@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500&display=swap');

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

body {
    font-family: 'Orbitron', sans-serif;
    overflow: hidden;
    background: #0a1f4a;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bj.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        rgba(0, 0, 0, 0.3),
        radial-gradient(circle at 20% 80%, rgba(30, 80, 180, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(50, 120, 220, 0.5) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.dir-select-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 245, 255, 0.6);
    border-radius: 8px;
    padding: 10px 15px;
    color: #00f5ff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}

.dir-select-btn:hover {
    background: rgba(0, 245, 255, 0.25);
    box-shadow: 0 0 25px rgba(0, 245, 255, 0.5);
}

.dir-select-btn svg {
    width: 18px;
    height: 18px;
}

.player-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.song-info {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
}

.song-title {
    font-size: 28px;
    font-weight: 700;
    color: #00f5ff;
    text-shadow: 
        0 0 15px rgba(0, 245, 255, 0.9),
        0 0 30px rgba(0, 245, 255, 0.6),
        0 0 45px rgba(0, 245, 255, 0.3);
    margin-bottom: 8px;
    letter-spacing: 3px;
}

.song-artist {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
}

.hud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.left-section {
    position: absolute;
    top: 50%;
    left: 12%;
    transform: translateY(-50%);
}

.hud-circle {
    position: relative;
    width: 220px;
    height: 220px;
}

.hud-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 245, 255, 0.5);
    transition: width 0.15s ease, height 0.15s ease;
}

.hud-ring-outer {
    width: 220px;
    height: 220px;
    border-color: rgba(0, 245, 255, 0.3);
    animation: rotate 35s linear infinite;
    box-shadow: 
        0 0 40px rgba(0, 245, 255, 0.25),
        inset 0 0 40px rgba(0, 245, 255, 0.15);
}

.hud-ring-dynamic-1 {
    width: 200px;
    height: 200px;
    border-color: rgba(0, 245, 255, 0.4);
    animation: rotate 20s linear infinite;
    box-shadow: 
        0 0 30px rgba(0, 245, 255, 0.3),
        inset 0 0 30px rgba(0, 245, 255, 0.2);
}

.hud-ring-dynamic-2 {
    width: 180px;
    height: 180px;
    border-color: rgba(123, 47, 247, 0.4);
    animation: rotate 28s linear infinite reverse;
    box-shadow: 
        0 0 25px rgba(123, 47, 247, 0.3),
        inset 0 0 25px rgba(123, 47, 247, 0.2);
}

.hud-ring-outer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #00f5ff;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 
        0 0 25px #00f5ff,
        0 0 50px rgba(0, 245, 255, 0.7);
}

.hud-ring-middle {
    width: 170px;
    height: 170px;
    border-color: rgba(123, 47, 247, 0.5);
    animation: rotate 25s linear infinite reverse;
    box-shadow: 
        0 0 35px rgba(123, 47, 247, 0.35),
        inset 0 0 35px rgba(123, 47, 247, 0.2);
}

.hud-ring-middle::before {
    content: '';
    position: absolute;
    top: -2px;
    right: 50%;
    width: 8px;
    height: 8px;
    background: #7b2ff7;
    border-radius: 50%;
    transform: translateX(50%);
    box-shadow: 
        0 0 20px #7b2ff7,
        0 0 40px rgba(123, 47, 247, 0.6);
}

.hud-ring-inner {
    width: 125px;
    height: 125px;
    border-color: rgba(0, 245, 255, 0.7);
    animation: rotate 15s linear infinite;
    box-shadow: 
        0 0 30px rgba(0, 245, 255, 0.45),
        inset 0 0 30px rgba(0, 245, 255, 0.3);
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hud-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95px;
    height: 95px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 50%;
    border: 2px solid rgba(0, 245, 255, 0.8);
    box-shadow: 
        0 0 50px rgba(0, 245, 255, 0.7),
        0 0 80px rgba(0, 245, 255, 0.5),
        inset 0 0 30px rgba(0, 245, 255, 0.3);
}

.time-display {
    font-size: 2.2rem;
    font-weight: 700;
    color: #00f5ff;
    text-shadow: 
        0 0 20px rgba(0, 245, 255, 0.9),
        0 0 45px rgba(0, 245, 255, 0.7),
        0 0 70px rgba(0, 245, 255, 0.5);
    letter-spacing: 4px;
    font-family: 'Orbitron', monospace;
}

.hud-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hud-marker {
    position: absolute;
    width: 2px;
    height: 10px;
    background: rgba(0, 245, 255, 0.6);
    top: 0;
    left: 50%;
    transform-origin: center 110px;
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(0, 245, 255, 0.4);
}

.hud-marker.large {
    height: 18px;
    background: rgba(0, 245, 255, 0.9);
    box-shadow: 
        0 0 15px rgba(0, 245, 255, 0.7),
        0 0 30px rgba(0, 245, 255, 0.4);
}

.hud-marker.small {
    height: 7px;
    background: rgba(0, 245, 255, 0.4);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 50%;
    background: linear-gradient(to bottom, rgba(0, 245, 255, 0), rgba(0, 245, 255, 0.9));
    transform-origin: center 110px;
    animation: scan 2s linear infinite;
    box-shadow: 
        0 0 20px rgba(0, 245, 255, 0.8),
        0 0 40px rgba(0, 245, 255, 0.5);
}

@keyframes scan {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

.right-section {
    position: absolute;
    top: 32%;
    right: 18%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 750px;
}

.spectrum-column {
    display: flex;
    flex-direction: column-reverse;
    gap: 3px;
    height: 100%;
    justify-content: flex-start;
}

.spectrum-column-main {
    display: flex;
    flex-direction: row;
    gap: 8px;
    height: 100%;
    align-items: flex-end;
}

.middle-spectrum-container {
    position: absolute;
    top: 52%;
    left: 28%;
    right: 30%;
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: flex-start;
    height: 250px;
    justify-content: flex-start;
}

.spectrum-bar {
    width: 1px;
    background: #00f5ff;
    border-radius: 0.5px;
    opacity: 0.9;
    transition: height 0.08s ease;
    box-shadow: 
        0 0 12px rgba(0, 245, 255, 0.8),
        0 0 25px rgba(0, 245, 255, 0.5),
        0 0 40px rgba(0, 245, 255, 0.3);
}

.spectrum-bar.tall {
    width: 2px;
}

.waveform-container {
    position: absolute;
    top: 35%;
    left: 28%;
    right: 12%;
    height: 40px;
}

.waveform-bar {
    display: inline-block;
    width: 2px;
    height: 20px;
    background: #00f5ff;
    margin-right: 3px;
    border-radius: 1px;
    transition: height 0.08s ease;
    box-shadow: 
        0 0 10px rgba(0, 245, 255, 0.7),
        0 0 20px rgba(0, 245, 255, 0.4);
}

.hud-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hud-line {
    position: absolute;
    background: rgba(0, 245, 255, 0.5);
}

.hud-line.horizontal {
    height: 1px;
    overflow: hidden;
}

.hud-line.horizontal::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 20%;
    height: 3px;
    transform: translateY(-50%) translateX(-100%);
    background: rgba(0, 245, 255, 1);
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% {
        transform: translateY(-50%) translateX(-100%);
    }
    100% {
        transform: translateY(-50%) translateX(100%);
    }
}

.hud-line.vertical {
    width: 1px;
    box-shadow: 
        0 0 15px rgba(0, 245, 255, 0.6),
        0 0 30px rgba(0, 245, 255, 0.4);
}

.line-1 {
    top: 32%;
    left: 30%;
    right: 18%;
}

.line-2 {
    top: 42%;
    left: 25%;
    right: 15%;
}

.line-3 {
    top: 52%;
    left: 22%;
    right: 22%;
}

.line-4 {
    top: 28%;
    bottom: 48%;
    left: 28%;
}

.line-5 {
    top: 25%;
    bottom: 52%;
    left: 33%;
}

.line-6 {
    top: 38%;
    bottom: 45%;
    left: 40%;
}

.line-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #00f5ff;
    border-radius: 50%;
    box-shadow: 
        0 0 10px #00f5ff,
        0 0 20px rgba(0, 245, 255, 0.5);
}

.dot-1 { top: 32%; left: 30%; }
.dot-2 { top: 32%; right: 15%; }
.dot-3 { top: 42%; left: 25%; }
.dot-4 { top: 42%; right: 12%; }
.dot-5 { top: 52%; right: 18%; }
.dot-6 { top: 48%; left: 28%; }
.dot-7 { top: 35%; left: 35%; }
.dot-8 { top: 45%; left: 38%; }
.dot-9 { top: 50%; left: 42%; }
.dot-10 { top: 30%; right: 20%; }

.data-label {
    position: absolute;
    font-size: 0.7rem;
    color: rgba(0, 245, 255, 0.7);
    font-family: 'Orbitron', monospace;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(0, 245, 255, 0.5);
}

.label-1 { top: 20%; right: 10%; color: #ffffff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); }
.label-2 { top: 35%; left: 20%; }
.label-3 { top: 45%; left: 20%; }
.label-4 { 
    top: 50%; 
    right: 18%; 
    animation: colorGradient 3s ease-in-out infinite;
}

@keyframes colorGradient {
    0% { 
        color: #ffffff; 
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 25px rgba(255, 255, 255, 0.5);
    }
    50% { 
        color: #00f5ff; 
        text-shadow: 0 0 15px rgba(0, 245, 255, 0.9), 0 0 25px rgba(0, 245, 255, 0.5), 0 0 40px rgba(0, 245, 255, 0.3);
    }
    100% { 
        color: #ffffff; 
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 25px rgba(255, 255, 255, 0.5);
    }
}
.label-5 { top: 25%; left: 25%; }
.label-6 { top: 58%; right: 15%; }

.data-block {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(0, 245, 255, 0.5);
    background: rgba(0, 245, 255, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 245, 255, 0.1);
}

.block-1 { top: 40%; right: 20%; }
.block-2 { top: 30%; right: 15%; }

.data-grid {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 3px;
    width: 28px;
    height: 28px;
    top: 55%;
    right: 12%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.data-grid:hover {
    transform: scale(1.1);
    filter: brightness(1.3);
}

.grid-cell {
    width: 5px;
    height: 5px;
    background: rgba(255, 0, 255, 0.7);
    border-radius: 1px;
    box-shadow: 0 0 6px rgba(255, 0, 255, 0.4);
}

.data-bracket {
    position: absolute;
    width: 10px;
    height: 30px;
    border: 2px solid rgba(0, 245, 255, 0.4);
    border-right: none;
    border-radius: 5px 0 0 5px;
    top: 38%;
    left: 45%;
}

.data-bracket::before,
.data-bracket::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 3px;
    background: rgba(0, 245, 255, 0.6);
}

.data-bracket::before {
    top: -1px;
    left: 0;
}

.data-bracket::after {
    bottom: -1px;
    left: 0;
}

.corner-decor {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0, 245, 255, 0.3);
}

.corner-decor.tl {
    top: 15%;
    left: 10%;
    border-right: none;
    border-bottom: none;
}

.corner-decor.tr {
    top: 15%;
    right: 10%;
    border-left: none;
    border-bottom: none;
}

.corner-decor.bl {
    bottom: 15%;
    left: 10%;
    border-right: none;
    border-top: none;
}

.corner-decor.br {
    bottom: 15%;
    right: 10%;
    border-left: none;
    border-top: none;
}

.lyrics-display {
    position: absolute;
    bottom: 220px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.lyric-line {
    font-size: 1.6rem;
    color: #fff;
    text-shadow: 
        0 0 25px rgba(255, 255, 255, 0.9),
        0 0 50px rgba(0, 245, 255, 0.6),
        0 0 75px rgba(0, 245, 255, 0.4);
    letter-spacing: 8px;
    font-weight: 300;
    font-family: 'Noto Sans SC', sans-serif;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.playlist-container {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 240px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.playlist-container.collapsed {
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
}

.playlist-header {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 245, 255, 0.6);
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}

.playlist-header:hover {
    background: rgba(0, 245, 255, 0.25);
    box-shadow: 0 0 25px rgba(0, 245, 255, 0.4);
}

.playlist-title {
    font-size: 14px;
    color: #00f5ff;
    font-weight: 600;
    letter-spacing: 2px;
}

.playlist-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 245, 255, 0.2);
    padding: 3px 8px;
    border-radius: 10px;
}

.playlist-toggle {
    width: 16px;
    height: 16px;
    color: #00f5ff;
    transition: transform 0.3s ease;
}

.playlist-container.collapsed .playlist-toggle {
    transform: rotate(180deg);
}

.playlist-content {
    margin-top: 5px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(0, 245, 255, 0.5);
    border-radius: 10px;
    max-height: 400px;
    overflow-y: auto;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.playlist-container.collapsed .playlist-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.playlist-list {
    list-style: none;
    padding: 5px;
}

.playlist-item {
    padding: 10px 12px;
    margin: 3px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playlist-item:hover {
    background: rgba(0, 245, 255, 0.1);
}

.playlist-item.active {
    background: rgba(0, 245, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}

.playlist-item-info {
    flex: 1;
    overflow: hidden;
}

.playlist-item-title {
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item-artist {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.playlist-item-duration {
    font-size: 11px;
    color: rgba(0, 245, 255, 0.6);
    margin-left: 10px;
}

.controls-overlay {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    align-items: center;
    z-index: 100;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.controls-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

.control-btn {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 245, 255, 0.6);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #00f5ff;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 15px rgba(0, 245, 255, 0.3),
        inset 0 0 15px rgba(0, 245, 255, 0.1);
}

.control-btn:hover {
    background: rgba(0, 245, 255, 0.25);
    box-shadow: 
        0 0 30px rgba(0, 245, 255, 0.6),
        inset 0 0 20px rgba(0, 245, 255, 0.2);
    transform: scale(1.1);
}

.control-btn.active {
    background: rgba(0, 245, 255, 0.35);
    box-shadow: 
        0 0 35px rgba(0, 245, 255, 0.7),
        inset 0 0 25px rgba(0, 245, 255, 0.3);
}

.control-btn svg {
    width: 20px;
    height: 18px;
}

.play-btn {
    width: 65px;
    height: 65px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 245, 255, 0.6);
}

.play-btn:hover {
    background: rgba(0, 245, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.6);
}

.play-btn svg {
    width: 25px;
    height: 25px;
}

.play-btn .pause-icon {
    display: none;
}

.play-btn.playing .play-icon {
    display: none;
}

.play-btn.playing .pause-icon {
    display: block;
}

.progress-section {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    width: 60%;
    z-index: 100;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.progress-section.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

.time-stamps {
    font-size: 12px;
    color: rgba(0, 245, 255, 0.8);
    font-family: 'Orbitron', monospace;
    min-width: 45px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(0, 245, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-bar:hover {
    background: rgba(0, 245, 255, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f5ff, #7b2ff7);
    border-radius: 2px;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 10px;
    height: 10px;
    background: #00f5ff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-bar:hover::after {
    opacity: 1;
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 245, 255, 0.5);
    color: #00f5ff;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
    animation: fadeIn 0.3s ease;
}

.toast.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

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

.debug-area {
    position: fixed;
    top: 100px;
    left: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: #00f5ff;
    padding: 10px;
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 5px;
    font-size: 11px;
    z-index: 9999;
    max-width: 300px;
    max-height: 200px;
    overflow-y: auto;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 245, 255, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 245, 255, 0.5);
}