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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

h1 {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

#search-input:focus {
    outline: none;
    border-color: #667eea;
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

#search-btn {
    background: #667eea;
    color: white;
}

.results {
    display: grid;
    gap: 15px;
}

.podcast-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.podcast-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.podcast-card img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.podcast-card-content {
    flex: 1;
}

.podcast-card h3 {
    margin-bottom: 5px;
    color: #333;
}

.podcast-card p {
    color: #666;
    font-size: 0.9em;
}

.podcast-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.podcast-info img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

.podcast-info-content h3 {
    margin-bottom: 5px;
}

.episode-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.episode-controls button {
    padding: 8px 16px;
    font-size: 14px;
}

#episode-count {
    margin-left: auto;
    font-weight: 500;
    color: #667eea;
}

.episodes-list {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
}

.episode-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.episode-item:last-child {
    border-bottom: none;
}

.episode-item:hover {
    background: #f8f9fa;
}

.episode-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.episode-item-content {
    flex: 1;
}

.episode-item h4 {
    margin-bottom: 4px;
    font-size: 0.95em;
}

.episode-item p {
    color: #666;
    font-size: 0.85em;
}

.load-more-container {
    text-align: center;
    margin-top: 20px;
}

.load-more-btn {
    background: #6c757d;
    color: white;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.days-of-week {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.days-of-week label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
}

.days-of-week label:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.days-of-week input[type="checkbox"]:checked {
    accent-color: #667eea;
}

.days-of-week label:has(input[type="checkbox"]:checked) {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.days-of-week input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.success-content {
    text-align: center;
}

.feed-url-container {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

#feed-url {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
    font-family: monospace;
    font-size: 14px;
}

.preview-schedule {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}

.preview-schedule h3 {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.preview-schedule ul {
    list-style: none;
}

.preview-schedule li {
    padding: 5px 0;
    color: #666;
}

.error-message {
    margin-top: 20px;
    padding: 15px;
    background: #fee;
    border: 2px solid #fcc;
    border-radius: 8px;
    color: #c33;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

