.idt-world-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0;
}

.idt-world-controls label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.idt-world-controls select {
    padding: 10px 14px;
    border: 1px solid #cbd9d1;
    border-radius: 8px;
    background: white;
}

#idt-world-globe {
    width: 100%;
    height: 640px;
    overflow: hidden;
    border-radius: 16px;
    background: #dce9ed;
}

#world-selection:not(:empty) {
    padding: 18px;
    background: white;
    border: 1px solid #cbd9d1;
    border-radius: 12px;
    margin: 16px 0;
}

@media (max-width: 600px) {
    #idt-world-globe {
        height: 420px;
    }
}

/* IDT - Palline da tennis */

#world-legend {
    gap: 14px;
    flex-wrap: wrap;
}

#world-legend i {
    position: relative;
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background-image: radial-gradient(
        circle at 30% 25%,
        rgba(255,255,255,.45),
        transparent 55%,
        rgba(0,0,0,.20)
    );
}

#world-legend i::before,
#world-legend i::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 18px;
    top: -3px;
    border: 1.5px solid rgba(255,255,255,.95);
    border-radius: 50%;
    transform: rotate(-25deg);
}

#world-legend i::before {
    left: -8px;
}

#world-legend i::after {
    right: -8px;
}

/* IDT - Tennis ball markers */

.idt-tennis-marker {
    position: relative;
    display: block;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    pointer-events: auto;
    background-color: var(--ball-color);
    background-image: radial-gradient(
        circle at 28% 22%,
        rgba(255,255,255,.55),
        transparent 48%,
        rgba(0,0,0,.32) 100%
    );
    box-shadow:
        inset 0 0 2px rgba(0,0,0,.25),
        0 2px 4px rgba(0,0,0,.35);
}

.idt-tennis-marker::before,
.idt-tennis-marker::after {
    content: "";
    position: absolute;
    top: -15%;
    width: 65%;
    height: 125%;
    border: 1.5px solid rgba(255,255,255,.95);
    border-radius: 50%;
    transform: rotate(-28deg);
    pointer-events: none;
}

.idt-tennis-marker::before {
    left: -42%;
}

.idt-tennis-marker::after {
    right: -42%;
}

.idt-tennis-marker:hover,
.idt-tennis-marker:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}
