/* 아티스트 목록 (oncast 전용) — board/lists/artist.blade.php 에서만 불러온다
   ⚠️ style.css 에 import 하지 않는다. 53개 사이트 공용 테마에 섞이지 않게
   방향: 세로 사진(3:4) · 테두리 없는 카드 · 상세 히어로와 같은 딥 네이비 */

.al {
    --al-dark: #10213f;
    --al-red: var(--c-primary, #c8102e);
    --al-r: 10px;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));   /* 4열 → 3열: 그룹 사진이 크게 보이게. 한 페이지 24개 = 8줄 */
    gap: 44px 28px;
}

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

/* ── 사진 ── */
.al__thumb {
    position: relative;
    aspect-ratio: 1 / 1;   /* 3:4 → 1:1 — 그룹 사진(가로로 넓음)이 덜 잘리게 */
    border-radius: var(--al-r);
    overflow: hidden;
    background: linear-gradient(160deg, #1b3160 0%, var(--al-dark) 70%);
    isolation: isolate;
}

.al__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 5%;    /* 얼굴이 위쪽에 있다 — 정사각이라 세로 사진(강사 프로필)은 머리부터 보이게 */
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

/* 아래쪽 어둡게 — 「프로필 보기」 글자가 사진 위에서 읽히게 */
.al__thumb::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, rgba(10, 18, 36, .72));
    opacity: 0;
    transition: opacity .35s ease;
    z-index: 1;
}

/* 사진 없음 — 이름 첫 글자 */
.al__initial {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: clamp(56px, 7vw, 88px);
    font-weight: 800;
    letter-spacing: -.04em;
    color: rgba(255, 255, 255, .16);
}

/* 유형 라벨 (MC · 뮤지션 · 공연팀) */
.al__type {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: var(--al-dark);
    backdrop-filter: blur(4px);
}

.al__more {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .35s ease, transform .35s ease;
}

.al__more svg {
    width: 15px;
    height: 15px;
}

.al__item:hover .al__thumb img {
    transform: scale(1.05);
}

.al__item:hover .al__thumb::after,
.al__item:focus-visible .al__thumb::after {
    opacity: 1;
}

.al__item:hover .al__more,
.al__item:focus-visible .al__more {
    opacity: 1;
    transform: none;
}

.al__item:focus-visible {
    outline: none;
}

.al__item:focus-visible .al__thumb {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--al-red) 50%, transparent);
}

/* ── 글 ── */
.al__body {
    padding: 16px 2px 0;
}

.al__name {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.03em;
    color: var(--c-text, #222);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .2s ease;
}

.al__item:hover .al__name {
    color: var(--al-red);
}

.al__en {
    margin: 3px 0 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-text-mute, #888);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.al__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.al__tag {
    padding: 4px 9px;
    border: 1px solid var(--c-line, #e5e7eb);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--c-text-sub, #555);
}

@media (max-width: 1024px) {
    .al {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px 18px;
    }
}

@media (max-width: 640px) {
    .al {
        grid-template-columns: repeat(2, 1fr);
        gap: 26px 12px;
    }

    .al__name {
        font-size: 16px;
    }

    .al__type {
        top: 8px;
        left: 8px;
        padding: 4px 8px;
        font-size: 11px;
    }

    /* 터치 화면에는 호버가 없다 */
    .al__more,
    .al__thumb::after {
        display: none;
    }
}
