.page-header__nav-link--pronunciation {
    border-color: rgba(204, 90, 46, 0.18);
    background: linear-gradient(135deg, #f7efe2 0%, #fff9f1 100%);
    color: var(--accent-dark);
}

.page-header__nav-link--pronunciation.is-active {
    box-shadow: 0 0 0 2px rgba(204, 90, 46, 0.15);
}

.pronunciation-fab {
    position: fixed;
    right: 26px;
    bottom: 24px;
    z-index: 1100;
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 14px;
    border-radius: 50%;
    border: 1px solid rgba(204, 90, 46, 0.18);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 236, 0.92) 56%, rgba(248, 222, 194, 0.92) 100%);
    box-shadow: 0 18px 40px rgba(63, 38, 17, 0.16);
    color: var(--accent-dark);
    text-decoration: none;
    text-align: center;
    animation: pronunciation-float 2.8s ease-in-out infinite;
}

.pronunciation-fab__dot {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef6a2e 0%, #ffb252 100%);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.pronunciation-fab__label {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.pronunciation {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.pronunciation__shell {
    width: min(100%, 1140px);
}

.pronunciation__viewport {
    display: grid;
    gap: 24px;
}

.pronunciation__hero,
.pronunciation__module-view,
.pronunciation__dialog {
    border-radius: 32px;
    background: rgba(255, 253, 248, 0.96);
    border: 1px solid rgba(122, 96, 69, 0.14);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.pronunciation__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
    gap: 22px;
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(47, 125, 74, 0.14), transparent 30%),
        radial-gradient(circle at bottom left, rgba(204, 90, 46, 0.12), transparent 30%),
        rgba(255, 253, 248, 0.96);
}

.pronunciation__hero h1,
.pronunciation__section-head h2,
.pronunciation__module-head h2,
.pronunciation__dialog h3 {
    margin: 0;
    font-family: "Times New Roman", serif;
}

.pronunciation__hero-main {
    display: grid;
    gap: 14px;
}

.pronunciation__hero-main p,
.pronunciation__section-head p,
.pronunciation__module-head p,
.pronunciation__audio-card p,
.pronunciation__word-card span {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.pronunciation__hero-tips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pronunciation__hero-tips span,
.pronunciation__dialog-kicker,
.pronunciation__pattern-card span {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(36, 124, 90, 0.08);
    color: #1f5f47;
    font-size: 13px;
    font-weight: 700;
}

.pronunciation__hero-side {
    display: grid;
    gap: 14px;
    align-content: center;
}

.pronunciation__hero-stat,
.pronunciation__module-summary,
.pronunciation__pattern-card {
    display: grid;
    gap: 4px;
    padding: 18px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--line);
}

.pronunciation__hero-stat strong,
.pronunciation__module-summary strong,
.pronunciation__pattern-card strong {
    font-size: 32px;
    color: var(--accent-dark);
}

.pronunciation__hero-stat span,
.pronunciation__module-summary span {
    color: var(--muted);
}

.pronunciation__module-list {
    display: grid;
    gap: 18px;
}

.pronunciation__empty {
    display: grid;
    gap: 8px;
    padding: 22px;
    border: 1px dashed rgba(122, 96, 69, 0.24);
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.92);
}

.pronunciation__empty strong {
    font-size: 20px;
    color: var(--accent-dark);
}

.pronunciation__empty p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.pronunciation__section-head {
    display: grid;
    gap: 8px;
}

.pronunciation__module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.pronunciation__module-card {
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 248, 236, 0.96) 0%, rgba(255, 253, 248, 0.98) 100%);
    border: 1px solid rgba(122, 96, 69, 0.14);
    min-width: 0;
}

.pronunciation__module-card--mint {
    background: linear-gradient(180deg, rgba(237, 251, 242, 0.98) 0%, rgba(255, 253, 248, 0.98) 100%);
}

.pronunciation__module-card--ocean {
    background: linear-gradient(180deg, rgba(236, 247, 255, 0.98) 0%, rgba(255, 253, 248, 0.98) 100%);
}

.pronunciation__module-card--berry {
    background: linear-gradient(180deg, rgba(252, 239, 241, 0.98) 0%, rgba(255, 253, 248, 0.98) 100%);
}

.pronunciation__module-hit,
.pronunciation__sound-hit,
.pronunciation__word-card,
.pronunciation__audio-button,
.pronunciation__close {
    width: 100%;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.pronunciation__module-hit {
    display: grid;
    gap: 18px;
    padding: 22px;
    text-align: left;
    background: transparent;
    color: inherit;
}

.pronunciation__module-hit:hover,
.pronunciation__sound-hit:hover,
.pronunciation__word-card:hover,
.pronunciation__audio-button:hover {
    transform: translateY(-2px);
}

.pronunciation__module-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #ef6a2e 0%, #ffb252 100%);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.pronunciation__module-copy {
    display: grid;
    gap: 8px;
}

.pronunciation__module-copy strong,
.pronunciation__sound-card strong,
.pronunciation__word-card strong {
    font-size: 20px;
    color: var(--accent-dark);
}

.pronunciation__module-copy span,
.pronunciation__sound-card span {
    color: var(--muted);
    line-height: 1.6;
}

.pronunciation__module-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    color: var(--muted);
    font-style: normal;
}

.pronunciation__module-meta em {
    font-style: normal;
}

.pronunciation__module-meta b {
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(204, 90, 46, 0.1);
    color: var(--accent-dark);
}

.pronunciation__module-view {
    display: grid;
    gap: 22px;
    padding: 28px;
}

.pronunciation__module-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
}

.pronunciation__back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    color: #1f5f47;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.pronunciation__sound-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.pronunciation__sound-card {
    border-radius: 24px;
    border: 1px solid var(--line);
    background: #fff;
}

.pronunciation__sound-hit {
    display: grid;
    gap: 10px;
    min-height: 170px;
    padding: 20px;
    text-align: left;
    background: transparent;
    color: inherit;
}

.pronunciation__sound-phoneme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 72px;
    min-height: 72px;
    padding: 10px 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(36, 124, 90, 0.14) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(36, 124, 90, 0.16);
    color: #1f5f47;
    font-size: 28px;
    font-weight: 800;
}

.pronunciation__overlay {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 22px;
}

.pronunciation__overlay-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(31, 41, 55, 0.42);
    backdrop-filter: blur(6px);
}

.pronunciation__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    display: grid;
    gap: 18px;
    padding: 24px;
}

.pronunciation__dialog-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.pronunciation__dialog-head h3 {
    font-size: clamp(28px, 3vw, 40px);
}

.pronunciation__close {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(31, 41, 55, 0.08);
    color: var(--ink);
}

.pronunciation__audio-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border-radius: 24px;
    background: rgba(36, 124, 90, 0.08);
    border: 1px solid rgba(36, 124, 90, 0.14);
}

.pronunciation__audio-card strong,
.pronunciation__word-card strong {
    display: block;
}

.pronunciation__audio-button {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 144px;
    padding: 14px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #247c5a 0%, #2f9a71 100%);
    color: #fff;
    font-weight: 700;
}

.pronunciation__pattern-card {
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
}

.pronunciation__word-section {
    display: grid;
    gap: 14px;
}

.pronunciation__word-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pronunciation__word-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    color: inherit;
    text-align: left;
    border: 1px solid var(--line);
}

.pronunciation__word-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pronunciation__word-card strong {
    font-size: 24px;
    line-height: 1.2;
}

.pronunciation__word-ipa {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    max-width: 100%;
    padding: 4px 0;
    color: #247c5a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
    font-family: "Times New Roman", serif;
}

.pronunciation__word-card mark {
    padding: 0 4px;
    border-radius: 8px;
    background: rgba(255, 193, 73, 0.38);
    color: inherit;
}

@keyframes pronunciation-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@media (max-width: 1024px) {
    .pronunciation__module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pronunciation__word-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .pronunciation-fab {
        right: 16px;
        bottom: 16px;
        width: 112px;
        height: 112px;
    }

    .pronunciation__hero,
    .pronunciation__module-view,
    .pronunciation__dialog {
        border-radius: 24px;
        padding: 18px;
    }

    .pronunciation__hero,
    .pronunciation__module-head,
    .pronunciation__audio-card {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .pronunciation__module-grid,
    .pronunciation__word-grid {
        grid-template-columns: 1fr;
    }

    .pronunciation__word-main {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .pronunciation__sound-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pronunciation__overlay {
        padding: 0;
    }

    .pronunciation__dialog {
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
    }
}

@media (max-width: 540px) {
    .pronunciation__sound-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pronunciation__sound-hit {
        min-height: 150px;
        padding: 16px;
    }

    .pronunciation__sound-phoneme {
        min-width: 58px;
        min-height: 58px;
        font-size: 22px;
    }

    .pronunciation__module-copy strong,
    .pronunciation__sound-card strong,
    .pronunciation__word-card strong {
        font-size: 18px;
    }

    .pronunciation__word-ipa {
        font-size: 15px;
    }

    .pronunciation__audio-button {
        width: 100%;
    }
}
