/* 기본 리셋: 모든 요소의 마진과 패딩을 제거하고, 박스 크기 계산 방식을 변경 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

/* 1. 필수 스타일 항목 (글자크기, 글자색, 폰트, 배경색) */
body {
    font-family: 'Noto Sans KR', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* 폰트 적용 (Noto Sans KR 추가) */
    background-color: #121212; /* 배경색 적용 */
    color: #E0E0E0; /* 글자색 적용 */
    line-height: 1.6;
    font-size: 16px; /* 글자크기 적용 (기본 크기 명시) */
}

/* 2. 헤더 (배치, 배경색, 패딩) */
header {
    background-color: #000000; /* 배경색 적용 */
    color: #FFFFFF;
    padding: 20px 0; /* 패딩 적용 */
    text-align: center; /* 배치 적용 */
    width: 100%;
}

/* 3. 메뉴 링크 스타일 */
nav ul li a {
    color: #1DB954; /* 글자색 적용 */
    font-size: 1.1em; /* 글자크기 적용 */
}

/* 4. 메인 콘텐츠 영역 (배치, 마진, 패딩) */
main {
    width: 90%;
    max-width: 1200px; 
    margin: 40px auto; /* 마진 적용 (수평 중앙 정렬) */
    padding: 30px; /* 패딩 적용 */
    background-color: #1E1E1E;
    border-radius: 8px;
}

/* 5. 필수 스타일 항목 (수평-수직 중앙 정렬 예시) */
/* 기분 선택 버튼 섹션 전체를 수평 중앙 정렬 */
#mood-selection {
    text-align: center;
    padding: 40px 0;
}

/* 버튼 그룹 내부 요소를 중앙 정렬 (Flexbox를 이용한 수평/수직 중앙 정렬) */
#mood-buttons {
    display: flex;
    justify-content: center; /* 수평 중앙 정렬 */
    align-items: center; /* 수직 중앙 정렬 */
    flex-wrap: wrap;
    margin-top: 30px; /* 마진 적용 */
}

/* 6. my_playlist.html 추가 스타일 */
.song-item {
    background-color: #282828; 
    padding: 15px;
    margin: 15px 0; /* 마진 적용 */
    border-left: 5px solid #1DB954;
    display: flex;
    justify-content: space-between; /* 배치 적용 */
    align-items: center; /* 수직 중앙 정렬 */
}

.song-item h4 {
    margin-bottom: 5px;
    font-size: 1.2em; /* 글자크기 적용 */
}

.remove-btn {
    background-color: #555;
    color: #eee;
    border: none;
    padding: 8px 15px; /* 패딩 적용 */
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.remove-btn:hover {
    background-color: #FF0000; /* 삭제 버튼 색상 */
}

/* 나머지 스타일 (이미 존재하는 스타일) */
/* ... 기존의 h1, h2, audio, video, footer 등의 스타일은 그대로 유지합니다. */