.fp-widget-container {
    max-width: 500px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.fp-widget-container * {
    box-sizing: border-box;
    color: #938e8e;
    font-weight: 500;
}

.fp-widget-container .fp-image-area {
    width: 100%;
    height: 250px;
    background: #d3d3d3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-widget-container .fp-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-widget-container .fp-control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.fp-widget-container .fp-status-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid;
    background: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: default;
    transition: all 0.3s;
}

.fp-widget-container .fp-status-btn.pending {
    border-color: #9e9e9e;
    color: #757575;
    background: #f5f5f5;
}

.fp-widget-container .fp-status-btn.correct {
    border-color: #F5AE4B;
    color: #D58E2B;
    background: #F3E8D7;
}

.fp-widget-container .fp-status-btn.incorrect {
    border-color: #AA4C25;
    color: #AA4C25;
    background: #ffebee;
}

.fp-widget-container .fp-status-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: white;
}

.fp-widget-container .fp-status-btn.pending .fp-status-icon {
    background: #9e9e9e;
}

.fp-widget-container .fp-status-btn.correct .fp-status-icon {
    background: #D58E2B;
}

.fp-widget-container .fp-status-btn.incorrect .fp-status-icon {
    background: #AA4C25;
}

.fp-widget-container .fp-nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fp-widget-container .fp-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #2c3e50;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.fp-widget-container .fp-nav-btn:hover:not(:disabled) {
    background: #34495e;
    transform: scale(1.05);
}

.fp-widget-container .fp-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.fp-widget-container .fp-nav-text {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    min-width: 50px;
    text-align: center;
}

.fp-widget-container .fp-audio-area {
    background: #eeeeee;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.fp-widget-container .fp-audio-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(169deg, #D58E2B 0%, #AA4C25 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.fp-widget-container .fp-audio-icon {
    width: 40px;
    height: 40px;
    display: block;
    object-fit: contain;
}

.fp-widget-container .fp-speaking-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.fp-widget-container .fp-audio-btn:hover {
    background: linear-gradient(169deg, #d58e2bd6 0%, #aa4c25c4 100%);
    transform: scale(1.05);
}

.fp-widget-container .fp-instruction-text {
    flex: 1;
    font-size: 16px;
    color: #787676;
    font-weight: 500;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.fp-widget-container .fp-action-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-direction: row;
    justify-content: flex-start;
}

.fp-widget-container .fp-record-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(169deg, #D58E2B 0%, #AA4C25 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    position: relative;
    z-index: 0;
    overflow: visible;
}

.fp-widget-container .fp-record-btn::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    --fp-progress: 0deg;
    background: conic-gradient(rgba(213, 142, 43, 0.95) 0deg, rgba(213, 142, 43, 0.95) var(--fp-progress), rgba(255, 255, 255, 0) var(--fp-progress) 360deg);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
    filter: drop-shadow(0 0 4px rgba(213, 142, 43, 0.8));
}

.fp-widget-container .fp-record-btn:hover {
    background: linear-gradient(169deg, #d58e2bd6 0%, #aa4c25c4 100%);
    transform: scale(1.05);
}

.fp-widget-container .fp-record-btn.recording {
    animation: none;
}

.fp-widget-container .fp-record-btn.recording::after {
    opacity: 1;
    animation: fp-record-progress 10s linear forwards;
}

.fp-widget-container .fp-record-btn:active::after {
    opacity: 1;
}

@supports not ((mask: radial-gradient(#000, #000)) or (-webkit-mask: radial-gradient(#000, #000))) {
    .fp-widget-container .fp-record-btn::after {
        background: none;
        border: 3px solid rgba(213, 142, 43, 0.9);
    }
}

@property --fp-progress {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@keyframes fp-record-progress {
    from {
        --fp-progress: 0deg;
    }
    to {
        --fp-progress: 360deg;
    }
}

.fp-widget-container .fp-show-answer-btn {
    margin-left: auto;
    width: 140px;
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(169deg, #D58E2B 0%, #AA4C25 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.fp-widget-container .fp-record-text {
    color: #9a9797;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
}

.fp-widget-container .fp-show-answer-btn:hover {
    background: linear-gradient(169deg, #d58e2bd6 0%, #aa4c25c4 100%);
    transform: translateY(-2px);
}

.fp-widget-container .fp-answer-area {
    background: #F3E8D7;
    border-radius: 12px;
    padding: 20px;
    color: #000000;
    font-size: 16px;
    line-height: 1.6;
    border: 3px solid #F5AE4B;
    display: none;
    max-height: none;
    overflow: visible;
    transition: max-height 0.3s ease, padding 0.3s ease;
    overflow-wrap: break-word;
    word-break: break-word;
}

.fp-widget-container .fp-answer-text {
    color: #D58E2B;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.1;
    margin-bottom: 10px;
}

.fp-widget-container .fp-user-answer-text {
    color: #52A7B2;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.1;
}

.fp-widget-container .fp-answer-area.show {
    display: block;
}






