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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f0f0f;
    color: #e0e0e0;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 20px 40px;
    border-bottom: 2px solid #0f3460;
}

.header-content h1 {
    font-size: 24px;
    color: #e94560;
}

.subtitle {
    font-size: 14px;
    color: #888;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.playlist-url-info {
    background: #1a1a2e;
    border: 1px solid #0f3460;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.playlist-url-info h2 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #aaa;
}

.url-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0a0a15;
    padding: 12px 16px;
    border-radius: 6px;
}

.url-box code {
    flex: 1;
    color: #4fc3f7;
    font-size: 14px;
    word-break: break-all;
}

.btn-copy {
    background: #0f3460;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.btn-copy:hover {
    background: #1a5276;
}

.form-section {
    background: #1a1a2e;
    border: 1px solid #0f3460;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
}

.form-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #e94560;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #aaa;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: #0a0a15;
    border: 1px solid #333;
    color: #e0e0e0;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e94560;
}

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

.btn-primary {
    background: #e94560;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary:hover {
    background: #c23152;
}

.btn-secondary {
    background: #333;
    color: #aaa;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

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

.playlists-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #e94560;
}

.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 16px;
}

.playlist-card {
    background: #1a1a2e;
    border: 1px solid #0f3460;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.playlist-card.active {
    border-color: #4caf50;
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.2);
}

.playlist-card.active::before {
    content: 'ATIVA';
    position: absolute;
    top: 12px;
    right: 12px;
    background: #4caf50;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.playlist-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #e0e0e0;
}

.playlist-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
}

.playlist-channels {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

.playlist-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.btn-activate {
    background: #0f3460;
    color: #4fc3f7;
}

.btn-activate:hover {
    background: #1a5276;
}

.btn-edit {
    background: #333;
    color: #ffa726;
}

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

.btn-delete {
    background: #333;
    color: #ef5350;
}

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

.empty-state {
    text-align: center;
    color: #666;
    padding: 40px;
    font-size: 16px;
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #4caf50;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.toast.error {
    background: #e94560;
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    header { padding: 16px 20px; }
    main { padding: 20px 12px; }
    .playlists-grid { grid-template-columns: 1fr; }
    .url-box { flex-direction: column; }
}
