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

/* ====== OGÓLNE ====== */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f4f7;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 750px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.07);
    position: relative;
}

/* ====== NAGŁÓWEK ====== */
h1 {
    font-size: 30px;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 16px;
    color: #666;
}

/* ====== FORMULARZE ====== */
.url-form {
    display: flex;
    gap: 12px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.url-form input[type="text"] {
    flex: 1;
    min-width: 260px;
    padding: 10px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.url-form button {
    padding: 10px 20px;
    background-color: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.url-form button:hover {
    background-color: #5b21b6;
}

/* ====== PRZYCISK COOKIES ====== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.upload-form {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 1000;
}

.upload-form input[type="file"] {
    display: none;
}

.upload-form label {
    background-color: #8b5cf6;
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.2s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.upload-form label:hover {
    background-color: #7c3aed;
}

/* ====== WIADOMOŚCI ====== */
.msg {
    margin: 15px 0;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: bold;
    background: #e0e7ff;
}

.msg.error {
    background-color: #ffe4e6;
    color: #b91c1c;
}

/* ====== PLAYLISTA ====== */
.playlist-form {
    margin-top: 20px;
}

.playlist-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.playlist-list li {
    margin-bottom: 10px;
}

.playlist-list input[type="checkbox"] {
    margin-right: 10px;
}

.download-btn {
    background-color: #10b981;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}

.download-btn:hover {
    background-color: #059669;
}

/* ====== POBRANE PLIKI ====== */
.downloaded-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.downloaded-list li {
    margin-bottom: 8px;
}

.downloaded-list a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.downloaded-list a:hover {
    text-decoration: underline;
}

/* ====== STOPKA ====== */
footer {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: #888;
}