/* Globale Stile */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px;
    background: #F2E9DC;
    color: #595959;
}

h1 {
    color: #808F85;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Karten-Layout */
.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
}

/* Formular-Elemente */
input[type="file"],
input[type="text"],
textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0 15px 0;
    border: 1px solid #808F85;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    background-color: #F2E9DC;
    color: #595959;
}

label {
    font-weight: bold;
    color: #595959;
}

select {
    width: auto;
    padding: 5px;
    margin: 0;
    border: 1px solid #808F85;
    border-radius: 4px;
    font-family: inherit;
    background-color: white;
    color: #595959;
}

/* Buttons */
button {
    background: #91C499;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    font-size: 16px;
    transition: background 0.2s ease;
}

button:hover {
    background: #808F85;
}

button:disabled {
    background: #595959;
    opacity: 0.5;
    cursor: not-allowed;
}

/* Spezifische Navigations- & Interationsbuttons */
.back-btn {
    background: #808F85;
    margin-bottom: 15px;
    width: auto;
    padding: 8px 15px;
}

#toggleUploadBtn {
    background: #808F85;
    color: white;
    width: auto;
    padding: 6px 14px;
    font-size: 14px;
}

#toggleUploadBtn:hover {
    background: #595959;
}

.interaction-buttons {
    display: flex;
    gap: 10px;
}

.interaction-buttons button {
    background: #808F85;
    color: white;
    width: auto;
    padding: 6px 14px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.interaction-buttons button:hover {
    background: #595959;
}

/* Video Grid (YouTube Style) */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.video-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    border: 1px solid #808F85;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #595959;
}

.video-desc {
    font-size: 13px;
    color: #808F85;
    margin: 0 0 10px 0;
}

/* Watch View Komponenten */
#singleVideoPlayer {
    width: 100%;
    aspect-ratio: 16/9;
    background: black;
    border-radius: 8px;
    display: block;
}

.video-info-watch {
    padding: 15px 0;
}

#singleVideoTitle {
    margin: 0 0 10px 0;
    color: #595959;
}

.video-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #808F85;
    font-size: 14px;
    margin-bottom: 15px;
}

.quality-selector {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

#singleVideoDesc {
    font-size: 15px;
    line-height: 1.5;
    color: #595959;
    margin-top: 15px;
}

/* Kommentare */
.comments-section {
    margin-top: 20px;
}

.comment-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.comment-input-row button {
    width: auto;
    padding: 10px 20px;
    background: #595959;
}

.comment-input-row button:hover {
    background: #808F85;
}

#commentsList {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.no-comments {
    color: #808F85;
    font-style: italic;
}

/* Badges & Statussymbole */
.badge {
    background: #CFD11A;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 11px;
    color: #595959;
}

.status {
    font-weight: bold;
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    display: none;
}

.status.success {
    background: #91C499;
    color: white;
    display: block;
}

.status.error {
    background: #808F85;
    color: white;
    display: block;
}

/* Trennlinien & Abstände */
.divider {
    border: 0;
    border-top: 1px solid #808F85;
}

.divider.font-space {
    margin-top: 20px;
}