/* ==========================================================================
   freegame7 — articles list + article detail
   ========================================================================== */

.articles-page {
    display: flex;
    gap: 90px;
    align-items: start;
    max-width: var(--container);
    margin: 0 auto;
    padding: 130px var(--page-gutter) 50px;
    min-height: 70vh;
}

.articles-main {
    flex: 1;
    min-width: 0;
}

.articles-side {
    width: 330px;
    flex-shrink: 0;
}

.articles-side .side-title {
    padding: 0;
    margin-bottom: 50px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 40px;
    width: 100%;
}

.articles-grid .article-chip .article-card__img {
    border-radius: 20px;
}

.articles-grid .article-chip .article-card__name {
    font-weight: 400;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rec-game {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--color-border-soft);
    border-radius: 14px;
    background: transparent;
    color: #000;
    transition: transform 0.3s;
}

.rec-game + .rec-game {
    margin-top: 20px;
}

.rec-game:hover {
    transform: translateY(-10px);
    color: #000;
}

.rec-game img {
    width: 140px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    flex-shrink: 0;
    background: #eee;
}

.rec-game__info {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0 14px;
}

.rec-game__name {
    color: #000;
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rec-game__btn {
    display: inline-flex;
    align-items: center;
    margin-top: 30px;
    padding: 0 6px 0 17px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    line-height: 30px;
    width: max-content;
}

.rec-game__btn:hover {
    color: #fff;
    background: var(--color-primary-dark);
}

.rec-game__btn svg {
    width: 24px;
    height: 24px;
    margin-left: 10px;
}

.article-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    margin: 24px 0 32px;
    overflow: hidden;
    background: #eee;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-page-title {
    font-size: 36px;
    font-weight: 500;
    line-height: 46px;
    color: #000;
}

.article-date {
    margin-top: 12px;
    color: rgba(0, 0, 0, 0.55);
    font-size: 16px;
    line-height: 22px;
}

.article-body {
    margin-top: 8px;
}

.article-body p {
    color: #000;
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 1.25em;
}

.article-body em,
.article-body i {
    font-style: italic;
}

.other-content {
    margin-top: 60px;
}

.other-content .sub-title {
    margin-bottom: 24px;
}

.articles-mobile-rec {
    display: none;
}

@media (max-width: 1024px) {
    .articles-page {
        flex-direction: column;
        gap: 40px;
        padding-top: var(--page-offset);
    }

    .articles-side {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .articles-page {
        padding: calc(80px + env(safe-area-inset-top, 0px)) var(--page-gutter) 40px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .articles-grid .article-chip {
        background: #fff;
        border-radius: 14px;
    }

    .articles-grid .article-chip .article-card__img {
        border-radius: 0;
    }

    .articles-grid .article-chip .article-card__name {
        font-size: 16px;
        line-height: 22px;
        margin: 7px 0;
        padding: 0 16px;
    }

    .articles-side {
        display: none;
    }

    .articles-mobile-rec {
        display: block;
        margin-top: 36px;
    }

    .articles-mobile-rec .side-title {
        margin-bottom: 20px;
        padding: 0;
    }

    .articles-mobile-rec .rec-game:hover {
        transform: none;
    }

    .rec-game {
        border-radius: 14px;
        background: #fff;
    }

    .rec-game img {
        width: 96px;
    }

    .rec-game__name {
        font-size: 16px;
        line-height: 22px;
    }

    .rec-game__btn {
        margin-top: 12px;
        font-size: 14px;
        line-height: 28px;
        padding: 0 6px 0 14px;
    }

    .article-page-title {
        font-size: 20px;
        line-height: 28px;
    }

    .article-hero {
        border-radius: 12px;
        margin: 16px 0 20px;
    }

    .other-content {
        margin-top: 36px;
    }
}
