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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fafafa;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.container {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #222;
    text-align: center;
}

.subtitle {
    font-size: 0.875rem;
    font-style: italic;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

.audio-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 8px;
}

.audio-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}


.play-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: #222;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.play-button:hover {
    background: #444;
    transform: scale(1.05);
}

.play-button:active {
    transform: scale(0.95);
}

.scrubber-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.scrubber {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.scrubber::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #222;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scrubber::-webkit-slider-thumb:hover {
    background: #444;
    transform: scale(1.2);
}

.scrubber::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #222;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.scrubber::-moz-range-thumb:hover {
    background: #444;
    transform: scale(1.2);
}

.time-display {
    font-size: 0.875rem;
    color: #666;
    font-variant-numeric: tabular-nums;
    min-width: 40px;
    text-align: center;
}

audio {
    display: none;
}

.transcript {
    line-height: 1.8;
    font-size: 1rem;
}

.transcript-line {
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.transcript-line.active {
    background: #f0f0f0;
    opacity: 1;
    font-weight: 500;
}

.transcript-line.past {
    opacity: 0.7;
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
    }

    .container {
        padding: 1.5rem;
    }

    .audio-container {
        padding: 1rem;
    }

    .play-button {
        width: 55px;
        height: 55px;
    }
}
