:root {
    --cj-bg: #0c0a09;         /* Warm Dark Stone */
    --cj-card: #1c1917;
    --cj-hover: #292524;
    --cj-border: #44403c;
    --cj-text: #fafaf9;
    --cj-muted: #a8a29e;
    --cj-burgundy: #881337;   /* Cinema Burgundy */
    --cj-gold: #f59e0b;       /* Festival Gold */
    --cj-glow: rgba(245, 158, 11, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", sans-serif; background: var(--cj-bg); color: var(--cj-text); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; cursor: pointer; }
ul, ol { list-style: none; }

.cj-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.cj-flex-between { display: flex; justify-content: space-between; align-items: center; }

/* Header */
.cj-header { background: rgba(12, 10, 9, 0.95); padding: 16px 0; border-bottom: 2px solid var(--cj-gold); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(10px); }
.cj-brand { font-size: 1.35rem; font-weight: 900; color: #fff; letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; }
.cj-brand-icon { background: var(--cj-burgundy); color: #fff; font-size: 0.72rem; font-weight: 900; padding: 3px 8px; border-radius: 4px; letter-spacing: 1px; }
.cj-brand span { color: var(--cj-gold); font-size: 0.95rem; font-weight: 400; }
.cj-badge-live { font-family: monospace; font-size: 0.75rem; color: var(--cj-gold); display: flex; align-items: center; gap: 6px; border: 1px solid #78350f; padding: 3px 10px; border-radius: 20px; background: rgba(245, 158, 11, 0.05); }
.cj-live-dot { width: 6px; height: 6px; background: var(--cj-gold); border-radius: 50%; box-shadow: 0 0 6px var(--cj-gold); animation: cj-pulse 1.5s infinite; }
@keyframes cj-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.cj-nav { display: flex; gap: 22px; font-size: 0.92rem; font-weight: 700; color: var(--cj-muted); }
.cj-nav a:hover { color: var(--cj-gold); }

/* Hero */
.cj-hero { padding: 50px 0 40px 0; text-align: center; background: radial-gradient(circle at 50% 0%, #4c0519 0%, #0c0a09 70%); border-bottom: 1px solid var(--cj-border); }
.cj-hero-badge { display: inline-block; background: var(--cj-glow); border: 1px solid var(--cj-gold); color: #fde68a; padding: 4px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 800; margin-bottom: 16px; letter-spacing: 1px; }
.cj-hero h1 { font-size: 2.2rem; font-weight: 900; line-height: 1.3; margin-bottom: 14px; color: #fff; letter-spacing: -1px; }
.cj-hero p { font-size: 1.05rem; color: var(--cj-muted); max-width: 820px; margin: 0 auto; line-height: 1.7; }

/* 🌟 UNIFORM P2P CARD GRID (1~17위 차별 없는 완전 균등 배치) 🌟 */
.cj-section { padding: 50px 0; }
.cj-sec-title { font-size: 1.45rem; font-weight: 900; color: #fff; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.cj-sec-title::before { content: ""; display: block; width: 4px; height: 20px; background: var(--cj-gold); border-radius: 2px; }
.cj-sec-desc { font-size: 0.92rem; color: var(--cj-muted); margin-bottom: 24px; padding-left: 14px; }

.cj-p2p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 60px; }

/* 개별 카드 (다이렉트 클릭) */
.cj-p2p-card { background: var(--cj-card); border: 1px solid var(--cj-border); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; position: relative; }
.cj-p2p-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(245, 158, 11, 0.15); border-color: var(--cj-gold); background: var(--cj-hover); }

.cj-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; border-bottom: 1px solid var(--cj-border); padding-bottom: 12px; }
.cj-card-rank { font-family: monospace; font-size: 0.9rem; font-weight: 900; color: #fde68a; background: var(--cj-burgundy); padding: 3px 8px; border-radius: 4px; }
.cj-card-score { font-size: 0.82rem; font-weight: 800; color: var(--cj-gold); }

/* 🌟 [요청 반영] 각 사이트 로고 배너 전용 컨테이너 박스 🌟 */
.cj-card-logo-box { height: 44px; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; background: #ffffff; padding: 6px 12px; border-radius: 6px; width: fit-content; border: 1px solid #57534e; }
.cj-card-logo-box img { max-height: 100%; max-width: 125px; object-fit: contain; }

.cj-card-name { font-size: 1.25rem; font-weight: 900; color: #fff; margin-bottom: 6px; }
.cj-card-desc { font-size: 0.88rem; color: var(--cj-muted); line-height: 1.6; margin-bottom: 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.cj-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.cj-card-tags span { font-size: 0.75rem; color: #d6d3d1; background: #292524; padding: 3px 8px; border-radius: 4px; font-weight: 600; }

.cj-card-benefit { font-size: 1rem; font-weight: 900; color: var(--cj-gold); margin-bottom: 14px; display: block; border-top: 1px dashed var(--cj-border); padding-top: 12px; }
.cj-btn-enter { background: linear-gradient(135deg, var(--cj-burgundy) 0%, #9f1239 100%); color: #fff; font-size: 0.9rem; font-weight: 900; padding: 11px; border-radius: 6px; text-align: center; width: 100%; transition: opacity 0.2s; border: 1px solid #be123c; }
.cj-p2p-card:hover .cj-btn-enter { opacity: 0.9; }

/* ==============================================================
   🌟 랭크 밑 신규 UI: [1. 매트릭스 표] + [2. 스플릿 포럼] + [3. FAQ] 🌟
   ============================================================== */

/* 1. 영사 규격 매트릭스 표 */
.cj-matrix-wrapper { background: var(--cj-card); border: 1px solid var(--cj-border); border-radius: 12px; overflow-x: auto; margin-bottom: 50px; }
.cj-matrix-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 600px; }
.cj-matrix-table th { background: #292524; color: #e7e5e4; font-weight: 800; padding: 14px 18px; border-bottom: 1px solid var(--cj-border); text-align: left; }
.cj-matrix-table td { padding: 14px 18px; border-bottom: 1px solid #292524; color: var(--cj-muted); }
.cj-matrix-table tr:last-child td { border-bottom: none; }
.cj-tag-ok { color: #f59e0b; font-weight: 800; background: rgba(245, 158, 11, 0.1); padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; }

/* 2. 좌우 스플릿 세미나 포럼 보드 (6:4 Split) */
.cj-split-forum { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; margin-bottom: 60px; }

/* 좌측: 라인형 세미나 피드 목록 */
.cj-forum-left { background: var(--cj-card); border: 1px solid var(--cj-border); border-radius: 12px; padding: 24px; }
.cj-forum-head { font-size: 1.15rem; font-weight: 900; color: #fff; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--cj-gold); display: flex; justify-content: space-between; }
.cj-seminar-list { display: flex; flex-direction: column; }
.cj-seminar-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px; border-bottom: 1px dashed var(--cj-border); transition: background 0.2s, padding-left 0.2s; }
.cj-seminar-row:hover { background: var(--cj-hover); padding-left: 16px; }
.cj-seminar-row:last-child { border-bottom: none; }
.cj-seminar-title { font-size: 0.95rem; font-weight: 700; color: #fafaf9; flex: 1; padding-right: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 🌟 한글 카테고리 배지 보장 🌟 */
.cj-cat-badge { font-size: 0.75rem; font-weight: 800; color: #fde68a; background: var(--cj-burgundy); padding: 3px 8px; border-radius: 4px; margin-right: 12px; flex-shrink: 0; }
.cj-seminar-date { font-family: monospace; font-size: 0.8rem; color: #78716c; flex-shrink: 0; }

/* 우측: 스튜디오 브리프 메모 */
.cj-forum-right { background: #1c1917; color: #fff; border: 1px solid #78350f; border-radius: 12px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; }
.cj-brief-title { font-size: 1.25rem; font-weight: 900; margin-bottom: 14px; letter-spacing: -0.5px; color: var(--cj-gold); }
.cj-brief-desc { font-size: 0.95rem; line-height: 1.8; color: #e7e5e4; margin-bottom: 20px; }
.cj-brief-ul li { font-size: 0.9rem; color: #fef08a; margin-bottom: 8px; line-height: 1.6; }
.cj-brief-ul li::before { content: "✔ "; color: var(--cj-gold); font-weight: 900; }
.cj-brief-stamp { font-family: monospace; font-size: 0.8rem; font-weight: bold; color: var(--cj-gold); border: 1px dashed var(--cj-gold); padding: 8px; text-align: center; border-radius: 4px; margin-top: auto; }

/* 3. 자주 묻는 질문(FAQ) 블록 */
.cj-faq-box { background: var(--cj-card); border: 1px solid var(--cj-border); border-radius: 12px; padding: 35px; margin-bottom: 60px; }
.cj-faq-title { font-size: 1.3rem; font-weight: 900; margin-bottom: 20px; color: #fff; }
.cj-faq-item { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--cj-border); }
.cj-faq-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.cj-faq-q { font-size: 1.02rem; font-weight: 800; color: var(--cj-gold); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.cj-faq-a { font-size: 0.92rem; color: var(--cj-muted); line-height: 1.7; padding-left: 24px; }

/* Footer */
.cj-footer { border-top: 1px solid var(--cj-border); background: #0c0a09; color: var(--cj-muted); padding: 55px 0 30px 0; }
.cj-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 35px; }
.cj-footer-brand p { font-size: 0.88rem; line-height: 1.6; max-width: 440px; margin-top: 8px; }
.cj-col-title { font-size: 0.82rem; font-weight: 800; color: #fff; letter-spacing: 1px; margin-bottom: 14px; }
.cj-footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 0.88rem; }
.cj-footer-col a:hover { color: var(--cj-gold); }
.cj-status-badge { display: inline-block; font-family: monospace; font-size: 0.75rem; color: #f59e0b; background: rgba(245, 158, 11, 0.1); padding: 4px 8px; border-radius: 4px; width: fit-content; margin-top: 6px; }

.cj-legal-box { border-top: 1px solid #292524; border-bottom: 1px solid #292524; padding: 18px 0; margin-bottom: 25px; }
.cj-legal-box p { font-size: 0.82rem; color: #78716c; line-height: 1.7; }
.cj-footer-bottom { display: flex; justify-content: space-between; font-size: 0.8rem; color: #57534e; }

/* Responsive */
@media (max-width: 1024px) {
    .cj-p2p-grid { grid-template-columns: repeat(2, 1fr); }
    .cj-split-forum { grid-template-columns: 1fr; }
    .cj-footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* 📱 Mobile Extreme Optimization (접속 즉시 노출용) */
@media (max-width: 768px) {
    .cj-nav, .cj-badge-live { display: none; }
    .cj-hero { padding: 30px 15px 20px 15px; }
    .cj-hero h1 { font-size: 1.55rem; margin-bottom: 10px; line-height: 1.35; }
    .cj-hero p { font-size: 0.88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    
    .cj-section { padding: 25px 0; }
    .cj-sec-title { font-size: 1.3rem; margin-bottom: 4px; }
    .cj-sec-desc { display: none; }
    
    /* 모바일 1열 카드 압축 */
    .cj-p2p-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 40px; }
    .cj-p2p-card { padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
    .cj-card-top { grid-column: 1 / -1; margin-bottom: 0; padding-bottom: 6px; }
    .cj-card-logo-box { margin-bottom: 0; height: 32px; }
    .cj-card-name { font-size: 1.1rem; }
    .cj-card-desc { display: none; }
    .cj-card-tags { display: none; }
    .cj-card-benefit { grid-column: 1 / -1; margin-bottom: 0; padding-top: 6px; font-size: 0.92rem; }
    .cj-btn-enter { grid-column: 1 / -1; padding: 9px; font-size: 0.88rem; }

    .cj-forum-left { padding: 18px; }
    .cj-seminar-date { display: none; }
    .cj-faq-box { padding: 20px; }
    .cj-footer-bottom { flex-direction: column; gap: 6px; }
}