/* ─── Live TV Module — baseado em html/assets/css/page-modules/live-tv.css ── */

.l-tv {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 64px 0;
    color: #fff;
}

.l-tv__wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 56px;
    padding: 0 60px;
}

/* ── Coluna principal ──────────────────────────────────────────── */

.l-tv__live {
    flex: 1 1 0;
    min-width: 0;
    max-width: 840px;
}

.l-tv__live > span {
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
    font-size: 10px;
    line-height: 1.2;
    color: rgba(255,255,255,.8);
}

.l-tv__live > h2 {
    margin-bottom: 20px;
    font-weight: 800;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.1;
    color: #fff;
}

.l-tv__live > div {
    width: 100%;
}

/* ── Figure ────────────────────────────────────────────────────── */

.l-tv__live > div > figure {
    position: relative;
    width: 100%;
    margin: 0;
    background: #000;
}

/* Gradiente sobre o player para legibilidade do figcaption */
.l-tv__live > div > figure::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.l-tv__live > div > figure > span {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 4px;
    padding: 4px 10px;
    background: #e8040e;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: .06em;
    color: #fff;
}

.l-tv__live > div > figure > span > img {
    width: 7px;
    height: 7px;
    display: block;
}

/* player wrapper */
.l-tv__player {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    overflow: hidden;
    background: #000;
}

.l-tv__player img,
.l-tv__player video,
.l-tv__player iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}

.l-tv__live > div > figure > figcaption {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 2;
}

.l-tv__live > div > figure > figcaption > span {
    display: block;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 10px;
    line-height: 1;
    letter-spacing: .1em;
    color: rgba(255,255,255,.7);
    margin-bottom: 4px;
}

.l-tv__live > div > figure > figcaption > strong {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    color: #fff;
}

/* ── Tabs de canal ─────────────────────────────────────────────── */

.l-tv .tabs-live {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
}

.l-tv .tabs-live > li {
    flex: 1;
    background: #fff;
    display: flex;
}

.l-tv .tabs-live > li.active {
    background: #12141b;
}

.l-tv .tabs-live > li > button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px 16px;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.l-tv .tabs-live > li > button:hover {
    background: rgba(0,0,0,.06);
}

.l-tv .tabs-live > li.active > button:hover {
    background: rgba(255,255,255,.05);
}

.l-tv .tabs-live > li > button > span {
    display: block;
    font-weight: 800;
    font-size: 11px;
    line-height: 1.2;
    color: #12141b;
}

.l-tv .tabs-live > li > button > span:last-child {
    font-weight: 400;
    font-size: 10px;
    color: #6e788a;
}

.l-tv .tabs-live > li.active > button > span {
    color: #fff;
}

.l-tv .tabs-live > li.active > button > span:last-child {
    color: rgba(255,255,255,.65);
}

/* ── Aside ─────────────────────────────────────────────────────── */

.l-tv__column {
    width: 424px;
    flex-shrink: 0;
}

.l-tv__column > h3 {
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 11px;
    line-height: 1.2;
    color: rgba(255,255,255,.65);
}

.l-tv__column > ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.l-tv__column > ul > li {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.l-tv__column > ul > li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.l-tv__column > ul > li > a {
    display: flex !important;
    align-items: flex-start;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.l-tv__column > ul > li > a > img {
    width: 190px;
    flex-shrink: 0;
    display: block;
    background: rgba(255,255,255,.1);
}

.l-tv__column > ul > li > a > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    flex: 1;
}

.l-tv__column > ul > li > a > div > span {
    display: block;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 9px;
    line-height: 1.2;
    letter-spacing: .08em;
    color: #e8040e;
}

.l-tv__column > ul > li > a > div > h4 {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    color: #fff;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
}

.l-tv__column > ul > li > a:hover > div > h4 {
    color: rgba(255,255,255,.75);
}

/* ── Responsivo ────────────────────────────────────────────────── */

/* Tablet largo — player já pequeno o suficiente, não precisa empilhar */
@media (max-width: 1200px) {
    .l-tv__wrapper {
        padding: 0 32px;
        gap: 40px;
    }

    .l-tv__column {
        width: 360px;
    }
}

/* Tablet — empilha coluna principal e aside */
@media (max-width: 1024px) {
    .l-tv__wrapper {
        flex-direction: column;
        padding: 0 24px;
        gap: 28px;
    }

    .l-tv__live {
        width: 100%;
        max-width: 100%;
    }

    .l-tv__column {
        width: 100%;
    }

    .l-tv__column > ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .l-tv__column > ul > li {
        border-bottom: none;
        padding-bottom: 0;
    }

    .l-tv .tabs-live > li:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 600px) {
    .l-tv {
        padding: 40px 0;
    }

    .l-tv__wrapper {
        padding: 0 16px;
    }

    .l-tv .tabs-live > li:nth-child(n+3) {
        display: none;
    }

    .l-tv__column > ul {
        grid-template-columns: 1fr;
    }
}
