/* IPTV-MOVIX — верхняя панель каталога /tv.php */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-navbar, 100);
    box-sizing: border-box;
}

body.iptv-tv-catalog {
    padding-top: var(--iptv-tv-bar-h, 72px);
}

@supports (padding: env(safe-area-inset-top)) {
    .navbar--iptv-tv-bar {
        padding-top: env(safe-area-inset-top, 0px);
    }
}

.navbar--iptv-tv-bar {
    display: block;
    margin: 0;
    padding: 0;
    min-height: 0;
    background: linear-gradient(180deg, rgba(9, 10, 13, 0.99) 0%, rgba(9, 10, 13, 0.94) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.iptv-tv-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.35rem;
    padding: 0.55rem clamp(0.75rem, 2.2vw, 2.5rem);
    max-width: 100%;
    box-sizing: border-box;
}

.iptv-tv-bar__title {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.96);
    line-height: 1.2;
    outline: none;
}

.iptv-tv-bar__title:focus-visible {
    outline: 2px solid rgba(229, 9, 20, 0.85);
    outline-offset: 3px;
    border-radius: 6px;
}

.iptv-tv-bar__title .tv-page-live-badge {
    flex-shrink: 0;
}

.iptv-tv-bar__title-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iptv-tv-bar__actions {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.5rem, 1.2vw, 1.1rem);
}

.iptv-tv-bar__search {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    min-width: 0;
    max-width: min(22rem, 42vw);
    margin: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.iptv-tv-bar__search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.iptv-tv-bar__search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    font: inherit;
    font-size: clamp(0.82rem, 1.1vw, 0.95rem);
    padding: 0.45rem 0.65rem;
    outline: none;
}

.iptv-tv-bar__search-input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.iptv-tv-bar__search-input:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(229, 9, 20, 0.55);
}

.iptv-tv-bar__search-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(229, 9, 20, 0.22);
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    transition: background 120ms ease;
}

.iptv-tv-bar__search-btn:hover,
.iptv-tv-bar__search-btn:focus-visible {
    background: rgba(229, 9, 20, 0.42);
    outline: none;
}

.iptv-tv-bar__search-btn:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.iptv-tv-bar__clock {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.1rem;
    min-width: 4.5rem;
    text-align: right;
}

.iptv-tv-bar__tz {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iptv-tv-bar__time {
    font-size: clamp(1rem, 1.5vw, 1.22rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.96);
    letter-spacing: 0.03em;
}

.tv-search-empty {
    margin: 1.5rem auto 2rem;
    text-align: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
}

.tv-channel-card--search-hidden {
    display: none !important;
}

.tv-group--search-empty {
    display: none !important;
}

html.tv .navbar--iptv-tv-bar .iptv-tv-bar__inner {
    min-height: 3.6rem;
    padding-left: clamp(1rem, 2.5vw, 2.8rem);
    padding-right: clamp(1rem, 2.5vw, 2.8rem);
}

html.tv-android .navbar--iptv-tv-bar .iptv-tv-bar__inner {
    min-height: 3rem;
    padding: 0.35rem 1.75rem;
}

html.tv-android .iptv-tv-bar__title {
    font-size: clamp(0.88rem, 1vw, 1rem);
}

html.tv-android .iptv-tv-bar__search {
    max-width: min(16rem, 38vw);
}

html.tv-android .iptv-tv-bar__time {
    font-size: 0.95rem;
}

html.tv-android .iptv-tv-bar__tz {
    font-size: 0.58rem;
}

@media (max-width: 640px) {
    .iptv-tv-bar__inner {
        flex-wrap: wrap;
        row-gap: 0.45rem;
    }
    .iptv-tv-bar__actions {
        width: 100%;
        flex-wrap: nowrap;
    }
    .iptv-tv-bar__search {
        max-width: none;
        flex: 1 1 auto;
    }
}

.tv-player-controls__center:empty {
    display: none;
}

.tv-watch-chrome .tv-watch-brand {
    display: none !important;
}
