* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.generate-button-container {
    margin-top: 24px;
    margin-bottom: 16px;
}

.generate-button {
    width: 100%;
    padding: 14px 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #161615;
    background: linear-gradient(135deg, #23BBB1 0%, #1A95CD 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(60, 109, 154, 0.3);
    text-align: center;
}

.generate-button:hover {
    background: linear-gradient(135deg, #23BBB1 0%, #1A95CD 100%);
    box-shadow: 0 4px 12px rgba(60, 109, 154, 0.3);
    transform: translateY(-1px);
}

.generate-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(60, 109, 154, 0.3);
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    width: 100%;
    max-width: 1280px;
}

.section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 32px;
}

.logo-container {
    width: 100%;
    text-align: center;
    margin-bottom: 16px;
}

.main-logo {
    height: 80px;
    width: auto;
    max-width: 100%;
}

.heading {
    width: 100%;
    text-align: center;
}

.heading h1 {
    font-weight: 300;
    font-size: 36.4px;
    line-height: 46px;
    color: #161615;
    letter-spacing: -1.288px;
}

.background {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 80px 72px 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.main-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.header-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #000000;
}

.text-label {
    font-weight: 300;
    font-size: 32px;
    line-height: 51.2px;
    color: #161615;
    flex: 1;
    text-align: center;
}

.lightning-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4.154px;
    flex-shrink: 0;
}

.lightning-icon img {
    height: 64px;
    width: auto;
    max-width: 100%;
}

.speech-label {
    font-weight: 300;
    font-size: 31.6px;
    line-height: 51.2px;
    color: #161615;
    flex: 1;
    text-align: center;
}

.left-container {
    display: flex;
    flex-direction: column;
    gap: 0.01px;
    flex: 1;
    min-width: 0;
}

.textarea-container {
    background-color: #f9f9f9;
    border-bottom: 1px solid #000000;
    min-height: 90px;
    height: 262.34px;
    overflow: auto;
}

.text-input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 32.6px;
    line-height: 45.7px;
    color: #161615;
    resize: none;
    padding: 8px;
}

.bottom-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 11px;
}

.sample-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: transparent;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #666666;
    cursor: pointer;
    transition: all 0.2s;
}

.sample-button:hover {
    border-color: #227cff;
    color: #227cff;
}

.sample-button svg {
    flex-shrink: 0;
}

.right-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

.character-count {
    font-weight: 300;
    font-size: 14px;
    line-height: 22.4px;
    color: #888888;
}

.character-label {
    font-weight: 300;
    font-size: 14px;
    line-height: 22.4px;
    color: #888888;
}

.checkmark {
    font-weight: 300;
    font-size: 16px;
    line-height: 25.6px;
    color: #10b981;
}

.right-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.control-group {
    margin-bottom: 7px;
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 5.6px;
}

.label-with-value {
    display: flex;
    gap: 8.01px;
    align-items: center;
}

.label-with-value label {
    font-weight: 400;
    font-size: 14px;
    line-height: 22.4px;
    color: #161615;
}

.label-with-value .value {
    font-weight: 400;
    font-size: 14px;
    line-height: 22.4px;
    color: #161615;
}

.hint {
    font-family: 'Inter', sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 12px;
    line-height: 19.2px;
    color: #888888;
    text-align: right;
}

.slider-container {
    padding: 8.5px 0;
}

.slider {
    width: 100%;
    height: 1px;
    background: #999999;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border: 1px solid black;
    border-radius: 7px;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: white;
    border: 1px solid black;
    border-radius: 7px;
    cursor: pointer;
}

/* Speed Buttons */
.speed-buttons {
    display: flex;
    gap: 8px;
    padding: 8px 0;
}

.speed-btn {
    flex: 1;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #666666;
    background-color: #e8e8e8;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.speed-btn:hover {
    background-color: #d0d0d0;
    color: #161615;
}

.speed-btn.active {
    background: linear-gradient(135deg, #23BBB1 0%, #1A95CD 100%);
    color: #161615;
    box-shadow: 0 2px 8px rgba(60, 109, 154, 0.3);
}

.language-select-container {
    padding: 8px 0;
}

.language-select {
    width: 100%;
    padding: 10px 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 22.4px;
    color: #161615;
    background-color: white;
    border: 1px solid #000000;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23161615' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.language-select:hover {
    border-color: #227cff;
}

.language-select:focus {
    border-color: #227cff;
    box-shadow: 0 0 0 2px rgba(34, 124, 255, 0.1);
}

.button-margin {
    height: 72px;
}

.audio-player-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.audio-player {
    background-color: #f0f0f0;
    border: 1px solid #d0d0d0;
    border-radius: 12px 12px 0 0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.audio-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.audio-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.model-name {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #227cff;
    text-decoration: underline;
    cursor: pointer;
}

.device-info {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #666666;
}

.audio-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-value {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #161615;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 11px;
    color: #888888;
}

.audio-controls {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.play-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #161615;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.play-button:hover {
    background-color: #227cff;
}

.play-button.playing svg path:first-child {
    d: path("M6 5H9V19H6V5Z M15 5H18V19H15V5Z");
}

.time-display {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #161615;
    min-width: 50px;
    flex-shrink: 0;
}

.progress-bar-container {
    flex: 1;
    min-width: 100px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #227cff 0%, #227cff 100%, #d0d0d0 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 3px;
    cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border: 2px solid #227cff;
    border-radius: 50%;
    cursor: pointer;
}

.progress-bar::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: white;
    border: 2px solid #227cff;
    border-radius: 50%;
    cursor: pointer;
}

.download-button {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background-color: transparent;
    border: 1px solid #d0d0d0;
    color: #161615;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.download-button:hover {
    background-color: #e0e0e0;
    border-color: #227cff;
}

.content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-wrapper {
        flex-direction: column;
        gap: 32px;
    }
    
    .left-container,
    .right-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 0 16px;
    }
    
    .main-logo {
        height: 60px;
    }
    
    .background {
        padding: 40px 24px 24px;
    }
    
    .heading h1 {
        font-size: 28px;
        line-height: 36px;
    }
    
    .header-container {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .text-label,
    .speech-label {
        font-size: 24px;
        min-width: 100px;
    }
    
    .lightning-icon {
        width: 48px;
        height: 48px;
    }
    
    .lightning-icon img {
        height: 48px;
    }
    
    .text-input {
        font-size: 18px;
        line-height: 28px;
    }
    
    .textarea-container {
        height: auto;
        min-height: 200px;
    }
    
    .control-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .hint {
        text-align: left;
    }
    
    .audio-player {
        flex-direction: column;
        gap: 16px;
    }
    
    .audio-info {
        width: 100%;
    }
    
    .audio-stats {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .audio-controls {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 0 12px;
    }

    .main-logo {
        height: 50px;
    }

    .logo-container {
        margin-bottom: 12px;
    }

    .background {
        padding: 24px 16px;
    }

    .heading h1 {
        font-size: 24px;
        line-height: 32px;
        letter-spacing: -0.5px;
    }

    .header-container {
        padding-bottom: 12px;
    }

    .text-label,
    .speech-label {
        font-size: 20px;
        line-height: 32px;
    }

    .lightning-icon {
        width: 40px;
        height: 40px;
    }

    .lightning-icon img {
        height: 40px;
    }

    .text-input {
        font-size: 16px;
        line-height: 24px;
    }

    .left-controls {
        flex-wrap: wrap;
        gap: 8px;
    }

    .bottom-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .right-controls {
        align-self: flex-end;
    }

    .audio-player {
        padding: 12px 16px;
    }

    .audio-info {
        width: 100%;
    }

    .audio-title {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .model-name {
        font-size: 14px;
    }

    .device-info {
        font-size: 12px;
    }

    .audio-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
    }

    .stat-item {
        text-align: center;
    }

    .stat-value {
        font-size: 12px;
    }

    .stat-label {
        font-size: 9px;
        white-space: nowrap;
    }

    .audio-controls {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .progress-bar-container {
        order: 1;
        width: 100%;
        min-width: unset;
    }

    .play-button {
        order: 2;
        width: 36px;
        height: 36px;
    }

    .time-display {
        order: 3;
        font-size: 11px;
        min-width: 45px;
        text-align: center;
    }

    .time-display:last-of-type {
        order: 4;
    }

    .download-button {
        order: 5;
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 360px) {
    .audio-stats {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 4px 0;
        border-bottom: 1px solid #e0e0e0;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .stat-label {
        order: 1;
    }

    .stat-value {
        order: 2;
    }

    .audio-controls {
        gap: 6px;
    }

    .time-display {
        font-size: 10px;
        min-width: 40px;
    }

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

    .play-button svg {
        width: 18px;
        height: 18px;
    }

    .download-button {
        width: 28px;
        height: 28px;
    }

    .download-button svg {
        width: 16px;
        height: 16px;
    }
}

/* Waveform Visualizer */
.waveform-container {
    background-color: #1a1a1a;
    border: 1px solid #d0d0d0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 16px 20px;
}

.waveform-canvas {
    width: 100%;
    height: 80px;
    display: block;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .waveform-canvas {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .waveform-container {
        padding: 12px 16px;
    }

    .waveform-canvas {
        height: 50px;
    }
}
