@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

body { font-family: 'Inter', sans-serif; background-color: #f4f7f9; color: #333; display: flex; justify-content: center; padding: 40px 0; margin: 0; }
.container { background-color: #fff; padding: 30px 40px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); width: 100%; max-width: 800px; }
h1, h2 { color: #111; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 20px; }
h1 { font-size: 28px; } h2 { font-size: 20px; }
.panel-header { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 20px; }
.panel-header h1 { border-bottom: 0; padding-bottom: 0; margin: 0; }
.app-version { color: #888; font-family: monospace; font-size: 12px; white-space: nowrap; }
label { display: block; font-weight: 500; margin-bottom: 8px; margin-top: 15px; }
input[type="text"], input[type="url"], select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; box-sizing: border-box; font-size: 16px; }
input[type="file"] { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
hr { border: none; border-top: 1px solid #eee; margin: 30px 0; }
button { padding: 12px 20px; border-radius: 6px; border: none; font-size: 16px; font-weight: 500; cursor: pointer; transition: background-color 0.2s; }
#add-playlist-btn { background-color: #eef2f5; color: #333; }
#add-playlist-btn:hover { background-color: #e1e7ec; }
.submit-btn { width: 100%; background-color: #007bff; color: white; padding: 15px; font-size: 18px; margin-top: 10px; }
.submit-btn:hover { background-color: #0056b3; }

/* ИЗМЕНЕНИЕ: Новые стили для блока плейлиста */
.playlist-entry {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto auto; /* Ссылка, Название, Хэндл, Галочки, Кнопка */
    gap: 10px;
    align-items: center;
    background-color: #fafafa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #eee;
}
.url-input { grid-column: 1 / 2; }
.checkbox-group { display: flex; gap: 15px; align-items: center; }
.checkbox-group label { margin: 0; display: flex; align-items: center; gap: 5px; font-weight: 400; font-size: 14px; cursor: pointer; }
input[type="checkbox"] { width: auto; }

.remove-playlist-btn { background-color: #fbebeb; color: #c53030; font-weight: bold; padding: 10px; line-height: 1; border-radius: 50%; width: 32px; height: 32px; }
.remove-playlist-btn:hover { background-color: #f8d7d7; }
.alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; }
.alert-error { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }
.options-fields input[type="file"] {
    margin-top: 10px;
}
.file-input-wrapper {
    margin-top: 10px;
}
.input-hint {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    margin-top: 0;
}
.manual-platform-select {
    margin-top: 10px;
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.logo-preview { height: 76px; display: flex; align-items: center; justify-content: center; margin: 12px 0; border: 1px solid #eee; border-radius: 8px; }
.logo-preview img { max-width: 160px; max-height: 60px; object-fit: contain; }
.logo-preview span { color: #777; font-size: 14px; }
.logo-preview [hidden] { display: none; }
@media (max-width: 600px) { body { padding: 12px; } .container { padding: 20px; min-width: 0; } .panel-header { flex-wrap: wrap; gap: 8px; } h1 { font-size: 23px; } input[type='file'] { box-sizing: border-box; } }
@media (max-width: 600px) {
    .playlist-entry { grid-template-columns: minmax(0, 1fr) auto; }
    .playlist-entry .main-fields, .playlist-entry .options-fields { grid-column: 1 / -1; min-width: 0; }
    .playlist-entry .remove-playlist-btn { grid-column: 2; justify-self: end; }
}
