.page-shell{
    width:100%;
    background:#05050b;
    min-height:100vh;
    padding:30px;
    box-sizing:border-box;
}

.page-main{
    max-width:1800px;
    margin:0 auto;
}

.hero{
    width:100%;
    min-height:160px;
    border-radius:28px;
    overflow:hidden;
    margin-bottom:30px;
    background:
        radial-gradient(circle at top right,#31115f 0%,transparent 30%),
        linear-gradient(90deg,#10101d 0%,#07070d 100%);
    display:flex;
    align-items:center;
    padding:35px 50px;
    box-sizing:border-box;
}

.hero-inner h1{
    color:white;
    font-size:54px;
    font-weight:800;
    margin:0 0 10px 0;
}

.hero-inner p{
    color:#cfcfd8;
    font-size:22px;
    margin:0;
}

.layout{
    display:grid !important;
    grid-template-columns: 1fr 1.2fr !important;
    gap:28px;
    align-items:stretch;
}

.tv-layout{
    align-items:stretch;
}

.player-col{
    width:100%;
    min-width:0;
}

.player-card{
    width:100%;
    border:3px solid #f1d440 !important;
    border-radius:30px !important;
    overflow:hidden;
    background:#111 !important;
}

.tv-player-card{
    display:flex;
    flex-direction:column;
    width:100%;
    aspect-ratio:1 / 1;
}

.player-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:24px 28px;
    background:#1b1b28 !important;
}

.tv-player-header{
    flex:0 0 auto;
}

.player-live{
    display:flex;
    align-items:center;
    gap:14px;
}

.player-live-dot{
    width:16px;
    height:16px;
    background:#ff4b4b;
    border-radius:50%;
}

.player-live-title{
    color:white;
    font-size:18px;
    font-weight:800;
}

.player-badge{
    background:#7c3aed;
    color:white;
    padding:12px 20px;
    border-radius:999px;
    font-weight:700;
    font-size:16px;
}

.player-video-wrap{
    width:100%;
    flex:1 1 auto;
    min-height:0;
    background:black;
    overflow:hidden;
}

.tv-video-wrap{
    position:relative;
}

#tv-player{
    width:100%;
    height:100%;
    object-fit:contain;
    background:black;
    display:block;
    background:black;
}

.player-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:24px 28px;
    background:#111;
}

.tv-player-footer{
    flex:0 0 auto;
}

#tv-label{
    color:white;
    font-size:18px;
    font-weight:800;
}

.tv-label{
    color:white;
    font-size:18px;
    font-weight:800;
}

#btnCanal{
    background:#111;
    color:#f1d440;
    border:3px solid #f1d440;
    border-radius:18px;
    padding:14px 26px;
    font-size:22px;
    font-weight:700;
    cursor:pointer;
    transition:.2s;
}

#btnCanal:hover{
    background:#f1d440;
    color:#111;
}

.btn-canal{
    background:#111;
    color:#f1d440;
    border:3px solid #f1d440;
    border-radius:18px;
    padding:14px 26px;
    font-size:22px;
    font-weight:700;
    cursor:pointer;
    transition:.2s;
}

.btn-canal:hover{
    background:#f1d440;
    color:#111;
}

.side-col{
    width:100%;
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:28px;
}

.side-col article{
    width:100%;
    border-radius:28px;
    overflow:hidden;
}

.tv-carousel-card{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    aspect-ratio: 16 / 9;
    background:rgba(255, 255, 255, 0.03) !important;
    backdrop-filter:blur(10px);
    border:1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(124, 58, 237, 0.15);
    padding:0;
    box-sizing:border-box;
    z-index:1;
}

.tv-carousel-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 28px;
}

/* Background decorativo para la columna lateral */
.side-col {
    position: relative;
    border-radius: 30px;
    padding: 0;
    background: 
        radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.2) 0%, transparent 70%),
        radial-gradient(circle at 80% 80%, rgba(241, 212, 64, 0.05) 0%, transparent 50%),
        rgba(15, 15, 26, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrar verticalmente */
}

.side-col::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(124, 58, 237, 0.15);
    filter: blur(80px);
    border-radius: 50%;
    pointer-events: none;
}

.tv-carousel-card #carousel-track{
    width:100%;
    height:100%;
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
}

.tv-carousel-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(0,0,0,0.4);
    backdrop-filter:blur(8px);
    color:#fff;
    border:1px solid rgba(255,255,255,0.15);
    border-radius:50%;
    width:44px;
    height:44px;
    cursor:pointer;
    z-index:10;
    font-size:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tv-carousel-arrow:hover{
    background:#f1d440;
    color:#000;
    transform:translateY(-50%) scale(1.15);
    box-shadow:0 0 15px rgba(241, 212, 64, 0.4);
}

.tv-carousel-arrow.prev{
    left:10px;
}

.tv-carousel-arrow.next{
    right:10px;
}

.side-col img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4));
    background:transparent;
}

.news-tv-section{
    margin-top:60px;
    padding:32px;
    padding-bottom:40px;
    border:2px solid rgba(241, 212, 64, 0.22);
    border-radius:30px;
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.16) 0%, transparent 28%),
        linear-gradient(180deg, #12121d 0%, #09090f 100%);
    box-shadow:0 20px 45px rgba(0,0,0,0.28);
}

.news-tv-header{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:20px;
    padding-bottom:18px;
    margin-bottom:26px;
    border-bottom:1px solid rgba(255,255,255,0.12);
}

.news-tv-header h2{
    margin:0;
    color:#f1d440;
    font-size:40px;
    line-height:1.05;
    font-weight:800;
}

.news-tv-header p{
    margin:0;
    max-width:420px;
    color:#b8b9c7;
    font-size:15px;
    text-align:right;
}

.news-tv-section .news-grid-3x3{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:20px;
    padding:0;
}

.news-tv-section .news-card{
    width:100%;
    min-width:0;
    max-width:none;
    flex:initial;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    padding:12px;
    border-radius:22px;
    border:1px solid rgba(241, 212, 64, 0.14);
    background:linear-gradient(180deg, #161622 0%, #0d0d14 100%);
    box-shadow:0 10px 25px rgba(0,0,0,0.34);
}

.news-tv-section .news-card:hover{
    border-color:#f1d440;
    box-shadow:0 15px 32px rgba(0,0,0,0.42);
}

.news-tv-section .news-img-container{
    width:100%;
    height:auto !important;
    aspect-ratio:16 / 9;
    border-radius:16px;
    overflow:hidden;
    background:#05050b;
}

.news-tv-section .news-img{
    width:100%;
    height:100%;
    display:block;
    margin-bottom:0;
    border-radius:0;
    object-fit:cover !important;
}

.news-tv-section .news-card-body{
    padding:14px 4px 2px !important;
    display:flex;
    flex:1;
    flex-direction:column;
}

.news-tv-section .news-card-badge{
    max-width:calc(100% - 24px);
}

.news-tv-section .news-card-date{
    color:#f1d440 !important;
    letter-spacing:0.02em;
    font-size:0.78rem;
}

.news-tv-section .news-card-title{
    margin:0 0 8px !important;
    color:#fff !important;
    font-size:16px !important;
    line-height:1.3;
    min-height:calc(1.3em * 2);
    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}

.news-tv-section .news-card-desc{
    margin:0 0 12px !important;
    color:#c7c9d4 !important;
    font-size:12px !important;
    line-height:1.5;
    min-height:3em;
    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}

.news-tv-section .news-card-footer{
    margin-top:auto !important;
    padding-top:10px !important;
    border-top:1px solid rgba(255,255,255,0.06);
}

.news-tv-empty{
    grid-column:1 / -1;
    margin:0;
    padding:40px 20px;
    text-align:center;
    color:#c7c9d4;
    border:1px dashed rgba(255,255,255,0.12);
    border-radius:20px;
    background:rgba(255,255,255,0.03);
}

@media(max-width:1400px){

    .layout{
        grid-template-columns:1fr !important;
    }

    .tv-player-card,
    .tv-carousel-card{
        aspect-ratio:16 / 10;
    }

}

@media(max-width:900px){

    .hero{
        padding:30px;
        min-height:180px;
    }

    .hero-inner h1{
        font-size:48px;
    }

    .hero-inner p{
        font-size:20px;
    }

    .news-tv-section{
        padding:24px 18px 32px;
    }

    .news-tv-header{
        align-items:flex-start;
        flex-direction:column;
    }

    .news-tv-header h2{
        font-size:30px;
    }

    .news-tv-header p{
        max-width:none;
        text-align:left;
    }

    .news-tv-section .news-grid-3x3{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .tv-player-card,
    .tv-carousel-card{
        aspect-ratio:16 / 11;
    }

    .player-live-title{
        font-size:16px;
    }

    #tv-label{
        font-size:16px;
    }

    #btnCanal{
        font-size:18px;
        padding:12px 20px;
    }

}

@media(max-width:640px){
    .page-shell{
        padding:14px;
    }

    .hero{
        min-height:120px;
        padding:22px;
        border-radius:18px;
        margin-bottom:18px;
    }

    .hero-inner h1{
        font-size:34px;
    }

    .hero-inner p{
        font-size:16px;
    }

    .layout{
        gap:18px;
    }

    .player-card{
        border-width:1px !important;
        border-radius:16px !important;
    }

    .tv-player-card{
        aspect-ratio:auto;
    }

    .player-header{
        padding:12px 14px;
    }

    .player-live-dot{
        width:10px;
        height:10px;
    }

    .player-live-title,
    #tv-label,
    .tv-label{
        font-size:13px;
    }

    .player-badge{
        padding:7px 10px;
        font-size:11px;
    }

    .player-video-wrap{
        flex:0 0 auto;
        aspect-ratio:16 / 9;
    }

    .player-footer{
        padding:12px 14px;
    }

    #btnCanal,
    .btn-canal{
        border-width:1px;
        border-radius:12px;
        padding:8px 12px;
        font-size:13px;
    }

    .side-col{
        border-radius:18px;
    }

    .tv-carousel-card{
        border-radius:18px;
        aspect-ratio:16 / 9;
    }

    .news-tv-section .news-grid-3x3{
        grid-template-columns:1fr;
    }
}
