/* =============================================
   TOP VIDEOS – Stile Frontend v3
   ============================================= */

.top-videos-wrap {
    box-sizing: border-box;
    position: relative;
    margin: 24px 0;
    font-family: inherit;
}

/* --- Heading --- */
.ans-shorts-carousel__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0 0 14px;
    padding: 0;
    border: none;
    color: inherit;
}

.ans-shorts-carousel__title svg {
    flex-shrink: 0;
}

/* --- Strip --- */
.tv-strip {
    position: relative;
}

/* --- Scrollable Track --- */
.tv-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.tv-track::-webkit-scrollbar {
    display: none;
}

/* --- Card (è un <a>) --- */
.tv-card {
    flex: 0 0 200px;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tv-card:hover .tv-thumb img {
    transform: scale(1.04);
    filter: brightness(0.8);
}

.tv-card:hover .tv-play {
    opacity: 1;
}

/* --- Thumbnail --- */
.tv-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #ddd;
    aspect-ratio: 16/9;
}

.tv-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease, filter .3s ease;
}

.tv-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #ccc;
}

.tv-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s;
    background: rgba(0,0,0,0.3);
}

.tv-duration {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* --- Title --- */
.tv-title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 8px 0 0;
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Arrow Buttons --- */
.tv-arrow {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: background .2s, color .2s, opacity .2s;
    z-index: 2;
}

.tv-arrow:hover {
    background: #333;
    color: #fff;
}

.tv-arrow-left  { left:  -14px; }
.tv-arrow-right { right: -14px; }

.tv-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .tv-card {
        flex: 0 0 160px;
    }
}
