/* 기본 설정 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Helvetica Neue', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* 1. 프로필 섹션 */
.profile-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(to bottom, #1e1e1e, #121212);
    position: relative; /* 언어 버튼 배치를 위해 추가 */
}

/* 언어 버튼 스타일 추가 */
.lang-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 1px solid #bb86fc;
    color: #bb86fc;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.lang-btn:hover {
    background: #bb86fc;
    color: #000;
}

.profile-img img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #bb86fc;
    margin-bottom: 20px;
}
.profile-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ffffff;
}
.bio {
    color: #b0b0b0;
    margin-bottom: 20px;
}
.social-links a {
    color: #bb86fc;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.1rem;
    transition: color 0.3s;
}
.social-links a:hover { color: #fff; }

/* 2. 음악 섹션 */
.music-section { padding: 40px 20px; }
.music-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

/* 컨트롤 (검색 및 필터) */
.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}
#searchInput {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
    background-color: #2c2c2c;
    color: #fff;
    font-size: 1rem;
}
.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.filter-btn {
    padding: 8px 16px;
    background-color: #2c2c2c;
    color: #b0b0b0;
    border: 1px solid #444;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-btn.active, .filter-btn:hover {
    background-color: #bb86fc;
    color: #000;
    border-color: #bb86fc;
}

/* 음악 카드 그리드 수정됨 */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.music-card {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.2s;
    border: 1px solid #333;
    
    /* 카드 높이 문제 해결 및 정렬 */
    height: auto; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.music-card:hover { transform: translateY(-5px); }
.music-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 5px; color: #fff; }
.music-desc { font-size: 0.9rem; color: #aaa; margin-bottom: 15px; }

/* 태그 줄바꿈 해결 */
.tags { 
    display: flex;
    flex-wrap: wrap; /* 핵심: 공간 부족시 다음 줄로 */
    gap: 5px; 
    margin-bottom: 15px; 
}

.tag {
    font-size: 0.8rem;
    background-color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    /* margin-right 삭제하고 위쪽 gap 사용 */
    color: #bb86fc;
}
audio {
    width: 100%;
    margin-top: 10px;
    height: 35px;
}

.warning-text {
    text-align: center;      /* 가운데 정렬 */
    color: #ffcc00;          /* 경고 느낌의 노란색 */
    font-size: 0.9rem;       /* 글자 크기는 약간 작게 */
    margin-bottom: 25px;     /* 아래 여백 */
    font-weight: bold;       /* 굵게 */
    padding: 0 10px;         /* 모바일에서 글자가 붙지 않게 여백 */
    line-height: 1.4;
}