/* Momentum: daily Spotify plays before / during / after a Strive run, one card per song.
   main.css forces `a { color: inherit !important }` and `p { line-height: 1.35 !important }`,
   hence the !important on links below. */

.mo-section {
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 20px 20px 0;
    scroll-margin-top: 90px; /* fixed glass nav */
}
.mo-section[hidden] { display: none; }

.mo-eyebrow {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5a5fe0;
    margin: 0 0 8px;
}
.mo-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.2;
}
.mo-sub {
    text-align: center;
    color: #666;
    font-size: 16px;
    max-width: 620px;
    margin: 0 auto 40px;
}

.mo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* -- card -- */
.mo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    padding: 24px 20px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #6c72ff;
}
.mo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.mo-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    min-width: 0;
}
.mo-imgs {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.mo-pfp,
.mo-cover {
    width: 44px;
    height: 44px;
    object-fit: cover;
    background: #eee;
    display: block;
}
.mo-pfp { border-radius: 50%; }
.mo-cover { border-radius: 8px; }
.mo-who { min-width: 0; }
.mo-artist,
.mo-song {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mo-artist {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}
.mo-song {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}
.mo-chip {
    display: inline-block;
    font-size: 11px;
    line-height: 1.5;
    color: #666;
    background: #f1f1f4;
    border-radius: 20px;
    padding: 1px 8px;
    white-space: nowrap;
}

/* -- chart -- */
.mo-chart svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}
.mo-svg text {
    font-family: inherit;
    font-variant-numeric: tabular-nums;
}
.mo-svg .mo-band-lbl {
    fill: #888;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.mo-svg .mo-val {
    fill: #1a1a1a;
    font-weight: 700;
}
.mo-svg .mo-val-muted {
    fill: #666;
    font-weight: 600;
}
.mo-svg .mo-val-after {
    fill: #047857;
    font-weight: 700;
}
.mo-svg .mo-date {
    fill: #888;
}
.mo-svg .mo-halo {
    paint-order: stroke;
    stroke: #fff;
    stroke-width: 3px;
    stroke-linejoin: round;
}

/* -- stats -- */
.mo-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.mo-stat { min-width: 0; }
.mo-stat-lbl {
    font-size: 11px;
    color: #888;
    margin: 0 0 2px;
    white-space: nowrap;
}
.mo-stat-lbl b {
    color: #666;
    font-weight: 700;
}
.mo-stat-val {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.mo-stat-val small {
    font-size: 11px;
    font-weight: 600;
    color: #888;
}
.mo-stat.is-after .mo-stat-lbl,
.mo-stat.is-after .mo-stat-lbl b,
.mo-stat.is-after .mo-stat-val,
.mo-stat.is-after .mo-stat-val small {
    color: #047857;
}
.mo-note {
    font-size: 12px;
    color: #888;
    margin: 10px 0 0;
    font-variant-numeric: tabular-nums;
}
.mo-cta {
    align-self: flex-start;
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #5a5fe0;
    cursor: pointer;
    transition: letter-spacing 0.2s ease;
}
.mo-cta span {
    display: inline-block;
    transition: transform 0.2s ease;
}
.mo-card:hover .mo-cta span { transform: translateX(4px); }
.mo-cta:focus { outline: none; }
.mo-cta:focus-visible {
    outline: 2px solid #5a5fe0;
    outline-offset: 3px;
    border-radius: 4px;
}

.mo-footnote {
    max-width: 760px;
    margin: 28px auto 0;
    text-align: center;
    font-size: 12px;
    color: #888;
}

/* -- modal (rides the page's .modal / openModal / closeModal) -- */
.mo-modal { z-index: 1200; } /* above the fixed nav (1100), which covers the close button on phones */
.mo-modal .modal-content {
    width: auto; /* bootstrap's width:100% + the page's 20px mobile margin overflows phones */
    max-width: 860px;
    padding: 48px 48px 40px;
}
.mo-modal button.modal-close {
    right: 24px;
    top: 20px;
    padding: 0 6px;
    border: 0;
    background: none;
    line-height: 1;
}
.mo-modal button.modal-close:focus { outline: none; }
.mo-modal button.modal-close:focus-visible {
    outline: 2px solid #5a5fe0;
    outline-offset: 2px;
    border-radius: 6px;
}
.mo-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 0 0 20px;
    margin: 0 0 24px;
    border-bottom: 1px solid #eee;
}
.mo-modal .modal-header h2 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 8px;
}
.mo-modal-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
}
.mo-modal a.mo-listen {
    font-size: 14px;
    font-weight: 600;
    color: #5a5fe0 !important;
}
.mo-modal a.mo-listen:hover { color: #3f44c9 !important; }
.mo-modal-chart { margin: 0 0 8px; }
.mo-modal-chart .mo-svg-narrow { display: none; }
.mo-modal .modal-metrics {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    padding: 24px;
    margin: 20px 0 32px;
}
.mo-modal .modal-metric-value {
    font-size: 30px;
    font-variant-numeric: tabular-nums;
}
.mo-modal .modal-metric.is-after .modal-metric-value { color: #047857; }
.mo-modal .modal-section { margin-bottom: 24px; }
.mo-modal .modal-section h3 {
    font-size: 15px;
    margin-bottom: 8px;
}
.mo-modal .modal-section p {
    font-size: 16px;
    color: #444;
    margin: 0;
}

/* -- responsive -- */
@media (max-width: 1024px) {
    .mo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .mo-modal .modal-content { padding: 44px 20px 28px; }
    .mo-modal button.modal-close { right: 14px; top: 12px; }
    .mo-modal .modal-header { align-items: flex-start; }
    .mo-modal .modal-header h2 { font-size: 22px; }
    .mo-modal .modal-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        padding: 18px;
    }
    .mo-modal .modal-metric-value { font-size: 24px; }
}
@media (max-width: 640px) {
    .mo-section { padding: 12px 16px 0; }
    .mo-title { font-size: 26px; }
    .mo-sub { font-size: 15px; margin-bottom: 28px; }
    .mo-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .mo-modal-chart .mo-svg-wide { display: none; }
    .mo-modal-chart .mo-svg-narrow { display: block; }
}
