/* Brandmeister Hoseline button + panel in the header (plain CSS, no Tailwind build needed). */
.hoseline {
    position: relative;
    display: inline-block;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.hoseline__bar {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    background: #fff;
    padding: 0.125rem 0.125rem 0.125rem 0.625rem;
}

.hoseline__search {
    position: relative;
}

.hoseline__input {
    width: 11rem;
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 0.8125rem;
    padding: 0.25rem 0.125rem;
    text-overflow: ellipsis;
}

.hoseline__input::placeholder {
    color: #9ca3af;
}

.hoseline__input:focus {
    outline: none;
}

.hoseline__bar:focus-within {
    border-color: #9ca3af;
}

.hoseline__list {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: -0.625rem;
    z-index: 60;
    width: 18rem;
    max-height: 20rem;
    overflow-y: auto;
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hoseline__list[hidden] {
    display: none;
}

.hoseline__group {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.hoseline__option {
    display: flex;
    align-items: baseline;
    gap: 0.625rem;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
}

.hoseline__option.is-active,
.hoseline__option:hover {
    background: #f3f4f6;
}

.hoseline__num {
    min-width: 3.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hoseline__name {
    flex: 1;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hoseline__fav {
    color: #ef4444;
    font-size: 0.75rem;
}

.hoseline__toggle:focus-visible,
.hoseline__close:focus-visible {
    outline: 2px solid #9ca3af;
    outline-offset: 1px;
}

/* Subtle button: light grey pill inside the bar, dark when the player is open. */
.hoseline__toggle {
    border: 0;
    border-radius: 9999px;
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.3125rem 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.hoseline__toggle:hover {
    background: #e5e7eb;
    color: #111827;
}

.hoseline__toggle[aria-expanded="true"] {
    background: #374151;
    color: #fff;
}

.hoseline__panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 50;
    width: 420px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.hoseline__panel[hidden] {
    display: none;
}

.hoseline__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.hoseline__title {
    flex: 1;
    font-weight: 600;
    font-size: 0.8125rem;
}

.hoseline__ext {
    font-size: 0.75rem;
    color: #4b5563;
    text-decoration: underline;
}

.hoseline__close {
    border: 0;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
    color: #4b5563;
    cursor: pointer;
    padding: 0 0.25rem;
}

.hoseline__hint {
    margin: 0;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.hoseline__frame {
    display: block;
    width: 100%;
    height: 520px;
    border: 0;
}

/* Header placement: next to the site title on desktop, next to the burger on mobile. */
.hoseline-slot {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .hoseline-slot {
        margin-left: 2rem;
    }
}

@media (max-width: 640px) {
    .hoseline-slot {
        gap: 0.75rem;
    }

    .hoseline__text {
        display: none;
    }

    .hoseline__bar {
        padding-left: 0.5rem;
        gap: 0.125rem;
    }

    /* 16px avoids the automatic zoom on iOS when the field gets focus. */
    .hoseline__input {
        width: 5.5rem;
        font-size: 1rem;
    }

    .hoseline__list {
        position: fixed;
        top: 4.5rem;
        left: 0.5rem;
        right: 0.5rem;
        width: auto;
        max-height: 60vh;
    }

    .hoseline__toggle {
        padding: 0.3125rem 0.5rem;
    }

    .hoseline__panel {
        position: fixed;
        top: 4.5rem;
        left: 0.5rem;
        right: 0.5rem;
        width: auto;
    }

    .hoseline__frame {
        height: calc(100vh - 11rem);
    }
}
