/* TV channels preview modal — mdbtv.info/pay */
.tv-channels-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}
.tv-channels-modal.is-open {
    display: block;
}
.tv-channels-modal .modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}
.tv-channels-modal .modal__content {
    position: relative;
    margin: 4vh auto;
    max-width: 720px;
    width: 92%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #444654;
    border-radius: 12px;
    padding: 20px;
    color: #e5e5e5;
}
.tv-channels-modal .modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: transparent;
    color: #ccc;
    font-size: 28px;
    cursor: pointer;
}
.tv-channels-modal__title {
    margin: 0 0 12px;
    font-size: 18px;
}
.tv-channels-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
.tv-channels-search {
    flex: 1;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #5a5c61;
    background: #343541;
    color: #eee;
}
.tv-channels-count {
    font-size: 13px;
    color: #aaa;
    white-space: nowrap;
}
.tv-channels-list {
    overflow-y: auto;
    flex: 1;
    min-height: 200px;
    padding-right: 4px;
}
.tv-channels-category {
    margin-bottom: 16px;
}
.tv-channels-category__title {
    margin: 0 0 6px;
    padding: 6px 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #c5c5d2;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 6px;
    position: sticky;
    top: 0;
    z-index: 1;
}
.tv-channels-category__list {
    display: flex;
    flex-direction: column;
}
.tv-channels-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
}
.tv-channels-row__logo {
    flex-shrink: 0;
    width: 52px;
    height: 32px;
    overflow: hidden;
    border-radius: 4px;
    display: block;
    line-height: 0;
}
.tv-channels-row__logo--empty {
    background: rgba(255, 255, 255, 0.06);
}
.tv-channels-row__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border: 0;
}
.tv-channels-row__name {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}
.tv-channels-loading,
.tv-channels-empty {
    color: #aaa;
    padding: 20px 0;
}
