.view { display: none; flex-direction: column; align-items: center; width: 100%; }
.view.active { display: flex; }

.tag-tabs {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-bottom: 25px; padding-bottom: 15px;
    border-bottom: 1px solid #333;
}
.tag-tab {
    padding: 8px 16px; background: #2a2a2a;
    border: 1px solid #444; border-radius: 20px;
    color: #888; font-size: 0.9rem; cursor: pointer;
    transition: all 0.2s;
}
.tag-tab:hover { border-color: var(--accent-color); color: var(--accent-color); }
.tag-tab.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--accent-color); color: var(--accent-color);
}

.search-box {
    margin-bottom: 20px;
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
}
.search-box input {
    width: 100%;
    padding: 12px 16px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 25px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}
.search-box input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}
.search-box input::placeholder { color: #666; }

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1200px;
}

.album-card {
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.album-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.album-info { display: flex; flex-direction: column; flex: 1; }
.album-info h3 { margin: 0 0 8px 0; font-size: 1.2rem; }
.album-info .desc {
    font-size: 0.85rem; color: #888;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}
.album-info .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; min-height: 22px; }
.album-info .tag {
    display: inline-block; padding: 2px 8px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--accent-color);
    border-radius: 12px; font-size: 0.7rem;
    color: var(--accent-color);
}
.album-info .meta {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.75rem; color: #555; margin: 0;
    margin-top: auto;
}
.album-info .date { color: var(--accent-color); }

.back-link {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    font-size: 0.9rem; color: var(--accent-color);
    text-decoration: none; padding: 5px 10px; background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--accent-color); border-radius: 6px;
    transition: all 0.2s; cursor: pointer;
}
.back-link:hover { background: var(--accent-color); color: #000; }

header { position: relative; }
header h1 { padding: 0 80px; }

.album-header { text-align: center; margin-bottom: 30px; max-width: 600px; }
.album-desc { color: #888; font-size: 0.9rem; }

.song-list { width: 100%; max-width: 800px; margin-bottom: 120px; }

.song-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 15px; border-bottom: 1px solid #333;
    background: rgba(255,255,255,0.02); transition: all 0.2s;
    border-radius: 8px; margin-bottom: 5px; gap: 10px;
}
.song-row:hover { background: rgba(255,255,255,0.05); }
.song-row.playing {
    background: rgba(212, 175, 55, 0.15);
    border-left: 3px solid var(--accent-color);
}

.song-info { flex: 1; min-width: 0; cursor: pointer; }
.song-title {
    font-size: 1rem; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: color 0.2s;
}
.song-info:hover .song-title { color: var(--accent-color); }
.song-artist { font-size: 0.8rem; color: #666; margin-top: 3px; }

.song-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.action-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(212, 175, 55, 0.15); border: 1px solid var(--accent-color);
    color: var(--accent-color); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; text-decoration: none;
}
.action-btn:hover { background: var(--accent-color); color: #000; }
.song-row.playing .action-btn.play { background: var(--accent-color); color: #000; }

.detail-btn {
    padding: 6px 12px; background: transparent;
    border: 1px solid #444; color: #888; border-radius: 6px;
    cursor: pointer; font-size: 0.75rem; transition: all 0.2s;
    text-decoration: none; white-space: nowrap;
}
.detail-btn:hover { border-color: var(--accent-color); color: var(--accent-color); }

.player-container {
    display: flex; flex-direction: column; align-items: center;
    width: 100%; max-width: 500px; padding: 20px;
}

.vinyl-container { position: relative; margin-bottom: 25px; }

.vinyl {
    width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(#222 60%, #000 65%);
    border: 4px solid #111;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 30px rgba(0,0,0,0.8), 0 0 60px rgba(212, 175, 55, 0.1);
    animation: spin 6s linear infinite; animation-play-state: paused;
    position: relative; overflow: hidden;
}

.vinyl-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: 
        repeating-radial-gradient(circle at center, #111 0px, #1a1a1a 1px, #111 2px),
        conic-gradient(from 0deg, #0a0a0a 0deg 20deg, #151515 20deg 40deg, #0a0a0a 40deg 60deg, #151515 60deg 80deg, #0a0a0a 80deg 100deg, #151515 100deg 120deg, #0a0a0a 120deg 140deg, #151515 140deg 160deg, #0a0a0a 160deg 180deg, #151515 180deg 200deg, #0a0a0a 200deg 220deg, #151515 220deg 240deg, #0a0a0a 240deg 260deg, #151515 260deg 280deg, #0a0a0a 280deg 300deg, #151515 300deg 320deg, #0a0a0a 320deg 340deg, #151515 340deg 360deg);
    border: 2px solid #333;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}
.vinyl-icon::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 22px; height: 22px; border-radius: 50%;
    background: linear-gradient(135deg, #8b0000, #5c0000);
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}
.vinyl-icon::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 6px; height: 6px; border-radius: 50%;
    background: #000; transform: translate(-50%, -50%); z-index: 1;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.song-detail-info { text-align: center; margin-bottom: 20px; width: 100%; }
.song-detail-info h2 {
    margin: 0 0 6px 0; font-size: 1.3rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.song-detail-info .artist { color: #888; font-size: 0.9rem; margin: 0; }
.play-mode-badge {
    display: inline-block; background: rgba(212, 175, 55, 0.2);
    color: var(--accent-color); padding: 4px 12px; border-radius: 20px;
    font-size: 0.75rem; margin-top: 8px;
}

.progress-section { width: 100%; margin-bottom: 20px; }

.progress-bar {
    width: 100%; height: 6px; background: #333;
    border-radius: 3px; position: relative;
    overflow: hidden;
}
.progress-bar:hover { height: 8px; }

.progress-fill {
    height: 100%; background: linear-gradient(90deg, var(--accent-color), #f0d78c);
    border-radius: 3px; width: 0%;
    pointer-events: none;
}

.time-display {
    display: flex; justify-content: space-between;
    font-size: 0.8rem; color: #666; margin-top: 8px;
}

.controls {
    display: flex; align-items: center; justify-content: center;
    gap: 15px; margin-bottom: 20px;
}

.control-btn {
    background: none; border: none; color: var(--accent-color);
    cursor: pointer; transition: all 0.2s; display: flex;
    align-items: center; justify-content: center;
}
.control-btn:hover { transform: scale(1.1); }
.control-btn:active { transform: scale(0.95); }

.control-btn.small {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(212, 175, 55, 0.15); border: 1px solid var(--accent-color);
    color: var(--accent-color); font-size: 1rem;
}
.control-btn.small:hover { background: rgba(212, 175, 55, 0.3); }
.control-btn.large {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--accent-color); color: #000;
    font-size: 1.5rem; border: none;
}
.control-btn.large:hover { background: #f0d78c; }

.play-mode-section {
    display: flex; justify-content: center;
    margin-bottom: 15px;
}

.play-mode-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px; background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--accent-color); border-radius: 20px;
    color: var(--accent-color); cursor: pointer;
    font-size: 0.85rem; transition: all 0.2s;
}
.play-mode-btn:hover { background: rgba(212, 175, 55, 0.3); }

.volume-section {
    display: flex; align-items: center; gap: 12px;
    width: 100%; max-width: 280px; padding: 12px 16px;
    background: rgba(255,255,255,0.05); border-radius: 10px;
}

.volume-icon {
    font-size: 1.2rem; color: var(--accent-color);
    min-width: 24px; text-align: center; cursor: pointer;
}

.volume-slider {
    flex: 1; -webkit-appearance: none; appearance: none;
    height: 6px; background: #333; border-radius: 3px;
    cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 16px; height: 16px;
    background: var(--accent-color); border-radius: 50%;
    cursor: pointer; transition: transform 0.2s;
}
.volume-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.volume-slider::-moz-range-thumb {
    width: 16px; height: 16px; background: var(--accent-color);
    border-radius: 50%; cursor: pointer; border: none;
}

.volume-value {
    font-size: 0.8rem; color: #888; min-width: 35px;
    text-align: right;
}

.action-buttons { display: flex; gap: 10px; margin-top: 15px; }

.action-btn-text {
    padding: 10px 20px; background: rgba(255,255,255,0.05);
    border: 1px solid #444; color: #aaa; border-radius: 6px;
    cursor: pointer; transition: all 0.2s; font-size: 0.85rem;
    text-decoration: none; display: flex; align-items: center; gap: 6px;
}
.action-btn-text:hover {
    background: rgba(255,255,255,0.1); border-color: var(--accent-color);
    color: var(--accent-color);
}

.mini-player {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(15,15,19,0.98);
    border-top: 1px solid var(--accent-color);
    padding: 10px 15px;
    display: none;
    align-items: center; gap: 12px;
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
    flex-wrap: wrap;
}

.mini-player-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.mini-player-right { display: flex; align-items: center; gap: 10px; }
.mini-progress { width: 100%; order: 3; }

.mini-vinyl {
    width: 44px; height: 44px; border-radius: 50%;
    background: radial-gradient(#222 60%, #000 65%);
    border: 2px solid #111;
    display: flex; align-items: center; justify-content: center;
    animation: spin 6s linear infinite; animation-play-state: paused;
    flex-shrink: 0; cursor: pointer;
}
.mini-vinyl-icon {
    width: 32px; height: 32px; border-radius: 50%;
    background: repeating-radial-gradient(circle at center, #111 0px, #1a1a1a 1px, #111 2px),
                conic-gradient(from 0deg, #0a0a0a 0deg 20deg, #151515 20deg 40deg, #0a0a0a 40deg 60deg, #151515 60deg 80deg, #0a0a0a 80deg 100deg, #151515 100deg 120deg, #0a0a0a 120deg 140deg, #151515 140deg 160deg, #0a0a0a 160deg 180deg, #151515 180deg 200deg, #0a0a0a 200deg 220deg, #151515 220deg 240deg, #0a0a0a 240deg 260deg, #151515 260deg 280deg, #0a0a0a 280deg 300deg, #151515 300deg 320deg, #0a0a0a 320deg 340deg, #151515 340deg 360deg);
    border: 1px solid #333; position: relative;
}
.mini-vinyl-icon::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 8px; height: 8px; border-radius: 50%;
    background: linear-gradient(135deg, #8b0000, #5c0000);
    transform: translate(-50%, -50%);
}

.mini-info { flex: 1; min-width: 0; }
.mini-title {
    color: #fff; font-size: 0.9rem; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.mini-artist { color: #666; font-size: 0.7rem; }

.mini-progress-bar {
    width: 100%; height: 4px; background: #333;
    border-radius: 2px; overflow: hidden;
}
.mini-progress-fill {
    height: 100%; background: var(--accent-color);
    width: 0%;
    pointer-events: none;
}
.mini-time {
    display: flex; justify-content: space-between;
    font-size: 0.65rem; color: #666; margin-top: 3px;
}

.mini-controls { display: flex; align-items: center; gap: 6px; }

.mini-control-btn {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(212, 175, 55, 0.15); border: 1px solid var(--accent-color);
    color: var(--accent-color); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.mini-control-btn:hover { background: rgba(212, 175, 55, 0.3); }

.mini-play-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--accent-color); color: #000;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.mini-play-btn:hover { background: #f0d78c; }

.mini-volume { display: flex; align-items: center; gap: 6px; }
.mini-volume-icon {
    font-size: 1rem; color: var(--accent-color);
    cursor: pointer; transition: transform 0.2s;
}
.mini-volume-icon:hover { transform: scale(1.1); }
.mini-volume-slider {
    width: 60px; height: 4px; -webkit-appearance: none;
    appearance: none; background: #333; border-radius: 2px;
    cursor: pointer;
}
.mini-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 12px; height: 12px;
    background: var(--accent-color); border-radius: 50%;
    cursor: pointer;
}

.no-songs { text-align: center; padding: 40px; color: #666; }
audio { display: none; }

@media (min-width: 768px) {
    .mini-player { flex-wrap: nowrap; padding: 12px 20px; }
    .mini-progress { width: auto; flex: 1; order: 0; max-width: 200px; }
    .mini-progress-bar { width: 100%; }
    .mini-volume-slider { width: 70px; }
}

@media (max-width: 600px) {
    .album-grid { grid-template-columns: 1fr; gap: 15px; }
    header h1 { font-size: 1.3rem; padding: 0 60px; }
    header p { font-size: 0.8rem !important; }
    .container { padding: 15px 12px; }
    .tag-tabs { gap: 8px; }
    .tag-tab { padding: 6px 12px; font-size: 0.85rem; }
    
    .song-list { width: calc(100% - 10px); padding: 0 5px; margin: 0 5px; }
    .song-row { padding: 10px 8px; gap: 8px; }
    .song-title { font-size: 0.9rem; }
    .song-artist { font-size: 0.75rem; }
    .action-btn { width: 32px; height: 32px; }
    .detail-btn { padding: 5px 8px; font-size: 0.7rem; }
    
    .mini-player { padding: 8px 10px; gap: 8px; }
    .mini-vinyl { width: 36px; height: 36px; }
    .mini-vinyl-icon { width: 26px; height: 26px; }
    .mini-title { font-size: 0.8rem; }
    .mini-artist { font-size: 0.65rem; }
    .mini-play-btn { width: 34px; height: 34px; }
    .mini-control-btn { width: 26px; height: 26px; }
    .mini-volume-slider { width: 50px; }
    
    .vinyl { width: 200px; height: 200px; }
    .vinyl-icon { width: 65px; height: 65px; }
    .vinyl-icon::after { width: 18px; height: 18px; }
    .song-detail-info h2 { font-size: 1.1rem; }
    .song-detail-info .artist { font-size: 0.85rem; }
    .control-btn.small { width: 40px; height: 40px; }
    .control-btn.large { width: 54px; height: 54px; }
    .volume-section { padding: 10px 12px; gap: 10px; }
    .volume-icon { font-size: 1.1rem; }
    .action-btn-text { padding: 8px 14px; font-size: 0.8rem; }
}

#view-simpleplay.active {
    overflow: hidden;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: transparent !important;
}

body.simpleplay-mode {
    background: transparent !important;
}

body.simpleplay-mode header,
body.simpleplay-mode .mini-player {
    display: none !important;
}

body.simpleplay-mode .container {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
}

body.simpleplay-mode .container > *:not(#view-simpleplay) {
    display: none !important;
}

html.simpleplay-mode {
    background: transparent !important;
}

.simple-player {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center;
    padding: 14px 18px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 280px;
}

.simple-progress {
    display: flex; align-items: center; gap: 8px;
    width: 100%;
    max-width: 280px;
    min-width: 200px;
    margin-bottom: 12px;
}

.simple-progress-bar {
    flex: 1; height: 4px; background: #e0e0e0;
    border-radius: 2px; overflow: hidden;
    min-width: 50px;
}

.simple-progress-fill {
    height: 100%; background: linear-gradient(90deg, #d4af37, #f0d78c);
    width: 0%; pointer-events: none;
    border-radius: 2px;
}

.simple-progress span {
    font-size: 0.7rem; color: #666;
    min-width: 32px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.simple-controls {
    display: flex; align-items: center; gap: 12px;
}

.simple-play-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #c9a227);
    color: #fff;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}
.simple-play-btn:hover {
    background: linear-gradient(135deg, #e6c456, #d4af37);
    transform: scale(1.05);
}

.simple-download-btn {
    width: 32px; height: 32px; border-radius: 50%;
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #888;
    display: flex;
    align-items: center; justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}
.simple-download-btn:hover {
    background: #eee;
    color: #d4af37;
    border-color: #d4af37;
}
