/* Public catalogs, taxonomies, news, holidays and movie components. */

.year-index,
.year-page {
    max-width: 1180px;
    margin: 0 auto;
}

.year-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.year-index-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    border: 1px solid #dce5e2;
    border-radius: 12px;
    padding: 10px 14px;
    background: #fff;
    color: #527d08;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.year-index-grid a:hover {
    border-color: #9fc8bc;
    background: #f1f8f5;
    transform: translateY(-1px);
}

.genre-catalog,
.genre-page {
    max-width: 1180px;
    margin: 0 auto;
}

.genre-tree > ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
}

.genre-tree ul {
    list-style: none;
}

.genre-tree > ul > li {
    overflow: hidden;
    border: 1px solid #dce5e2;
    border-radius: 14px;
    background: #fff;
}

.genre-tree li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    text-decoration: none;
}

.genre-tree li > a:hover {
    background: #f1f8f5;
}

.genre-tree li > a span:first-child {
    display: grid;
    gap: 2px;
}

.genre-tree li > a strong {
    color: #1d5046;
}

.genre-tree li > a small {
    color: #75817d;
}

.genre-tree li ul {
    margin: 0 14px 12px;
    border-left: 2px solid #dbe9e4;
    padding: 0 0 0 7px;
}

.genre-tree li li > a {
    padding: 9px 11px;
    font-size: 14px;
}

.genre-count {
    flex: 0 0 auto;
    min-width: 28px;
    border-radius: 999px;
    padding: 2px 8px;
    background: #e4f0ec;
    color: #315d53;
    font-size: 12px;
    text-align: center;
}

.genre-page-header h1 small {
    display: block;
    margin-top: 5px;
    color: #74807c;
    font-size: 0.48em;
    font-weight: 400;
}

@media (max-width: 620px) {
    .genre-tree > ul {
        grid-template-columns: 1fr;
    }
}

.tag-content {
    margin-bottom: 22px;
    border: 1px solid #dce5e2;
    border-radius: 14px;
    padding: 20px 24px;
    background: #fff;
    line-height: 1.65;
}

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

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

.tag-description {
    color: #50645e;
    font-style: italic;
}

.tag-children {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 22px;
}

.tag-children a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #cfe0da;
    border-radius: 999px;
    padding: 7px 11px;
    background: #fff;
    text-decoration: none;
}

.tag-children a:hover {
    background: #f1f8f5;
}

.tag-children span {
    color: #74827d;
    font-size: 12px;
}

.country-city-catalog,
.country-city-page {
    max-width: 1180px;
    margin: 0 auto;
}

.country-city-groups {
    columns: 3 280px;
    column-gap: 22px;
}

.country-city-group {
    break-inside: avoid;
    margin: 0 0 22px;
    border: 1px solid #dce5e2;
    border-radius: 14px;
    padding: 16px 18px;
    background: #fff;
}

.country-city-group h2 {
    margin: 0 0 10px;
    color: #1d5046;
    font-size: 22px;
}

.country-city-group > div {
    display: grid;
}

.country-city-group a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #edf2f0;
    padding: 8px 0;
    text-decoration: none;
}

.country-city-group a:first-child {
    border-top: 0;
}

.country-city-group small {
    flex: 0 0 auto;
    min-width: 26px;
    border-radius: 999px;
    padding: 2px 7px;
    background: #e4f0ec;
    color: #315d53;
    text-align: center;
}

.grammar-catalog,
.grammar-page {
    max-width: 1180px;
    margin: 0 auto;
}

.grammar-theory,
.grammar-resources {
    margin: 0 0 24px;
    border: 1px solid #dce5e2;
    border-radius: 14px;
    padding: 20px 24px;
    background: #fff;
    line-height: 1.65;
}

.grammar-theory > :first-child,
.grammar-resources > :first-child {
    margin-top: 0;
}

.grammar-theory > :last-child,
.grammar-resources > :last-child {
    margin-bottom: 0;
}

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

.grammar-theory th,
.grammar-theory td {
    border: 1px solid #d8dfdc;
    padding: 7px 10px;
    text-align: left;
}

.grammar-children {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 26px;
}

.grammar-children > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #dce5e2;
    border-radius: 12px;
    padding: 13px 15px;
    background: #fff;
    text-decoration: none;
}

.grammar-children > a > span:first-child {
    display: grid;
    gap: 3px;
}

.grammar-children small {
    color: #74807c;
}

.grammar-songs {
    margin-top: 28px;
}

.grammar-songs .song-catalog-card h3,
.grammar-songs .song-catalog-card p {
    margin: 0;
}

.grammar-songs .song-catalog-card h3 {
    font-size: 19px;
    line-height: 1.25;
}

.grammar-songs .song-catalog-card h3 small {
    display: block;
    margin-top: 4px;
    color: #707a76;
    font-size: 13px;
    font-weight: 400;
}

.holiday-catalog,
.holiday-page {
    max-width: 980px;
    margin: 0 auto;
}

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

.holiday-search {
    margin: 0 0 24px;
}

.holiday-search > label {
    display: block;
    margin-bottom: 7px;
    color: #4e5955;
    font-weight: 700;
}

.holiday-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.holiday-search-control {
    position: relative;
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 52px;
    border: 1px solid #cbd5d1;
    border-radius: 10px;
    background: #fff;
}

.holiday-search input,
.holiday-search-row > a {
    min-height: 46px;
    border-radius: 10px;
}

.holiday-search input {
    width: 100%;
    min-width: 0;
    padding: 10px 14px;
    border: 0;
    border-radius: 9px 0 0 9px;
    background: transparent;
    color: #27312e;
    font: inherit;
}

.holiday-search .home-search-suggestions {
    top: calc(100% + 7px);
    box-sizing: border-box;
    overflow-x: hidden;
}

.holiday-search-row > a {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid #547e00;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.holiday-search-control button {
    display: grid;
    min-width: 0;
    min-height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-left: 1px solid #cbd5d1;
    border-radius: 0 9px 9px 0;
    background: #547e00;
    color: #fff;
    cursor: pointer;
}

.holiday-search-control button svg {
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-width: 2;
}

.holiday-search a {
    background: #fff;
    color: #547e00;
}

.holiday-today {
    margin: 0 0 24px;
    padding: 20px;
    border: 1px solid #e3c25b;
    border-radius: 12px;
    background: #fff9e8;
}

.holiday-today-heading p,
.holiday-today-heading h2 {
    margin: 0;
}

.holiday-today-heading p {
    color: #b58c16;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.holiday-today-heading h2 {
    margin-top: 4px;
    color: #194f43;
    font-size: 24px;
}

.holiday-today-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin-top: 14px;
}

.holiday-today-list a {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: #547e00;
    font-weight: 700;
}

.holiday-today-list img {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 9px;
    object-fit: cover;
}

.holiday-card {
    overflow: hidden;
    border: 1px solid #e1e5e8;
    border-radius: 12px;
    padding: 0;
    background: #fff;
}

.holiday-header {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
}

.holiday-header img {
    display: block;
    width: 150px;
    max-height: 220px;
    border-radius: 8px;
    object-fit: cover;
}

.holiday-card .holiday-image,
.holiday-card .holiday-image img {
    display: block;
    width: 100%;
}

.holiday-card .holiday-image {
    position: relative;
}

.holiday-today-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    background: #e4bd59;
    box-shadow: 0 3px 10px rgb(11 40 34 / 24%);
    color: #173b34;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

.holiday-card .holiday-image img {
    height: auto;
    max-height: none;
    aspect-ratio: 3 / 2;
    border-radius: 0;
    object-fit: cover;
}

.holiday-card > div {
    padding: 18px 20px 20px;
}

.holiday-card h2,
.holiday-header h1,
.holiday-songs h2 {
    margin-top: 0;
}

.holiday-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 10px;
}

.holiday-occurrences {
    margin-top: 18px;
}

.holiday-translated-title {
    margin: 0.2rem 0 0;
    color: #68747b;
    font-size: 0.95rem;
}

.holiday-occurrences h2 {
    margin: 0 0 10px;
    color: #194f43;
    font-size: 18px;
}

.holiday-occurrences dl,
.holiday-occurrences dl div {
    margin: 0;
}

.holiday-occurrences dl {
    display: grid;
    gap: 10px;
}

.holiday-occurrences dt {
    color: #194f43;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.holiday-occurrences dd {
    margin: 2px 0 0 27px;
    color: #4e5955;
}

.holiday-meta {
    display: flex;
    gap: 12px;
    color: #68747b;
}

.holiday-card-dates {
    display: grid;
    gap: 5px;
    margin: 10px 0;
    padding: 0;
    color: #68747b;
    list-style: none;
}

.holiday-card-dates li {
    display: flex;
    justify-content: space-between;
    gap: 4px 12px;
    min-width: 0;
    white-space: nowrap;
}

.holiday-card-dates li > span {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
}

.holiday-card-dates time {
    flex: 0 0 auto;
    color: #194f43;
    font-weight: 700;
}

.holiday-occurrences dl div.is-global {
    grid-template-columns: 1fr;
}

.holiday-description,
.holiday-songs {
    margin-top: 24px;
}

.holiday-header,
.holiday-description,
.holiday-songs {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.holiday-lead {
    font-size: 18px;
    font-weight: 600;
}

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

.holiday-song {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #edf0f2;
}

.holiday-song span:not(.album-video-badge) {
    display: block;
    margin-top: 3px;
    color: #727272;
}

@media (max-width: 720px) {
    .holiday-grid,
    .holiday-header {
        grid-template-columns: 1fr;
    }

    .holiday-occurrences dl div {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
    }

    .holiday-occurrences dt {
        overflow: hidden;
        min-width: 0;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .holiday-occurrences dd {
        flex: 0 1 auto;
        margin: 0;
        text-align: right;
    }

    .holiday-header img {
        width: min(100%, 260px);
    }

    .holiday-page .holiday-header > img {
        width: 100vw;
        max-width: none;
        height: auto;
        max-height: none;
        aspect-ratio: 3 / 2;
        margin-left: calc(50% - 50vw);
        border-radius: 0;
        object-fit: cover;
    }

    .holiday-search-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .holiday-search-row > a {
        grid-column: 1 / -1;
    }

    .holiday-today-list {
        grid-template-columns: 1fr;
    }
}

.news-catalog,
.news-page {
    max-width: 980px;
    margin: 0 auto;
}

.news-list {
    display: grid;
    gap: 20px;
}

.news-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
    border: 1px solid #e1e5e8;
    border-radius: 12px;
    background: #fff;
}

.news-card h2 {
    margin: 0 0 8px;
}

.news-card-image img {
    display: block;
    width: 150px;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    color: #727272;
    font-size: 14px;
}

.news-page-header,
.news-body {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid #e1e5e8;
    border-radius: 12px;
    background: #fff;
}

.news-page-header h1 {
    margin-top: 0;
}

.news-lead {
    margin-bottom: 0;
    color: #505050;
    font-size: 18px;
}

.news-page-image {
    display: block;
    max-width: 100%;
    max-height: 640px;
    margin: 24px auto 0;
    border-radius: 10px;
    object-fit: contain;
}

.news-body {
    line-height: 1.65;
}

.news-body > :first-child,
.holiday-description > :first-child,
.holiday-description > div > :first-child {
    margin-top: 0;
}

.news-body > :last-child,
.holiday-description > :last-child,
.holiday-description > div > :last-child {
    margin-bottom: 0;
}

.news-body img,
.news-lead img,
.holiday-description img {
    width: auto;
    max-width: 100%;
    height: auto;
}

.news-body table,
.news-lead table,
.holiday-description table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.news-body th,
.news-body td,
.news-lead th,
.news-lead td,
.holiday-description th,
.holiday-description td {
    padding: 7px 10px;
    border: 1px solid #d7dde1;
}

.news-source,
.news-back {
    margin-top: 20px;
}

@media (max-width: 640px) {
    .news-card {
        grid-template-columns: 1fr;
    }

    .news-card-image img {
        width: 100%;
    }
}

.movie-catalog,
.movie-page {
    max-width: 980px;
    margin: 0 auto;
}

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

.movie-card,
.movie-header,
.movie-soundtracks {
    border: 1px solid #e1e5e8;
    border-radius: 12px;
    padding: 22px;
    background: #fff;
}

.movie-card,
.movie-header {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
}

.movie-card img,
.movie-header img {
    display: block;
    width: 150px;
    border-radius: 8px;
    object-fit: cover;
}

.movie-card img {
    aspect-ratio: 3 / 4;
}

.movie-card h2,
.movie-header h1 {
    margin-top: 0;
}

.movie-year,
.movie-translation {
    color: #68747b;
}

.movie-soundtracks {
    margin-top: 24px;
}

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

.movie-song {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #edf0f2;
}

.movie-song span:not(.album-video-badge) {
    display: block;
    margin-top: 3px;
    color: #727272;
}

@media (max-width: 720px) {
    .movie-grid,
    .movie-card,
    .movie-header {
        grid-template-columns: 1fr;
    }

    .movie-card img,
    .movie-header img {
        width: min(100%, 260px);
    }
}

.tagword-catalog {
    max-width: 1180px;
    margin: 0 auto;
}

.tagword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 24px 0;
}

.tagword-list a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    border: 1px solid #d7e1e4;
    border-radius: 999px;
    padding: 8px 12px;
    background: #fff;
    text-decoration: none;
}

.tagword-list a:hover,
.tagword-list a:focus-visible {
    border-color: var(--green-link);
    background: #f3f7ea;
}

.tagword-list small {
    min-width: 22px;
    border-radius: 999px;
    padding: 1px 6px;
    background: #edf3df;
    color: var(--green-deep);
    text-align: center;
}

.tagword-explanation {
    margin-top: 30px;
    border-left: 4px solid #85b8ad;
    padding: 16px 20px;
    background: #f3f8f7;
}

.tagword-explanation h2,
.tagword-explanation p {
    margin: 0;
}

.tagword-explanation h2 {
    margin-bottom: 8px;
    font-size: 19px;
}

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

.song-catalog-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-width: 0;
    padding: 14px;
    border: 1px solid #e1e5e8;
    border-radius: 10px;
    background: #fff;
}

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

.song-catalog-card h2 {
    overflow-wrap: anywhere;
    font-size: 18px;
    line-height: 1.3;
}

.song-catalog-card h2 small {
    color: #727272;
    font-size: 14px;
    font-weight: 400;
}

.song-catalog-photo img {
    display: block;
    width: 88px;
    height: 88px;
    border-radius: 8px;
    object-fit: cover;
}

.song-catalog-album {
    margin-top: 4px !important;
    color: #727272;
    font-size: 14px;
}

.song-catalog-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px !important;
}

.song-catalog-badges span {
    border-radius: 999px;
    padding: 2px 8px;
    background: #edf3df;
    color: var(--green-deep);
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 720px) {
    .song-catalog-card {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .song-catalog-photo img {
        width: 74px;
        height: 74px;
    }
}

@media (max-width: 420px) {
    .song-catalog-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
.tag-title-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .6rem;
}
