.group-discovery-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 12px;
}

.group-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: var(--color-text-sub);
    font-size: 0.88rem;
}

.group-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.group-breadcrumb a:hover {
    text-decoration: underline;
}

.group-page-hero {
    margin-bottom: 28px;
}

.group-page-hero-compact {
    margin-bottom: 22px;
}

.group-page-hero h2 {
    margin: 0 0 8px;
    font-size: clamp(2.25rem, 5vw, 4.2rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.group-page-hero-compact h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    line-height: 1.2;
}

.group-page-hero p {
    margin: 0;
    color: var(--color-text);
    line-height: 1.7;
}

.group-page-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 9px;
    color: var(--color-text-sub);
    font-size: 0.9rem;
}

.group-page-stats span {
    display: inline-flex;
    align-items: center;
}

.group-page-stats span + span::before {
    content: "/";
    margin: 0 10px;
    color: #c3c6cb;
}

.group-discovery-section {
    margin: 0 0 30px;
}

.group-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}

.group-section-heading h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 1.2rem;
}

.group-section-heading > a {
    color: #d94d8d;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.group-section-heading > a:hover {
    text-decoration: underline;
}

.group-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #fdeaf3;
    color: #d94d8d;
    font-size: 0.78rem;
    line-height: 1;
}

.group-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.group-latest-card {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}

.group-latest-card:hover {
    border-color: #e6a4c2;
    transform: translateY(-1px);
}

.group-latest-thumbnail {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: #f3f4f6;
}

.group-latest-thumbnail img,
.group-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-latest-thumbnail img {
    position: absolute;
    inset: 0;
}

.group-latest-play-icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgb(20 23 28 / 72%);
    box-shadow: 0 2px 8px rgb(0 0 0 / 24%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: background-color .15s ease, transform .15s ease;
}

.group-latest-play-icon::after {
    position: absolute;
    top: 50%;
    left: 53%;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid #fff;
    content: "";
    transform: translate(-50%, -50%);
}

.group-latest-card:hover .group-latest-play-icon {
    background: rgb(20 23 28 / 84%);
    transform: translate(-50%, -50%) scale(1.06);
}

.group-latest-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 10px;
    color: var(--color-text);
    font-size: 0.83rem;
    line-height: 1.4;
}

.group-latest-body strong {
    width: 100%;
    margin: 2px 0 4px;
    overflow: hidden;
    color: var(--color-text-heading);
    font-size: 0.96rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-latest-date {
    color: var(--color-text-sub);
    font-size: 0.78rem;
}

.group-song-grid,
.group-member-grid,
.group-era-grid {
    display: grid;
    gap: 12px;
}

.group-song-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.group-member-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.group-era-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.group-era-grid-all {
    margin-bottom: 22px;
}

.group-song-card,
.group-member-card,
.group-era-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}

.group-song-card:hover,
.group-member-card:hover,
.group-era-card:hover {
    border-color: #e6a4c2;
    transform: translateY(-1px);
}

.group-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    flex: 0 0 auto;
    background: #f3f4f6;
}

.group-song-media,
.group-era-media {
    aspect-ratio: 1 / 1;
}

.group-member-media {
    aspect-ratio: 4 / 5;
}

.group-card-media .group-card-image {
    position: absolute;
    inset: 0;
    /* hqdefault の上下黒帯を切り落とし、カード枠いっぱいに見せる。 */
    transform: scale(1.34);
}

.group-member-image {
    object-position: center 24%;
    transform-origin: center;
}

.group-media-placeholder {
    display: flex;
    aspect-ratio: 16 / 9;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: linear-gradient(135deg, #f6f3f7, #f3f4f7);
    color: var(--color-text-sub);
    font-size: 0.78rem;
    text-align: center;
}

.group-card-media .group-media-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
}

.group-card-label {
    display: flex;
    min-height: 43px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
}

.group-card-label strong {
    min-width: 0;
    overflow: hidden;
    color: var(--color-text-heading);
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-member-label > span:first-child {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.group-member-label small {
    color: #b04672;
    font-size: 0.7rem;
    line-height: 1.35;
}

.group-era-card-body {
    display: grid;
    gap: 4px;
    padding: 10px;
    color: var(--color-text-sub);
    font-size: 0.8rem;
    line-height: 1.45;
}

.group-era-card-body strong {
    color: var(--color-text-heading);
    font-size: 0.94rem;
}

.group-empty-message {
    margin: 20px 0 28px;
    padding: 16px;
    border: 1px solid #e6e8eb;
    border-radius: 10px;
    background: #fafafa;
    color: var(--color-text-sub);
}

@media (max-width: 980px) {
    .group-latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .group-song-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .group-member-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .group-era-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 640px) {
    .group-discovery-page {
        width: min(100% - 22px, 1180px);
        padding-top: 0;
    }

    .group-breadcrumb {
        margin-bottom: 9px;
        font-size: 0.8rem;
    }

    .group-page-hero {
        margin-bottom: 22px;
    }

    .group-page-hero h2 {
        font-size: 2.35rem;
    }

    .group-page-hero-compact h2 {
        font-size: 1.65rem;
    }

    .group-page-hero p {
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .group-page-stats {
        font-size: 0.79rem;
    }

    .group-page-stats span + span::before {
        margin: 0 7px;
    }

    .group-discovery-section {
        margin-bottom: 24px;
    }

    .group-section-heading {
        margin-bottom: 9px;
    }

    .group-section-heading h3 {
        font-size: 1.05rem;
    }

    .group-song-grid,
    .group-member-grid,
    .group-era-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .group-latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .group-latest-play-icon {
        width: 34px;
        height: 34px;
    }

    .group-latest-play-icon::after {
        border-top-width: 6px;
        border-bottom-width: 6px;
        border-left-width: 10px;
    }

    .group-latest-body {
        padding: 8px;
        font-size: 0.76rem;
    }

    .group-card-label {
        min-height: 39px;
        padding: 8px;
    }

    .group-card-label strong {
        font-size: 0.82rem;
    }

    .group-era-card-body {
        padding: 8px;
        font-size: 0.74rem;
    }

    .group-era-card-body strong {
        font-size: 0.86rem;
    }
}
