 :root {
            /* 기존 트위치 테마색을 깊은 바다 테마색으로 변경 */
            --bg-color: #010306;          /* 깊은 바다 블랙 배경 */
            --card-bg: #030812;            /* 미드나잇 블루 카드 배경 */
            --accent: #003366;          /* 메인 감청색 (링크 테두리 등) */
            --accent-bright: #3385ff;    /* 강조 포인트 블루 (제목, 텍스트) */
            --accent-glow: rgba(0, 51, 102, 0.7);
            --text-main: #f0faff;         /* 아이스 화이트 메인 텍스트 */
            --text-sub: #5c7285;          /* 차분한 블루 그레이 서브 텍스트 */
            --border: #0a1425;            /* 어두운 네이비 테두리 */
        }

        body { 
            background-color: var(--bg-color); 
            /* 타이머와 동일한 배경 그라데이션 적용 */
            background-image: radial-gradient(circle at center, #051020 0%, #02050a 100%);
            color: var(--text-main); 
            font-family: 'Noto Sans KR', sans-serif; 
            margin: 0; padding: 10px;
            display: flex; justify-content: center; align-items: center; 
            min-height: 100vh; box-sizing: border-box;
            overflow: hidden;
        }

        .wrapper { width: 100%; max-width: 1100px; display: flex; flex-direction: column; gap: 15px; padding: 10px 0; }

        .card { 
            background: var(--card-bg); 
            border-radius: 12px; padding: 20px; 
            border: 1px solid var(--border); 
            display: flex; position: relative;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        .profile-box { align-items: center; gap: 20px; background: linear-gradient(145deg, #051020, #02050a); }
        
        .profile-img { 
            width: 90px; height: 90px; border-radius: 50%; background: #0a1a30; 
            flex-shrink: 0; 
            border: 3px solid var(--accent-bright); /* 보라색 테두리를 블루로 변경 */
            box-shadow: 0 0 15px var(--accent-glow);
            background-size: cover; background-position: center;
            cursor: default; 
        }

        .profile-info { flex-grow: 1; min-width: 0; }
        .profile-info h1 { margin: 0 0 2px; font-size: 22px; font-weight: 700; color: var(--text-main); }
        .profile-info p { 
            color: var(--text-sub); margin: 0 0 8px; font-size: 13px; 
            max-width: 600px; line-height: 1.4;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }

        .link-list { display: flex; gap: 8px; flex-wrap: wrap; }
        .link-btn { 
            padding: 5px 12px; background: #0a1a30; border-radius: 6px; 
            color: var(--text-main); text-decoration: none; font-size: 11px; 
            border: 1px solid var(--accent); transition: 0.3s; 
        }
        .link-btn:hover { background: var(--accent-bright); border-color: var(--accent-bright); color: #fff; } /* 호버 시 블루로 변경 */

        .live-status-inline {
            margin-left: auto; text-align: center; padding: 0 25px; 
            border-left: 1px solid var(--border); /* 보라색 실선을 블루 실선으로 변경 */
            min-width: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center;
        }

        .badge { display: inline-block; padding: 4px 10px; border-radius: 5px; font-size: 10px; font-weight: bold; margin-bottom: 5px; }
        .offline { background: #1a2638; color: var(--text-sub); } /* 오프라인 배지 어둡게 조정 */
        #stream-title-inline { font-size: 16px; font-weight: bold; margin-bottom: 2px; color: var(--accent-bright); } /* 방송 중일 때 블루로 강조 */
        #last-stream-time { font-size: 11px; color: var(--text-sub); }

        .bottom-section { 
            display: grid; 
            grid-template-columns: 1fr 1fr 1fr; 
            gap: 15px; 
            align-items: stretch;
        }
        .bottom-section .card { 
            flex-direction: column; padding: 15px; height: auto; box-sizing: border-box; min-width: 0;
        }

        h2 { font-size: 13px; margin-top: 0; color: var(--accent-bright); border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; } /* 제목을 블루로 강조 */

        .item-row { 
            padding: 8px; 
            border-bottom: 1px solid var(--border); /* 보라색 하단선을 블루로 변경 */
            font-size: 12px; 
            border-radius: 6px; transition: 0.2s; cursor: pointer;
            min-height: 65px; display: flex; flex-direction: column; justify-content: center; box-sizing: border-box;
        }
        .item-row:hover { 
        background: rgba(255, 255, 255, 0.03); /* 아주 살짝 밝아지는 느낌 */
        }
        .item-date { font-size: 10px; color: var(--text-sub); margin-bottom: 2px; }
        
        .vod-row { flex-direction: row !important; align-items: center; gap: 10px; }
        .vod-thumb { 
            width: 70px; height: 40px; background: #0a1a30; border-radius: 4px; 
            flex-shrink: 0; background-size: cover; background-position: center; 
            border: 1px solid var(--border); /* 썸네일 테두리 추가 */
        }

        .schedule-row { flex-direction: row !important; justify-content: space-between; cursor: default; }
        .day { font-weight: bold; color: var(--text-sub); }

        .today-highlight { 
            background: rgba(51, 133, 255, 0.08) !important; /* 오늘 일정 하이라이트를 보라색에서 블루 틴트로 변경 */
            border: 1px solid var(--accent-bright) !important; 
            transform: scale(1.01); 
            box-shadow: 0 0 10px rgba(51, 133, 255, 0.15);
        }

        .today-tag { background: var(--accent-bright); color: #fff; border-radius: 3px; margin-left: 4px; } /* 오늘 태그 블루로 변경 */

        .ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

        @media (max-width: 900px) {
            body { overflow: auto; }
            .profile-box { flex-direction: column; padding-bottom: 20px; }
            .live-status-inline { margin-left: 0; border-left: none; border-top: 1px solid var(--border); padding: 15px 0; width: 100%; }
            .bottom-section { grid-template-columns: 1fr; }
            .profile-info { 
        width: 100%; /* 부모 너비를 꽉 채워야 auto 마진이 작동합니다 */
        display: flex;
        flex-direction: column;
        align-items: center; /* 자식 요소(h1, p)를 가로축 중앙으로 배치 */
    }
            .profile-info h1 { 
        margin: 0 0 5px; /* 닉네임 중앙 정렬 확인 */
    }
           .profile-info p { 
        max-width: 340px;    
        margin: 0 auto 8px;    /* 가로 중앙 정렬 */
        
        line-height: 1.5;
        white-space: normal;   /* 중요: nowrap 제거 */
        display: -webkit-box;
        -webkit-line-clamp: 2; 
        -webkit-box-orient: vertical;
        overflow: hidden; 
        text-overflow: ellipsis;
        
        text-align: center;    /* 모바일에서는 텍스트 자체도 중앙 정렬 */
    }
        }
