/* Grundlegende Stile - HELLER YOUTUBE LOOK */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f9f9f9;
    color: #0f0f0f;
}

/* Header */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-image {
    height: 40px;
    width: auto;
    display: block;
}

.search-bar { display: flex; flex-grow: 1; margin: 0 50px; max-width: 600px; }
.search-bar input { width: 100%; padding: 8px 12px; border: 1px solid #cccccc; background-color: #ffffff; color: #0f0f0f; border-radius: 20px 0 0 20px; }
.search-bar button { padding: 8px 15px; border: 1px solid #cccccc; background-color: #f8f8f8; cursor: pointer; border-left: none; border-radius: 0 20px 20px 0; color: #606060; }
.user-profile { width: 40px; height: 40px; background-color: #ff0000; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #ffffff; }

/* Hauptlayout */
.portal-wrapper {
    display: flex;
    justify-content: center; 
    padding: 20px 40px;
    gap: 20px;
}

.video-main-content {
    flex: 1 1 70%; 
    min-width: 0;
    max-width: 1100px;
}

/* KORRIGIERT: Videoplayer-Container mit relativem Positioning für das Overlay */
.video-player-container {
    position: relative;
    width: 100%;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-player-container video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
}

.video-info {
    margin-top: 15px;
    width: 100%;
}

.video-info h1 { font-size: 1.4em; margin: 0 0 10px 0; }
.video-info p { font-size: 0.9em; color: #606060; border-top: 1px solid #e0e0e0; padding-top: 10px; margin-top: 10px; }

.video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #606060;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.video-actions { display: flex; gap: 10px; }

.video-actions button {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f2f2f2;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.video-actions button:hover { background-color: #e0e0e0; }
.video-actions button svg { width: 20px; height: 20px; fill: #0f0f0f; }

/* Playlist */
.video-playlist {
    flex: 0 0 350px;
}
.playlist-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 8px;
    background-color: transparent;
    transition: background-color 0.2s;
    border-radius: 8px;
    align-items: flex-start;
}
.playlist-item.active, .playlist-item:hover { background-color: #f2f2f2; }

/* KORRIGIERT: Thumbnail-Container mit fester Größe */
.playlist-item img {
    width: 160px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0; 
}

/* KORRIGIERT: Der Text-Container nimmt den restlichen Platz ein und ist korrekt ausgerichtet */
.playlist-item-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.playlist-item-info h3 { font-size: 1em; margin: 0 0 5px 0; color: #0f0f0f; }
.playlist-item-info p {
    font-size: 0.8em;
    color: #606060;
    margin: 0;
    border: none;
    padding: 0;
    line-height: 1.3;
}


/* NEU: Kommentar-Sektion */
.comments-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.comment-entry {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    background-color: #cccccc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #0f0f0f;
    flex-shrink: 0;
}

.comment-content {
    display: flex;
    flex-direction: column;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.comment-user-name {
    font-weight: 500;
}

.comment-date {
    color: #606060;
    font-size: 0.8em;
}

.comment-text {
    line-height: 1.4;
}

.comment-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    color: #606060;
}

.comment-actions button {
    background: none;
    border: none;
    color: #606060;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    font-family: inherit;
}

.comment-actions button:hover {
    color: #0f0f0f;
}
.comment-actions button svg {
    width: 18px;
    height: 18px;
    fill: #606060;
}

/* NEU: Styles für das Einblendungs-Overlay */
#unmute-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 1;
}
#unmute-overlay.hidden {
    opacity: 0;
    pointer-events: none; /* Macht das Overlay unklickbar, wenn es versteckt ist */
}

/* Responsive Design */
@media (max-width: 900px) {
    .portal-wrapper { flex-direction: column; padding: 10px; }
    .video-main-content { width: 100%; flex-basis: auto; max-width: none; }
    .video-playlist { width: 100%; flex-basis: auto; }
    .search-bar { margin: 0 15px; }
    .video-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
}