.search-sidebar {
    background-color: transparent;
    padding-right: 15px;
}

.sidebar-title,
.sidebar-section-title {
    color: #fff;
    font-weight: 700;
}

.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.sidebar-section-title {
    font-size: 1rem;
    margin: 1.5rem 0 0.8rem;
}

.sidebar-divider {
    border-color: #333;
}

.mobile-current-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 0 0; /* トグルボタンとの余白 */
}

.filter-chip {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2beaff; /* シアン */
    background: rgba(43, 234, 255, 0.1); /* シアンの薄い背景 */
    border: 1px solid rgba(43, 234, 255, 0.3);
    border-radius: 4px;
    padding: 4px 10px;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.search-input-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input-icon {
    width: 16px;
    height: 16px;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.custom-search-input {
    background-color: #2a2a35;
    border: 1px solid #3a3a45;
    border-radius: 8px;
    color: #fff;
    padding-left: 40px;
}

.custom-search-input:-webkit-autofill,
.custom-search-input:-webkit-autofill:hover,
.custom-search-input:-webkit-autofill:focus,
.custom-search-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #2a2a35 inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;
}

.custom-search-input:focus {
    background-color: #2a2a35;
    border-color: #00f2fe;
    box-shadow: none;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.custom-search-input::placeholder,
.game-select-button .is-placeholder {
    color: #888;
}

.sidebar-filter-input {
    padding-left: 12px;
}

.game-select-button {
    width: 100%;
    min-height: 40px;
    border: 1px solid #3a3a45;
    border-radius: 8px;
    background-color: #2a2a35;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    text-align: left;
}

.game-select-button:focus {
    border-color: #00f2fe;
    outline: none;
}

.game-select-caret {
    color: #b0b0b0;
    flex-shrink: 0;
}

.game-field-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.5rem 0 0.8rem;
}

.game-field-heading .sidebar-section-title {
    margin: 0;
}

.game-clear-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: #8f8f9a;
    font-size: 0.85rem;
    padding: 0;
}

.game-clear-button:hover {
    color: #fff;
}

.stream-segmented-control {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border: 1px solid #3a3a45;
    border-radius: 8px;
    background-color: #202029;
}

.stream-segmented-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.stream-segmented-control label {
    min-height: 38px;
    border-radius: 6px;
    color: #b0b0b0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 4px;
    text-align: center;
    cursor: pointer;
}

.stream-segmented-control input:checked + label {
    background-color: #00f2fe;
    color: #12121a;
}

.game-search-modal {
    background-color: #202029;
    border: 1px solid #3a3a45;
    color: #fff;
}

.game-search-modal .modal-header {
    border-bottom-color: #3a3a45;
}

.game-search-status {
    color: #8f8f9a;
    font-size: 0.88rem;
    margin-top: 14px;
}

.game-search-results {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    max-height: 360px;
    overflow-y: auto;
}

.game-search-result {
    width: 100%;
    border: 1px solid #3a3a45;
    border-radius: 8px;
    background-color: #2a2a35;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    text-align: left;
}

.game-search-result:hover,
.game-search-result:focus {
    border-color: #00f2fe;
    outline: none;
}

.game-search-thumb,
.game-search-thumb-placeholder {
    width: 44px;
    height: 58px;
    border-radius: 6px;
    background-color: #16161f;
    object-fit: cover;
    flex-shrink: 0;
}

.game-search-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8f8f9a;
    font-weight: 700;
}

.game-search-name {
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.search-results .loading-spinner {
    width: 3rem;
    height: 3rem;
}
