* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

main {
    padding: 55px 15px 75px 15px;
}

body {
    min-height: 100vh;
    background-color: #fff;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: #660099;
    height: 55px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 13px;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #F7F2FA;
    padding: 0.5rem 0;
    z-index: 50;
}

.nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    font-size: 0.75rem;
    gap: 0.25rem;
}

.nav-item img {
    transition: filter 0.3s ease;
}

.section-title {
    height: 35px;
    padding-top: 15px;
    font-size: 17px;
    color: #170222B3;
    font-weight: bold;
}

.new-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 0px 15px 0px;
    border-bottom: 1px solid #6666664D;
}

.newsong-card {
    flex: 0 0 auto;
    width: 136px;
    border-radius: 8px;
    overflow: hidden;
}

.newsong-card img {
    width: 136px;
    height: 96px;
    object-fit: cover;
}

.newsong-info {
    padding-top: 5px;
    width: 136px; /* 최대 너비 설정 */
    white-space: nowrap; /* 텍스트가 한 줄로 표시되도록 설정 */
    overflow: hidden; /* 넘치는 텍스트를 숨김 */
    text-overflow: ellipsis; /* 넘치는 텍스트를 ...으로 표시 */
}

.newsong-title,
.newsinger-name,
.event-title,
.comment-title {
    display: block; /* 블록 요소로 설정하여 개별적으로 스타일 적용 */
    width: 100%; /* 부모 요소의 너비를 따름 */
    white-space: nowrap; /* 텍스트가 한 줄로 표시되도록 설정 */
    overflow: hidden; /* 넘치는 텍스트를 숨김 */
    text-overflow: ellipsis; /* 넘치는 텍스트를 ...으로 표시 */
    font-size: 16px;
    font-weight: bold; 
}

.newsong-artist {
    display: block; /* 블록 요소로 설정하여 개별적으로 스타일 적용 */
    width: 100%; /* 부모 요소의 너비를 따름 */
    white-space: nowrap; /* 텍스트가 한 줄로 표시되도록 설정 */
    overflow: hidden; /* 넘치는 텍스트를 숨김 */
    text-overflow: ellipsis; /* 넘치는 텍스트를 ...으로 표시 */
    font-size: 13px;
    color: #808080;
    font-weight: 600;
}

.profile-item {
text-align: center;
}

.profile-item img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 5px;
}

.profile-item .placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 5px;
    background-color: #80808040;; /* 옅은 회색 바탕 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; /* 텍스트 색상 */
    font-size: 14px; /* 텍스트 크기 */
}

.event-section,
.comment-section {
    padding: 10px;
    border-bottom: 1px solid #6666664D;
}

.event-item,
.comment-item {
    padding-bottom: 10px;
}

.event-detail{
    font-size: 14px;
    font-weight: 600;
    color: #808080;
}

.comment-detail {
    display: flex;
    gap: 2px;
}

.comment-writer {
    font-size: 13px;
}

.comment-time,
.comment-from {
    font-size: 13px;
    font-weight: 600;
    color: #808080;
}

.nav-top {
    position: fixed;
    margin-top: 55px;
    display: flex;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: white;
    overflow-x: auto;
    white-space: nowrap;
    z-index: 1000; /* 다른 요소 위에 표시되도록 z-index 설정 */
}

.nav-top button {
    border: none;
    background: #F7F2FA;
    padding: 5px 15px;
    margin-right: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #636363;
    border-radius: 50px; /* 둥근 모서리를 위해 추가 */
}

.nav-top button:hover,
.nav-top button:focus {
    color: #660099; /* 호버되었거나 선택되었을 때 글자색 변경 */
}

.songslist,
.singerslist {
    margin-top: 60px;
    padding: 0 0 5px 0; /* padding-bottom 추가 */
    list-style: none;
    border-bottom: 1px solid #6666664D;
}

.song-card,
.singer-card,
.watcher-song-head,
.comment-form {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
}

.song-thumbnail {
    width: 70px;
    height: 50px;
    background: #6b0f9c;
    border-radius: 4px;
    margin-right: 10px;
}

.song-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.singer-face-image {
    width: 50px;
    height: 50px;
    background: #6b0f9c;
    border-radius: 50px;
    margin-right: 10px;
    overflow: hidden; /* 이미지가 컨테이너를 벗어나지 않도록 설정 */
}

.singer-face-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 이미지가 컨테이너의 크기에 맞게 조정되도록 설정 */
    border-radius: 50%; /* 이미지 자체에도 둥근 모서리를 적용 */
}

.song-info,
.singer-info,
.watcher-song-info {
    flex-grow: 1;
}

.song-title,
.singer-name {
    font-size: 16px;
    font-weight: bold; 
}

.song-artist {
    font-size: 13px;
    color: #808080;
    font-weight: 600;
}

.heart-btn,
.gosee-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.heart-btn img {
    width: 24px;
    height: 24px;
}

.gosee-btn img {
    width: 78px;
    height: 32px;
}

.watcher-page {
    padding: 5px 0 5px 0;
    list-style: none;
}

.watcher-song-title,
.comment-header {
    font-size: 20px;
    font-weight: bold; 
}

.watcher-song-artist {
    font-size: 16px;
    color: #808080;
    font-weight: 600;
}

.watcher-song-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    margin-bottom: 15px;
}

.watcher-song-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.user_id_avatar {
    width: 35px;
    height: 35px;
    background: #6b0f9c;
    border-radius: 50px;
    margin-right: 10px;
    overflow: hidden; /* 이미지가 컨테이너를 벗어나지 않도록 설정 */
}

.suser_id_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 이미지가 컨테이너의 크기에 맞게 조정되도록 설정 */
    border-radius: 50%; /* 이미지 자체에도 둥근 모서리를 적용 */
}

.comment-form textarea {
    width: 100%;
    height: 50px;
    border-bottom: 1px solid #80808040;
    padding: 10px;
    margin-right: 10px;
    resize: none;
}