/* Netstream Channels — Brand: Nov 2025 */
.nsch {
    --nsch-dark-blue:  #193750;
    --nsch-blue:       #005FAA;
    --nsch-light-blue: #4BCDFF;
    --nsch-ice-blue:   #E9F8FE;
    --nsch-green:      #28E6B4;
    --nsch-anthracite: #494949;
    --nsch-grey:       #CDCDCD;
    --nsch-light-grey: #F7F7F7;
    --nsch-white:      #FFFFFF;

    --nsch-accent: var(--nsch-blue);
    --nsch-fg:     var(--nsch-dark-blue);
    --nsch-muted:  var(--nsch-anthracite);
    --nsch-border: var(--nsch-grey);
    --nsch-bg:     var(--nsch-white);
    --nsch-bg-soft:var(--nsch-light-grey);

    --nsch-radius:    12px;
    --nsch-radius-sm: 8px;
    --nsch-gap:       12px;
    --nsch-card-size: 96px;

    font-family: "Plain", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--nsch-fg);
    box-sizing: border-box;
    container-type: inline-size;
}

.nsch *,
.nsch *::before,
.nsch *::after {
    box-sizing: inherit;
}

/* Reset gegen Theme/Elementor-Button-Defaults */
.nsch button,
.nsch .nsch__reset,
.nsch .nsch__card-btn,
.nsch .nsch__modal-close {
    background: transparent;
    background-color: transparent;
    background-image: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-shadow: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}
.nsch button:hover,
.nsch button:focus,
.nsch button:active {
    background: transparent;
    background-color: transparent;
    background-image: none;
    box-shadow: none;
    color: inherit;
}

/* ---------- Filters ---------- */
.nsch__filters {
    display: grid;
    grid-template-columns: 1.5fr repeat(2, 1fr) auto;
    gap: var(--nsch-gap);
    align-items: end;
    padding: 20px;
    background: var(--nsch-bg-soft);
    border-radius: var(--nsch-radius);
    margin-bottom: 16px;
}

.nsch__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.nsch__field-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--nsch-muted);
}

.nsch__input,
.nsch__select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--nsch-border);
    border-radius: var(--nsch-radius-sm);
    background: var(--nsch-bg);
    color: var(--nsch-fg);
    font: inherit;
    font-size: 15px;
    transition: border-color .15s ease, box-shadow .15s ease;
    appearance: none;
}

.nsch__select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23193750' d='M6 8 0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.nsch__input:focus,
.nsch__select:focus {
    outline: none;
    border-color: var(--nsch-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--nsch-accent) 18%, transparent);
}

.nsch .nsch__reset {
    color: var(--nsch-blue);
    font-size: 14px;
    font-weight: 500;
    padding: 0 8px;
    height: 44px;
    border-radius: var(--nsch-radius-sm);
    transition: color .15s ease;
}

.nsch .nsch__reset:hover {
    color: var(--nsch-dark-blue);
    background: transparent;
}

/* ---------- Toolbar (Counter + Sort) ---------- */
.nsch__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.nsch__sort {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nsch__sort-label {
    font-size: 13px;
    color: var(--nsch-muted);
    font-weight: 500;
    white-space: nowrap;
}

.nsch__sort .nsch__select {
    width: auto;
    min-width: 160px;
    height: 38px;
}

/* ---------- Counter ---------- */
.nsch__counter {
    font-size: 14px;
    color: var(--nsch-muted);
}

.nsch__counter strong {
    font-size: 18px;
    color: var(--nsch-fg);
    margin-right: 6px;
}

.nsch__counter-detail {
    color: var(--nsch-muted);
    margin-left: 6px;
}

/* ---------- Grid ---------- */
.nsch__grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--nsch-card-size), 1fr));
    gap: var(--nsch-gap);
}

.nsch__card {
    background: var(--nsch-bg);
    border: 1px solid var(--nsch-border);
    border-radius: var(--nsch-radius);
    aspect-ratio: 1 / 1;
    overflow: visible;
    transition: transform .18s ease, box-shadow .18s ease;
    position: relative;
}

.nsch .nsch__card-btn {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.nsch__card-name {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.nsch__logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.nsch__card:hover,
.nsch__card:focus-within {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.30);
    z-index: 2;
}

.nsch__card.is-hidden {
    display: none;
}

/* ---------- Modal ---------- */
.nsch__modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.nsch__modal[hidden] { display: none; }

.nsch__modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(25, 55, 80, 0.55);
    cursor: pointer;
}

.nsch__modal-dialog {
    position: relative;
    background: var(--nsch-bg);
    border-radius: var(--nsch-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.30);
    padding: 32px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: nsch-modal-in .18s ease-out;
}

@keyframes nsch-modal-in {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}

.nsch .nsch__modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    color: var(--nsch-dark-blue);
    font-size: 28px;
    line-height: 1;
    transition: color .15s ease, opacity .15s ease;
    opacity: .7;
}

.nsch .nsch__modal-close:hover,
.nsch .nsch__modal-close:focus {
    color: var(--nsch-dark-blue);
    opacity: 1;
    background: transparent;
}

.nsch__detail-head {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.nsch__detail-logo {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nsch-light-grey);
    border-radius: var(--nsch-radius);
    margin: 0;
}

.nsch__detail-logo img {
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
}

.nsch__detail-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nsch__detail-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.nsch__detail-lang {
    font-size: 14px;
    color: var(--nsch-muted);
}

.nsch__detail-name {
    font-size: 22px;
    font-weight: 500;
    color: var(--nsch-fg);
    margin: 0;
    line-height: 1.2;
    word-wrap: break-word;
}

.nsch__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.nsch__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.nsch__chip--text {
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--nsch-ice-blue);
    color: var(--nsch-dark-blue);
    line-height: 26px;
}

.nsch__chip--icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--nsch-ice-blue);
    color: var(--nsch-anthracite);
}

.nsch__chip-icon {
    width: 14px;
    height: 14px;
    display: block;
}

.nsch__chip--radio { background: var(--nsch-light-grey); }

/* ---------- Empty ---------- */
.nsch__empty-state,
.nsch-empty {
    text-align: center;
    padding: 32px;
    color: var(--nsch-muted);
    font-size: 14px;
}

/* ---------- Mini View ---------- */
.nsch--mini {
    container-type: inline-size;
}

.nsch--mini .nsch__grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--nsch-card-size), 1fr));
    gap: var(--nsch-gap);
}

.nsch__card--mini {
    background: var(--nsch-bg);
    border: 1px solid var(--nsch-border);
    border-radius: var(--nsch-radius-sm);
    aspect-ratio: 1 / 1;
    align-self: start;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: none;
}

.nsch__card--mini.is-hidden { display: none; }

.nsch__card--mini:hover {
    transform: none;
    box-shadow: none;
}

.nsch__card--mini img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.nsch__card--more {
    background: var(--nsch-light-grey);
    border: 1px dashed var(--nsch-grey);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.nsch__card--more:hover {
    background: var(--nsch-grey);
    border-color: var(--nsch-muted);
}

.nsch .nsch__more-btn {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nsch__more-dots {
    display: inline-flex;
    gap: 6px;
}

.nsch__more-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nsch-muted);
    display: block;
}

/* ---------- Stats View ---------- */
.nsch--stats {
    container-type: inline-size;
    --nsch-stats-scale: 1;
    width: 100%;
    flex: 1 1 auto;
}

.nsch__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(24px * var(--nsch-stats-scale));
}

.nsch__stat {
    background: var(--nsch-bg);
    border: 1px solid var(--nsch-border);
    border-radius: var(--nsch-radius);
    padding: calc(20px * var(--nsch-stats-scale));
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: calc(10px * var(--nsch-stats-scale));
    width: calc(240px * var(--nsch-stats-scale));
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
}

.nsch__stat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.nsch__stat-icon {
    width: calc(72px * var(--nsch-stats-scale));
    height: calc(72px * var(--nsch-stats-scale));
    display: flex;
    align-items: center;
    justify-content: center;
}

.nsch__stat-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.nsch__stat-number {
    font-size: calc(48px * var(--nsch-stats-scale));
    font-weight: 500;
    line-height: 1;
    color: var(--nsch-dark-blue);
    font-variant-numeric: tabular-nums;
}

.nsch__stat-label {
    font-size: calc(16px * var(--nsch-stats-scale));
    color: var(--nsch-muted);
    font-weight: 500;
}

@container (max-width: 480px) {
    .nsch__stats { gap: 12px; }
    .nsch__stat { width: calc(160px * var(--nsch-stats-scale)); }
    .nsch__stat-icon {
        width: calc(52px * var(--nsch-stats-scale));
        height: calc(52px * var(--nsch-stats-scale));
    }
    .nsch__stat-number {
        font-size: calc(36px * var(--nsch-stats-scale));
    }
}

/* ---------- Responsive ---------- */
@container (max-width: 640px) {
    .nsch:not(.nsch--mini) .nsch__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }
    .nsch__filters {
        grid-template-columns: 1fr 1fr;
    }
    .nsch__field--search { grid-column: 1 / -1; }
    .nsch__reset { grid-column: 1 / -1; justify-self: start; }
}

@container (max-width: 400px) {
    .nsch__filters { grid-template-columns: 1fr; }
}
