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

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

.page {
    max-width: 1200px;
    margin: 0 auto;
}

.hidden {
    display: none;
}

/* Login Page */
.login-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 100px auto;
    text-align: center;
}

.login-container h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

.login-container input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.login-container input:focus {
    outline: none;
    border-color: #667eea;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.login-container button:hover {
    background: #5568d3;
}

.login-container button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.error-message {
    color: #e74c3c;
    margin-top: 15px;
    font-size: 14px;
    min-height: 20px;
}

/* Main Page */
.header {
    background: white;
    border-radius: 12px;
    padding: 20px 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    color: #333;
    font-size: 24px;
}

.logout-btn {
    padding: 8px 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #c0392b;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* RSS Section */
.rss-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.rss-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
}

.rss-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.rss-link-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.rss-link-container input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: #f5f5f5;
    color: #333;
}

.rss-link-container input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

.copy-btn {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #5568d3;
}

.rss-hint {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 0;
}

/* Download Section */
.download-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.download-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
}

.download-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

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

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

.download-form button {
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.download-form button:hover {
    background: #5568d3;
}

.download-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.status-message {
    min-height: 30px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* List Section */
.list-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.list-header h2 {
    color: #333;
    font-size: 20px;
}

.refresh-btn {
    padding: 8px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.refresh-btn:hover {
    background: #218838;
}

.podcast-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.podcast-item {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.podcast-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.podcast-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.podcast-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.podcast-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.podcast-actions {
    display: flex;
    gap: 10px;
}

.download-file-btn {
    padding: 8px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.download-file-btn:hover {
    background: #5568d3;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .download-form {
        flex-direction: column;
    }

    .download-form button {
        width: 100%;
    }

    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .list-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .podcast-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

