.gtl-page-wrapper {
    min-height: 100vh;
    background: #f5f5f5;
    padding: 20px;
}

.gtl-learner {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gtl-error {
    color: #e74c3c;
    text-align: center;
    padding: 40px;
    font-size: 18px;
}

.gtl-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.gtl-header h2 {
    margin: 0 0 10px 0;
    color: #333;
}

.gtl-progress {
    font-size: 18px;
    color: #666;
}

.gtl-lesson-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gtl-lesson-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.gtl-label {
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background: #3498db;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.gtl-german .gtl-label {
    background: #e74c3c;
}

.gtl-chinese .gtl-label {
    background: #27ae60;
}

.gtl-phonetic .gtl-label {
    background: #9b59b6;
}

.gtl-text {
    font-size: 22px;
    line-height: 1.8;
    margin: 0;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
}

.gtl-german .gtl-text {
    font-size: 26px;
    font-weight: 500;
}

.gtl-chinese {
    margin-top: 20px;
}

.gtl-phonetic {
    margin-top: 20px;
}

.gtl-phonetic .gtl-text {
    font-size: 16px;
    color: #7f8c8d;
}

.gtl-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.gtl-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gtl-btn-primary {
    background: #3498db;
    color: #fff;
    min-width: 120px;
}

.gtl-btn-primary:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.gtl-btn-primary.playing {
    background: #e74c3c;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.gtl-btn-secondary {
    background: #ecf0f1;
    color: #333;
}

.gtl-btn-secondary:hover {
    background: #bdc3c7;
}

.gtl-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gtl-speed-control {
    text-align: center;
    margin-bottom: 15px;
}

.gtl-speed-control label {
    font-weight: bold;
    margin-right: 10px;
}

.gtl-speed-control select {
    padding: 8px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.gtl-mode-toggle {
    text-align: center;
    margin-bottom: 15px;
}

.gtl-mode-toggle label {
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.gtl-mode-toggle input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.gtl-playback-mode {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #e8f4f8;
    border-radius: 8px;
}

.gtl-playback-mode label {
    cursor: pointer;
    font-size: 14px;
    color: #2980b9;
    font-weight: bold;
}

.gtl-playback-mode input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.gtl-playback-mode .description {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

.gtl-loading-indicator {
    text-align: center;
    padding: 10px;
    background: #fff3cd;
    border-radius: 8px;
    margin-top: 15px;
}

.gtl-loading-indicator span {
    color: #856404;
    font-size: 14px;
}

.gtl-loading-indicator::before {
    content: "⏳ ";
}

@media (max-width: 600px) {
    .gtl-learner {
        padding: 15px;
    }
    
    .gtl-lesson-card {
        padding: 20px;
    }
    
    .gtl-text {
        font-size: 18px;
    }
    
    .gtl-german .gtl-text {
        font-size: 22px;
    }
    
    .gtl-controls {
        flex-wrap: wrap;
    }
    
    .gtl-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
