/* Nachtfragment TV – responsive Joomla module */
.nf-dmtv {
    --nf-tv-bg: #101010;
    --nf-tv-panel: #171717;
    --nf-tv-text: #e9e5e1;
    --nf-tv-muted: #a7a09a;
    --nf-tv-line: rgba(255,255,255,.12);
    width: 100%;
    color: var(--nf-tv-text);
    background: var(--nf-tv-bg);
    border: 1px solid var(--nf-tv-line);
    box-sizing: border-box;
    overflow: hidden;
}
.nf-dmtv * { box-sizing: border-box; }
.nf-dmtv__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: linear-gradient(110deg, #171717, #0d0d0d);
}
.nf-dmtv__eyebrow {
    margin: 0 0 .25rem;
    color: var(--nf-tv-muted);
    font-size: .68rem;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.nf-dmtv__title {
    margin: 0;
    color: var(--nf-tv-text);
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    line-height: 1.25;
}
.nf-dmtv__live-mark {
    flex: 0 0 .65rem;
    width: .65rem;
    height: .65rem;
    border-radius: 50%;
    background: #8d242b;
    box-shadow: 0 0 0 .25rem rgba(141,36,43,.16);
}
.nf-dmtv__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}
.nf-dmtv--4by3 .nf-dmtv__frame { aspect-ratio: 4 / 3; }
.nf-dmtv__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.nf-dmtv__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1.15rem;
    background: var(--nf-tv-panel);
    border-top: 1px solid var(--nf-tv-line);
}
.nf-dmtv__playlist {
    color: var(--nf-tv-text);
    text-decoration: none;
    font-size: .88rem;
}
.nf-dmtv__playlist:hover { color: #fff; text-decoration: underline; }
.nf-dmtv__channel {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: baseline;
    gap: .25rem .55rem;
    color: var(--nf-tv-muted);
    text-decoration: none;
    font-size: .78rem;
    text-align: right;
}
.nf-dmtv__channel strong { color: var(--nf-tv-text); font-size: .85rem; }
.nf-dmtv__channel:hover strong { text-decoration: underline; }
.nf-dmtv__channel-label { text-transform: uppercase; letter-spacing: .08em; font-size: .65rem; }
@media (max-width: 600px) {
    .nf-dmtv__footer { align-items: flex-start; flex-direction: column; }
    .nf-dmtv__channel { justify-content: flex-start; text-align: left; }
    .nf-dmtv__heading { padding: .85rem; }
}


/* Genre playlist selector – added in 1.0.9 */
.nf-dmtv__genres {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    padding: .8rem 1rem;
    background: #111;
    border-top: 1px solid rgba(255,255,255,.12);
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.nf-dmtv__genre {
    appearance: none;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 2px;
    background: #1b1b1b;
    color: #c9c2bc;
    padding: .55rem .75rem;
    font: inherit;
    font-size: .78rem;
    line-height: 1.25;
    cursor: pointer;
}
.nf-dmtv__genre:hover,
.nf-dmtv__genre:focus-visible {
    border-color: #96343b;
    color: #fff;
    outline: none;
}
.nf-dmtv__genre.is-active {
    background: #70252b;
    border-color: #96343b;
    color: #fff;
}
@media (max-width: 600px) {
    .nf-dmtv__genres { padding: .7rem; gap: .35rem; }
    .nf-dmtv__genre { flex: 1 1 auto; }
}
