/* =========================
   기본
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;

    /* 브라우저 다크 모드의 자동 색상 변경 방지 */
    color-scheme: light;
}

body {
    margin: 0;
    padding: 0;

    font-family:
        "Noto Sans KR",
        sans-serif;

    color: #5E001A;

    /* 페이지 전체 배경 */
    background: #C7C7C7;

    /* 다크 모드에서 강제로 어둡게 바꾸지 않도록 */
    color-scheme: light;
}


/* =========================
   상단 헤더
========================= */

.top-header {
    height: 52px;

    background: #5E001A;

    display: flex;
    align-items: center;

    padding: 0 15px;

    position: sticky;
    top: 0;

    z-index: 100;
}

.header-logo {
    display: flex;
    align-items: center;

    gap: 6px;

    color: #FFFFFF;

    font-size: 15px;

    font-weight: 700;
}

.cookie {
    font-size: 16px;

    display: inline-block;
}


/* =========================
   전체
========================= */

.container {
    width:
        calc(100% - 22px);

    max-width: 560px;

    margin:
        7px auto 22px;
}


/* =========================
   첫 번째 이름 프로필
========================= */

.profile-intro {
    min-height: 145px;

    position: relative;

    overflow: hidden;

    border:
        2px solid #5E001A !important;

    border-radius: 15px;

    background: #FFFFFF;

    display: flex;

    align-items: stretch;

    justify-content: flex-start;
}


/* =========================
   오른쪽 배경 사진
========================= */

.profile-background {
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;

    width: 48%;

    overflow: hidden;

    z-index: 1;

    background: #FFFFFF;

    border: none !important;
    outline: none !important;
}

.profile-background img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    border: none !important;
    outline: none !important;

    box-shadow: none !important;

    filter: none !important;
}


/* =========================
   왼쪽 내용
========================= */

.profile-content {
    position: relative;

    z-index: 2;

    width: 52%;

    min-height: 145px;

    padding:
        13px 12px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: center;

    gap: 7px;

    background: #FFFFFF !important;

    border: none !important;
    outline: none !important;

    box-shadow: none !important;
}


/* =========================
   프로필 사진
========================= */

.profile-photo {
    width: 57px;
    height: 57px;

    flex-shrink: 0;

    border:
        3px solid #5E001A !important;

    border-radius: 50%;

    overflow: hidden;

    background: #FFFFFF;

    display: flex;

    align-items: center;
    justify-content: center;
}

.profile-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    border: none;

    box-shadow: none;
}


/* =========================
   이름 / 소개
========================= */

.intro-text {
    min-width: 0;

    text-align: left;

    color: #1e1e1e !important;
}

.intro-text h1 {
    margin:
        0 0 2px;

    color: #1e1e1e !important;

    font-size: 17px;

    font-weight: 700;
}

.intro-text p {
    margin: 0;

    color: #1e1e1e !important;

    font-size: 9px;

    line-height: 1.5;
}


/* =========================
   일반 카드
========================= */

.card {
    margin-top: 7px;

    background: #FFFFFF !important;

    border:
        2px solid #5E001A !important;

    border-radius: 13px;

    overflow: hidden;
}


/* =========================
   카드 제목
========================= */

.card-title {
    height: 33px;

    padding: 0 10px;

    display: flex;
    align-items: center;

    gap: 5px;

    /*
       제목 영역은 버건디
    */
    color: #FFFFFF !important;

    background: #5E001A !important;

    font-size: 11px;

    font-weight: 700;
}

.cookie-icon {
    font-size: 12px;

    display: inline-block;
}


/* =========================
   카드 내용
========================= */

.card-content {
    padding:
        9px 11px 10px;

    background: #FFFFFF !important;

    color: #1e1e1e !important;
}


/* =========================
   소개 내용
========================= */

.introduction {
    color: #1e1e1e !important;

    background: #FFFFFF !important;

    font-size: 9px;

    line-height: 1.65;
}

.introduction p {
    margin:
        0 0 10px;

    color: #1e1e1e !important;
}

.introduction p:last-child {
    margin-bottom: 0;
}


/* =========================
   미니 프로필
========================= */

.mini-profile {
    margin-top: 7px;

    overflow: hidden;

    background: #FFFFFF !important;

    border:
        2px solid #5E001A !important;

    border-radius: 13px;
}


/* =========================
   미니 프로필 상단
========================= */

.mini-profile-top {
    min-height: 68px;

    padding:
        7px 9px;

    display: flex;

    align-items: center;

    gap: 7px;

    background: #5E001A !important;

    color: #FFFFFF !important;
}


/* =========================
   미니 프로필 사진
========================= */

.avatar {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    border:
        3px solid #FFFFFF;

    border-radius: 50%;

    background: #FFFFFF;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    border: none;
}


/* =========================
   미니 프로필 이름
========================= */

.mini-name {
    display: flex;

    flex-direction: column;

    gap: 0;

    min-width: 0;
}

.mini-name strong {
    color: #FFFFFF;

    font-size: 10px;
}

.mini-name span {
    color: #FFFFFF;

    font-size: 7px;
}

.mini-intro {
    color: #FFFFFF !important;

    font-size: 7px !important;

    font-style: italic;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    max-width: 180px;
}


/* =========================
   X / YouTube + 사진
========================= */

.mini-menu {
    min-height: 95px;

    padding:
        6px 8px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    background: #FFFFFF !important;

    border-top:
        2px solid #5E001A !important;
}


/* =========================
   왼쪽 버튼 영역
========================= */

.menu-buttons {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 5px;

    flex-shrink: 0;
}


/* =========================
   버튼 줄
========================= */

.menu-row {
    display: flex;

    align-items: center;

    justify-content: flex-start;
}


/* =========================
   X 버튼
========================= */

.x-link {
    width: 82px;
    height: 25px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #5E001A !important;

    color: #FFFFFF !important;

    text-decoration: none;

    font-size: 14px;

    font-weight: 400;

    border:
        1px solid #5E001A !important;

    border-radius: 6px;

    flex-shrink: 0;

    transition:
        opacity 0.2s ease;
}

.x-link:hover {
    opacity: 0.8;
}


/* =========================
   YouTube 버튼
========================= */

.youtube-button {
    min-width: 82px;

    height: 25px;

    padding:
        0 9px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    border:
        1px solid #5E001A !important;

    border-radius: 6px;

    background: #5E001A !important;

    color: #FFFFFF !important;

    text-decoration: none;

    font-size: 8px;

    font-weight: 700;

    transition:
        opacity 0.2s ease;
}

.youtube-icon {
    font-size: 9px;
}

.youtube-button:hover {
    opacity: 0.8;
}


/* =========================
   오른쪽 사진 영역
========================= */

.menu-photo {
    width: 120px;
    height: 82px;

    flex: 1;

    max-width: 170px;

    overflow: hidden;

    border-radius: 8px;

    background: #FFFFFF;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none !important;
    outline: none !important;
}


/* =========================
   오른쪽 사진
========================= */

.menu-photo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border: none !important;

    box-shadow: none !important;

    filter: none !important;
}


/* =========================
   아래쪽 YouTube 템플릿
========================= */

.youtube-grid {
    margin-top: 7px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 7px;
}


/* =========================
   영상 템플릿
========================= */

.youtube-card {
    display: block;

    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    border:
        2px solid #5E001A !important;

    border-radius: 13px;

    background: #FFFFFF !important;

    text-decoration: none;
}


/* =========================
   영상 이미지
========================= */

.youtube-card img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border: none;

    box-shadow: none;

    transition:
        transform 0.2s ease;
}

.youtube-card:hover img {
    transform: scale(1.03);
}


/* =========================
   맨 위로
========================= */

.top-button {
    position: fixed;

    right: 10px;
    bottom: 10px;

    width: 36px;
    height: 36px;

    border:
        2px solid #5E001A !important;

    border-radius: 50%;

    background: #FFFFFF !important;

    color: #5E001A !important;

    font-size: 16px;

    box-shadow:
        0 2px 8px
        rgba(
            94,
            0,
            26,
            0.35
        );

    cursor: pointer;

    z-index: 200;

    opacity: 0.95;
}


/* =========================
   모바일
========================= */

@media (max-width: 650px) {

    .container {
        width:
            calc(100% - 20px);

        margin-top: 6px;
    }


    /* =====================
       이름 프로필
    ===================== */

    .profile-intro {
        min-height: 138px;

        border-color: #5E001A !important;
    }


    .profile-background {
        width: 48%;
    }


    .profile-content {
        width: 52%;

        min-height: 138px;

        padding:
            10px 11px;

        gap: 6px;

        background: #FFFFFF !important;
    }


    .profile-photo {
        width: 54px;
        height: 54px;

        border:
            3px solid #5E001A !important;
    }


    .intro-text h1 {
        font-size: 15px;

        color: #1e1e1e !important;
    }


    .intro-text p {
        font-size: 8px;

        color: #1e1e1e !important;
    }


    /* =====================
       카드
    ===================== */

    .card {
        margin-top: 6px;

        border-color: #5E001A !important;

        background: #FFFFFF !important;
    }


    .card-title {
        height: 31px;

        padding: 0 9px;

        font-size: 10px;

        background: #5E001A !important;
    }


    .card-content {
        padding:
            8px 10px 9px;

        background: #FFFFFF !important;

        color: #1e1e1e !important;
    }


    /* =====================
       소개
    ===================== */

    .introduction {
        font-size: 8px;

        line-height: 1.65;

        color: #1e1e1e !important;

        background: #FFFFFF !important;
    }


    .introduction p {
        margin-bottom: 9px;

        color: #1e1e1e !important;
    }


    /* =====================
       미니 프로필
    ===================== */

    .mini-profile {
        margin-top: 6px;

        border-color: #5E001A !important;

        background: #FFFFFF !important;
    }


    .mini-profile-top {
        min-height: 64px;

        padding:
            6px 8px;

        gap: 6px;

        background: #5E001A !important;
    }


    .avatar {
        width: 41px;
        height: 41px;

        border-width: 2px;
    }


    .mini-name strong {
        font-size: 9px;
    }


    .mini-name span,
    .mini-intro {
        font-size: 6px !important;
    }


    /* =====================
       X / YouTube + 사진
    ===================== */

    .mini-menu {
        min-height: 91px;

        padding:
            6px 7px;

        gap: 7px;

        background: #FFFFFF !important;

        border-top-color: #5E001A !important;
    }


    .menu-buttons {
        gap: 5px;
    }


    /* X */

    .x-link {
        width: 82px;
        height: 25px;

        font-size: 13px;

        border:
            1px solid #5E001A !important;

        background: #5E001A !important;

        color: #FFFFFF !important;

        border-radius: 6px;
    }


    /* YouTube */

    .youtube-button {
        min-width: 82px;

        height: 23px;

        padding:
            0 7px;

        font-size: 7px;

        border:
            1px solid #5E001A !important;

        background: #5E001A !important;

        color: #FFFFFF !important;
    }


    .youtube-icon {
        font-size: 8px;
    }


    /* 오른쪽 사진 */

    .menu-photo {
        height: 78px;

        max-width: 150px;

        border-radius: 7px;

        background: #FFFFFF;
    }


    /* =====================
       아래쪽 영상
    ===================== */

    .youtube-grid {
        margin-top: 6px;

        gap: 6px;
    }


    .youtube-card {
        border-radius: 11px;

        border:
            2px solid #5E001A !important;

        background: #FFFFFF !important;
    }

}


/* =========================
   아주 작은 휴대폰
========================= */

@media (max-width: 360px) {

    .container {
        width:
            calc(100% - 16px);
    }


    .profile-intro {
        min-height: 128px;
    }


    .profile-background {
        width: 48%;
    }


    .profile-content {
        width: 52%;

        min-height: 128px;

        padding:
            9px 10px;

        background: #FFFFFF !important;
    }


    .profile-photo {
        width: 50px;
        height: 50px;
    }


    .intro-text h1 {
        font-size: 14px;

        color: #1e1e1e !important;
    }


    .intro-text p {
        font-size: 7px;

        color: #1e1e1e !important;
    }


    .introduction {
        font-size: 7px;

        color: #1e1e1e !important;
    }


    .mini-name strong {
        font-size: 8px;
    }


    .mini-name span,
    .mini-intro {
        font-size: 5px !important;
    }


    /* X */

    .x-link {
        width: 75px;
        height: 23px;

        font-size: 12px;
    }


    /* YouTube */

    .youtube-button {
        min-width: 75px;

        height: 22px;

        font-size: 6px;
    }


    /* 오른쪽 사진 */

    .menu-photo {
        height: 72px;

        max-width: 130px;
    }


    .youtube-grid {
        gap: 5px;
    }

}