#radial-tree-container {
    text-align: center;
    margin: 2rem 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem;
    min-height: 200px;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#media-panel {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50%;
    max-height: 81vh;
    background-color: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 0.5rem;
    overflow-y: auto;
    display: none;
    z-index: 10;
}

#close-media-panel {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 24px;
    height: 24px;
    border: none;
    background-color: rgba(255, 255, 255, 0.8);
    color: #6c757d;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 11;
}

#close-media-panel:hover {
    background-color: rgba(255, 255, 255, 1);
    color: #495057;
    transform: scale(1.1);
}

#close-media-panel:active {
    transform: scale(0.95);
}

#zoom-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

#zoom-controls button {
    width: 40px;
    height: 40px;
    border: 2px solid #007bff;
    background-color: white;
    color: #007bff;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#zoom-controls button:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#zoom-controls button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#zoom-controls button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

#loading {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

#radial-tree-container svg {
    max-width: 100%;
    height: auto;
}

#media-panel.active {
    display: block;
}

#media-placeholder {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    font-size: 0.9rem;
    padding: 1rem;
}

.user-info {
    margin-bottom: 0.5rem;
    text-align: left;
}

.display-name {
    font-size: 0.9rem;
    font-weight: bold;
    color: #495057;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.handle {
    font-size: 0.7rem;
    color: #6c757d;
    font-family: monospace;
}

.user-link {
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.user-link:hover {
    text-decoration: underline;
}

.user-link:hover .display-name {
    color: #007bff;
}

.user-link:hover .handle {
    color: #007bff;
}

.media-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.media-item {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    margin: 0;
}

.media-item img,
.media-item video,
.media-item iframe {
    width: 100%;
    height: auto;
    max-height: 72.9vh;
    object-fit: contain;
    display: block;
    margin: 0px;
}

.media-item iframe {
    aspect-ratio: 16/9;
    height: auto;
    max-height: 72.9vh;
}

.no-media {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    #radial-tree-container {
        margin: 1rem 0;
        padding: 0.5rem;
    }
    
    #zoom-controls {
        top: 0.5rem;
        right: 0.5rem;
        gap: 0.25rem;
    }
    
    #zoom-controls button {
        width: 44px;
        height: 44px;
        font-size: 20px;
        border-width: 3px;
    }
    
    #media-panel {
        width: 50%;
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.75rem;
    }
    
    .display-name {
        font-size: 0.6rem;
    }
    
    .handle {
        font-size: 0.5rem;
    }
    
    .media-item img,
    .media-item video,
    .media-item iframe {
        max-height: 72.9vh;
    }
    
    .media-item iframe {
        max-height: 72.9vh;
    }
} 