:root {
    --bg-color-deep: #121212;
    --bg-color-light: #1c1c1c;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --accent-color: #58a6ff;
    --border-color: #282828;
}

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

body {
    background: radial-gradient(circle at top, var(--bg-color-light), var(--bg-color-deep) 25%);
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary);
    
    padding: 120px 50px 180px 50px;
    min-height: 100vh;
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-color-deep); }
::-webkit-scrollbar-thumb { background-color: var(--border-color); border-radius: 10px; border: 2px solid var(--bg-color-deep); }

.site-nav {
    position: fixed; top: 0; left: 0; width: 100%;
    background-color: rgba(28, 28, 28, 0.8);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    display: flex; justify-content: center; align-items: center;
    padding: 0 20px; border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}
.site-nav a {
    color: var(--text-secondary); text-decoration: none; font-weight: 500;
    font-size: 1rem; padding: 20px;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
    border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--text-primary); }
.site-nav a.active { color: var(--text-primary); border-bottom-color: var(--accent-color); }

.archive-container { margin: 0; }
.archive-header {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.archive-header h1 { margin: 0 0 5px 0; font-size: 1.8rem; color: var(--text-primary); }
.archive-header p { margin: 0; color: var(--text-secondary); font-size: 1rem; }

.archive-list { list-style: none; padding: 0; margin: 0; }
.archive-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
}
.archive-item:last-child { border-bottom: none; }
.item-content { display: flex; flex-direction: column; gap: 12px; }
.item-header { display: flex; align-items: center; }
.item-title { font-size: 1.2rem; font-weight: 600; color: var(--text-primary); }

.item-datasheet {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px 24px;
    margin: 0;
}
.item-datasheet dt {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.item-datasheet dd {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
}

.item-type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 0;
    width: fit-content;
    color: #fff;
    letter-spacing: 0.5px;
}
.item-type[data-type="cassette"] { background-color: #405D78; }
.item-type[data-type="reel"] { background-color: #8E6F3E; }
.item-type[data-type="digital"] { background-color: #5F6368; }

.play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: opacity 0.2s ease;
    background: none; border: none; padding: 0;
}
.play-button svg { width: 24px; height: 24px; fill: var(--text-secondary); }
.play-button { cursor: not-allowed; opacity: 0.4; }
.play-button.enabled { cursor: pointer; opacity: 0.7; }
.play-button.enabled svg { fill: var(--text-primary); }
.play-button.enabled:hover { opacity: 1; }
.play-button .icon-pause { display: none; }
.play-button.playing .icon-play { display: none; }
.play-button.playing .icon-pause { display: block; }

.audio-player-bar {
    position: fixed;
    bottom: 20px;
    left: 50px;
    right: 50px;
    width: auto;
    background-color: rgba(28, 28, 28, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    transform: translateY(150%);
    transition: transform 0.4s ease-out;
}
.audio-player-bar.visible {
    transform: translateY(0);
}
.now-playing-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 20px;
}
.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
}
.volume-icon {
    width: 24px;
    height: 24px;
    fill: var(--text-secondary);
}

#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 150px;
    height: 4px;
    background: #444;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}
#volume-slider:hover { opacity: 1; }
#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--text-primary);
    cursor: pointer;
    border-radius: 50%;
}
#volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--text-primary);
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

@keyframes revealItem {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.archive-header,
.archive-item { opacity: 0; animation: revealItem 0.6s ease-out forwards; }
.archive-header { animation-delay: 0.2s; }
.archive-item:nth-child(1) { animation-delay: 0.5s; }
.archive-item:nth-child(2) { animation-delay: 0.55s; }
.archive-item:nth-child(3) { animation-delay: 0.6s; }
.archive-item:nth-child(4) { animation-delay: 0.65s; }
.archive-item:nth-child(5) { animation-delay: 0.7s; }
.archive-item:nth-child(6) { animation-delay: 0.75s; }
.archive-item:nth-child(7) { animation-delay: 0.8s; }
.archive-item:nth-child(8) { animation-delay: 0.85s; }
.archive-item:nth-child(9) { animation-delay: 0.9s; }
.archive-item:nth-child(10) { animation-delay: 0.95s; }
.archive-item:nth-child(11) { animation-delay: 1.0s; }
.archive-item:nth-child(12) { animation-delay: 1.05s; }
.archive-item:nth-child(13) { animation-delay: 1.1s; }