body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    height: 100vh;
    overflow: hidden;
    color: #eee;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

.controls {
    display: flex;
    gap: 20px;
    padding: 10px;
    background: #333;
    color: white;
    flex-shrink: 0; /* Don't shrink */
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"] {
    padding: 8px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.video-section {
    flex: 3;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-section iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.clips-section {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #444;
    padding: 10px;
    background: #222;
}

.clips-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.clips-header h2 {
    margin: 0;
}

.play-all-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.play-all-btn:hover {
    background: #218838;
}

.play-all-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.stop-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
    margin-left: 5px;
}

.stop-btn:hover {
    background: #c82333;
}

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.tag-filter {
    background: #eee;
    color: #333;
    padding: 4px 8px; /* Slightly smaller padding */
    border-radius: 20px;
    font-size: 11px; /* 2 sizes smaller (approx) */
    cursor: pointer;
    border: 1px solid #ddd;
    transition: all 0.2s;
    user-select: none;
}

.tag-filter:hover {
    background: #e0e0e0;
}

/* Included state (Blue) */
.tag-filter.included {
    background: #007bff;
    color: white;
    border-color: #0056b3;
}

/* Excluded state (Red) */
.tag-filter.excluded {
    background: #dc3545;
    color: white;
    border-color: #bd2130;
}

.clips-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    flex: 1; /* Take remaining space */
    padding-right: 5px; /* Space for scrollbar */
}

.clip-item {
    background: #333;
    border: 1px solid #444;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    color: #ddd;
}

.clip-item:hover {
    background: #444;
    border-color: #666;
}

.clip-item.active {
    background-color: #0056b3;
    border-color: #004494;
    color: white;
}

.clip-time {
    font-weight: bold;
    color: #fff;
}

.clip-tags {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    background: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .clips-section {
        border-left: none;
        border-top: 1px solid #ddd;
        padding-left: 0;
        padding-top: 20px;
    }
}
