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

h1 {
    color: #ff0000;
    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.05);
    margin-bottom: 20px;
}

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

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

select {
    width: auto;
    padding: 5px;
    margin: 0;
    border-radius: 4px;
    font-family: inherit;
}

/* Buttons */
button {
    background: #ff0000;
    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: #cc0000;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

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

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

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

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

/* 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.05);
    border: 1px solid #e0e0e0;
}

.video-info {
    padding: 15px;
}

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

.video-desc {
    font-size: 13px;
    color: #606060;
    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;
}

.video-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #606060;
    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: #333;
    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: #333;
}

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

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

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

/* Badges & Statussymbole */
.badge {
    background: #e0e0e0;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 10px;
    color: #333;
}

.badge.app1 {
    background: #d1e7dd;
    color: #0f5132;
}

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

.status.success {
    background: #d1e7dd;
    color: #0f5132;
    display: block;
}

.status.error {
    background: #f8d7da;
    color: #842029;
    display: block;
}

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

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