/**
 * M3U8 Channel Parser - Frontend Styles
 */

.m3u8-channels-list {
    max-width: 800px;
    margin: 1.5rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.m3u8-channel-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s ease;
}

.m3u8-channel-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.m3u8-channel-name {
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.4;
}

.m3u8-channel-url {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.m3u8-url-input {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    font-family: monospace;
    font-size: 0.9rem;
    color: #495057;
    transition: border-color 0.15s ease;
}

.m3u8-url-input:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.25);
}

.m3u8-copy-btn {
    padding: 0.5rem 1.2rem;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.m3u8-copy-btn:hover {
    background: #0b5ed7;
}

.m3u8-copy-btn:active {
    background: #0a58ca;
}

.m3u8-copy-btn:disabled {
    opacity: 0.7;
    cursor: default;
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .m3u8-channel-url {
        flex-direction: column;
        align-items: stretch;
    }
    .m3u8-copy-btn {
        width: 100%;
        text-align: center;
    }
}