/* ============================================
   MUSIC TASTE ANALYZER — STYLE
   Dark glassmorphism, animated, responsive
   ============================================ */

:root {
    --purple: #8b5cf6;
    --pink: #ec4899;
    --cyan: #06b6d4;
    --bg: #0a0a1a;
    --bg2: #0f0f23;
    --surface: rgba(255, 255, 255, 0.03);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --text: #e2e8f0;
    --text-dim: #94a3b8;
    --text-bright: #f8fafc;
    --radius: 20px;
    --radius-sm: 12px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---- Background ---- */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 60%);
    animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1) translateX(2%); }
}

.particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ---- Container ---- */
.container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

/* ---- Glass Card ---- */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: var(--glass-hover);
}

/* ---- Header ---- */
.header {
    padding: 32px 0 24px;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    animation: spin 8s linear infinite;
}

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

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple), var(--pink), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.subtitle {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 2px;
}

/* ---- Tabs ---- */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.tab {
    flex: 1;
    padding: 10px 8px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.tab.active {
    color: var(--text-bright);
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.tab-icon {
    font-size: 1rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-description {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.tab-description strong {
    color: var(--text);
}

/* ---- Textarea ---- */
textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.85rem;
    padding: 16px;
    resize: vertical;
    outline: none;
    transition: border-color 0.25s ease;
    line-height: 1.6;
}

textarea:focus {
    border-color: rgba(139, 92, 246, 0.4);
}

textarea::placeholder {
    color: rgba(148, 163, 184, 0.4);
}

/* ---- Drop Zone ---- */
.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.05);
}

.drop-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.drop-zone p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.drop-or {
    display: block;
    color: var(--text-dim);
    font-size: 0.8rem;
    margin: 12px 0;
}

.file-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: var(--purple);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.file-label:hover {
    background: rgba(139, 92, 246, 0.25);
}

.file-name {
    margin-top: 12px;
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 0.8rem;
}

/* ---- Buttons ---- */
.btn-analyze {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 20px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-analyze::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-analyze:hover::before {
    transform: translateX(100%);
}

.btn-analyze:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
}

.btn-analyze:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-analyze:hover .btn-icon {
    transform: translateX(4px);
}

/* ---- Demo ---- */
.demo-content {
    text-align: center;
    padding: 20px 0;
}

.demo-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.demo-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-bright);
}

.demo-content p {
    color: var(--text-dim);
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.demo-artists {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.demo-chip {
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--purple);
    font-weight: 500;
}

.demo-chip:nth-child(even) {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.2);
    color: var(--pink);
}

.demo-chip:nth-child(3n) {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
    color: var(--cyan);
}

.btn-demo {
    max-width: 300px;
    margin: 0 auto;
}

/* ---- Loading ---- */
.loading-section {
    padding: 60px 0;
}

.loading-card {
    text-align: center;
    padding: 60px 32px;
}

.equalizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 60px;
    margin-bottom: 24px;
}

.eq-bar {
    width: 8px;
    border-radius: 4px;
    animation: eqBounce 0.8s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { height: 20px; background: var(--purple); animation-delay: 0s; }
.eq-bar:nth-child(2) { height: 40px; background: #a855f7; animation-delay: 0.1s; }
.eq-bar:nth-child(3) { height: 30px; background: #c084fc; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { height: 50px; background: var(--pink); animation-delay: 0.3s; }
.eq-bar:nth-child(5) { height: 25px; background: #f472b6; animation-delay: 0.4s; }
.eq-bar:nth-child(6) { height: 45px; background: var(--cyan); animation-delay: 0.5s; }
.eq-bar:nth-child(7) { height: 35px; background: #22d3ee; animation-delay: 0.6s; }
.eq-bar:nth-child(8) { height: 20px; background: var(--purple); animation-delay: 0.7s; }

@keyframes eqBounce {
    0% { height: 10px; }
    100% { height: 55px; }
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.loading-sub {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ---- Error ---- */
.error-card {
    text-align: center;
    padding: 48px 32px;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.error-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f87171;
    margin-bottom: 8px;
}

.error-card p {
    color: var(--text-dim);
    margin-bottom: 20px;
}

/* ---- Results ---- */
.results-section {
    padding-top: 16px;
}

.btn-back {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-family: var(--font);
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-back:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.result-card {
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-icon {
    font-size: 1.2rem;
}

/* Animation */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Vibe Card ---- */
.vibe-card {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.05));
    border-color: rgba(139, 92, 246, 0.15);
}

.vibe-gauge {
    position: relative;
    width: 180px;
    height: 180px;
    flex-shrink: 0;
}

.vibe-svg {
    width: 100%;
    height: 100%;
}

.vibe-progress {
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.vibe-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vibe-number {
    font-family: var(--mono);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-bright);
}

.vibe-max {
    font-family: var(--mono);
    font-size: 1rem;
    color: var(--text-dim);
    margin-top: 12px;
}

.vibe-info {
    flex: 1;
}

.vibe-label {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.vibe-desc {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.vibe-stats {
    display: flex;
    gap: 24px;
}

.vibe-stat {
    display: flex;
    flex-direction: column;
}

.vibe-stat-num {
    font-family: var(--mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-bright);
}

.vibe-stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- Bar Chart ---- */
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-name {
    width: 130px;
    font-size: 0.82rem;
    color: var(--text);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 28px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    width: 0;
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    display: flex;
    align-items: center;
    padding-right: 10px;
    justify-content: flex-end;
}

.bar-fill.animated {
    width: var(--target-width);
}

.bar-count {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* ---- Songs List ---- */
.songs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    transition: background 0.25s ease;
}

.song-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.song-rank {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dim);
    width: 28px;
    text-align: center;
}

.song-rank.top-3 {
    color: var(--purple);
}

.song-art {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.song-info {
    flex: 1;
    min-width: 0;
}

.song-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.song-plays {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    flex-shrink: 0;
}

/* ---- Genre Donut ---- */
.results-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.donut-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.donut-chart {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: relative;
}

.donut-center {
    position: absolute;
    inset: 30%;
    background: var(--bg2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.donut-center-num {
    font-family: var(--mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-bright);
}

.donut-center-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

.genre-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.genre-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.genre-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.genre-pct {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text);
}

/* ---- Taste Profile ---- */
.taste-profile {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.taste-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.taste-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.taste-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.taste-value {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text);
    font-weight: 600;
}

.taste-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.taste-bar-fill {
    height: 100%;
    border-radius: 4px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.taste-bar-fill.animated {
    width: var(--target-width);
}

/* ---- Timeline ---- */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.timeline-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
}

.hour-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 100px;
}

.hour-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hour-bar {
    width: 100%;
    min-height: 2px;
    border-radius: 3px 3px 0 0;
    transition: height 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.hour-label {
    font-size: 0.55rem;
    color: var(--text-dim);
    font-family: var(--mono);
}

.day-chart {
    display: flex;
    gap: 8px;
}

.day-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.day-bar {
    width: 100%;
    height: 60px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.day-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 6px;
    transition: height 1s cubic-bezier(0.22, 1, 0.36, 1);
    height: 0;
}

.day-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 500;
}

.day-count {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text-dim);
}

/* ---- Fun Stats ---- */
.fun-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.fun-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.fun-stat:hover {
    border-color: rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.05);
    transform: translateY(-2px);
}

.fun-stat-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.fun-stat-value {
    font-family: var(--mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 4px;
}

.fun-stat-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fun-stat-detail {
    font-size: 0.75rem;
    color: var(--purple);
    margin-top: 4px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Export ---- */
.export-card {
    text-align: center;
}

.export-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-export {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-export:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--text-bright);
    transform: translateY(-2px);
}

/* ---- Footer ---- */
.footer {
    text-align: center;
    padding: 40px 0 20px;
    color: var(--text-dim);
    font-size: 0.78rem;
}

/* ---- Toast ---- */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(139, 92, 246, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 16px 12px 40px;
    }

    .glass-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .header h1 {
        font-size: 1.4rem;
    }

    .tabs {
        gap: 2px;
    }

    .tab {
        padding: 8px 4px;
        font-size: 0.75rem;
    }

    .tab-icon {
        display: none;
    }

    /* Vibe card stacks vertically */
    .vibe-card {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
        gap: 20px;
    }

    .vibe-gauge {
        width: 150px;
        height: 150px;
    }

    .vibe-number {
        font-size: 2.4rem;
    }

    .vibe-label {
        font-size: 1.3rem;
    }

    .vibe-stats {
        justify-content: center;
    }

    /* Row becomes column */
    .results-row {
        grid-template-columns: 1fr;
    }

    /* Bar names smaller */
    .bar-name {
        width: 90px;
        font-size: 0.75rem;
    }

    /* Fun stats 2 cols on mobile */
    .fun-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hour chart */
    .hour-chart {
        gap: 2px;
        height: 80px;
    }

    .hour-label {
        font-size: 0.45rem;
    }

    /* Export */
    .export-buttons {
        flex-direction: column;
    }

    .btn-export {
        justify-content: center;
    }

    .song-art {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 400px) {
    .header h1 {
        font-size: 1.2rem;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .fun-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fun-stat-value {
        font-size: 1.2rem;
    }

    .vibe-gauge {
        width: 130px;
        height: 130px;
    }

    .vibe-number {
        font-size: 2rem;
    }
}