:root {
    --bg-primary: #080a12;
    --bg-card: #121728;
    --bg-card-alt: #1c1230;
    --accent-primary: #8b5cf6;
    --accent-secondary: #ec4899;
    --accent-data: #22d3ee;
    --accent-success: #1db954;
    --accent-warning: #f59e0b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --border-soft: rgba(255, 255, 255, 0.08);
    --shadow-glow: 0 20px 60px rgba(34, 211, 238, 0.12);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text-primary);
    background:
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.14), transparent 24%),
        linear-gradient(180deg, #070910 0%, #0b1020 45%, #070910 100%);
    font-family: "Manrope", sans-serif;
}

h1,
h2,
h3,
.brand-mark,
.navbar-nav .nav-link,
.btn {
    font-family: "Space Grotesk", sans-serif;
}

a {
    color: inherit;
}

.page-shell {
    position: relative;
    overflow-x: hidden;
}

.music-note-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.music-note {
    position: absolute;
    color: rgba(255, 255, 255, 0.26);
    font-weight: 700;
    text-shadow: 0 0 28px currentColor, 0 0 46px currentColor;
    filter: drop-shadow(0 0 16px currentColor);
    animation: note-drift 11s linear infinite, note-pulse 4.2s ease-in-out infinite;
}

.note-1,
.note-6 {
    color: rgba(34, 211, 238, 0.32);
}

.note-2,
.note-5 {
    color: rgba(236, 72, 153, 0.34);
}

.note-3,
.note-7 {
    color: rgba(139, 92, 246, 0.32);
}

.note-4,
.note-8,
.note-11 {
    color: rgba(245, 158, 11, 0.28);
}

.note-9,
.note-12 {
    color: rgba(94, 234, 212, 0.3);
}

.note-10 {
    color: rgba(244, 114, 182, 0.32);
}

.note-1 {
    left: 4%;
    top: 72%;
    font-size: 2.5rem;
    animation-delay: -2s;
}

.note-2 {
    left: 14%;
    top: 18%;
    font-size: 2rem;
    animation-delay: -7s;
}

.note-3 {
    left: 83%;
    top: 12%;
    font-size: 2.8rem;
    animation-delay: -4s;
}

.note-4 {
    left: 92%;
    top: 58%;
    font-size: 2.1rem;
    animation-delay: -11s;
}

.note-5 {
    left: 64%;
    top: 76%;
    font-size: 2.35rem;
    animation-delay: -8s;
}

.note-6 {
    left: 47%;
    top: 8%;
    font-size: 1.85rem;
    animation-delay: -13s;
}

.note-7 {
    left: 26%;
    top: 48%;
    font-size: 2.6rem;
    animation-delay: -5s;
}

.note-8 {
    left: 74%;
    top: 36%;
    font-size: 1.95rem;
    animation-delay: -10s;
}

.note-9 {
    left: 8%;
    top: 32%;
    font-size: 2.15rem;
    animation-delay: -3.6s;
}

.note-10 {
    left: 58%;
    top: 20%;
    font-size: 2.45rem;
    animation-delay: -6.8s;
}

.note-11 {
    left: 88%;
    top: 80%;
    font-size: 2.05rem;
    animation-delay: -1.8s;
}

.note-12 {
    left: 34%;
    top: 64%;
    font-size: 2.3rem;
    animation-delay: -8.7s;
}

.aurora {
    position: fixed;
    width: 32rem;
    height: 32rem;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.16;
    pointer-events: none;
    z-index: 0;
}

.aurora-left {
    top: 6rem;
    left: -10rem;
    background: rgba(139, 92, 246, 0.45);
}

.aurora-right {
    top: 16rem;
    right: -10rem;
    background: rgba(34, 211, 238, 0.35);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(8, 10, 18, 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-mark {
    font-weight: 700;
    letter-spacing: 0.04em;
}

.navbar-nav .nav-link {
    color: var(--text-secondary);
    transition: color 0.2s ease, transform 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-glow {
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: 0;
    box-shadow: 0 18px 40px rgba(139, 92, 246, 0.35);
}

.btn-glow:hover,
.btn-glow:focus {
    color: var(--text-primary);
    box-shadow: 0 22px 48px rgba(236, 72, 153, 0.35);
}

.btn-spotify {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.95), rgba(20, 110, 50, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-spotify:hover,
.btn-spotify:focus {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(35, 203, 93, 1), rgba(20, 110, 50, 1));
}

.spotify-status-link {
    color: rgba(209, 250, 229, 0.94);
}

.spotify-status-link:hover,
.spotify-status-link:focus {
    color: #ffffff;
}

.hero-section,
.page-section,
.content-section {
    position: relative;
    z-index: 1;
}

.hero-title,
.section-heading h1,
.section-heading h2 {
    font-weight: 700;
    line-height: 1.05;
}

.hero-title {
    font-size: clamp(3.4rem, 7vw, 5.4rem);
    max-width: 11ch;
}

.hero-copy,
.section-heading p,
.glass-card p,
.feature-list,
.site-footer,
.search-note {
    color: var(--text-secondary);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.9rem;
    color: var(--accent-data);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
}

.feature-panel,
.glass-card,
.search-shell,
.stat-card,
.roadmap-banner {
    background: linear-gradient(180deg, rgba(18, 23, 40, 0.94), rgba(28, 18, 48, 0.86));
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    box-shadow: var(--shadow-glow);
}

.feature-panel,
.glass-card,
.search-shell {
    padding: 1.75rem;
}

.glass-card,
.btn,
.related-item {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.glass-card:hover,
.glass-card:focus-within,
.related-item:hover,
.related-item:focus {
    transform: translateY(-4px);
    box-shadow: 0 24px 56px rgba(34, 211, 238, 0.14);
    border-color: rgba(34, 211, 238, 0.22);
}

.panel-label {
    color: var(--accent-success);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
}

.feature-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.75rem;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.section-heading {
    max-width: 760px;
}

.hero-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 2rem;
    align-items: center;
}

.hero-copy-column,
.hero-visual-column {
    position: relative;
    z-index: 1;
}

.hero-copy-large {
    max-width: 42rem;
    font-size: 1.18rem;
}

.hero-caption {
    max-width: 34rem;
    color: rgba(248, 250, 252, 0.78);
}

.hero-aura {
    position: absolute;
    inset: 8% 12% 6% 10%;
    border-radius: 36px;
    background:
        radial-gradient(circle at 24% 28%, rgba(236, 72, 153, 0.18), transparent 30%),
        radial-gradient(circle at 72% 24%, rgba(34, 211, 238, 0.18), transparent 28%),
        radial-gradient(circle at 54% 78%, rgba(139, 92, 246, 0.22), transparent 30%);
    filter: blur(26px);
    z-index: 0;
}

.hero-visual {
    position: relative;
    overflow: hidden;
    min-height: 34rem;
    padding: 1.4rem;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.12), transparent 24%),
        radial-gradient(circle at 80% 18%, rgba(236, 72, 153, 0.12), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 45%);
    pointer-events: none;
}

.hero-visual-head {
    position: relative;
    z-index: 1;
}

.hero-waveflow {
    position: relative;
    height: 7.2rem;
    margin: 0.9rem 0 0.35rem;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(circle at 20% 50%, rgba(34, 211, 238, 0.18), transparent 24%),
        radial-gradient(circle at 72% 48%, rgba(236, 72, 153, 0.2), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.hero-waveflow::after {
    content: "";
    position: absolute;
    left: 4%;
    right: 4%;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, rgba(34, 211, 238, 0), rgba(34, 211, 238, 0.65) 24%, rgba(236, 72, 153, 0.8) 50%, rgba(34, 211, 238, 0.65) 76%, rgba(34, 211, 238, 0));
    opacity: 0.7;
    filter: blur(0.6px);
}

.hero-waveflow-glow {
    position: absolute;
    inset: 32% 10% 32% 10%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.28), rgba(139, 92, 246, 0.22), rgba(236, 72, 153, 0.28));
    filter: blur(18px);
    opacity: 0.9;
}

.wave-line {
    position: absolute;
    inset: 0;
    width: 120%;
    height: 100%;
    overflow: visible;
    transform-origin: center;
}

.wave-line path {
    fill: none;
    stroke-linecap: round;
    stroke-width: 3.2;
}

.wave-line-1 {
    left: -8%;
    animation: waveflow-drift 8.5s ease-in-out infinite;
}

.wave-line-1 path {
    stroke: rgba(94, 234, 212, 0.88);
    filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.85));
}

.wave-line-2 {
    left: -6%;
    animation: waveflow-drift-reverse 6.9s ease-in-out infinite;
}

.wave-line-2 path {
    stroke: rgba(167, 139, 250, 0.76);
    stroke-width: 2.6;
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.72));
}

.wave-line-3 {
    left: -10%;
    animation: waveflow-drift 7.6s ease-in-out infinite;
    animation-delay: -1.8s;
}

.wave-line-3 path {
    stroke: rgba(244, 114, 182, 0.78);
    stroke-width: 2.4;
    filter: drop-shadow(0 0 12px rgba(236, 72, 153, 0.72));
}

.wave-line-4 {
    left: -7%;
    animation: waveflow-drift-reverse 9.2s ease-in-out infinite;
    animation-delay: -2.4s;
}

.wave-line-4 path {
    stroke: rgba(96, 165, 250, 0.66);
    stroke-width: 2.1;
    filter: drop-shadow(0 0 9px rgba(96, 165, 250, 0.62));
}

.floating-card-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.floating-mood-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 7.25rem;
    padding: 1.05rem 1.15rem;
    border-radius: 22px;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(11, 16, 32, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 42px rgba(8, 10, 18, 0.28);
    animation: floating-card 7s ease-in-out infinite;
}

.floating-mood-card strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.06rem;
    line-height: 1.25;
    text-transform: capitalize;
}

.floating-mood-card span {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.floating-mood-card:hover,
.floating-mood-card:focus {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 28px 48px rgba(236, 72, 153, 0.16);
}

.card-heartbreak {
    background: linear-gradient(180deg, rgba(56, 20, 49, 0.9), rgba(14, 18, 34, 0.84));
}

.card-confidence {
    background: linear-gradient(180deg, rgba(20, 39, 60, 0.92), rgba(14, 18, 34, 0.84));
    animation-delay: -1.3s;
}

.card-joy {
    background: linear-gradient(180deg, rgba(54, 42, 17, 0.9), rgba(14, 18, 34, 0.84));
    animation-delay: -2.4s;
}

.card-pressure {
    background: linear-gradient(180deg, rgba(27, 26, 55, 0.9), rgba(14, 18, 34, 0.84));
    animation-delay: -3.2s;
}

.card-love {
    grid-column: 1 / -1;
    background: linear-gradient(180deg, rgba(56, 18, 39, 0.88), rgba(14, 18, 34, 0.84));
    animation-delay: -4.4s;
}

.mood-journey-card,
.spotlight-link {
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
}

.mood-journey-card {
    text-decoration: none;
}

.mood-journey-card h3,
.home-info-card h3,
.homepage-cta h2 {
    font-family: "Space Grotesk", sans-serif;
}

.mood-journey-card h3 {
    margin-top: 1rem;
    margin-bottom: 0.8rem;
    font-size: 1.35rem;
    line-height: 1.2;
}

.mood-journey-card p {
    margin-bottom: 0;
}

.spotlight-link {
    position: relative;
    gap: 0.95rem;
}

.spotlight-link .tag-row {
    min-height: 3rem;
}

.spotlight-link .action-row {
    margin-top: auto;
}

.home-info-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.home-info-card p {
    margin-bottom: 0;
}

.homepage-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
}

.homepage-cta p {
    max-width: 40rem;
    margin-bottom: 0;
}

.section-heading.narrow,
.narrow-card {
    max-width: 720px;
}

.hero-metrics,
.results-toolbar,
.tag-row,
.timeline-grid,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.action-row {
    align-items: center;
}

.metric-pill,
.toolbar-pill,
.badge-soft,
.theme-tag,
.mood-tag {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.metric-pill {
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.85rem 1rem;
    min-width: 12rem;
    background: rgba(255, 255, 255, 0.04);
}

.metric-pill strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.2rem;
}

.metric-pill span,
.toolbar-pill,
.card-meta,
.card-kicker,
.result-note,
.filter-label {
    color: var(--text-secondary);
}

.spotlight-card h3,
.result-card h2,
.timeline-card strong,
.detail-heading,
.roadmap-banner h2 {
    font-family: "Space Grotesk", sans-serif;
}

.badge-soft,
.theme-tag,
.mood-tag,
.toolbar-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    background: rgba(255, 255, 255, 0.04);
}

.badge-soft {
    width: fit-content;
    color: var(--accent-data);
}

.theme-tag {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.14);
}

.mood-tag {
    color: var(--text-primary);
    background: rgba(34, 211, 238, 0.12);
}

.stat-card {
    padding: 1.4rem;
    min-height: 100%;
}

.stat-card span {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--accent-data);
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
}

.stat-card strong {
    font-size: 1.15rem;
    font-weight: 700;
}

.stat-card.large strong {
    font-size: 1.6rem;
}

.search-form .form-label {
    font-size: 1.05rem;
    font-weight: 600;
}

.search-input,
.filter-input {
    color: var(--text-primary);
    background: rgba(5, 8, 16, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

.filter-input option {
    background: #0b1020;
}

.search-input:focus,
.filter-input:focus {
    color: var(--text-primary);
    background: rgba(5, 8, 16, 0.9);
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(34, 211, 238, 0.12);
}

.prompt-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.prompt-chip {
    padding: 0.7rem 1rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.prompt-chip:hover,
.prompt-chip:focus {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.45);
}

.chart-placeholder {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.dashboard-heading {
    max-width: 820px;
}

.dashboard-hero-copy {
    max-width: 34rem;
}

.dashboard-hero-note {
    padding: 1.25rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-hero-kicker {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: var(--accent-success);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.76rem;
}

.dashboard-hero-list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.dashboard-stat-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-hero h2,
.chart-heading h2,
.dashboard-list-row strong {
    font-family: "Space Grotesk", sans-serif;
}

.dashboard-callout {
    height: 100%;
}

.dashboard-callout p,
.chart-heading p,
.dashboard-footnote p {
    margin-bottom: 0;
}

.dashboard-chart-card {
    min-height: 290px;
}

.chart-card .chart-canvas {
    height: 320px !important;
    max-height: 320px;
}

.chart-heading {
    display: grid;
    gap: 0.35rem;
}

.chart-heading .eyebrow.small {
    margin-bottom: 0.2rem;
    font-size: 0.7rem;
}

.dashboard-summary-card {
    padding: 1.5rem;
}

.dashboard-list-card {
    padding: 1.5rem;
}

.dashboard-metric p,
.dashboard-subsection p,
.dashboard-artist-row span,
.dashboard-chip-card span,
.dashboard-era-card span,
.dashboard-explainer-card p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.dashboard-pill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dashboard-mood-card {
    padding: 1.5rem;
    min-height: 100%;
}

.dashboard-mood-constellation {
    min-height: 320px;
    max-height: 320px;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.14), transparent 28%),
        radial-gradient(circle at 70% 35%, rgba(34, 211, 238, 0.12), transparent 24%),
        radial-gradient(circle at 55% 75%, rgba(29, 185, 84, 0.12), transparent 26%),
        rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-mood-node {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    min-width: 6.2rem;
    min-height: 6.2rem;
    padding: 0.9rem;
    text-decoration: none;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(18, 23, 40, 0.96), rgba(28, 18, 48, 0.84));
    box-shadow: 0 18px 36px rgba(34, 211, 238, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dashboard-mood-node:hover,
.dashboard-mood-node:focus {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 22px 42px rgba(236, 72, 153, 0.18);
    border-color: rgba(34, 211, 238, 0.4);
}

.dashboard-mood-node span,
.dashboard-mood-note {
    color: var(--text-secondary);
}

.dashboard-mood-node strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
}

.mood-level-1 {
    min-width: 5.6rem;
    min-height: 5.6rem;
}

.mood-level-2 {
    min-width: 6.2rem;
    min-height: 6.2rem;
}

.mood-level-3 {
    min-width: 6.8rem;
    min-height: 6.8rem;
}

.mood-level-4 {
    min-width: 7.4rem;
    min-height: 7.4rem;
}

.mood-level-5 {
    min-width: 8rem;
    min-height: 8rem;
}

.dashboard-pill {
    gap: 0.45rem;
}

.dashboard-pill strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.95rem;
}

.dashboard-subsection {
    max-width: 880px;
}

.dashboard-artist-card {
    padding: 1.5rem;
}

.dashboard-artist-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-artist-head h3,
.dashboard-explainer-card h3 {
    font-family: "Space Grotesk", sans-serif;
    margin-bottom: 0;
}

.dashboard-artist-meta {
    display: grid;
    gap: 0.9rem;
}

.dashboard-artist-row {
    display: grid;
    gap: 0.35rem;
}

.dashboard-artist-row strong {
    font-size: 1rem;
    line-height: 1.45;
}

.dashboard-chip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.dashboard-chip-card,
.dashboard-era-card {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-chip-card strong,
.dashboard-era-card strong {
    display: block;
    margin-top: 0.35rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.15rem;
}

.dashboard-era-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.dashboard-search-card,
.dashboard-explainer-card {
    padding: 1.5rem;
}

.dashboard-search-card .prompt-chip {
    text-decoration: none;
}

.dashboard-list {
    display: grid;
    gap: 0.75rem;
}

.dashboard-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-list-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dashboard-list-row span {
    color: var(--text-secondary);
}

.dashboard-footnote {
    max-width: 860px;
}

.chart-canvas {
    width: 100%;
    min-height: 220px;
    margin-top: 1rem;
}

.score-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    min-width: 8rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.score-badge strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.6rem;
    line-height: 1;
}

.score-badge span {
    color: var(--accent-warning);
    font-size: 0.88rem;
}

.info-card,
.notice-card,
.empty-state,
.quote-panel {
    background: linear-gradient(180deg, rgba(18, 23, 40, 0.92), rgba(14, 18, 34, 0.82));
}

.result-note {
    font-size: 0.96rem;
}

.roadmap-banner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 1.75rem;
}

.timeline-card {
    padding: 1.75rem;
}

.timeline-grid {
    margin-top: 1rem;
}

.timeline-grid div {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1 1 15rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.timeline-grid span {
    color: var(--text-secondary);
}

.quote-panel {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.quote-panel span {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-data);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}

.quote-panel blockquote {
    margin: 0;
    font-size: 1.05rem;
}

.related-stack {
    display: grid;
    gap: 0.9rem;
}

.related-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
}

.related-item span {
    color: var(--text-secondary);
}

.spotlight-lyric {
    margin-bottom: 0;
    color: rgba(248, 250, 252, 0.82);
    font-style: italic;
}

.song-artwork {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 11rem;
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 28% 24%, var(--artwork-start), transparent 28%),
        radial-gradient(circle at 72% 28%, var(--artwork-accent), transparent 18%),
        linear-gradient(160deg, rgba(8, 10, 18, 0.18), rgba(8, 10, 18, 0.68)),
        linear-gradient(135deg, var(--artwork-start), var(--artwork-end));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 52px var(--artwork-glow);
}

.song-artwork.has-artwork-image {
    background:
        linear-gradient(180deg, rgba(8, 10, 18, 0.04), rgba(8, 10, 18, 0.5)),
        linear-gradient(135deg, var(--artwork-start), var(--artwork-end));
}

.song-artwork-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.song-artwork::before,
.song-artwork::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    opacity: 0.72;
}

.song-artwork::before {
    width: 72%;
    height: 72%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 64%);
    filter: blur(6px);
}

.song-artwork::after {
    inset: auto 10% 12% 10%;
    height: 18%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
    filter: blur(10px);
}

.song-artwork span {
    position: relative;
    z-index: 1;
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.2);
}

.song-artwork.has-artwork-image span {
    display: none;
}

.song-artwork-small {
    min-height: 7rem;
}

.song-artwork-small span {
    font-size: 1.8rem;
}

.song-artwork-large {
    min-height: 20rem;
}

.song-artwork-large span {
    font-size: 4rem;
}

.hero-lyric-rotator {
    position: relative;
    min-height: 13.25rem;
    max-width: 42rem;
}

.hero-lyric-card {
    position: absolute;
    inset: 0;
    padding: 1.35rem 1.45rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(11, 16, 32, 0.82), rgba(26, 18, 42, 0.82));
    box-shadow: 0 18px 40px rgba(139, 92, 246, 0.12);
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.hero-lyric-card.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hero-lyric-card blockquote,
.lyric-moment-card blockquote {
    margin: 0;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.94);
}

.hero-lyric-card p,
.hero-lyric-card strong {
    margin-top: 0.8rem;
    display: block;
}

.hero-lyric-card strong {
    color: rgba(248, 250, 252, 0.84);
}

.discovery-rails {
    display: grid;
    gap: 2rem;
}

.discovery-rail-section {
    min-width: 0;
}

.discovery-rail-title {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
}

.discovery-rail-scroll {
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-auto-flow: column;
    grid-auto-columns: minmax(17rem, 22rem);
    gap: 1rem;
    overflow-x: auto;
    overflow-y: visible;
    padding-right: 1rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 1rem;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: thin;
}

.discovery-rail-scroll::-webkit-scrollbar {
    height: 10px;
}

.discovery-rail-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.discovery-rail-card {
    min-height: 100%;
    text-decoration: none;
    color: var(--text-primary);
    scroll-snap-align: start;
}

.discovery-rail-copy {
    display: grid;
    gap: 0.5rem;
}

.discovery-rail-copy strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.12rem;
}

.discovery-rail-copy span,
.discovery-rail-copy p {
    color: var(--text-secondary);
    margin: 0;
}

.discovery-rail-copy p {
    font-style: italic;
    color: rgba(248, 250, 252, 0.84);
}

.result-experience-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-top-row {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.result-artwork {
    min-height: 9rem;
}

.result-top-copy h2 {
    margin-bottom: 0.45rem;
}

.lyric-moment-card {
    position: relative;
    padding: 1.2rem 1.25rem 1.2rem 3.2rem;
    border-radius: 20px;
    border: 1px solid rgba(236, 72, 153, 0.22);
    background: linear-gradient(180deg, rgba(46, 19, 56, 0.38), rgba(13, 19, 34, 0.72));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 16px 40px rgba(236, 72, 153, 0.08);
}

.lyric-quote-mark {
    position: absolute;
    left: 1rem;
    top: 0.65rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.8rem;
    line-height: 1;
    color: rgba(236, 72, 153, 0.72);
}

.lyric-lens-panel {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lyric-lens-panel p:last-child {
    margin-bottom: 0;
}

.song-detail-section {
    position: relative;
}

.song-detail-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 24%, var(--artwork-glow), transparent 24%),
        radial-gradient(circle at 82% 20%, var(--artwork-start), transparent 18%),
        radial-gradient(circle at 68% 70%, var(--artwork-end), transparent 24%);
    opacity: 0.26;
    pointer-events: none;
}

.song-detail-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.9fr);
    gap: 1.5rem;
    align-items: start;
}

.song-detail-main,
.song-detail-sidebar {
    position: relative;
    z-index: 1;
}

.song-detail-hero {
    display: grid;
    grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.song-detail-copy h1,
.song-detail-sidebar h2 {
    font-family: "Space Grotesk", sans-serif;
}

.album-meta {
    margin-top: -0.4rem;
    margin-bottom: 1rem;
    color: rgba(209, 250, 229, 0.88);
}

.song-detail-quote blockquote {
    font-size: 1.35rem;
}

.related-song-card {
    display: grid;
    grid-template-columns: 6.2rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
}

.related-song-copy {
    display: grid;
    gap: 0.35rem;
}

.related-song-copy p,
.related-song-copy span {
    margin: 0;
    color: var(--text-secondary);
}

.related-song-copy p {
    font-style: italic;
    color: rgba(248, 250, 252, 0.82);
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(8, 10, 18, 0.65);
}

.footer-note {
    font-size: 0.95rem;
}

.chat-layout {
    display: grid;
    grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.chat-side-panel,
.chat-shell {
    position: relative;
    z-index: 1;
}

.chat-chip-stack {
    display: grid;
    gap: 0.75rem;
}

.chat-prompt {
    text-align: left;
}

.chat-shell {
    min-height: 34rem;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    display: grid;
    gap: 1rem;
    max-height: 32rem;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.chat-message {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-message-bot {
    background: linear-gradient(180deg, rgba(18, 23, 40, 0.88), rgba(28, 18, 48, 0.78));
}

.chat-message-user {
    margin-left: auto;
    max-width: 80%;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(139, 92, 246, 0.16));
}

.chat-role {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-data);
}

.chat-status {
    color: var(--text-secondary);
}

.chat-match-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.chat-match-card {
    display: grid;
    gap: 0.3rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.chat-match-card span,
.chat-match-card p {
    margin: 0;
    color: var(--text-secondary);
}

.chat-match-card strong {
    font-family: "Space Grotesk", sans-serif;
}

.chat-match-card p {
    color: rgba(248, 250, 252, 0.82);
}

.spotify-setup-uri,
.spotify-setup-code {
    display: block;
    width: 100%;
    overflow-wrap: anywhere;
}

.spotify-setup-code {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(29, 185, 84, 0.22);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(209, 250, 229, 0.94);
    font-family: "Space Grotesk", sans-serif;
}

@media (max-width: 991.98px) {
    .chat-layout,
    .song-detail-shell,
    .song-detail-hero,
    .result-top-row {
        grid-template-columns: 1fr;
    }

    .chat-message-user {
        max-width: 100%;
    }

    .song-artwork-large {
        min-height: 16rem;
    }
}

@keyframes waveflow-drift {
    0%,
    100% {
        transform: translateX(0) scaleY(0.92);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-2.5%) scaleY(1.08);
        opacity: 1;
    }
}

@keyframes waveflow-drift-reverse {
    0%,
    100% {
        transform: translateX(0) scaleY(0.96);
        opacity: 0.66;
    }
    50% {
        transform: translateX(2.8%) scaleY(1.12);
        opacity: 0.96;
    }
}

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

@keyframes note-drift {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(24px, -26px, 0);
    }
    100% {
        transform: translate3d(-12px, -68px, 0);
    }
}

@keyframes note-pulse {
    0%,
    100% {
        opacity: 0.34;
    }
    50% {
        opacity: 0.62;
    }
}

@media (max-width: 991.98px) {
    .hero-shell,
    .homepage-cta {
        grid-template-columns: 1fr;
    }

    .song-detail-shell,
    .song-detail-hero,
    .result-top-row {
        grid-template-columns: 1fr;
    }

    .floating-card-grid {
        grid-template-columns: 1fr;
    }

    .card-love {
        grid-column: auto;
    }

    .hero-title {
        max-width: 12ch;
    }

    .roadmap-banner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.7rem;
    }

    .feature-panel,
    .glass-card,
    .dashboard-stat-strip {
        grid-template-columns: 1fr;
    }

    .dashboard-chip-grid,
    .dashboard-era-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-mood-constellation {
        min-height: auto;
        max-height: none;
    }

    .search-shell {
        padding: 1.25rem;
    }

    .hero-visual {
        min-height: auto;
    }

    .hero-lyric-rotator {
        min-height: 16rem;
    }

    .discovery-rail-scroll {
        grid-auto-columns: minmax(15rem, 84vw);
        padding-right: 1rem;
    }

    .music-note {
        opacity: 0.82;
    }

    .hero-metrics,
    .results-toolbar,
    .tag-row,
    .timeline-grid {
        gap: 0.65rem;
    }

    .score-badge {
        align-items: flex-start;
    }
}
