/* ################################## */
/*            OLDEST STYLE            */
@media (max-width: 1320px) {
    #home-newest {
        margin: 0 -12px;
        padding: 0 12px;
    }
}

@media (max-width: 512px) {
    #home-newest-nav {
        display: none;
    }
}
/*            OLDEST STYLE            */
/* ################################## */

.pre__homeHero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
}

@media (max-width: 728px) {
    .pre__homeHero {
        gap: 16px;
        padding-top: 20px;
    }
}

.pre__homeHeroBadge {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.pre__homeHeroBadgeIcon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: var(--color-txtSecondary);
}

.pre__homeHeroBadgeText {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-txtSecondary);
    white-space: nowrap;
}

.pre__homeHeroTitle {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.pre__homeHeroTitleLead,
.pre__homeHeroTitleMark {
    font-family: var(--font-second);
    font-size: clamp(17px, 5.2vw, 48px);
    line-height: 1.15;
    white-space: nowrap;
    color: var(--color-txtPrimary);
}

.pre__homeHeroTitleLead {
    font-weight: 600;
}

.pre__homeHeroTitleMark {
    padding: 0.06em 0.3em;
    font-weight: 700;
    border-radius: var(--corner-main);
    background-color: var(--color-brand);
}

.pre__homeHeroStats {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 16px;
    margin-top: 12px;
    overflow: hidden;
}

.pre__homeHeroStatItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
    gap: 2px;
    padding: 0 16px;
    margin-left: -1px;
    border-left: 1px solid var(--color-bgTheme-small);
}

.pre__homeHeroStatValue {
    font-family: var(--font-second);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-txtPrimary);
}

.pre__homeHeroStatLabel {
    max-width: 100%;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-txtThird);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pre__homeLatest {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 12px;
}

.pre__homeLatestCard {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--color-bgTheme-small);
    border-radius: 16px;
    background-color: var(--color-bgTheme-tiny);
    transition: background-color var(--transition-delay) ease, transform var(--transition-delay) ease;
    will-change: transform;
    backface-visibility: hidden;
}

.pre__homeLatestCard:has(.pre__homeLatestCardBody:hover) {
    background-color: var(--color-bgTheme-small);
    transform: translateY(-2px);
}

.pre__homeLatestCardBody {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1 1 auto;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    inset: 0;
}

.pre__homeLatestCardCover {
    width: var(--cover-small);
    border-radius: 8px;
    background-color: var(--color-bgTheme-small);
}

.pre__homeLatestCardInfo {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    gap: 2px;
}

.pre__homeLatestCardMeta {
    font-size: 12px;
    font-weight: 400;
    text-transform: none;
    color: var(--color-txtThird);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.pre__homeLatestCardName {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    font-size: 15px;
    font-weight: 500;
    text-transform: none;
    color: var(--color-txtPrimary);
}

.pre__homeLatestCardTime {
    font-size: 13px;
    font-weight: 400;
    color: var(--color-txtSecondary);
}

.pre__homeLatestCardChapter {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 12px 14px;
    text-decoration: none;
    background-color: var(--color-bgTheme-tiny);
    border-top: 1px solid var(--color-bgTheme-small);
    transition: background-color var(--transition-delay) ease;
}

.pre__homeLatestCardChapter:hover {
    background-color: var(--color-bgTheme-small);
}

.pre__homeLatestCardChapterName {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-txtSecondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pre__homeLatestCardChapterIcon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    fill: var(--color-txtThird);
    transition: transform var(--transition-delay) ease, fill var(--transition-delay) ease;
}

.pre__homeLatestCardChapter:hover .pre__homeLatestCardChapterIcon {
    fill: var(--color-txtSecondary);
    transform: translateX(3px);
}