body {
    background-color: #0f0f0f;
    color: white;
    font-family: Arial, sans-serif;
    margin: 0;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

.player-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 15px;
}

.video-wrapper {
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.main-video {
    width: 100%;
    display: block;
}

.video-details {
    padding: 15px 0;
}

.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    color: #aaa;
}

.actions button {
    background: #222;
    border: 1px solid #444;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.actions button:hover {
    background: #333;
    border-color: #e67e22;
}

.actions button span {
    margin-left: 5px;
    font-weight: bold;
}

.comments-section textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #444;
    color: white;
    padding: 10px 0;
    margin-bottom: 10px;
    resize: none;
}

.comment-item {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 3px solid #e67e22; /* Richiamo all'arancione del sito */
}

.comment-item strong {
    display: block;
    color: #e67e22;
    margin-bottom: 5px;
}

.comment-item small {
    color: #777;
    font-size: 0.75rem;
}

.comment-item p {
    margin-top: 10px;
    line-height: 1.4;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-logout {
    background: #c0392b;
    padding: 5px 12px;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #e74c3c;
}

.btn-like.active {
    color: #2ecc71;
    transform: scale(1.1);
}
.btn-dislike.active {
    color: #e74c3c;
    transform: scale(1.1);
}
.btn-like, .btn-dislike {
    transition: all 0.2s ease;
    cursor: pointer;
}

.back-nav a:hover {
    color: #e67e22 !important;
}
.btn-delete-comment {
    color: red;
    text-decoration: none;
    font-size: 0.75rem; /* Un po' più piccolo della data */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    border: 1px solid #333;
    padding: 2px 8px;
    border-radius: 4px;
}

.btn-delete-comment:hover {
    color: #e74c3c; /* Rosso per indicare l'eliminazione */
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.btn-download{
    color: greenyellow;
}

.btn-nodownload{
    color: #e74c3c;
}

.comment-form textarea {
    width: 100%;
    background: #111;
    border: none;
    border-bottom: 2px solid #333;
    color: white;
    padding: 10px;
    resize: none;
    font-family: inherit;
    transition: border-color 0.3s;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #e67e22;
}

.comment-form button {
    background: #e67e22;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    margin-top: 10px;
}

.watch-layout {
    display: flex;
    gap: 30px;
    padding: 20px 5%;
    margin-top: 20px;
}
.main-col {
    flex: 3;
}
.side-col {
    flex: 1;
    min-width: 350px;
}
.autoplay-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.related-card {
    display: flex;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 15px;
    transition: transform 0.2s;
}
.related-card:hover {
    transform: translateX(5px);
}
.rel-thumb-box {
    position: relative;
    width: 140px;
    height: 80px;
    flex-shrink: 0;
}
.rel-thumb-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}
.rel-info h4{
    color: white
}

.rel-info small{
    color: #e67e22
}

/* Stile per il blocco autore */
.author-info {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}
.author-avatar {
    width: 45px;
    height: 45px;
    background: #e67e22;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: #fff;
    margin-right: 15px;
}

.author-name{
    color: #e67e22;
    text-decoration: none;
}

/* Stili per avatar */
.avatar-circle {
    width: 45px;
    height: 45px;
    background: #e67e22;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    overflow: hidden;
    flex-shrink: 0;
}
.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}
.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

@media (max-width: 1000px) {
    .watch-layout {
        flex-direction: column;
    }
    .side-col {
        width: 100%;
    }
}