/* Custom styles for streamer search page */
.search-sidebar {
    background-color: transparent;
    padding-right: 15px;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #fff;
}

.sidebar-section-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
    color: #fff;
}

.form-check-label {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.form-check-input {
    background-color: transparent;
    border-color: #555;
}

.form-check-input:checked {
    background-color: #00f2fe;
    border-color: #00f2fe;
}

.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: 32px;
    border-radius: 6px;
    color: #b0b0b0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

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

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

.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;
}

.custom-select {
    background-color: #2a2a35;
    border: 1px solid #3a3a45;
    color: #b0b0b0;
    border-radius: 8px;
    font-size: 0.9rem;
}

.custom-select:focus {
    background-color: #2a2a35;
    color: #fff;
    border-color: #00f2fe;
    box-shadow: none;
}

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