/* Artist graph page — full-bleed canvas, breaks out of the standard container */

#graph-page {
    position: relative;
    width: 100%;
    height: calc(100vh - 56px - 88px); /* viewport minus navbar minus player bar */
    min-height: 480px;
    overflow: hidden;
    background: #fafbfb;
}

#graph-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
}
#graph-canvas:active {
    cursor: grabbing;
}

#graph-controls {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    width: min(320px, calc(100% - 32px));
}
#graph_search {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
#graph_search:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(15, 155, 142, 0.2);
}
#graph_search_results {
    margin-top: 6px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    max-height: 300px;
    overflow-y: auto;
}
#graph_search_results:empty {
    display: none;
}
.graph-search-hit {
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.9rem;
}
.graph-search-hit:hover {
    background: var(--accent-soft);
}

#graph-info {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: min(280px, calc(100% - 32px));
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
#graph-info-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: none;
    font-size: 1.2rem;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
}

#graph-hint {
    position: absolute;
    bottom: 12px;
    left: 16px;
    z-index: 5;
    margin: 0;
    pointer-events: none;
}

#graph-connect {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 10;
    width: min(260px, calc(100% - 32px));
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
#graph-connect input {
    width: 100%;
    padding: 7px 12px;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 6px;
}
#graph-connect input:focus {
    outline: none;
    border-color: var(--accent);
}
#connect_result {
    margin-top: 10px;
    font-size: 0.85rem;
}
#connect_result .connect-chain {
    line-height: 1.6;
}
#connect_result .connect-clear {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: #6c757d;
    cursor: pointer;
}

@media (max-width: 575.98px) {
    #graph-connect { bottom: auto; top: 16px; right: 16px; width: min(200px, calc(50% - 24px)); }
    #graph-info { top: auto; bottom: 16px; }
}
