/* Dictionary, quotes, humor, audition and author components. */

.word-catalog,
.word-page {
    max-width: 1120px;
    margin: 0 auto;
}

.quote-catalog,
.quote-page {
    max-width: 960px;
    margin: 0 auto;
}

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

.quote-card blockquote,
.quote-featured {
    margin: 0;
    padding: 24px;
    border: 1px solid #dce5df;
    border-left: 5px solid #66a37a;
    border-radius: 10px;
    background: #fff;
}

.quote-card blockquote > p,
.quote-featured > p {
    margin: 0;
    color: #34413a;
    font-size: 20px;
    line-height: 1.55;
}

.quote-card blockquote > p > a {
    color: inherit;
    text-decoration: none;
}

.quote-card blockquote > p > a:hover {
    color: #257543;
}

.quote-card footer,
.quote-featured footer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 16px;
    color: #68736c;
    font-size: 14px;
}

.quote-featured {
    margin-top: 24px;
    padding: clamp(24px, 6vw, 52px);
}

.quote-featured > p {
    font-size: clamp(22px, 4vw, 34px);
}

.quote-back {
    margin-top: 24px;
}

.humor-catalog,
.humor-page {
    max-width: 1040px;
    margin: 0 auto;
}

.humor-intro {
    margin: 20px 0 26px;
    padding: 16px 18px;
    border-left: 4px solid #e8b84e;
    background: #fff7df;
}

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

.humor-card,
.humor-content {
    padding: 24px;
    border: 1px solid #e1e5e8;
    border-radius: 12px;
    background: #fff;
}

.humor-card h2 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.35;
}

.humor-card > p:last-child {
    margin-bottom: 0;
}

.humor-section,
.humor-source {
    color: #68736c;
    font-size: 14px;
}

.humor-content {
    margin-top: 24px;
    overflow-wrap: anywhere;
    line-height: 1.65;
}

.humor-content > :first-child {
    margin-top: 0;
}

.humor-content > :last-child {
    margin-bottom: 0;
}

.humor-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.humor-content th,
.humor-content td {
    padding: 7px 10px;
    border: 1px solid #d7dde1;
}

.humor-videos {
    display: grid;
    gap: 20px;
    margin-top: 24px;
}

.humor-video {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
    aspect-ratio: 16 / 9;
}

.humor-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.humor-page > .humor-source,
.humor-back {
    margin-top: 22px;
}

.audition-catalog,
.audition-page {
    max-width: 1080px;
    margin: 0 auto;
}

.author-catalog,
.author-page {
    max-width: 960px;
    margin: 0 auto;
}

.author-list {
    display: grid;
    gap: 14px;
}

.author-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    border: 1px solid #dfe5e9;
    border-radius: 12px;
    background: #fff;
}

.author-card h2,
.author-card p {
    margin: 0;
}

.author-card h2 {
    font-size: 20px;
}

.author-username {
    margin-top: 4px !important;
    color: #68736c;
    font-size: 14px;
}

.author-card-meta,
.author-profile-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 12px;
    color: #53645f;
    font-size: 14px;
}

.author-rank,
.author-song-literary {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 9px;
    background: #e3f5ef;
    color: #176752;
    font-size: 12px;
    font-weight: 700;
}

.author-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 18px;
    padding: 28px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e8f6f2, #edf7ff);
}

.author-profile-header h1,
.author-profile-kicker {
    margin: 0;
}

.author-profile-kicker {
    color: #397165;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.author-profile-stats strong {
    color: #173d37;
    font-size: 30px;
}

.author-translations {
    margin-top: 30px;
}

.author-song-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.author-song-list li {
    padding: 16px 4px;
    border-bottom: 1px solid #e4eae7;
}

.author-song-list a {
    display: inline-block;
    margin-right: 10px;
}

.author-song-translation {
    display: block;
    margin-top: 4px;
    color: #68736c;
    font-size: 14px;
}

.author-song-literary {
    margin-top: 8px;
}

.author-back {
    margin-top: 26px;
}

.author-language-overview,
.author-feature-section {
    padding: 24px;
    border: 1px solid #dfe5e9;
    border-radius: 16px;
    background: #fff;
}

.author-language-overview {
    margin-top: 28px;
}

.author-section-heading {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    justify-content: space-between;
}

.author-section-heading h2,
.author-section-heading p {
    margin: 0;
}

.author-section-heading h2 {
    margin-top: 4px;
}

.author-section-heading > strong {
    color: #53645f;
    font-size: 14px;
}

.author-language-list {
    display: grid;
    margin-top: 22px;
    gap: 15px;
}

.author-language-line {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.author-language-line strong {
    color: #173d37;
}

.author-language-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7eeeb;
}

.author-language-track span {
    display: block;
    height: 100%;
    min-width: 4px;
    border-radius: inherit;
    background: linear-gradient(90deg, #5f8f22, #89b83e);
}

.author-feature-grid {
    display: grid;
    margin-top: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.author-favorite-artists {
    margin-top: 14px;
}

.author-favorite-artists > a {
    display: flex;
    min-width: 0;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9eeeb;
    color: inherit;
    text-decoration: none;
}

.author-favorite-artists > a:last-child,
.author-recent-song-list li:last-child {
    border-bottom: 0;
}

.author-favorite-artists img {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    object-fit: cover;
}

.author-favorite-artists a > span,
.author-favorite-artists strong,
.author-favorite-artists small {
    display: block;
    min-width: 0;
}

.author-favorite-artists strong {
    overflow: hidden;
    color: #293d37;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.author-favorite-artists small {
    margin-top: 3px;
    color: #68736c;
}

.author-recent-song-list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.author-recent-song-list li {
    position: relative;
    padding: 11px 0 11px 28px;
    border-bottom: 1px solid #e9eeeb;
    counter-increment: author-song;
}

.author-recent-song-list {
    counter-reset: author-song;
}

.author-recent-song-list li::before {
    position: absolute;
    top: 13px;
    left: 0;
    color: #789087;
    content: counter(author-song) ".";
    font-size: 13px;
    font-weight: 700;
}

.author-recent-song-list a,
.author-recent-song-list a > :where(strong, span, small) {
    display: block;
}

.author-recent-song-list a {
    text-decoration: none;
}

.author-recent-song-list strong {
    color: #587f16;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
}

.author-recent-song-list a > span,
.author-recent-song-list a > small {
    margin-top: 3px;
    color: #68736c;
}

.author-recent-song-list .author-song-literary {
    margin-top: 6px;
}

.author-section-empty {
    margin: 18px 0 0;
    color: #68736c;
}

@media (max-width: 620px) {
    .author-card,
    .author-profile-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .author-card-meta,
    .author-profile-stats {
        justify-content: flex-start;
    }

    .author-feature-grid {
        grid-template-columns: 1fr;
    }

    .author-language-overview,
    .author-feature-section {
        padding: 20px;
    }
}

.audition-intro {
    margin: 22px 0 26px;
    padding: 18px 22px;
    border-left: 4px solid #4b8bbb;
    border-radius: 0 10px 10px 0;
    background: #edf7ff;
}

.audition-intro h2,
.audition-intro p {
    margin: 0;
}

.audition-intro h2 {
    margin-bottom: 8px;
    font-size: 20px;
}

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

.audition-card,
.audition-exercise,
.audition-media {
    padding: 24px;
    border: 1px solid #dfe5e9;
    border-radius: 12px;
    background: #fff;
}

.audition-card h2,
.audition-exercise h2,
.audition-no-video h2 {
    margin: 0 0 12px;
}

.audition-card > p:last-child,
.audition-no-video > p:last-child {
    margin-bottom: 0;
}

.audition-author,
.audition-video-note {
    color: #68736c;
    font-size: 14px;
}

.audition-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 24px;
    align-items: start;
    margin-top: 24px;
}

.audition-text {
    overflow-wrap: anywhere;
    line-height: 1.75;
}

.audition-text > :first-child {
    margin-top: 0;
}

.audition-text > :last-child {
    margin-bottom: 0;
}

.audition-video {
    overflow: hidden;
    border-radius: 10px;
    background: #111;
    aspect-ratio: 16 / 9;
}

.audition-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.audition-video-note {
    line-height: 1.5;
}

.audition-song-link {
    margin: 18px 0 0;
    font-weight: 700;
}

.audition-page > .audition-author,
.audition-back {
    margin-top: 22px;
}

@media (max-width: 760px) {
    .audition-workspace {
        grid-template-columns: 1fr;
    }
}

.word-search {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid #e1e5e8;
    border-radius: 12px;
    background: #fff;
}

.word-search label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.word-search > div {
    display: flex;
    gap: 10px;
}

.word-search input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #b9c1c7;
    border-radius: 7px;
    font: inherit;
}

.word-search button {
    padding: 10px 18px;
    border: 0;
    border-radius: 7px;
    background: #257543;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.word-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.word-list > li > a {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border: 1px solid #e1e5e8;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.word-list > li > a:hover {
    border-color: #7dab8d;
    background: #f5fbf7;
}

.word-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    white-space: nowrap;
}

.word-meta small {
    color: #667078;
}

.word-meta > span {
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e7f5ec;
    color: #24713e;
    text-align: center;
}

.word-page-header h1 {
    overflow-wrap: anywhere;
}

.word-description,
.word-songs {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid #e1e5e8;
    border-radius: 12px;
    background: #fff;
}

.word-description h2,
.word-songs > h2 {
    margin-top: 0;
}

.word-description table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.word-description th,
.word-description td {
    padding: 7px 10px;
    border: 1px solid #d7dde1;
}

.word-songs .song-catalog-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

@media (max-width: 640px) {
    .word-search > div,
    .word-list > li > a {
        align-items: stretch;
        flex-direction: column;
    }

    .word-meta {
        justify-content: space-between;
    }

    .word-description,
    .word-songs {
        padding: 18px;
    }
}
