/**
 * coupairfrm_up - 상세보기(View) 스타일
 * 3단 레이아웃: 왼쪽 캐릭터 / 중앙 전신 / 오른쪽 캐릭터
 */

/* ===== 메인 컨테이너 ===== */
.cfrm-view {
    --char1-hair: #333333;
    --char1-skin: #FFE0BD;
    --char1-eye1: #4169E1;
    --char1-eye2: #4169E1;
    --char1-etc: #888888;
    --char2-hair: #333333;
    --char2-skin: #FFE0BD;
    --char2-eye1: #4169E1;
    --char2-eye2: #4169E1;
    --char2-etc: #888888;
    padding: 10px 25px 0px;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.cfrm-bg {
    width: 100vw;
    height: 100vh;
    background-size: cover;
    position: fixed;
    z-index: -1;
}

/* 화이트 테마 */
.cfrm-view.theme-white {
    background: linear-gradient(0deg, rgb(255, 255, 255) 40%, transparent 100%);
    color: #333;
}

.cfrm-view.theme-white .ra0-content blockquote,
.cfrm-view.theme-white .ra0-content {
    color: #333;
}


/* 블랙 테마 */
.cfrm-view.theme-black {
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 40%, transparent 100%);
    color: #eee;
}

.cfrm-view.theme-black .ra0-content blockquote,
.cfrm-view.theme-black .ra0-content {
    color: #eee;
}

/* ===== 헤더 (뒤로가기, BGM, AU썸네일, 메뉴) ===== */
.cfrm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cfrm-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cfrm-header-center {
    flex: 1;
    text-align: center;
}

.cfrm-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 뒤로가기 버튼 */
.cfrm-btn-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cfrm-btn-back:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
}

/* BGM 컨트롤 */
.cfrm-bgm-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 6px 12px;
}

.cfrm-bgm-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cfrm-bgm-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cfrm-bgm-btn.playing {
    color: var(--primary-color, #6366f1);
}

.cfrm-bgm-volume-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cfrm-bgm-slider {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 12px 8px;
    display: none;
    z-index: 100;
}

.cfrm-bgm-slider.open {
    display: block;
}

.cfrm-bgm-slider input[type="range"] {
    writing-mode: vertical-lr;
    direction: rtl;
    width: 8px;
    height: 80px;
    cursor: pointer;
    -webkit-appearance: none;
    background: transparent;
}

.cfrm-bgm-slider input[type="range"]::-webkit-slider-track {
    width: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.cfrm-bgm-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary-color, #6366f1);
    border-radius: 50%;
    cursor: pointer;
    margin-left: -5px;
}

.cfrm-bgm-name {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cfrm-bgm-name i {
    margin-right: 4px;
    opacity: 0.7;
}

/* 로고/타이틀 영역 (별도 행) */
.cfrm-logo-area {
    width: 100%;
    text-align: center;
    color: var(--white);
    text-shadow: 0 0 3px var(--black), 0 0 10px rgb(from var(--gray-700) r g b / 70%), 0 0 20px rgb(from var(--white) r g b / 70%);
}

.cfrm-main-logo {
    max-height: 200px;
    object-fit: contain;
}

.cfrm-main-title {
    font-size: 8.5em;
    font-weight: 700;
    margin: 0;
    color: white;
    line-height: 1;
}

.cfrm-subtitle {
    font-size: 14px;
    font-family: pretendard;
    opacity: 0.7;
    margin-bottom: 8px;
    letter-spacing: 15px;
    translate: 15px;
}

/* AU 원형 썸네일 */
.cfrm-au-thumbs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cfrm-au-thumb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cfrm-au-thumb:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.cfrm-au-thumb.active {
    border-color: var(--primary-color, #6366f1);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.4);
}

.cfrm-au-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cfrm-au-thumb-text {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.cfrm-more-menu.open {
    display: block;
}

/* 더보기 메뉴 */
.cfrm-more-dropdown {
    position: relative;
}

button#moreToggleBtn {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 6px;
    background: rgb(from var(--btn-primary-bg) r g b / 30%);
    border: 1px solid rgb(from var(--btn-primary-text) r g b / 50%);
    color: var(--btn-primary-text);
}

.cfrm-more-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    min-width: 140px;
    background: var(--card-bg-color);
    border: 1px solid var(--form-border-color);
    border-radius: var(--form-border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: none;
    overflow: hidden;
}

.theme-black .cfrm-more-menu {
    background: #374151;
    border-color: #4b5563;
}

.cfrm-more-menu .cfrm-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    border: 0;
    background: transparent;
    color: var(--content-font-color);
    text-decoration: none;
    border-bottom: 1px solid var(--form-border-color);
}

.cfrm-more-menu .cfrm-menu-item:last-child {
    border-bottom: none;
}

.cfrm-more-menu .cfrm-menu-item:hover {
    background: var(--container-bg-color);
}

.theme-black .cfrm-more-menu .cfrm-menu-item {
    color: #f9fafb;
    border-color: #4b5563;
}

.theme-black .cfrm-more-menu .cfrm-menu-item:hover {
    background: #4b5563;
}

/* ===== 3단 메인 레이아웃 ===== */
.cfrm-main {
    display: grid;
    grid-template-columns: 1fr 2.5fr 1fr;
    gap: 10px;
    width: 100%;
    flex: 1;
    min-height: 0;
}

/* ===== 캐릭터 프로필 (좌/우) ===== */
.cfrm-char {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    overflow: visible;
}

/* ===== ID 카드 스타일 ===== */
.cfrm-id-card {
    position: relative;
    width: 380px;
    min-height: 220px;
    background: linear-gradient(135deg, rgb(from var(--gray-50, #f3f4f6) r g b / 0.7) 0%, var(--gray-300, #d1d5db) 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border: 1px solid var(--gray-300, #d1d5db);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.cfrm-id-card:hover {
    transform: translateY(-5px);
}

/* ID 카드 상단/하단 패턴 - 머리 색상(--id-accent-color) + 흰색 줄무늬 */
/* .cfrm-id-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 35px;
    background: repeating-linear-gradient(
        45deg,
        var(--id-accent-color, #333),
        var(--id-accent-color, #333) 8px,
        color-mix(in srgb, var(--id-accent-color, #333) 30%, white) 8px,
        color-mix(in srgb, var(--id-accent-color, #333) 30%, white) 16px
    );
    opacity: 0.1;
    z-index: 0;
}

.cfrm-id-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25px;
    background: repeating-linear-gradient(
        45deg,
        var(--id-accent-color, #333),
        var(--id-accent-color, #333) 8px,
        color-mix(in srgb, var(--id-accent-color, #333) 30%, white) 8px,
        color-mix(in srgb, var(--id-accent-color, #333) 30%, white) 16px
    );
    opacity: 0.1;
    z-index: 0;
} */

/* 홀로그램 효과 */
.cfrm-id-hologram {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    border-radius: 50%;
    z-index: 2;
}

.cfrm-id-hologram::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(236, 72, 153, 0.3));
    animation: hologram-spin 3s infinite linear;
}

@keyframes hologram-spin {
    0% { transform: rotate(0deg); opacity: 0.5; }
    50% { opacity: 0.8; }
    100% { transform: rotate(360deg); opacity: 0.5; }
}

/* ID 카드 내용 */
.cfrm-id-body {
    position: relative;
    z-index: 1;
}

.cfrm-id-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800, #1f2937);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.cfrm-id-en-name {
    font-size: 11px;
    color: var(--gray-500, #6b7280);
    font-style: italic;
}

/* 하단 서브 이름 (한글) - 영문 이름 스타일 적용 */
.cfrm-id-sub-name {
    font-size: 11px;
    color: var(--gray-500, #6b7280);
    font-style: italic;
}

/* ID 카드 헤더 (사진 + 정보) */
.cfrm-id-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* 사진 영역 */
.cfrm-id-head {
    width: 90px;
    height: 110px;
    flex-shrink: 0;
    border: 2px solid var(--gray-400, #9ca3af);
    background: #fff;
    padding: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.cfrm-id-head img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 사진 코너 장식 */
.cfrm-id-head::before,
.cfrm-id-head::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-color: var(--gray-500, #6b7280);
    border-style: solid;
}

.cfrm-id-head::before {
    top: -2px;
    left: -2px;
    border-width: 2px 0 0 2px;
}

.cfrm-id-head::after {
    bottom: -2px;
    right: -2px;
    border-width: 0 2px 2px 0;
}

/* 정보 영역 */
.cfrm-id-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cfrm-id-info-row {
    display: flex;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: var(--gray-700, #374151);
    border-bottom: 1px dashed var(--gray-300, #d1d5db);
}

.cfrm-id-info-row:last-child {
    border-bottom: none;
}

.cfrm-id-info-row::before {
    content: "✶";
    color: var(--primary-color, #6366f1);
    margin-right: 8px;
    font-size: 10px;
}

.cfrm-id-info-label {
    font-weight: 600;
    margin-right: 6px;
    color: var(--gray-600, #4b5563);
}

.cfrm-id-info-value {
    flex: 1;
}

/* ID 카드 푸터 */
.cfrm-id-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--gray-500, #6b7280);
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--gray-300, #d1d5db);
}

.cfrm-id-footer .cfrm-id-en-name {
    text-align: left;
}

.cfrm-id-footer .cfrm-id-number {
    text-align: right;
}

/* 다크 테마 ID 카드 */
.theme-black .cfrm-id-card {
    background: linear-gradient(135deg, rgba(64, 67, 70, 0.70) 0%, #151619 100%);
    border-color: #3d3d3d;
}

.theme-black .cfrm-id-name {
    color: #f9fafb;
}

.theme-black .cfrm-id-en-name,
.theme-black .cfrm-id-sub-name {
    color: #9ca3af;
}

.theme-black .cfrm-id-head {
    border-color: #6b7280;
    background: #374151;
}

.theme-black .cfrm-id-info-row {
    color: #e5e7eb;
    border-color: #4b5563;
}

.theme-black .cfrm-id-info-label {
    color: #9ca3af;
}

.theme-black .cfrm-id-footer {
    color: #9ca3af;
    border-color: #4b5563;
}

/* 컬러 팔레트 (가로 배열) */
.cfrm-colors {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.cfrm-color {
    font-size: 40px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    cursor: default;
    transition: transform 0.2s ease;
}

.cfrm-color:hover {
    transform: scale(1.5);
}

/* 태그 */
.cfrm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
}

.cfrm-tag {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 500;
    cursor: default;
    transition: transform 0.2s ease;
}

.cfrm-tag:hover {
    transform: scale(1.1);
}

/* 대사 */
.cfrm-quote {
    max-width: 100%;
    position: relative;
    width: 100%;
    font-size: 30px;
    font-style: italic;
    font-family: chosunsm;
    line-height: 1.5;
    text-align: center;
    color: var(--white);
    text-shadow: 0 0 3px var(--black), 0 0 10px rgb(from var(--gray-700) r g b / 70%), 0 0 20px rgb(from var(--white) r g b / 70%);
    margin: 50px 0 20px;
}

.cfrm-quote::before {
    content: "“";
    font-size: 60px;
    line-height: 1;
    position: absolute;
    opacity: 0.3;
    top: -15px;
    translate: -50%;
}

/* 간단 프로필 */
.cfrm-char-profile {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    text-align: justify;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.7;
    margin-top: 15px;
}

/* 기존 호환용 */
.cfrm-character {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 두상 이미지 */
.cfrm-char-head {
    text-align: center;
}

.cfrm-char-head img {
    max-width: 180px;
    max-height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--form-border-color);
}

.theme-black .cfrm-char-head img {
    border-color: #4b5563;
}

/* 캐릭터 이름 */
.cfrm-char-name-box {
    text-align: center;
}

.cfrm-char-name-main {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.cfrm-char-name-en {
    font-size: 13px;
    opacity: 0.6;
    margin-top: 4px;
}

/* 캐릭터 정보 */
.cfrm-char-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cfrm-char-info-row {
    display: flex;
    font-size: 13px;
}

.cfrm-char-info-label {
    width: 70px;
    flex-shrink: 0;
    font-weight: 600;
    opacity: 0.8;
}

.cfrm-char-info-value {
    flex: 1;
}

/* 한마디 */
.cfrm-char-quote {
    padding: 12px 16px;
    font-size: 13px;
    font-style: italic;
    opacity: 0.8;
    border-left: 3px solid var(--primary-color);
    background: var(--container-bg-color);
    border-radius: 0 var(--form-border-radius) var(--form-border-radius) 0;
}

.theme-black .cfrm-char-quote {
    background: rgba(255, 255, 255, 0.05);
}

/* 컬러 팔레트 */
.cfrm-char-colors {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.cfrm-color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.theme-black .cfrm-color-dot {
    border-color: rgba(255, 255, 255, 0.2);
}

/* 캐릭터 태그 */
.cfrm-char-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.cfrm-char-tag {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 500;
}

/* 캐릭터 갤러리 */
.cfrm-char-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.cfrm-char-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--form-border-radius);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cfrm-char-gallery img:hover {
    transform: scale(1.05);
}

/* ===== 중앙 전신 이미지 + 양쪽 캐릭터 이미지 ===== */
.cfrm-body-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    position: relative;
}

.cfrm-body-area .cfrm-logo-area {
    flex-shrink: 0;
}

.cfrm-body-content {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    flex: 1;
    min-height: 0;
    width: 100%;
}

.cfrm-body-images {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex: 1;
    max-height: 100%;
    min-height: 0;
}

/* 캐릭터 대표 이미지 (전신 영역 양쪽) */
.cfrm-char-images {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 왼쪽: 위에서 아래로 (상단 정렬) */
.cfrm-images-left {
    flex-direction: column;
    justify-content: flex-start;
    position: absolute;
    top: 120px;
    left: 0;
    z-index: 1;
}

/* 오른쪽: 아래에서 위로 (하단 정렬) */
.cfrm-images-right {
    flex-direction: column;
    justify-content: flex-end;
    position: absolute;
    bottom: 15px;
    right: 0;
    z-index: 1;
}

.cfrm-char-img {
    position: relative;
    width: 160px;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.theme-black .cfrm-char-img {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cfrm-char-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.cfrm-char-img:hover img {
    transform: scale(1.1);
}

/* 캐릭터 이미지 캡션 */
.cfrm-char-img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 6px 4px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 30%, transparent 60%);
    color: #fff;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 이미지 모달 */
.cfrm-img-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
}

.cfrm-img-modal.open {
    display: flex;
}

.cfrm-img-modal-content {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
}

.cfrm-img-modal-caption {
    color: #fff;
    font-size: 14px;
    text-align: center;
    max-width: 80%;
}

.cfrm-img-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cfrm-img-modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.cfrm-body-img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.cfrm-body-img:hover {
    transform: scale(1.05);
    z-index: 10;
}

.cfrm-body-img:hover img {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
}

.theme-black .cfrm-body-img:hover img {
    filter: drop-shadow(0 0 15px rgba(200, 200, 255, 0.5)) drop-shadow(0 0 30px rgba(150, 150, 255, 0.3));
}

.cfrm-body-images img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.cfrm-body-img:nth-child(2) {
    margin-left: -150px;
}

/* 본문 내용 */
.cfrm-content {
    line-height: 1.8;
    font-size: 15px;
}

.cfrm-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--form-border-radius);
}

/* ===== 하단 키워드 ===== */
.cfrm-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 15px 0;
}

.cfrm-keyword {
    padding: 6px 14px;
    background: var(--container-bg-color);
    border-radius: 9999px;
    font-size: 13px;
    color: var(--content-font-color);
    text-decoration: none;
}

.cfrm-keyword:hover {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

/* ===== 하단 컨트롤 (수정/삭제/목록 버튼) ===== */
.cfrm-view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--form-border-color);
}

.theme-black .cfrm-view-controls {
    border-color: #374151;
}

.cfrm-view-controls .cfrm-left,
.cfrm-view-controls .cfrm-right {
    display: flex;
    gap: 8px;
}

/* 대표 지정 버튼 */
.cfrm-btn-main {
    background: #10b981;
    color: #fff;
}

.cfrm-btn-main:hover {
    background: #059669;
}

.cfrm-btn-main.is-main {
    background: #f59e0b;
}

.cfrm-btn-main.is-main:hover {
    background: #d97706;
}

.cfrm-footer {
    position: absolute;
    bottom: 0;
    left: 50%;
    translate: -50%;
}

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
    .cfrm-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cfrm-char {
        order: 1;
    }

    .cfrm-body-area {
        order: 0;
    }

    .cfrm-char-right {
        order: 2;
    }
}

@media (max-width: 640px) {
    .cfrm-view {
        padding: 16px;
    }

    .cfrm-header {
        flex-direction: column;
        gap: 16px;
    }

    .cfrm-header-left,
    .cfrm-header-right {
        width: 100%;
        justify-content: center;
    }

    .cfrm-pair-title {
        font-size: 20px;
    }

    .cfrm-char-head img {
        max-width: 140px;
        max-height: 140px;
    }

    .cfrm-char-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .cfrm-view-controls {
        flex-direction: column;
        gap: 12px;
    }

    .cfrm-view-controls .cfrm-left,
    .cfrm-view-controls .cfrm-right {
        width: 100%;
        justify-content: center;
    }
}

/* ===== BGM 플레이어 (iframe) ===== */
.group-bgm {
    display: inline-flex;
    align-items: center;
}

div#gruop_bgm_con {
    display: inline-flex;
}

#gruop_bgm_frame {
    width: 160px;
    height: 40px;
    border: none;
    background: transparent;
}
