/* ==========================================================
   STYLE CREW 공통 스타일
   ========================================================== */

:root {
    --bg: #08090c;
    --bg-2: #0f1115;
    --bg-3: #161920;
    --card: #12151b;
    --line: rgba(255, 255, 255, 0.07);
    --line-2: rgba(255, 255, 255, 0.13);
    --text: #f5f6f8;
    --muted: #a3a8b3;
    --dim: #6b7280;
    --pink: #ff4fa3;
    --cyan: #2de2e6;
    --grad: linear-gradient(100deg, var(--cyan) 0%, #8b7bff 50%, var(--pink) 100%);
    --radius: 18px;
    --header-h: 72px;
    --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    --display: 'Saira', 'Pretendard Variable', Pretendard, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    letter-spacing: -0.01em;
    word-break: keep-all;
    overflow-x: hidden;
    padding-top: var(--header-h);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 은은한 배경 광원 */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(40% 35% at 90% 0%, rgba(255, 79, 163, 0.10), transparent 70%),
        radial-gradient(40% 35% at 0% 10%, rgba(45, 226, 230, 0.08), transparent 70%);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------------- 헤더 ---------------- */
header.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 1000;
    background: rgba(8, 9, 12, 0.72);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
}
header.site-header::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: var(--grad);
    opacity: .35;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo-img { height: 34px; width: auto; }

nav#navMenu ul { display: flex; align-items: center; gap: 6px; }
nav#navMenu ul li a {
    display: block;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    color: var(--muted);
    transition: color .2s, background .2s;
}
nav#navMenu ul li a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
nav#navMenu ul li a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.08); }
nav#navMenu ul li a.nav-cta {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), #c13cff);
    box-shadow: 0 6px 20px -8px rgba(255, 79, 163, .8);
    margin-left: 6px;
}
nav#navMenu ul li a.nav-cta:hover { filter: brightness(1.1); }

/* 모바일 메뉴 */
.menu-toggle {
    display: none;
    width: 44px; height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    align-items: center; justify-content: center;
    flex-direction: column; gap: 5px;
    cursor: pointer;
    z-index: 1002;
    background: transparent;
}
.menu-toggle .bar { height: 2px; width: 20px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 999; }
.menu-overlay.active { display: block; }

@media (max-width: 860px) {
    .menu-toggle { display: inline-flex; }
    nav#navMenu {
        position: fixed;
        top: 0; right: -290px;
        width: 280px; height: 100vh;
        background: var(--bg-2);
        border-left: 1px solid var(--line);
        padding: calc(var(--header-h) + 16px) 16px 24px;
        transition: right .3s ease;
        z-index: 1001;
    }
    nav#navMenu.active { right: 0; }
    nav#navMenu ul { flex-direction: column; align-items: stretch; gap: 4px; }
    nav#navMenu ul li a { font-size: 17px; padding: 14px 18px; border-radius: 12px; }
    nav#navMenu ul li a.nav-cta { margin: 12px 0 0; text-align: center; }
}

/* ---------------- 공통 레이아웃 ---------------- */
main { flex: 1; padding-bottom: 6rem; }
section { margin-bottom: 4.5rem; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 1.4rem; }
.section-title {
    font-family: var(--display);
    font-style: italic;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.4rem;
}
.section-head .section-title { margin-bottom: 0; }
.section-title .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); flex-shrink: 0; }
.section-title .dot.live { animation: live-pulse 1.4s ease-in-out infinite; }
.section-title small { font-family: var(--font); font-style: normal; font-size: 0.85rem; font-weight: 600; color: var(--dim); letter-spacing: 0; }
.section-more { font-size: 0.9rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.section-more:hover { color: var(--text); }

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

/* 서브 페이지 상단 */
.subpage-header {
    position: relative;
    padding: 4.5rem 0 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
}
.subpage-eyebrow {
    display: inline-block;
    font-family: var(--display);
    font-style: italic;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.6rem;
}
.subpage-title { font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 800; color: var(--text); letter-spacing: -0.03em; line-height: 1.2; }
.subpage-desc { color: var(--muted); margin-top: 12px; font-size: 1rem; }

/* 로딩/빈 상태 공통 */
.loading-msg, .empty-msg {
    text-align: center;
    padding: 4.5rem 1rem;
    color: var(--dim);
    background: var(--card);
    border: 1px dashed var(--line-2);
    border-radius: var(--radius);
}
.loading-msg::before {
    content: '';
    display: block;
    width: 28px; height: 28px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 3px solid var(--line-2);
    border-top-color: var(--pink);
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 공통 탭 버튼 */
.tab-menu { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tab-btn {
    background: var(--card);
    color: var(--muted);
    border: 1px solid var(--line-2);
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.tab-btn:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.tab-btn.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--pink), #c13cff);
    box-shadow: 0 6px 20px -8px rgba(255, 79, 163, .9);
}

/* ---------------- 메인: 배너 ---------------- */
.main-banner { padding-top: 28px; margin-bottom: 2.5rem; }
.main-banner .banner-frame {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--line-2);
    box-shadow: 0 30px 80px -30px rgba(255, 79, 163, .35), 0 20px 60px -30px rgba(45, 226, 230, .3);
}
.main-banner img { width: 100%; height: auto; display: block; object-fit: cover; aspect-ratio: 3904 / 1088; }

/* ---------------- 메인: 크루 히어로 ---------------- */
.crew-hero { position: relative; padding: 48px 0 8px; margin-bottom: 3rem; }
.crew-hero::before {
    content: '';
    position: absolute;
    left: 50%; top: 30%;
    width: min(1100px, 100vw); height: 70%;
    transform: translateX(-50%) skewX(-12deg);
    background: linear-gradient(180deg, #161a22, #0c0e13);
    border: 1px solid var(--line);
    border-radius: 18px;
    z-index: -1;
}
.crew-hero-head { text-align: center; margin-bottom: 36px; }
.crew-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--display); font-style: italic; font-weight: 700;
    font-size: .85rem; letter-spacing: .35em; color: var(--muted);
}
.crew-hero-eyebrow::before, .crew-hero-eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--grad); }
.crew-hero-title {
    font-family: var(--display); font-style: italic; font-weight: 800;
    font-size: clamp(3rem, 9vw, 6.5rem);
    line-height: 1; letter-spacing: .01em;
    margin-top: 10px;
    background: linear-gradient(180deg, #ffffff 40%, #b9c0cc);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 8px 30px rgba(255, 79, 163, .25));
}

.crew-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}
.crew-member {
    --tone: var(--pink);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    animation: crew-in .7s cubic-bezier(.2, .7, .2, 1) both;
    animation-delay: calc(var(--i) * .12s);
}
.crew-member.tone-cyan   { --tone: var(--cyan); }
.crew-member.tone-violet { --tone: #8b7bff; }
.crew-member.tone-pink   { --tone: var(--pink); }
@keyframes crew-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.crew-card {
    transform: skewX(-6deg);
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(160deg, var(--tone), rgba(255, 255, 255, .06) 45%, var(--tone));
    box-shadow: 0 24px 60px -24px var(--tone);
    transition: transform .35s ease, box-shadow .35s ease;
}
.crew-card:hover { transform: skewX(-6deg) translateY(-8px); box-shadow: 0 34px 70px -24px var(--tone); }

/* 개인 링크 버튼 */
.crew-links { display: flex; justify-content: center; gap: 10px; }
.crew-link {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--card);
    border: 1px solid var(--line-2);
    color: var(--muted);
    transition: transform .2s, color .2s, background .2s, border-color .2s, box-shadow .2s;
}
.crew-link svg { width: 19px; height: 19px; }
a.crew-link:hover { transform: translateY(-3px); color: #fff; }
a.crew-link.is-kakao:hover     { background: #fee500; border-color: #fee500; color: #191919; box-shadow: 0 8px 20px -8px rgba(254, 229, 0, .7); }
a.crew-link.is-youtube:hover   { background: #ff0000; border-color: #ff0000; box-shadow: 0 8px 20px -8px rgba(255, 0, 0, .7); }
.crew-link.is-empty { opacity: .3; cursor: default; }

.crew-card-inner {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #d9dbe0;
}
.crew-card-inner img {
    width: 118%; max-width: none; height: 100%;
    margin-left: -9%;
    object-fit: cover; object-position: center 18%;
    transform: skewX(6deg);
    transition: transform .6s ease;
}
.crew-card:hover .crew-card-inner img { transform: skewX(6deg) scale(1.04); }
.crew-card-inner::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(8, 9, 12, .85) 100%);
    pointer-events: none;
}
.crew-card-label {
    position: absolute;
    left: 0; right: 0; bottom: 18px;
    z-index: 1;
    text-align: center;
    transform: skewX(6deg);
}
.crew-card-en {
    display: block;
    font-family: var(--display); font-style: italic; font-weight: 700;
    font-size: .75rem; letter-spacing: .3em;
    color: var(--tone);
    text-shadow: 0 0 12px var(--tone);
}
.crew-card-name {
    display: block;
    font-size: clamp(1.6rem, 3.6vw, 2.6rem);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 4px 16px rgba(0, 0, 0, .7);
}

@media (max-width: 640px) {
    .crew-hero { padding-top: 32px; }
    .crew-hero-head { margin-bottom: 24px; }
    .crew-cards { gap: 10px; padding: 0 6px; }
    .crew-card { padding: 1.5px; border-radius: 12px; }
    .crew-card-inner { border-radius: 10px; }
    .crew-card-label { bottom: 10px; }
    .crew-card-en { font-size: .55rem; letter-spacing: .15em; }
    .crew-member { gap: 10px; }
    .crew-links { gap: 5px; }
    .crew-link { width: 30px; height: 30px; }
    .crew-link svg { width: 14px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .crew-member { animation: none; }
}

/* 메인: 바로가기 */
.quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 4.5rem; }
.quick-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    transition: transform .2s, border-color .2s, background .2s;
    overflow: hidden;
}
.quick-link:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--bg-3); }
.quick-link .ql-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, .05);
    flex-shrink: 0;
}
.quick-link strong { display: block; font-size: 1rem; font-weight: 700; }
.quick-link span.ql-desc { display: block; font-size: 0.8rem; color: var(--dim); margin-top: 1px; }
.quick-link.is-accent { background: linear-gradient(135deg, rgba(255, 79, 163, .18), rgba(193, 60, 255, .12)); border-color: rgba(255, 79, 163, .35); }

@media (max-width: 860px) {
    .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 메인: 크루 채널 */
.member-icons {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 6px 2px 1rem;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}
.member-icons::-webkit-scrollbar { height: 6px; }
.member-icons::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
.member-item { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; min-width: 96px; cursor: pointer; transition: transform .2s; }
.member-item:hover { transform: translateY(-4px); }
.icon-box {
    width: 84px; height: 84px;
    border-radius: 50%;
    background-color: var(--bg-3);
    background-size: cover;
    background-position: center;
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--pink), 0 0 0 4px rgba(45, 226, 230, .5), 0 10px 30px -10px rgba(255, 79, 163, .7);
}
.member-name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 96px; text-align: center; color: var(--muted); }
.member-item:hover .member-name { color: var(--text); }

/* 메인: 숏츠 */
.shorts-slider {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}
.shorts-slider::-webkit-scrollbar { height: 6px; }
.shorts-slider::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
.shorts-card {
    flex: 0 0 200px;
    aspect-ratio: 9 / 16;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background-color: var(--bg-3);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--line);
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform .25s, box-shadow .25s;
}
.shorts-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -20px rgba(255, 79, 163, .6); }
.shorts-card::before {
    content: '▶';
    position: absolute;
    top: 12px; right: 12px;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    opacity: 0;
    transition: opacity .2s;
}
.shorts-card:hover::before { opacity: 1; }
.shorts-title {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 40px 14px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .92));
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 메인: 다시보기 */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem 1.25rem; }
.video-card { cursor: pointer; display: block; }
.thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    position: relative;
    background-color: var(--bg-3);
    background-size: cover;
    background-position: center;
    margin-bottom: 0.9rem;
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}
.thumbnail::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .45));
}
.video-card:hover .thumbnail { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(45, 226, 230, .45); }
.video-info { display: flex; gap: 1rem; }
.video-details h3 { font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 0.3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-details p { font-size: 0.85rem; color: var(--dim); }

/* 로딩 스켈레톤 */
.skeleton { background: linear-gradient(90deg, var(--card) 0%, var(--bg-3) 50%, var(--card) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 14px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skeleton.sk-short { flex: 0 0 200px; aspect-ratio: 9 / 16; border-radius: 16px; }
.skeleton.sk-avatar { width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0; }
.skeleton.sk-video { aspect-ratio: 16 / 9; }

/* ---------------- 푸터 ---------------- */
footer.site-footer {
    background: #050608;
    border-top: 1px solid var(--line);
    padding: 3rem 0 2.5rem;
    color: var(--dim);
    font-size: 0.85rem;
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner img { height: 30px; width: auto; opacity: .85; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: var(--text); }
.footer-copy { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }

@media (max-width: 640px) {
    .section-title { font-size: 1.4rem; }
    .shorts-card, .skeleton.sk-short { flex-basis: 160px; }
    .video-grid { grid-template-columns: 1fr; }
    .subpage-header { padding: 3rem 0 1.5rem; margin-bottom: 1.5rem; }
    .main-banner { padding-top: 16px; }
    .main-banner .banner-frame { border-radius: 14px; }
}
