/* RESET E BODY */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #222;
    color: #fff;
}

header h1 {
    flex: 1;
    text-align: center;
    margin: 0;
}

header img {
    height: 50px;
}

#header-label {
    font-weight: normal;
    font-size: 0.9em;
    margin-right: 5px;
    color: #ccc; /* grigio chiaro per differenziarlo dal titolo */
}


/* MAIN */
main {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* VIDEO RESPONSIVE */
.video-container {
    width: 100%;
    max-width: 1000px;
    margin-top: 20px; /* spazio tra header e player */
}

.video-container video {
    width: 100%;
    height: auto;
}

/* LISTA VIDEO */
#video-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    justify-content: center;
    margin-top: 20px; /* distanza dal player */
}

.video-item {
    cursor: pointer;
    transition: 0.2s;
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    flex: 1 1 250px;
}

.video-item:hover {
    background: #e0e0e0;
}

.video-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.video-desc {
    font-size: 0.9em;
    color: #333;
}

.video-number {
    display: inline-block;
    width: 20px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    background-color: #555;
    border-radius: 50%;
    margin-right: 5px;
}

/* Evidenzia il primo video suggerito */
#video-list .video-item:first-child {
    border: 2px solid #007bff; /* bordo blu */
    background-color: #e6f0ff;  /* leggero azzurro */
}



/* FOOTER */
footer {
    text-align: center;
    padding: 10px;
    background-color: #222;
    color: #fff;
}
