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

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 60px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

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

h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    font-weight: 600;
}

section {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 32px;
}

.input-group {
    margin-bottom: 24px;
}

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

input[type="text"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #1a1a1a;
}

textarea {
    resize: vertical;
}

.voice-settings {
    display: grid;
    gap: 16px;
}

.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #1a1a1a;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: #1a1a1a;
    border: 1px solid #d0d0d0;
}

.btn-secondary:hover {
    border-color: #1a1a1a;
}

.audio-player {
    background: white;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.player-info {
    margin-bottom: 16px;
}

.player-info h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.player-info p {
    color: #666;
    font-size: 0.9rem;
}

audio {
    width: 100%;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.actions button {
    flex: 1;
    min-width: 120px;
}

.episodes-list {
    display: grid;
    gap: 16px;
}

.episode-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s;
}

.episode-card:hover {
    border-color: #1a1a1a;
}

.episode-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.episode-info p {
    color: #666;
    font-size: 0.9rem;
}

.episode-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: #1a1a1a;
}

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #1a1a1a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    font-size: 1.1rem;
    color: #666;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 24px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .episode-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}