:root {
    --color-primary: #FFD700;
    --color-secondary: #00FFD7;
    --color-sapphire-deep: #001f40;
    --color-sapphire-dark: #000c1f;
    --color-text: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { font-family: 'Arial', sans-serif; color: var(--color-text); line-height: 1.6; overflow-x: hidden; }

body:not(.lang-en) .lang-en, body:not(.lang-ko) .lang-ko { display: none; }
body.lang-ko .lang-ko, body.lang-en .lang-en { display: block; }

.header {
    position: fixed; top: 0; left: 0; right: 0; padding: 18px 20px; background: rgba(0,0,0,0.6); backdrop-filter: blur(12px); z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.3em; font-weight: bold; color: var(--color-primary); }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: #AAA; text-decoration: none; font-size: 0.85em; font-weight: 500; transition: color 0.3s; }
.nav a:hover { color: #FFF !important; }
.nav a.current-page { color: #FFD700 !important; font-weight: bold; }
.language-switcher { display: flex; gap: 6px; }
.lang-btn { background: none; border: 1px solid rgba(255,255,255,0.5); color: var(--color-text); padding: 4px 8px; font-size: 0.7em; border-radius: 4px; cursor: pointer; transition: all 0.3s; }
.lang-btn.active { background: var(--color-secondary); border-color: var(--color-secondary); color: #000; font-weight: bold; }

.mobile-menu-toggle {
    display: none;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8em;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .header { 
        padding: 10px 20px; 
        height: 60px; 
    }
    .logo { 
        font-size: 1.3rem; 
    }
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(10,10,42,0.97) !important; /* 어두운 보라로 강제 */
        border-bottom: 1px solid rgba(200,162,255,0.3);
        backdrop-filter: blur(12px);
        padding: 25px 20px;
        gap: 18px;
        border-bottom: 1px solid rgba(200,162,255,0.3);
    }
    .nav.active {
        display: flex !important;
    }
    .mobile-menu-toggle { 
        display: block; 
    }
    .language-switcher { 
        gap: 8px; 
    }
    .lang-btn {
        padding: 5px 12px;
        font-size: 0.85rem;
    }
}
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: brightness(0.7) contrast(1.1); }
.hero-fullscreen, .internal-section { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; overflow: hidden; display: none; }
.hero-fullscreen.active-section, .internal-section.active-section { display: block; }
.hero-fullscreen { background-color: var(--color-sapphire-deep); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,31,64,0.6), rgba(0,12,31,0.85) 70%, rgba(0,0,0,0.95)); z-index: 1; }
.animated-core { position: absolute; top: 50%; left: 50%; width: 250px; height: 250px; transform: translate(-50%, -50%); background: radial-gradient(circle at center, #00ffff30, transparent 70%); border-radius: 50%; z-index: 2; animation: pulseGlow 4s infinite ease-in-out; }
@keyframes pulseGlow { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .4; } 50% { transform: translate(-50%, -50%) scale(1.3); opacity: .7; } }
.hero-content { position: relative; z-index: 10; text-align: center; padding: 0 15px; max-width: 900px; margin: 0 auto; top: 50%; transform: translateY(-50%); text-shadow: 0 0 20px rgba(0,0,0,0.8); }
.main-title { font-size: 5.5em; font-weight: 900; color: var(--color-primary); letter-spacing: 2px; text-shadow: 0 0 40px rgba(255,215,0,0.7); margin-bottom: 8px; }
.sub-title { font-size: 1.9em; color: var(--color-secondary); font-weight: 600; margin-bottom: 12px; }
.slogan { font-size: 1.1em; color: #DDD; font-style: italic; margin-bottom: 30px; opacity: .9; }
.cta-button.primary { padding: 14px 36px; background: var(--color-secondary); color: #000; font-weight: bold; font-size: 1em; border-radius: 8px; box-shadow: 0 8px 25px rgba(0,255,215,.3); transition: all .4s; }
.cta-button.primary:hover { background: var(--color-primary); transform: translateY(-5px); }

.internal-section { background: var(--color-sapphire-dark); overflow-y: auto; padding-top: 90px; }
.section-container { max-width: 1100px; margin: 0 auto; padding: 0 15px; text-align: center; }
.section-title { font-size: 2.2em; color: var(--color-primary); margin-bottom: 10px; }
.section-subtitle { font-size: 1.1em; color: #AAA; margin-bottom: 25px; }
.group-visual { width: 100%; max-width: 600px; border-radius: 10px; margin: 20px auto; display: block; }
.works-placeholder { background: rgba(0,255,215,0.1); padding: 18px; border-radius: 8px; max-width: 500px; margin: 0 auto 20px; font-size: 0.9em; }

.member-supergrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1000px; margin: 40px auto; padding: 0 10px; }
.member-box { background: var(--color-sapphire-deep); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 25px rgba(0,0,0,0.3); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; height: 100%; cursor: default; }
.member-box:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,255,215,0.2); }
.video-container { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; background: #000; overflow: hidden; border-radius: 12px 12px 0 0; }
.video-container img, .video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.member-photo { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; cursor: pointer; transition: opacity 0.3s ease; border-radius: 12px 12px 0 0; }
.member-photo:hover { opacity: 0.9; }
.clickable-name, .clickable { color: var(--color-secondary); font-weight: bold; cursor: pointer; text-decoration: underline; transition: color 0.3s; }
.clickable-name:hover, .clickable:hover { color: var(--color-primary); }
.member-info { padding: 16px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.member-info h3 { margin: 0 0 6px; font-size: 1.1em; color: var(--color-primary); }
.name-ko { font-weight: bold; }
.name-en { font-size: 0.95em; color: var(--color-secondary); margin-bottom: 8px; }
.member-info p { margin: 4px 0; font-size: 0.85em; color: #DDD; }
.profile-box { display: block !important; margin-top: 14px; padding: 11px 18px; background: #FF4040; color: white !important; font-weight: bold; font-size: 0.95em; text-align: center; border-radius: 10px; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(255,64,64,0.35); }
.profile-box:hover { background: #FF2020; transform: translateY(-3px); box-shadow: 0 6px 18px rgba(255,64,64,0.45); }
.member-box.placeholder { opacity: 0.6; cursor: default; }
.member-box.placeholder:hover { transform: none; box-shadow: 0 8px 25px rgba(0,0,0,0.3); }

@media (max-width: 1024px) { .member-supergrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .member-supergrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .member-supergrid { grid-template-columns: 1fr; } }

.youtube-btn { display: inline-flex !important; align-items: center; gap: 10px; padding: 14px 24px !important; background: var(--color-secondary); color: #000; font-weight: bold; font-size: 1em; border-radius: 8px; box-shadow: 0 8px 25px rgba(0,255,215,.3); transition: all .3s ease; text-decoration: none; margin: 8px; }
.youtube-btn:hover { background: #FF0000 !important; color: white !important; transform: translateY(-4px); box-shadow: 0 10px 30px rgba(255,0,0,0.4); }
.youtube-logo { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 4px; overflow: hidden; }
.youtube-logo svg { width: 100%; height: 100%; }

.vision-page, .stella-page, .profile-page { background: var(--color-sapphire-dark); min-height: 100vh; }
.vision-hero, .stella-hero { position: relative; height: 100vh; background: #001f40 center/cover no-repeat; }
.vision-hero .hero-overlay, .stella-hero .hero-overlay { background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.9)); }
.vision-content, .stella-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; z-index: 2; }
.vision-title, .stella-title { font-size: 4.5em; color: var(--color-primary); text-shadow: 0 0 30px rgba(0,0,0,0.8); }
.vision-subtitle, .stella-subtitle { font-size: 1.5em; color: var(--color-secondary); margin-top: 10px; }

.content-section { padding: 80px 0; background: var(--color-sapphire-deep); }
.content-section.dark { background: var(--color-sapphire-dark); }
.core-values-grid, .strategy-timeline { display: grid; gap: 30px; margin-top: 40px; }
.core-values-grid { grid-template-columns: repeat(3, 1fr); }
.strategy-timeline { grid-template-columns: repeat(3, 1fr); flex-wrap: wrap; }
.value-card, .timeline-item { background: rgba(0,255,215,0.1); padding: 30px; border-radius: 16px; text-align: center; border: 1px solid rgba(0,255,215,0.3); }
.value-card i { font-size: 2.5em; color: var(--color-secondary); margin-bottom: 15px; }
.value-card h3, .timeline-item .phase { color: var(--color-primary); margin: 10px 0; }
.timeline-item .year { font-size: 1.8em; font-weight: bold; color: var(--color-primary); }

.site-footer { text-align: center; padding: 30px; background: #000; color: #666; font-size: 0.9em; }
.back-to-home { color: var(--color-secondary); text-decoration: none; font-weight: bold; }

.profile-section { padding-top: 100px; padding-bottom: 60px; }
.profile-title { font-size: 3.2em; font-weight: 900; color: #FFD700; text-align: center; margin-bottom: 30px; text-shadow: 0 0 20px rgba(255,215,0,0.4); }
.profile-content { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; align-items: center; padding: 0 15px; }
.profile-video-container { width: 100%; max-width: 520px; padding-bottom: 56.25%; position: relative; background: #000; border-radius: 18px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.6); border: 2px solid rgba(0,255,215,0.2); }
.profile-photo, .profile-video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: opacity 0.4s ease; }
.profile-photo:hover { opacity: 0.92; }
.profile-details { width: 100%; max-width: 500px; text-align: center; }
.profile-info-box { background: rgba(0,31,64,0.7); padding: 22px; border-radius: 16px; margin-bottom: 25px; backdrop-filter: blur(8px); border: 1px solid rgba(0,255,215,0.3); box-shadow: 0 8px 25px rgba(0,0,0,0.4); }
.profile-info-box p { margin: 14px 0; font-size: 1.1em; color: #E0E0E0; line-height: 1.7; }
.profile-info-box strong { color: #00FFD7; font-weight: bold; }
.profile-songs { background: rgba(0,255,215,0.08); padding: 18px; border-radius: 14px; border: 1px dashed rgba(0,255,215,0.4); }
.profile-songs p { margin: 12px 0; font-size: 1.05em; }
.song-link { color: #FFD700; font-weight: bold; text-decoration: underline; transition: color 0.3s; }
.song-link:hover { color: #00FFD7; }
.back-btn { display: inline-block; margin-top: 30px; padding: 14px 32px; background: #00FFD7; color: #000; font-weight: bold; font-size: 1em; border-radius: 12px; text-decoration: none; box-shadow: 0 6px 20px rgba(0,255,215,0.4); transition: all 0.3s ease; }
.back-btn:hover { background: #FFD700; transform: translateY(-3px); box-shadow: 0 10px 28px rgba(255,215,0,0.4); }

@media (min-width: 768px) {
    .profile-content { flex-direction: row; align-items: flex-start; justify-content: center; text-align: left; }
    .profile-details { text-align: left; padding-left: 30px; }
    .profile-info-box, .profile-songs { text-align: left; }
}
.members-page {
    background: var(--color-sapphire-dark);
    min-height: 100vh;
    padding-top: 90px;
}
.profile-box.lang-ko,
.profile-box.lang-en {
    display: none !important;
}
body.lang-ko .profile-box.lang-ko,
body.lang-en .profile-box.lang-en {
    display: block !important;
}
/* WORKS 페이지 전용 */
.works-page {
    background: var(--color-sapphire-dark);
    min-height: 100vh;
    padding-top: 90px;
}

.works-section {
    padding: 40px 0;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 15px;
}

.work-item {
    background: var(--color-sapphire-deep);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.work-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,255,215,0.2);
}

.work-cover {
    width:  100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
    border-radius: 12px 12px 0 0;
}

.work-cover:hover {
    opacity: 0.9;
}

.work-info {
    padding: 16px;
    text-align: center;
    flex-grow: 1;
}

.work-info h3 {
    margin: 0 0 6px;
    font-size: 1.1em;
    color: var(--color-primary);
}

.work-info p {
    margin: 4px 0;
    font-size: 0.85em;
    color: #DDD;
}

.work-item.placeholder {
    opacity: 0.6;
    cursor: default;
}

.work-item.placeholder:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* 반응형 */
@media (max-width: 1024px) {
    .works-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .works-grid { grid-template-columns: 1fr; }
}
/* 유튜브 채널 보기 버튼 */
.youtube-channel-container {
    text-align: center;
    margin: 50px auto 30px;
    max-width: 1100px;
    padding: 0 15px;
}

.youtube-btn.lang-ko,
.youtube-btn.lang-en {
    display: none !important;
    align-items: center;
    gap: 10px;
    padding: 14px 24px !important;
    background: var(--color-secondary);
    color: #000;
    font-weight: bold;
    font-size: 1em;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,255,215,.3);
    transition: all .3s ease;
    text-decoration: none;
    margin: 0 auto;
    width: fit-content;
}

body.lang-ko .youtube-btn.lang-ko,
body.lang-en .youtube-btn.lang-en {
    display: inline-flex !important;
}

.youtube-btn:hover {
    background: #FF0000 !important;
    color: white !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255,0,0,0.4);
}

.youtube-logo {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
    background: #FF0000;
}

.youtube-logo svg {
    width: 70%;
    height: 70%;
}
/* 유튜브 공식 채널 보기 버튼 */
.youtube-channel-container {
    text-align: center;
    margin: 20px auto 40px;
    max-width: 500px;
    padding: 0 15px;
}

.youtube-channel-btn.lang-ko,
.youtube-channel-btn.lang-en {
    display:flex; justify-content:center;  align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: var(--color-secondary);
    color: #000 !important;
    font-weight: bold;
    font-size: 1.1em;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 255, 215, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    width: fit-content;
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
}

body.lang-ko .youtube-channel-btn.lang-ko,
body.lang-en .youtube-channel-btn.lang-en {
    display: inline-flex !important;
}

.youtube-channel-btn:hover {
    background: #FF0000 !important;
    color: white !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 0, 0, 0.4);
}

.youtube-logo {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;
    background: #FF0000;
}

.youtube-logo svg {
    width: 70%;
    height: 70%;
}
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 비율 */
    height: 0;
    background: #000;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.video-container img,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* === 유튜브 재생 박스 반응형 === */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 비율 */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
}

.video-container img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.video-container iframe.youtube-player {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
    display: none; /* 처음엔 숨김 */
}
/* 기본: 모바일 메뉴 버튼 숨김 */
.mobile-menu-toggle {
    display: none !important;
    background: none;
    border: none;
    color: #40C4B3;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* 모바일에서만 보이게 */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
    }
    .nav {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        background: rgba(10, 26, 46, 0.98);
        flex-direction: column;
        padding: 15px 20px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(64, 196, 179, 0.3);
        z-index: 999;
    }
    .nav.show {
        display: flex !important;
    }
}
/* 클릭 가능한 이름 스타일 */
.clickable-name {
    cursor: pointer;
    user-select: none;
    transition: color 0.3s;
}
.clickable-name:hover {
    color: #B2F2E8 !important;
}
.member-supergrid {
    grid-template-columns: repeat(4, 1fr); /* 4열 고정 */
}
@media (max-width: 768px) {
    .member-supergrid { grid-template-columns: 1fr; } /* 모바일 1열 */
}
.profile-content {
    display: flex;
    gap: 40px;
}

/* 모바일에서만 위아래로 */
@media (max-width: 768px) {
    .profile-content {
        flex-direction: column;
        align-items: center;
    }
    .profile-video-container,
    .profile-details {
        width: 100%;
        max-width: 400px;
    }
}
/* 프로필 페이지 전용: 사진 꽉 차게 */
.profile-video-container {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(64, 196, 179, 0.3);
    background: #000;
}

.profile-video-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* 필요시 자르기 */
    transition: opacity 0.3s;
}

.profile-video-container .youtube-player {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: none;
}
/* 모바일에서 비전 영상 다시 사각형(4:5)으로 강제 복구 */
@media (max-width: 768px) {
    .hero-video-container {
        position: relative;
        width: 90vw !important;      /* 화면 가로 90% */
        max-width: 420px !important; /* 최대 크기 제한 */
        height: 105vw !important;    /* 4:5 비율 (90vw × 1.25 = 112.5vw가 아니라 105vw로 조정) */
        max-height: 520px !important;
        margin: 0 auto;
        border-radius: 28px !important;
        overflow: hidden;
        box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    }
    .hero-video-container iframe {
        position: absolute;
        top: 50% !important;
        left: 50% !important;
        width: 100vw !important;
        height: 100vw !important;
        transform: translate(-50%, -50%) !important;
        border-radius: 28px !important;
    }
}