/* ==========================================================================
   anime 作品カード（共通パーツ）
   front-page 新着 / /anime/ アーカイブ / その他一覧系で共用する。
   ダークモード配色統一。
   ========================================================================== */

/* ----------------------------------------
   グリッドコンテナ
   PC: 5列、タブレット: 3列、モバイル: 2列
   ---------------------------------------- */
.anime-card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* ----------------------------------------
   カード本体
   ---------------------------------------- */
.anime-card {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.anime-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.anime-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.anime-card__link:hover,
.anime-card__link:focus {
    color: inherit;
    text-decoration: none;
}

.anime-card__poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    background: #0f0f0f;
    overflow: hidden;
}

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

.anime-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 13px;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.anime-card__body {
    padding: 12px 14px 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.anime-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1 1 auto;
}

.anime-card__rating {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #f59e0b;
}

/* ----------------------------------------
   レスポンシブ
   ---------------------------------------- */
@media (max-width: 768px) {
    .anime-card-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .anime-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .anime-card__title {
        font-size: 13px;
    }
}
