/* ===================================================
   tylerhamiltonmn.com
   GBA/DS Pokemon-era aesthetic + MN flag colors
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

/* PokemonFRLG font is unreliable across browsers, using Press Start 2P for headings
   and VT323 for body text (both retro pixel-style but VT323 is more readable) */

/* --- Color Palette --- */
:root {
    --deep-blue: #003082;
    --mid-blue: #1a5fb4;
    --gold: #FFD700;
    --gold-dark: #C5A600;
    --forest-green: #2E8B57;
    --green-light: #3CB371;
    --cream: #F5F0E1;
    --cream-dark: #E8E0CC;
    --panel-bg: #F8F4E8;
    --text-dark: #1a1a2e;
    --text-body: #2d2d44;
    --border-outer: #1a1a2e;
    --border-inner: #5a5a7a;
    --border-highlight: #c8c0a8;
    --shadow: rgba(0, 0, 0, 0.15);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Press Start 2P', monospace;
    background-color: var(--deep-blue);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(46, 139, 87, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    color: var(--text-body);
    line-height: 1.6;
    min-height: 100vh;
}

/* --- Layout Shell --- */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* --- Two-Column Grid (desktop) --- */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.grid-2col > * {
    margin-bottom: 0;
}

/* --- Pokemon-style Panel (dialogue box) --- */
.panel {
    background: var(--panel-bg);
    border: 4px solid var(--border-outer);
    border-radius: 12px;
    box-shadow:
        inset 2px 2px 0 var(--border-highlight),
        inset -2px -2px 0 var(--border-inner),
        4px 4px 0 rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.panel--gold {
    border-color: var(--gold-dark);
    box-shadow:
        inset 2px 2px 0 #fff3b0,
        inset -2px -2px 0 var(--gold-dark),
        4px 4px 0 rgba(0, 0, 0, 0.3);
}

.panel--green {
    border-color: var(--forest-green);
    box-shadow:
        inset 2px 2px 0 #90e0b0,
        inset -2px -2px 0 #1e6b3f,
        4px 4px 0 rgba(0, 0, 0, 0.3);
}

/* --- Navigation (Pokemon start menu style) --- */
nav.main-nav {
    background: linear-gradient(135deg, #fff8dc, #fff3b0);
    border: 4px solid var(--gold-dark);
    border-radius: 12px;
    box-shadow:
        inset 2px 2px 0 #fff3b0,
        inset -2px -2px 0 var(--gold-dark),
        4px 4px 0 rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

nav.main-nav .nav-title {
    font-size: 1.25rem;
    color: var(--deep-blue);
    padding: 0.25rem 0;
}

nav.main-nav .nav-stars {
    color: var(--gold-dark);
    display: inline-flex;
    gap: 0.2rem;
    align-items: center;
    margin-right: auto;
    padding: 0 0.4rem;
}

nav.main-nav a {
    font-size: 0.8rem;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    position: relative;
}

nav.main-nav a:hover,
nav.main-nav a.active {
    background: var(--deep-blue);
    color: var(--cream);
}

nav.main-nav a::before {
    content: '▶';
    font-size: 0.7rem;
    margin-right: 0.35rem;
    opacity: 0;
    transition: opacity 0.15s;
}

nav.main-nav a:hover::before {
    opacity: 1;
}

/* --- Typography --- */
h1, h2, h3 {
    color: var(--deep-blue);
    line-height: 1.8;
}

h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

p {
    font-family: 'VT323', monospace;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    line-height: 1.35;
}

/* --- Gold Accent Heading Bar --- */
.heading-bar {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--text-dark);
    font-size: 1.15rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid var(--gold-dark);
}

.heading-bar--green {
    background: linear-gradient(135deg, var(--forest-green), #2a6e35);
    color: var(--cream);
    border-color: #2a6e35;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25);
}

/* --- Links --- */
a {
    color: var(--mid-blue);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--forest-green);
}

/* --- Tags / Badges --- */
.tag {
    display: inline-block;
    font-size: 0.85rem;
    background: var(--cream-dark);
    color: var(--text-dark);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    border: 2px solid var(--border-inner);
    margin: 0.15rem;
}

.tag--green {
    background: #d4edda;
    border-color: var(--forest-green);
    color: #1e6b3f;
}

.tag--blue {
    background: #d0e3f7;
    border-color: var(--deep-blue);
    color: var(--deep-blue);
}

.tag--gold {
    background: #fff3cd;
    border-color: var(--gold-dark);
    color: #856404;
}

/* --- Project Cards --- */
.project-card {
    background: var(--panel-bg);
    border: 3px solid var(--border-outer);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow:
        inset 1px 1px 0 var(--border-highlight),
        inset -1px -1px 0 var(--border-inner),
        3px 3px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.15s, box-shadow 0.15s;
}

.project-card:hover {
    transform: translate(-2px, -2px);
    box-shadow:
        inset 1px 1px 0 var(--border-highlight),
        inset -1px -1px 0 var(--border-inner),
        5px 5px 0 rgba(0, 0, 0, 0.25);
}

.project-card h3 a {
    color: var(--deep-blue);
    text-decoration: none;
}

.project-card h3 a:hover {
    color: var(--forest-green);
}

.project-card .summary {
    margin: 0.5rem 0;
    color: var(--text-body);
}

.project-card .tags {
    margin-top: 0.5rem;
}

/* --- Project Grid --- */
.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.project-grid .project-card {
    margin-bottom: 0;
}

/* --- Preview Thumbnails --- */
.project-card__body {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1rem;
}

.project-card__info {
    flex: 1;
    min-width: 0;
}

.preview-sidebar {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-end;
}

.preview-images {
    display: flex;
    gap: 0.4rem;
}

.preview-files {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-end;
}

.preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.preview-thumb {
    display: block;
    width: 56px;
    height: 56px;
    max-width: 56px;
    max-height: 56px;
    min-width: 56px;
    min-height: 56px;
    object-fit: cover;
    border: 3px solid var(--border-outer);
    border-radius: 6px;
    background: var(--cream);
}

.preview-ext-box {
    height: 26px;
    min-width: 56px;
    max-width: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.4rem;
    border: 3px solid var(--border-outer);
    border-radius: 6px;
    background: linear-gradient(135deg, var(--cream-dark), var(--cream));
    box-shadow: inset 1px 1px 0 var(--border-highlight);
}

.preview-ext-box--excel {
    border-color: var(--forest-green);
    background: linear-gradient(135deg, #d4edda, #e8f5e9);
    box-shadow: inset 1px 1px 0 #90e0b0;
}

.preview-ext-box--ppt {
    border-color: #c0392b;
    background: linear-gradient(135deg, #f8d7da, #fce4ec);
    box-shadow: inset 1px 1px 0 #f5b7b1;
}

.preview-ext-box--word {
    border-color: var(--deep-blue);
    background: linear-gradient(135deg, #d0e3f7, #e3f2fd);
    box-shadow: inset 1px 1px 0 #90caf9;
}

.preview-ext-box--pdf {
    border-color: var(--gold-dark);
    background: linear-gradient(135deg, #fff3cd, #fff8dc);
    box-shadow: inset 1px 1px 0 #ffe082;
}

.preview-ext-box--code {
    border-color: #7b1fa2;
    background: linear-gradient(135deg, #e1bee7, #f3e5f5);
    box-shadow: inset 1px 1px 0 #ce93d8;
}

.preview-ext-box--archive {
    border-color: #c2185b;
    background: linear-gradient(135deg, #f8bbd9, #fce4ec);
    box-shadow: inset 1px 1px 0 #f48fb1;
}

.preview-ext-box--audio {
    border-color: #e65100;
    background: linear-gradient(135deg, #ffe0b2, #fff3e0);
    box-shadow: inset 1px 1px 0 #ffb74d;
}

.preview-ext-box--video {
    border-color: #00838f;
    background: linear-gradient(135deg, #b2ebf2, #e0f7fa);
    box-shadow: inset 1px 1px 0 #4dd0e1;
}

.preview-ext-label {
    font-family: 'VT323', monospace;
    font-size: 0.55rem;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.preview-more-box {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    color: var(--text-body);
    background: var(--cream-dark);
    border: 2px dashed var(--border-inner);
    border-radius: 6px;
}

.preview-ext-more {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    color: var(--text-body);
    background: var(--cream-dark);
    border: 2px dashed var(--border-inner);
}

/* --- Admin File List --- */
.file-list-scroll {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

/* --- Section Divider --- */
.divider {
    border: none;
    height: 4px;
    background: linear-gradient(90deg,
        transparent,
        var(--gold) 20%,
        var(--gold) 80%,
        transparent);
    margin: 1.5rem 0;
    border-radius: 2px;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.85rem;
    color: var(--cream-dark);
    margin-top: 2rem;
}

footer a {
    color: var(--gold);
}

/* --- Forms --- */
label {
    display: block;
    font-size: 0.8rem;
    color: var(--deep-blue);
    margin-bottom: 0.3rem;
    margin-top: 0.75rem;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    font-family: 'VT323', monospace;
    font-size: 0.95rem;
    padding: 0.5rem;
    border: 3px solid var(--border-outer);
    border-radius: 6px;
    background: var(--cream);
    color: var(--text-dark);
    box-shadow: inset 1px 1px 0 var(--border-inner);
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--mid-blue);
    box-shadow: inset 1px 1px 0 var(--mid-blue);
}

textarea {
    resize: vertical;
}

button, .btn {
    display: inline-block;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border: 3px solid var(--border-outer);
    border-radius: 6px;
    background: var(--panel-bg);
    color: var(--text-dark);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
    margin-top: 0.75rem;
}

button:hover, .btn:hover {
    background: var(--deep-blue);
    color: var(--cream);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
}

button:active, .btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

.btn--green {
    background: var(--forest-green);
    color: var(--cream);
    border-color: #1e6b3f;
}

.btn--small {
    font-size: 0.6rem;
    padding: 0.3rem 0.6rem;
}

.btn--danger {
    background: #c0392b;
    color: var(--cream);
    border-color: #922b21;
}

.btn--danger:hover {
    background: #922b21;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .grid-2col {
        grid-template-columns: 1fr;
    }

    .grid-2col > * {
        margin-bottom: 1.25rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-wrapper {
        padding: 1rem 0.5rem;
    }

    nav.main-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav.main-nav .nav-title {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .project-card__body {
        flex-direction: column;
    }

    .preview-sidebar {
        margin-top: 0.75rem;
        align-items: flex-start;
    }

    .preview-files {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .preview-grid {
        justify-content: flex-start;
    }
}

/* ===================================================
   Music Player
   =================================================== */

.music-player {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    align-items: stretch;
    transition: transform 0.3s ease;
}

.music-player.collapsed {
    transform: translateY(-50%) translateX(calc(100% - 32px));
}

.player-toggle {
    width: 32px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: 3px solid var(--gold-dark);
    border-right: none;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s;
}

.player-toggle:hover {
    background: linear-gradient(135deg, #ffe066, var(--gold));
}

.music-player.collapsed .player-toggle {
    border-radius: 8px 0 0 8px;
}

.player-content {
    width: 242px;
    background: var(--panel-bg);
    border: 4px solid var(--gold-dark);
    border-radius: 0 0 0 12px;
    box-shadow:
        inset 2px 2px 0 #fff3b0,
        inset -2px -2px 0 var(--gold-dark),
        -4px 4px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Autoplay blocked prompt */
.autoplay-prompt {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    padding: 0.6rem;
    text-align: center;
    border-bottom: 2px solid #cc4444;
    animation: pulse-glow 1.5s ease-in-out infinite;
    font-family: 'VT323', monospace;
    font-size: 0.7rem;
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3); }
    50% { box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5); }
}

.player-header {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--text-dark);
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid var(--gold-dark);
}

.player-track-info {
    padding: 0.5rem 0.6rem;
    border-bottom: 2px solid var(--border-inner);
    min-height: 48px;
}

.player-title-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.player-title {
    font-family: 'VT323', monospace;
    font-size: 0.86rem;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.player-btn.player-btn--fav {
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
    padding: 0;
    background: var(--deep-blue);
    border: 1px solid var(--border-outer);
    border-radius: 3px;
    cursor: pointer;
    color: var(--gold);
    transition: background 0.15s, transform 0.15s;
}

.player-btn.player-btn--fav:hover {
    background: var(--mid-blue);
    transform: scale(1.1);
    color: var(--gold);
}

.player-btn.player-btn--fav.active {
    color: #e74c3c;
}

.player-title.marquee {
    animation: marquee 8s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.player-artist {
    font-family: 'VT323', monospace;
    font-size: 0.75rem;
    color: var(--text-body);
    margin-top: 0.2rem;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem;
    border-bottom: 2px solid var(--border-inner);
}

.player-btn {
    background: var(--cream);
    border: 2px solid var(--border-outer);
    border-radius: 4px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
    padding: 0;
}

.player-btn:hover {
    background: var(--deep-blue);
    color: var(--cream);
    transform: translate(-1px, -1px);
}

.player-btn:active {
    transform: translate(0, 0);
}

.player-btn--main {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
    background: var(--forest-green);
    color: var(--cream);
    border-color: #1e6b3f;
}

.player-btn--main:hover {
    background: #3CB371;
}

.player-btn--small {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
}

.player-btn.active {
    background: var(--deep-blue);
    color: var(--gold);
}

.player-seek,
.player-volume {
    padding: 0.4rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.player-seek {
    border-bottom: 2px solid var(--border-inner);
}

.player-range {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--cream-dark);
    border: 2px solid var(--border-inner);
    border-radius: 4px;
    cursor: pointer;
}

.player-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--forest-green);
    border: 2px solid #1e6b3f;
    border-radius: 50%;
    cursor: pointer;
}

.player-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--forest-green);
    border: 2px solid #1e6b3f;
    border-radius: 50%;
    cursor: pointer;
}

#player-time {
    font-family: 'VT323', monospace;
    font-size: 0.6rem;
    color: var(--text-body);
    min-width: 32px;
    text-align: right;
}

.volume-icon {
    font-size: 0.75rem;
}

/* Search */
.player-search {
    position: relative;
    padding: 0.4rem 0.6rem;
    border-bottom: 2px solid var(--border-inner);
}

.player-search input {
    width: 100%;
    font-family: 'VT323', monospace;
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
    background: var(--cream);
    border: 2px solid var(--border-inner);
    border-radius: 4px;
    color: var(--text-dark);
    box-sizing: border-box;
}

.player-search input:focus {
    outline: none;
    border-color: var(--deep-blue);
}

.player-search input::placeholder {
    color: var(--text-body);
    opacity: 0.6;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0.6rem;
    right: 0.6rem;
    background: var(--cream);
    border: 2px solid var(--border-outer);
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.search-result {
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid var(--border-inner);
    cursor: pointer;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.4rem;
}

.search-result:last-child {
    border-bottom: none;
}

.search-result:hover {
    background: var(--cream-dark);
}

.search-result-title {
    font-family: 'VT323', monospace;
    font-size: 0.92rem;
    color: var(--text-dark);
    font-weight: bold;
}

.search-result-artist {
    font-family: 'VT323', monospace;
    font-size: 0.75rem;
    color: var(--text-body);
}

.search-result-actions {
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
}

.search-result-actions button {
    font-size: 0.55rem;
    padding: 0.15rem 0.3rem;
    background: var(--deep-blue);
    color: var(--gold);
    border: 1px solid var(--border-outer);
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Press Start 2P', monospace;
}

.search-result-actions button:hover {
    background: var(--mid-blue);
}

.search-result-actions button.fav-btn {
    font-size: 0.75rem;
    padding: 0.1rem 0.3rem;
}

.search-result-actions button.fav-btn:hover {
    background: var(--mid-blue);
}

.search-result-actions button.fav-btn.active {
    color: #e74c3c;
}

.search-no-results {
    padding: 0.5rem;
    text-align: center;
    font-family: 'VT323', monospace;
    font-size: 0.75rem;
    color: var(--text-body);
    font-style: italic;
}

.player-playlist-selector {
    display: flex;
    gap: 0.3rem;
    padding: 0.4rem 0.6rem;
    border-bottom: 2px solid var(--border-inner);
}

.player-playlist-selector select {
    flex: 1;
    font-family: 'VT323', monospace;
    font-size: 0.75rem;
    padding: 0.3rem;
    background: var(--cream);
    border: 2px solid var(--border-inner);
    border-radius: 4px;
    color: var(--text-dark);
    cursor: pointer;
}

.player-playlist-selector select option:disabled {
    color: #999;
    font-style: italic;
}

.player-playlist-selector select:focus {
    outline: none;
    border-color: var(--deep-blue);
}

.player-playlist-toggle {
    padding: 0.4rem 0.6rem;
    border-bottom: 2px solid var(--border-inner);
}

.player-playlist-toggle button {
    background: none;
    border: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    color: var(--deep-blue);
    cursor: pointer;
    padding: 0.2rem;
    margin: 0;
    box-shadow: none;
}

.player-playlist-toggle button:hover {
    color: var(--forest-green);
    background: none;
    transform: none;
}

.player-playlist {
    max-height: 150px;
    overflow-y: auto;
    background: var(--cream);
}

.player-playlist ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.player-playlist li {
    font-family: 'VT323', monospace;
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid var(--border-inner);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.player-playlist li:hover {
    background: var(--cream-dark);
}

.player-playlist li.active {
    background: linear-gradient(90deg, #d4edda, var(--cream));
    color: var(--forest-green);
}

.player-playlist li .track-indicator {
    font-size: 0.5rem;
}

.player-playlist li.playlist-empty-msg {
    font-style: italic;
    color: var(--text-body);
    opacity: 0.7;
    cursor: default;
    padding: 0.6rem;
    text-align: center;
}

.player-playlist li.playlist-empty-msg:hover {
    background: transparent;
}

/* Mobile: collapsed by default */
@media (max-width: 768px) {
    .music-player {
        transform: translateY(-50%) translateX(calc(100% - 32px));
    }
    
    .music-player.expanded {
        transform: translateY(-50%) translateX(0);
    }
    
    .player-content {
        width: 200px;
    }
}

/* HTMX loading indicator */
.htmx-request #main-content {
    opacity: 0.7;
    transition: opacity 0.15s;
}

