.collections-hero {
    background:
        linear-gradient(135deg, rgba(98, 205, 255, 0.18), rgba(170, 119, 255, 0.10)),
        #f6fbff;
    border: 2px solid #d9f4ff;
    border-radius: 28px;
    padding: 30px;
}

.collections-hero__body {
    padding: 0;
}

.collections-hero__lead {
    color: #56627e;
    font-size: 16px;
    line-height: 1.8;
    margin-top: 14px;
}

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

.content-loading,
.content-empty {
    color: #5d6984;
    font-size: 15px;
    line-height: 1.8;
    padding: 24px 8px;
}

.collection-cover-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 1.5px 1.5px 3px rgba(0, 0, 0, 0.26);
    display: block;
    overflow: hidden;
    text-decoration: none;
    width: 100%;
}

.collection-cover-card:hover {
    transform: none;
}

.collection-cover-card__media {
    aspect-ratio: 1 / 1;
    padding: 5px;
    position: relative;
}

.collection-cover-card__media img {
    border-radius: 8px;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.collection-cover-card__media::after {
    display: none;
}

.collection-cover-card__body {
    min-height: 82px;
    padding: 8px;
}

.collection-cover-card__title {
    color: #384566;
    display: -webkit-box;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.08;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.collection-page {
    display: grid;
    gap: 18px;
}

.collection-page__summary-card {
    justify-self: center;
    max-width: 360px;
    width: 100%;
}

.vocab-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.vocab-controls__pages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vocab-controls__nav,
.vocab-controls__current,
.vocab-controls__jump,
.vocab-controls__print {
    align-items: center;
    background: #ffffff;
    border: 2px solid #e6edf7;
    border-radius: 999px;
    color: #52607c;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    text-decoration: none;
}

.vocab-controls__nav.is-disabled {
    background: #f7f9fc;
    color: #a1abc0;
    pointer-events: none;
}

.vocab-controls__current {
    background: #edf8ff;
    border-color: #d6efff;
    color: #2b88bc;
}

.vocab-controls__jump {
    gap: 8px;
    padding-left: 12px;
    padding-right: 10px;
}

.vocab-controls__jump-label {
    color: #7b86a0;
    font-size: 11px;
    font-weight: 800;
}

.vocab-controls__select {
    appearance: none;
    background: transparent;
    border: 0;
    color: #384566;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    min-width: 104px;
    outline: 0;
}

.vocab-controls__print {
    cursor: pointer;
}

.vocab-list {
    display: grid;
    gap: 10px;
}

.vocab-row {
    align-items: flex-start;
    background: #ffffff;
    border: 2px solid #eef3f8;
    border-radius: 18px;
    display: grid;
    gap: 16px;
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 16px 18px;
}

.vocab-row.is-rich {
    border-color: #dbeeff;
    box-shadow: 0 14px 28px rgba(84, 117, 179, 0.08);
}

.vocab-row__index {
    align-items: center;
    background: #f2fbff;
    border-radius: 14px;
    color: #62CDFF;
    display: inline-flex;
    font-size: 14px;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.vocab-row__content {
    min-width: 0;
}

.vocab-row__wordline {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vocab-row__word {
    color: #384566;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
}

a.vocab-row__word:hover {
    color: #2b88bc;
}

.vocab-row__speak {
    height: 42px;
    width: 42px;
}

.vocab-row__speak.is-loading,
.vocab-detail__audio.is-loading {
    opacity: 0.68;
}

.vocab-row__speak.is-playing,
.vocab-detail__audio.is-playing {
    background: #62CDFF;
    border-color: #62CDFF;
    color: #ffffff;
}

.vocab-row__pos {
    align-items: center;
    background: #eef8ff;
    border-radius: 999px;
    color: #3a94c6;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    min-height: 28px;
    padding: 0 10px;
}

.vocab-row__pronunciation {
    color: #7b86a0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    margin-top: 6px;
}

.vocab-row__meaning {
    color: #56627e;
    font-size: 15px;
    line-height: 1.8;
    margin-top: 6px;
}

.vocab-row__english-definition {
    color: #8a95ad;
    font-size: 13px;
    line-height: 1.7;
    margin-top: 6px;
}

.vocab-detail {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.vocab-detail__section {
    border-top: 1px solid #edf2f8;
    padding-top: 14px;
}

.vocab-detail__heading {
    color: #384566;
    font-size: 14px;
    font-weight: 900;
    margin: 0 0 8px;
}

.vocab-detail__list {
    color: #56627e;
    display: grid;
    gap: 8px;
    line-height: 1.8;
    list-style: disc;
    margin: 0;
    padding-left: 20px;
}

.vocab-detail__example-en {
    color: #384566;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.75;
    margin: 0;
}

.vocab-detail__example-line {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vocab-detail__example-ja {
    color: #56627e;
    font-size: 14px;
    line-height: 1.8;
    margin: 8px 0 0;
}

.vocab-detail__audio {
    height: 34px;
    width: 34px;
}

.vocab-row__speak.is-error,
.vocab-detail__audio.is-error {
    background: #ffe8ea;
    border-color: #f1b9bf;
    color: #c04a56;
}

.vocab-detail__examples {
    display: grid;
    gap: 14px;
}

.vocab-detail__example {
    display: grid;
    gap: 0;
}

@media (max-width: 900px) {
    .collections-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .collections-hero {
        padding: 24px 20px;
    }

    .collections-grid {
        gap: 6px;
        grid-template-columns: repeat(2, minmax(0, 161px));
        justify-content: center;
    }

    .vocab-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .vocab-controls__pages {
        justify-content: center;
        width: 100%;
    }

    .vocab-controls__nav,
    .vocab-controls__current,
    .vocab-controls__jump,
    .vocab-controls__print {
        flex: 1 1 auto;
    }

    .vocab-controls__select {
        min-width: 0;
        width: 100%;
    }

    .vocab-row {
        grid-template-columns: 1fr;
    }

    .vocab-row__index {
        height: 38px;
        width: 38px;
    }
}
