/* ---------- Music graph page ---------- */

.music-main {
    max-width: none;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

#graph-container {
    width: 100vw;
    height: calc(100vh - 80px);
}

#graph-container svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ---------- Graph nodes ---------- */

.node-artist text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 700;
    fill: #1a1a1a;
    pointer-events: none;
    text-anchor: middle;
}

.node-song text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 9px;
    fill: #555;
    pointer-events: none;
    text-anchor: middle;
}

.link {
    stroke: #ddd;
    stroke-opacity: 0.6;
}

.link-highlighted {
    stroke: #db1b1b;
    stroke-opacity: 0.8;
}

/* ---------- Tooltip ---------- */

.graph-tooltip {
    position: absolute;
    pointer-events: none;
    background: rgba(26, 26, 26, 0.92);
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.78rem;
    line-height: 1.4;
    max-width: 260px;
    opacity: 0;
    transition: opacity 0.12s;
    z-index: 10;
}

.graph-tooltip.visible {
    opacity: 1;
}

.graph-tooltip .tt-title {
    font-weight: 700;
    margin-bottom: 2px;
}

.graph-tooltip .tt-thumb {
    display: block;
    width: 100%;
    max-width: 200px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.graph-tooltip .tt-artist {
    color: rgba(255,255,255,0.7);
    font-size: 0.7rem;
}

/* ---------- Zoom controls ---------- */

.zoom-controls {
    position: absolute;
    bottom: 1.2rem;
    right: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 5;
}

.zoom-controls button {
    width: 34px;
    height: 34px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: background 0.15s;
}

.zoom-controls button:hover {
    background: #f0f0f0;
}

/* ---------- Login / error states ---------- */

.music-login-prompt {
    text-align: center;
    padding: 3rem 1rem;
    color: #777;
    font-size: 1rem;
}

.music-login-prompt a {
    color: #db1b1b;
    text-decoration: none;
    font-weight: 600;
}

.music-login-prompt a:hover {
    text-decoration: underline;
}

.music-reauth {
    text-align: center;
    padding: 2rem 1rem;
    color: #777;
    font-size: 0.95rem;
}

.music-reauth a {
    color: #db1b1b;
    text-decoration: none;
    font-weight: 600;
}

.music-reauth a:hover {
    text-decoration: underline;
}

/* ---------- List view (temporary) ---------- */

.music-main-list {
    max-width: 700px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    overflow: visible;
}

.ml-heading {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 1.2rem;
}

.ml-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #e8e5dd;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
}

.ml-item:hover {
    background: #f5f3ef;
}

.ml-thumb {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.ml-thumb-placeholder {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ebedf0;
    border-radius: 4px;
    font-size: 1.4rem;
    color: #999;
    flex-shrink: 0;
}

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

.ml-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ml-artist {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.78rem;
    color: #777;
    margin-top: 2px;
}

.ml-date {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.7rem;
    color: #aaa;
    flex-shrink: 0;
}
