/* Language pages (/create-audiobook-in-<language>) and /languages. Builds on
   home.css, subpages.css and converters.css. */
.lg-native { display: block; margin-top: 4px; font-size: .55em; }

.lg-sample {
    display: grid; grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr); align-items: stretch;
    max-width: 1040px; margin: 0 auto; padding: 40px; border-radius: 32px;
    background: radial-gradient(110% 80% at 50% 0%, #f6f1e7 0%, #ebeef7 55%, #dbe2f1 100%);
}
.lg-arrow { align-self: center; }
.lg-card { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; border-radius: 18px; background: #fff; box-shadow: 0 30px 60px -30px rgba(24, 24, 27, .4), 0 0 0 1px rgba(24, 24, 27, .05); min-width: 0; }
.lg-label { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--hn-dim); }
.lg-file { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; max-width: 100%; padding: 6px 12px 6px 6px; border-radius: 10px; background: var(--hn-blue-soft); border: 1px solid var(--hn-blue-line); font-size: 13px; font-weight: 500; }
.lg-file > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-file-badge { flex-shrink: 0; height: 26px; padding: 0 7px; line-height: 26px; border-radius: 7px; background: #fff; color: var(--hn-blue-deep); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.lg-text { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.7; color: var(--hn-ink); }
.lg-text[dir="rtl"] { text-align: right; }
.lg-credit { margin: auto 0 0; font-size: 12.5px; color: var(--hn-ink-soft); }

.lg-player { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--hn-fill-2); box-shadow: 0 0 0 1px var(--hn-line); }
.lg-play { width: 44px; height: 44px; flex-shrink: 0; border-radius: 999px; display: grid !important; place-items: center; background: var(--hn-ink) !important; color: #fff !important; transition: background-color .2s, transform .15s; }
.lg-play:active { transform: scale(.95); }
.lg-play svg { width: 18px; height: 18px; }
.lg-play polygon { transform: translateX(1px); }
.lg-play-off { display: none; }
.lg-player.is-playing .lg-play { background: var(--hn-blue) !important; }
.lg-player.is-playing .lg-play-on { display: none; }
.lg-player.is-playing .lg-play-off { display: block; }
.lg-play-on, .lg-play-off { line-height: 0; }
.lg-track { flex: 1; height: 4px; border-radius: 4px; background: var(--hn-line); overflow: hidden; }
.lg-track i { display: block; height: 100%; width: 0; background: var(--hn-blue); transition: width .25s linear; }
.lg-time { font-size: 12.5px; color: var(--hn-ink-soft); font-variant-numeric: tabular-nums; }

.lg-notes { max-width: 760px; }
.lg-intro { margin: 0 0 6px; font-size: 17px; line-height: 1.6; color: var(--hn-ink-2); }

.lg-all { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }
.lg-all a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--hn-ink-2); text-decoration: none; }
.lg-all a:hover { background: var(--hn-fill); color: var(--hn-ink); }
.lg-all a[aria-current] { background: var(--hn-blue-soft); color: var(--hn-blue-deep); }
.lg-all .wz-flag { width: 20px; height: 15px; flex-shrink: 0; border-radius: 2px; }

/* /languages index */
.lg-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.lg-index a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 18px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--hn-line); text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.lg-index a:hover { color: inherit; transform: translateY(-2px); box-shadow: 0 0 0 1px var(--hn-ink-mute), 0 16px 30px -22px rgba(24, 24, 27, .4); }
.lg-index-head { display: flex; align-items: center; gap: 10px; }
.lg-index-head .wz-flag { width: 22px; height: 16px; border-radius: 2px; }
.lg-index b { font-size: 15px; font-weight: 600; }
.lg-index small { margin-left: auto; font-size: 13px; color: var(--hn-ink-soft); }
.lg-index span.lg-index-from { font-size: 12.5px; color: var(--hn-ink-soft); }

@media (max-width: 860px) {
    .lg-sample { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 4px; border-radius: 24px; }
    .lg-arrow { height: 64px; }
    .lg-arrow::before { left: 50%; right: auto; top: 6px; bottom: 6px; border-top: 0; border-left: 2px dashed rgba(47, 107, 243, .35); }
}
