/* ── Video player ── */
.tw-player-wrap {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

.tw-player-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.tw-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    background: rgba(0, 0, 0, 0.15);
}

.tw-play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
    transition: transform 0.15s;
}

.tw-player-wrap:hover .tw-play-icon {
    transform: scale(1.1);
}

/* ── Meta video ── */
.tw-video-meta {
    margin-top: 8px;
    padding: 0 4px;
}

.tw-video-meta p {
    margin-bottom: 6px;
    font-size: 0.95em;
}

/* ── Descrizione lunga ── */
.tw-descrizione-lunga {
    line-height: 1.7;
}

.tw-dl-header {
    margin-bottom: 12px;
}

.tw-dl-nome {
    margin-bottom: 6px;
}

/* ── Autore carosello ── */
.tw-author {
    margin-top: 12px;
    font-style: italic;
    font-weight: 600;
}

/* ── Badge categorie ── */
.tw-categorie {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tw-badge {
    display: inline-block;
    background: #f0f0f0;
    color: #444;
    font-size: 0.75em;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    line-height: 1.6;
    border: 1px solid #ddd;
}
