* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 24px;
    color: #e0e0e0;
}

.refresh-indicator {
    font-size: 14px;
    color: #999;
}

#streams-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.stream-card {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stream-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.stream-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #444;
}

.stream-header h2 {
    font-size: 20px;
    color: #e0e0e0;
}

.status {
    font-size: 14px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 12px;
}

.status-active {
    background: #1e4d2e;
    color: #4ade80;
}

.status-inactive {
    background: #4a1e1e;
    color: #f87171;
}

.stream-info {
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #444;
}

.info-row:last-child {
    border-bottom: none;
}

.label {
    font-weight: 500;
    color: #999;
}

.value {
    color: #e0e0e0;
    font-weight: 600;
}

.stream-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.list-section h3 {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 600;
}

.file-list {
    list-style: none;
    max-height: 150px;
    overflow-y: auto;
    background: #1a1a1a;
    border-radius: 4px;
    padding: 8px;
}

.file-list li {
    padding: 4px 8px;
    font-size: 12px;
    color: #bbb;
    border-bottom: 1px solid #333;
}

.file-list li:last-child {
    border-bottom: none;
}

.file-list li.empty {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 8px;
}

.file-list li.more-indicator {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 8px;
    font-size: 11px;
}

.stream-actions {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-primary {
    background: #0066cc;
    color: white;
}

.btn-primary:hover {
    background: #0052a3;
}

.btn-secondary {
    background: #555;
    color: white;
}

.btn-secondary:hover {
    background: #444;
}

.loading,
.no-streams,
.error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: #2a2a2a;
    border-radius: 8px;
    color: #999;
}

.error {
    color: #f87171;
    background: #4a1e1e;
}

@media (max-width: 768px) {
    #streams-container {
        grid-template-columns: 1fr;
    }

    .stream-lists {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}