:root {
    --podcast-max: 1080px;
    --podcast-accent: var(--primary, #82a028);
    --podcast-surface: var(--bg-card, #16161f);
    --podcast-surface-soft: var(--bg-surface, #0f0f17);
    --podcast-border: var(--border, #282837);
    --podcast-text: var(--text, #f0eef8);
    --podcast-muted: var(--text-muted, #9a98ad);
}

* {
    box-sizing: border-box;
}

.podcast-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 50% -20%, color-mix(in srgb, var(--podcast-accent) 18%, transparent), transparent 38rem),
        var(--bg, #08080d);
    color: var(--podcast-text);
}

.podcast-app {
    min-height: 100vh;
}

.podcast-header {
    width: min(calc(100% - 2rem), var(--podcast-max));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.podcast-brand {
    color: var(--podcast-text);
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: -.02em;
    text-decoration: none;
}

.podcast-header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.podcast-header-nav a {
    color: var(--podcast-muted);
    font-size: .84rem;
    text-decoration: none;
}

.podcast-header-nav a:hover,
.podcast-header-nav a:focus-visible {
    color: var(--podcast-text);
}

.podcast-workflow {
    width: min(calc(100% - 2rem), var(--podcast-max));
    margin: 3.5rem auto 6rem;
}

.podcast-intro {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.podcast-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 1.2rem;
    padding: .3rem .7rem;
    border: 1px solid color-mix(in srgb, var(--podcast-accent) 35%, var(--podcast-border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--podcast-accent) 10%, transparent);
    color: color-mix(in srgb, var(--podcast-accent) 68%, white);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.podcast-kicker {
    margin: 0 0 .55rem;
    color: var(--podcast-accent);
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.podcast-intro h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.podcast-intro > p:last-child {
    max-width: 650px;
    margin: 1.25rem auto 0;
    color: var(--podcast-muted);
    font-size: clamp(.95rem, 2vw, 1.08rem);
    line-height: 1.65;
}

.podcast-progress {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .45rem;
    width: min(100%, 820px);
    margin: 0 auto 1rem;
    padding: 0;
    list-style: none;
}

.podcast-progress li {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .4rem;
    padding: .55rem .4rem;
    color: var(--podcast-muted);
    font-size: .72rem;
    font-weight: 650;
    white-space: nowrap;
}

.podcast-progress li span {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--podcast-border);
    border-radius: 50%;
    color: var(--podcast-muted);
    font-size: .67rem;
}

.podcast-progress li.is-active,
.podcast-progress li.is-complete {
    color: var(--podcast-text);
}

.podcast-progress li.is-active span,
.podcast-progress li.is-clickable:hover span {
    border-color: var(--podcast-accent);
    background: var(--podcast-accent);
    color: #0b0c08;
}

.podcast-progress li.is-disabled {
    opacity: 0.75;
}

.podcast-progress li.is-clickable {
    cursor: pointer;
}
.podcast-progress li.is-clickable:hover span {
    opacity: 0.5;
}

.podcast-progress li.is-complete span {
    border-color: color-mix(in srgb, var(--podcast-accent) 60%, var(--podcast-border));
    color: var(--podcast-accent);
}

.podcast-card {
    width: min(100%, 820px);
    min-height: 540px;
    margin: 0 auto;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border: 1px solid var(--podcast-border);
    border-radius: 24px;
    background: color-mix(in srgb, var(--podcast-surface) 94%, transparent);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .26);
    display: flex;
    flex-direction: column;
}

.podcast-step {
    flex: 1;
}

.podcast-step-heading {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.8rem;
}

.podcast-step-heading > p {
    margin: .1rem 0 0;
    color: var(--podcast-accent);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.podcast-step-heading h2 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    letter-spacing: -.035em;
}

.podcast-step-heading span {
    display: block;
    margin-top: .45rem;
    color: var(--podcast-muted);
    font-size: .9rem;
    line-height: 1.55;
}

.podcast-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.podcast-format-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.podcast-option {
    position: relative;
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .45rem;
    padding: 1.1rem;
    border: 1px solid var(--podcast-border);
    border-radius: 16px;
    background: var(--podcast-surface-soft);
    cursor: pointer;
    transition: border-color .16s ease, transform .16s ease, background .16s ease;
}

.podcast-option:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--podcast-accent) 42%, var(--podcast-border));
}

.podcast-option:has(input:checked) {
    border-color: var(--podcast-accent);
    background: color-mix(in srgb, var(--podcast-accent) 8%, var(--podcast-surface-soft));
}

.podcast-option input {
    position: absolute;
    top: .9rem;
    right: .9rem;
    accent-color: var(--podcast-accent);
}

.podcast-option strong {
    padding-right: 1.5rem;
    font-size: .92rem;
}

.podcast-option span {
    color: var(--podcast-muted);
    font-size: .78rem;
    line-height: 1.45;
}

.podcast-source-input {
    margin-top: 1rem;
}

.podcast-source-input > label,
.podcast-field label {
    display: block;
    margin-bottom: .45rem;
    color: var(--podcast-muted);
    font-size: .78rem;
    font-weight: 650;
}

.podcast-source-input textarea,
.podcast-source-input input,
.podcast-field select {
    width: 100%;
    border: 1px solid var(--podcast-border);
    border-radius: 13px;
    background: var(--podcast-surface-soft);
    color: var(--podcast-text);
    font: inherit;
    outline: none;
    field-sizing: content;
}

.podcast-source-input textarea,
.podcast-source-input input {
    padding: .9rem 1rem;
}

.podcast-source-input textarea:focus,
.podcast-source-input input:focus,
.podcast-field select:focus {
    border-color: var(--podcast-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--podcast-accent) 15%, transparent);
}

.podcast-file-drop {
    min-height: 92px;
    display: grid !important;
    place-items: center;
    gap: .25rem;
    padding: 1rem;
    border: 1px dashed color-mix(in srgb, var(--podcast-accent) 36%, var(--podcast-border));
    border-radius: 16px;
    background: color-mix(in srgb, var(--podcast-accent) 5%, transparent);
    color: var(--podcast-text) !important;
    cursor: pointer;
    text-align: center;
}

.podcast-file-drop small {
    color: var(--podcast-muted);
}

.podcast-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.podcast-metrics > div,
.podcast-order-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--podcast-border);
    border-radius: 14px;
    background: var(--podcast-surface-soft);
}

.podcast-metrics span,
.podcast-order-summary span {
    color: var(--podcast-muted);
    font-size: .78rem;
}

.podcast-metrics strong,
.podcast-order-summary strong {
    font-size: .85rem;
    text-align: right;
}

.podcast-notice {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 14px;
    background: color-mix(in srgb, var(--podcast-accent) 8%, var(--podcast-surface-soft));
    color: var(--podcast-muted);
    font-size: .82rem;
    line-height: 1.5;
}

.podcast-notice strong {
    color: var(--podcast-text);
}

.podcast-duration-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
}

.podcast-duration-options button {
    min-height: 94px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .4rem;
    padding: 1rem;
    border: 1px solid var(--podcast-border);
    border-radius: 15px;
    background: var(--podcast-surface-soft);
    color: var(--podcast-text);
    cursor: pointer;
}

.podcast-duration-options button.is-active {
    border-color: var(--podcast-accent);
    background: color-mix(in srgb, var(--podcast-accent) 8%, var(--podcast-surface-soft));
}

.podcast-duration-options span {
    color: var(--podcast-muted);
    font-size: .76rem;
}

.podcast-duration-options strong {
    font-size: 1rem;
}

.podcast-range-wrap {
    margin-top: 1.5rem;
    padding: 1.2rem;
    border-radius: 16px;
    background: var(--podcast-surface-soft);
    text-align: center;
}

.podcast-range-wrap input {
    width: 100%;
    accent-color: var(--podcast-accent);
}

.podcast-range-wrap > div {
    margin-top: .85rem;
}

.podcast-range-wrap strong {
    font-size: 1.9rem;
}

.podcast-range-wrap p {
    margin: .35rem 0 0;
    color: var(--podcast-muted);
    font-size: .8rem;
}

.podcast-segmented {
    display: inline-grid;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 1.3rem;
    padding: .25rem;
    border: 1px solid var(--podcast-border);
    border-radius: 13px;
    background: var(--podcast-surface-soft);
}

.podcast-segmented label {
    cursor: pointer;
}

.podcast-segmented input {
    position: absolute;
    opacity: 0;
}

.podcast-segmented span {
    display: block;
    padding: .6rem .9rem;
    border-radius: 9px;
    color: var(--podcast-muted);
    font-size: .8rem;
    font-weight: 650;
}

.podcast-segmented input:checked + span {
    background: var(--podcast-accent);
    color: #0b0c08;
}

.podcast-voice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.podcast-field select {
    height: 46px;
    padding: 0 .8rem;
}

.podcast-order-summary {
    display: grid;
    gap: .65rem;
}

.podcast-order-total {
    margin-top: .3rem;
    border-color: color-mix(in srgb, var(--podcast-accent) 42%, var(--podcast-border)) !important;
}

.podcast-order-total strong {
    font-size: 1.15rem;
}

.podcast-error {
    margin-top: 1rem;
    padding: .75rem 1rem;
    border: 1px solid #7f1d1d;
    border-radius: 12px;
    background: rgba(127, 29, 29, .18);
    color: #7f1d1d;
    font-size: .82rem;
}

.podcast-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .7rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--podcast-border);
}

.podcast-button {
    min-height: 44px;
    padding: .7rem 1.05rem;
    border-radius: 12px;
    font: inherit;
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
}

.podcast-button-primary {
    border: 1px solid var(--podcast-accent);
    background: var(--podcast-accent);
    color: #0b0c08;
}
.podcast-button-primary:hover {
    filter: brightness(1.06);
    color: #0b0c08;
}

.podcast-button-secondary {
    border: 1px solid var(--podcast-border);
    background: transparent;
    color: var(--podcast-text);
}
.podcast-button-secondary:hover {
    border-color: var(--podcast-accent);;
}


.podcast-button:focus-visible,
.podcast-option:focus-within,
.podcast-duration-options button:focus-visible {
    outline: 2px solid var(--podcast-accent);
    outline-offset: 2px;
}

@media (max-width: 760px) {
    .podcast-workflow {
        margin-top: 2rem;
    }

    .podcast-header-nav a:first-child {
        display: none;
    }

    .podcast-progress {
        grid-template-columns: repeat(6, 1fr);
    }

    .podcast-progress li {
        font-size: 0;
        padding-inline: 0;
    }

    .podcast-progress li span {
        font-size: .67rem;
    }

    .podcast-format-grid,
    .podcast-option-grid,
    .podcast-metrics,
    .podcast-voice-grid {
        grid-template-columns: 1fr;
    }

    .podcast-duration-options {
        grid-template-columns: 1fr;
    }

    .podcast-duration-options button {
        min-height: 72px;
    }

    .podcast-card {
        min-height: 0;
        border-radius: 20px;
    }
}
