/* -------------------------------------------------------
   VINTAGE PLAYER STYLING (Music Page)
--------------------------------------------------------*/

.vintage-player-wrapper {
    background: #1a120b;
    border: 2px solid #3a2715;
    padding: 30px;
    border-radius: 4px;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
    max-width: 800px;
    margin: 40px auto;
}

.player-display {
    background: #000;
    border: 1px solid #d7b16f;
    padding: 20px;
    margin-bottom: 25px;
    font-family: 'Courier New', monospace;
    color: #e6c885;
    text-shadow: 0 0 10px rgba(230, 200, 133, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.now-playing {
    display: flex;
    flex-direction: column;
    text-align: left;
}

#track-title {
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
}

#track-artist {
    font-size: 0.8rem;
    opacity: 0.7;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.ctrl-btn {
    background: none;
    border: 2px solid #d7b16f;
    color: #d7b16f;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctrl-btn:hover {
    background: #d7b16f;
    color: #1a120b;
}

.play-main {
    width: 70px;
    height: 70px;
    font-size: 1.4rem;
}

/* PROGRESS BAR */
.progress-container {
    background: #222;
    height: 10px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid #3a2715;
}

.progress-bar {
    background: #d7b16f;
    height: 100%;
    width: 0%;
    transition: width 0.1s linear;
}

/* PLAYLIST (Music Page) */
.playlist {
    margin-top: 30px;
    border-top: 1px solid #3a2715;
    padding-top: 20px;
}

#playlist-items {
    list-style: none;
    padding: 0;
}

.playlist-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(215, 177, 111, 0.1);
    cursor: pointer;
    color: #888;
    transition: all 0.2s;
}

.playlist-item:hover {
    background: rgba(215, 177, 111, 0.05);
    color: #d7b16f;
}

.playlist-item.active {
    color: #d7b16f;
    font-weight: bold;
    border-left: 3px solid #d7b16f;
}


/* -------------------------------------------------------
   ARCHIVE TERMINAL STYLING (Words Page Index)
--------------------------------------------------------*/

.archive-terminal {
    background: #1a120b;
    /* Match the player's dark wood/metal */
    border: 3px solid #3a2715;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 0, 0, 0.5);
    font-family: 'Courier New', monospace;
    width: 100%;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 5px;
}

.terminal-header h3 {
    font-size: 0.8rem;
    color: #d7b16f;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.terminal-status {
    font-size: 0.65rem;
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    font-weight: bold;
}

.terminal-display {
    background: #000;
    border: 1px solid #3a2715;
    padding: 10px;
    height: 520px;
    /* Fixed height: handles entries via scroll */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #3a2715 #000;
}

/* Custom Scrollbar for Terminal */
.terminal-display::-webkit-scrollbar {
    width: 4px;
}

.terminal-display::-webkit-scrollbar-track {
    background: #000;
}

.terminal-display::-webkit-scrollbar-thumb {
    background: #3a2715;
}

/* REUSING ID for list but styling for Terminal */
#archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#archive-list li {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(215, 177, 111, 0.1);
    cursor: pointer;
    color: #e6c885;
    /* Glowing amber text */
    font-size: 0.85rem;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
    opacity: 0.7;
}

#archive-list li:hover {
    opacity: 1;
    color: #fff;
    text-shadow: 0 0 8px #e6c885;
}

#archive-list li.active {
    opacity: 1;
    color: #fff;
    border-left: 3px solid #d7b16f;
    padding-left: 12px;
    background: rgba(215, 177, 111, 0.05);
}

#archive-list li span.date {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-top: 4px;
    font-family: monospace;
}

.terminal-footer {
    margin-top: 10px;
    font-size: 0.6rem;
    color: #3a2715;
    text-align: right;
    letter-spacing: 0.1em;
}

/* Mobile Tweak */
@media (max-width: 900px) {
    .archive-terminal {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .terminal-display {
        height: 250px;
        /* Shorter display on mobile */
    }
}