.tv-picker-launch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1112px;
    box-sizing: border-box;
    gap: 24px;
    margin: 0 auto 2.8rem;
    padding: 2rem 2.4rem;
    border: 1px solid rgba(59, 89, 111, 0.12);
    border-radius: 1.4rem;
    background:
        radial-gradient(circle at top right, rgba(103, 211, 134, 0.24), transparent 42%),
        #fff;
    box-shadow: 0 8px 28px rgba(44, 62, 80, 0.08);
}

.tv-picker-launch__text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #2a2a2a;
}

.tv-picker-launch__text strong {
    font-size: 2.2rem;
    line-height: 1.2;
}

.tv-picker-launch__text span {
    color: #66727a;
    font-size: 1.6rem;
    line-height: 1.35;
}

.tv-picker-open {
    flex: 0 0 auto;
    min-height: 4.8rem;
    padding: 1.2rem 2.2rem;
    color: #fff;
    border: 0;
    background: var(--dark);
    font-size: 1.6rem;
    white-space: nowrap;
}

.tv-picker-open:hover,
.tv-picker-open:focus-visible {
    color: #fff;
    background: var(--accent);
}

.package__toggle:checked ~ .package__content {
    max-height: 1250px;
}

@media (min-width: 821px) {
    .package:has(#internet-tv:checked) .package__nav,
    .package:has(#interactive-tv:checked) .package__nav {
        margin-bottom: 2rem;
    }
}

.tv-picker-popup {
    overflow-y: auto;
}

.hidden-popup .tv-picker-dialog {
    width: min(1500px, 96vw);
    max-height: 92vh;
    margin: 4vh auto;
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
}

.tv-picker-dialog .tv-picker-close {
    top: 16px;
    right: 18px;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #fff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    font-size: 32px;
    line-height: 38px;
}

.tv-picker-dialog .tv-picker-close:hover,
.tv-picker-dialog .tv-picker-close:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.24);
}

.tv-picker-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 76px 22px 30px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(103, 211, 134, 0.34), transparent 38%),
        linear-gradient(135deg, #3b596f, #263e50);
}

.hidden-popup .tv-picker-dialog .tv-picker-header h2 {
    margin: 3px 0 6px;
    color: #fff;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.15;
}

.tv-picker-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
}

.tv-picker-eyebrow {
    color: #9ce7b2;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tv-picker-selected {
    min-width: 112px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 15px;
    text-align: center;
    white-space: nowrap;
}

.tv-picker-selected strong {
    color: #9ce7b2;
}

.tv-picker-status {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    padding: 24px;
    color: #66727a;
    font-size: 16px;
}

.tv-picker-status.is-error {
    color: #b73333;
}

.tv-picker-status[hidden],
.tv-picker-content[hidden],
.tv-picker-empty[hidden] {
    display: none !important;
}

.tv-picker-content {
    box-sizing: border-box;
    max-height: calc(92vh - 126px);
    padding: 22px 28px 28px;
    overflow-y: auto;
}

.tv-picker-toolbar {
    display: flex;
    align-items: flex-end;
    grid-column: 1 / -1;
    grid-row: 1;
    gap: 16px;
}

.tv-picker-search {
    display: flex;
    flex: 1 1 420px;
    max-width: 620px;
    flex-direction: column;
    gap: 6px;
    color: #52616b;
    font-size: 13px;
    font-weight: 600;
}

.tv-picker-search input {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 14px;
    color: #2a2a2a;
    border: 1px solid rgba(59, 89, 111, 0.22);
    border-radius: 10px;
    background: #fff;
    font-size: 16px;
    outline: none;
}

.tv-picker-search input:focus {
    border-color: #67d386;
    box-shadow: 0 0 0 3px rgba(103, 211, 134, 0.18);
}

.tv-picker-common-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: #66727a;
    font-size: 14px;
    cursor: pointer;
}

.tv-picker-common-toggle input {
    width: 17px;
    height: 17px;
    accent-color: #3b596f;
}

.tv-picker-clear {
    min-height: 44px;
    font-size: 14px;
}

.tv-picker-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
    align-items: start;
    gap: 24px;
}

.tv-picker-channels-panel {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
}

.tv-picker-results-panel {
    grid-column: 2;
    grid-row: 2;
}

.tv-picker-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.tv-picker-panel-heading h3 {
    margin: 0;
    color: #3b596f;
    font-size: 18px;
}

.tv-picker-panel-heading span {
    color: #74808a;
    font-size: 13px;
    text-align: right;
}

.tv-picker-channel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: 10px;
    max-height: calc(92vh - 315px);
    min-height: 260px;
    padding: 2px 6px 2px 2px;
    overflow-y: auto;
    scrollbar-color: rgba(59, 89, 111, 0.28) transparent;
}

.tv-picker-channel-card {
    display: grid;
    grid-template-columns: 20px 46px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 74px;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid rgba(59, 89, 111, 0.13);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(44, 62, 80, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

label.tv-picker-channel-card {
    cursor: pointer;
}

label.tv-picker-channel-card:hover {
    border-color: rgba(103, 211, 134, 0.9);
    box-shadow: 0 5px 16px rgba(44, 62, 80, 0.1);
    transform: translateY(-1px);
}

.tv-picker-channel-card.is-selected {
    border-color: #55b672;
    background: rgba(103, 211, 134, 0.1);
    box-shadow: 0 0 0 2px rgba(103, 211, 134, 0.14);
}

.tv-picker-channel-card.is-common {
    color: #7b858d;
    background: #f1f3f5;
    box-shadow: none;
    opacity: 0.78;
}

.tv-picker-channel-check {
    display: flex;
    justify-content: center;
}

.tv-picker-channel-check input {
    width: 17px;
    height: 17px;
    accent-color: #3b596f;
}

.tv-picker-channel-logo {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    overflow: hidden;
    border-radius: 9px;
    background: #f3f6f8;
}

.tv-picker-channel-logo img {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 4px;
    object-fit: contain;
}

.tv-picker-channel-name {
    min-width: 0;
    color: #2a2a2a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.tv-picker-channel-number,
.tv-picker-channel-common {
    display: block;
    margin-top: 4px;
    color: #6c757d;
    font-size: 12px;
    font-weight: 400;
}

.tv-picker-results-sticky {
    padding: 17px;
    border: 1px solid rgba(59, 89, 111, 0.12);
    border-radius: 15px;
    background: #f7f9fa;
}

.tv-picker-tariff {
    padding: 14px;
    border: 1px solid rgba(59, 89, 111, 0.12);
    border-radius: 12px;
    background: #fff;
}

.tv-picker-tariff + .tv-picker-tariff {
    margin-top: 10px;
}

.tv-picker-tariff__heading,
.tv-picker-tariff__action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tv-picker-tariff__name {
    color: #3b596f;
    font-size: 16px;
    font-weight: 700;
}

.tv-picker-tariff__price {
    color: #2a2a2a;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.tv-picker-tariff__meta {
    margin: 8px 0 12px;
    color: #66727a;
    font-size: 13px;
    line-height: 1.35;
}

.tv-picker-tariff__action .btn {
    width: 100%;
    min-height: 40px;
    font-size: 14px;
}

.tv-picker-empty,
.tv-picker-no-results {
    padding: 28px 18px;
    color: #66727a;
    border: 1px dashed rgba(59, 89, 111, 0.22);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.tv-picker-no-results strong {
    display: block;
    margin-bottom: 7px;
    color: #3b596f;
    font-size: 15px;
}

.tv-picker-sync-date {
    margin-top: 12px;
    color: #7d878e;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 1100px) {
    .tv-picker-channel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .tv-picker-launch {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .tv-picker-open {
        width: 100%;
        white-space: normal;
    }

    .hidden-popup .tv-picker-dialog {
        width: 98vw;
        max-height: 96vh;
        margin: 2vh auto;
    }

    .tv-picker-content {
        max-height: calc(96vh - 146px);
    }

    .tv-picker-header {
        flex-direction: column;
        gap: 13px;
        padding: 22px 64px 20px 20px;
    }

    .tv-picker-selected {
        align-self: flex-start;
    }

    .tv-picker-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .tv-picker-search {
        flex-basis: auto;
        max-width: none;
    }

    .tv-picker-common-toggle {
        min-height: 0;
    }

    .tv-picker-layout {
        display: flex;
        flex-direction: column;
    }

    .tv-picker-results-panel {
        order: 1;
        width: 100%;
    }

    .tv-picker-toolbar {
        order: 2;
        width: 100%;
    }

    .tv-picker-channels-panel {
        order: 3;
        width: 100%;
    }

    .tv-picker-channel-grid {
        max-height: 54vh;
    }
}

@media (max-width: 520px) {
    .tv-picker-launch {
        margin-bottom: 2rem;
        padding: 1.8rem;
    }

    .tv-picker-launch__text strong {
        font-size: 2rem;
    }

    .hidden-popup .tv-picker-dialog {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .tv-picker-content {
        max-height: calc(100vh - 170px);
        padding: 18px 14px 24px;
    }

    .tv-picker-channel-grid {
        grid-template-columns: 1fr;
        max-height: none;
        overflow-y: visible;
    }

    .tv-picker-panel-heading {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tv-picker-channel-card {
        transition: none;
    }
}
