:root {
    --bg-color: #253241;
    --accent-color: #e8a87c;
    --text-color: #DF813E;
    --border-style: 1px solid var(--accent-color);
    --font-mono: 'Courier New', Courier, monospace;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-mono);
    margin: 0;
    line-height: 1.6;
    text-transform: uppercase;
}

/* Base container: uses grid for desktop */
.container {
    display: grid;
    grid-template-columns: 350px 1fr;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    padding: 3rem;
    border-right: var(--border-style);
}

.brand { font-size: 2.5rem; margin-bottom: 0.5rem; line-height: 1; }
.subtitle { font-size: 0.8rem; margin-bottom: 2rem; opacity: 0.8; }

#searchBar {
    width: 100%;
    background: transparent;
    border: var(--border-style);
    color: var(--accent-color);
    padding: 10px;
    font-family: var(--font-mono);
    outline: none;
}

#searchBar:focus { box-shadow: 0 0 10px var(--accent-color); }

/* Main Content */
.content { padding: 3rem; position: relative; }

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.tiger-logo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: var(--border-style);
    filter: drop-shadow(0 0 15px rgba(232, 168, 124, 0.3));
}

/* Responsive Table Wrapper */
.table-wrapper {
    width: 100%;
    overflow-x: auto; /* Allows horizontal scroll for the table only if content is too wide */
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px; /* Ensures the table doesn't get crushed too small */
}

th { text-align: left; border-bottom: var(--border-style); padding: 1rem; }
td { padding: 1rem; border-bottom: rgba(232, 168, 124, 0.2) 1px solid; }

/* Handle long titles */
td:nth-child(2) {
    word-break: break-word;
    max-width: 200px;
}

.mix-row:hover { background: rgba(232, 168, 124, 0.05); cursor: pointer; }

.expand-btn { 
    background: none; border: var(--border-style); color: var(--accent-color); 
    cursor: pointer; width: 30px; height: 30px; 
}

/* Expanded Detail */
.detail-row { display: none; background: rgba(0,0,0,0.2); animation: fadeIn 0.4s ease; }
.detail-content { padding: 2rem; border-left: 5px solid var(--accent-color); }

.audio-player { margin-bottom: 1.5rem; width: 100%; }
audio { width: 100%; filter: sepia(20%) saturate(70%) hue-rotate(330deg); }

.tracklist { font-size: 0.9rem; list-style: none; padding: 0; }
.tracklist li { margin-bottom: 5px; }

.download-link {
    display: inline-block; margin-top: 1rem; padding: 5px 15px;
    border: var(--border-style); text-decoration: none; color: inherit;
}

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

/* CUSTOM PLAYER UI */
.custom-player {
    border: 1px solid var(--accent-color);
    padding: 15px;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.play-pause {
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 5px 15px;
    font-family: var(--font-mono);
    font-weight: bold;
    cursor: pointer;
}

.seek-bar {
    flex-grow: 1;
    appearance: none;
    background: rgba(232, 168, 124, 0.2);
    height: 4px;
    outline: none;
}

.seek-bar::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 0 8px var(--accent-color);
}

.time-display {
    font-size: 0.8rem;
    min-width: 45px;
}

/* MOBILE FIXES */
@media (max-width: 900px) {
    .container { 
        display: block; /* Stack sidebar on top of content */
    }

    .sidebar { 
        padding: 2rem 1.5rem;
        border-right: none; 
        border-bottom: var(--border-style);
        text-align: center;
    }

    .content {
        padding: 1.5rem;
    }

    .tiger-logo {
        width: 180px;
        height: 180px;
    }

    th, td {
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
    }

    td:nth-child(2) {
        max-width: 120px; /* Tighter title constraint for mobile */
    }
}