* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #fff;
    padding: 20px;
}

.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

.modal-content {
    background: #222;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
}

.modal-content input {
    margin: 10px 0;
    padding: 10px;
    width: 90%;
    border: none;
    border-radius: 5px;
}

.controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.controls input, .controls select {
    padding: 10px;
    border-radius: 5px;
    border: none;
}

.controls a {
    color: #0af;
    text-decoration: none;
    cursor: pointer;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

#channel-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.channel-card {
    background-color: #1e1e1e;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.channel-card:hover {
    transform: scale(1.05);
}

.channel-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.channel-card p {
    text-align: center;
    margin-top: 8px;
}