/* Species Selection Panel (Left) */
.species-panel {
    position: fixed;
    left: 0;
    top: var(--header-height);
    width: 280px;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    background: rgba(10, 10, 10, 0.4);
    /* Dark translucent */
    z-index: 50;
    border-right: 1px solid var(--scope-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    font-family: var(--main-font);
}

.species-list {
    display: flex;
    flex-direction: column;
}

.species-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-gray);
    position: relative;
    overflow: hidden;
}

.species-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
}

.species-item.active {
    background: rgba(255, 60, 60, 0.1);
    color: white;
}

.species-item-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #fff;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: all 0.3s;
    margin-right: 15px;
}

.species-item.active .species-item-img {
    box-shadow: 0px -1px 14px 6px hsl(0deg 0% 100% / 62%);
}

/* Panel Header & Relocated Year Selector styles */
.species-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.9);
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.species-panel .panel-title {
    font-family: var(--hud-font);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-gray);
    font-weight: bold;
    text-transform: uppercase;
}

.species-panel .select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.species-panel select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--hud-font);
    font-size: 11px;
    padding: 6px 24px 6px 10px;
    outline: none;
    cursor: pointer;
    text-transform: uppercase;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.species-panel select:hover,
.species-panel select:focus {
    border-color: var(--primary-red);
    background: rgba(255, 60, 60, 0.5);
}

.species-panel .select-arrow {
    position: absolute;
    right: 10px;
    pointer-events: none;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--text-gray);
    transition: border-top-color 0.3s ease;
}

.species-panel select:hover + .select-arrow,
.species-panel select:focus + .select-arrow {
    border-top-color: var(--primary-red);
}

