/* ===== 전역 스타일 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 다크모드 전환 애니메이션 - GPU 가속 및 성능 최적화 */
body, html {
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.header {
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    will-change: background-color;
}

body, html {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e293b;
}

body.dark-mode, html.dark-mode {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: #e2e8f0;
}

/* ===== 헤더 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    padding: 20px 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1001;
}

.dark-mode .header {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header .d-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-toggle {
    font-size: 24px;
    cursor: pointer;
    padding: 12px;
    border-radius: 14px;
    transition: all 0.3s ease;
    color: #64748b;
    background: transparent;
}

.menu-toggle:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    transform: scale(1.05);
}

.dark-mode .menu-toggle {
    color: #cbd5e1;
}

.dark-mode .menu-toggle:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

/* ===== 검색 영역 ===== */
.search-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

#searchInput {
    width: 0;
    opacity: 0;
    height: 44px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    border: 2px solid transparent;
    padding: 0 16px;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    font-size: 15px;
    color: #1e293b;
}

#searchInput.active {
    width: 280px;
    opacity: 1;
    border-color: #e2e8f0;
}

#searchInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: #fff;
}

.dark-mode #searchInput {
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
}

.dark-mode #searchInput.active {
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode #searchInput:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
    background: rgba(30, 41, 59, 1);
}

.search-icon {
    width: 46px;
    height: 46px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 20px;
    transition: all 0.3s ease;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-icon:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
}

.dark-mode .search-icon {
    color: #cbd5e1;
}

.dark-mode .search-icon:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

#darkModeToggle {
    width: 46px;
    height: 46px;
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    border: none;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

#darkModeToggle:hover {
    background: rgba(99, 102, 241, 0.12);
    transform: scale(1.05);
}

.dark-mode #darkModeToggle {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.dark-mode #darkModeToggle:hover {
    background: rgba(251, 191, 36, 0.25);
}

/* ===== 통계 정보 ===== */
.song-count-info {
    font-size: 14px;
    color: #64748b;
    margin-top: 8px;
}

.dark-mode .song-count-info {
    color: #cbd5e1;
}

.song-count-info i {
    color: #667eea;
}

.dark-mode .song-count-info i {
    color: #a78bfa;
}

#totalSongCount {
    color: #667eea;
    font-weight: 600;
}

.dark-mode #totalSongCount {
    color: #a78bfa;
}

#displayedSongCountInfo {
    color: #8b5cf6;
}

.dark-mode #displayedSongCountInfo {
    color: #c4b5fd;
}

/* ===== 사이드 메뉴 ===== */
#sideMenu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: #ffffff;
    backdrop-filter: blur(30px);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 120px;
    padding-bottom: 100px;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.08);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dark-mode #sideMenu {
    background: rgba(15, 23, 42, 0.98);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.7);
}

#sideMenu.active {
    left: 0;
}

#sideMenu ul {
    list-style: none;
    padding: 0 16px;
    margin: 0;
    flex-grow: 1;
}

#sideMenu ul li {
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 14px;
    margin: 6px 12px;
    color: #475569;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 14px;
}

#sideMenu ul li:hover {
    background: rgba(99, 102, 241, 0.08);
    transform: translateX(6px);
    color: #6366f1;
}

.dark-mode #sideMenu ul li {
    color: #cbd5e1;
}

.dark-mode #sideMenu ul li:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(168, 85, 247, 0.15));
    color: #a78bfa;
}

/* 계정 링크 */
.account-links {
    padding: 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.04));
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dark-mode .account-links {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.04));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-account-btn {
    display: block;
    padding: 14px 18px;
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    text-decoration: none;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.sidebar-account-btn:hover {
    background: rgba(99, 102, 241, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.dark-mode .sidebar-account-btn {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(168, 85, 247, 0.15));
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.dark-mode .sidebar-account-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.2));
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.logged-in-user {
    display: block;
    padding: 12px 16px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
}

.dark-mode .logged-in-user {
    color: #94a3b8;
    background: rgba(139, 92, 246, 0.1);
}

/* ===== 콘텐츠 영역 ===== */
#playlistContainer {
    max-width: 850px;
    margin: 0 auto;
    padding: 24px;
}

.content {
    margin-top: 10px;
    overflow-y: auto;
    height: calc(100vh - 70px);
    padding-top: 110px;
    padding-bottom: 110px;
}

/* 스크롤바 스타일 */
.content::-webkit-scrollbar {
    width: 8px;
}

.content::-webkit-scrollbar-track {
    background: transparent;
}

.content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 4px;
}

.content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.dark-mode .content::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
}

.dark-mode .content::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

/* ===== 노래 아이템 ===== */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    padding: 16px;
    margin-bottom: 16px;
}

.song-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    background: #ffffff;
}

.song-item.current-song {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.dark-mode .song-item {
    background: rgba(30, 41, 59, 0.9);
    color: #e2e8f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dark-mode .song-item:hover {
    background: rgba(51, 65, 85, 1);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

.dark-mode .song-item.current-song {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.2));
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

/* 찜 버튼 */
.favorite-btn {
    color: #94a3b8;
    background: none;
    border: none;
    outline: none;
    margin-right: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 22px;
    padding: 8px;
    border-radius: 10px;
}

.favorite-btn:hover {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    transform: scale(1.05);
}

.favorite-btn.active {
    color: #fbbf24;
}

.favorite-btn.active:hover {
    transform: scale(1.1);
}

.dark-mode .favorite-btn {
    color: #f1f5f9;
}

.dark-mode .favorite-btn:hover {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.dark-mode .favorite-btn.active {
    color: #fbbf24;
}

/* 썸네일 */
.song-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 뱃지 */
.badge {
    background: #6366f1;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 10px;
}

.dark-mode .badge {
    background: #8b5cf6;
    color: #ffffff;
}

/* ===== 오디오 플레이어 ===== */
#audioPlayerContainer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.dark-mode #audioPlayerContainer {
    background: rgba(15, 23, 42, 0.98);
    color: #e2e8f0;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#audioInfo {
    flex: 0 0 150px;
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

#coverImage {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#songTitle {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    min-width: 0;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

#songTitle:hover {
    overflow: visible;
}

#songTitle span {
    display: inline-block;
    animation: scroll-text 10s linear infinite;
}

@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(0);
    }
    80% {
        transform: translateX(calc(-100% + 120px));
    }
    100% {
        transform: translateX(calc(-100% + 120px));
    }
}

/* 제목이 짧으면 애니메이션 중지 */
#songTitle.short-title span {
    animation: none;
}

.dark-mode #songTitle {
    color: #e2e8f0;
}

#audioPlayer {
    flex: 1;
    max-width: 600px;
    margin: 0 8px;
}

/* 오디오 플레이어 메뉴 버튼(...) 완전히 숨기기 */
#audioPlayer::-webkit-media-controls-panel {
    /* 점 3개 메뉴 제거 */
}

#audioPlayer::-webkit-media-controls-overflow-button {
    display: none !important;
}

/* Firefox */
#audioPlayer::-moz-media-controls-overflow-button {
    display: none !important;
}

/* ===== 풀스크린 플레이어 ===== */
#fullscreenPlayer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
    z-index: 2000;
    padding: 0;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
    
    /* CSS 변수로 텍스트 색상 제어 */
    --text-color: #ffffff;
    --text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .fullscreen-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 40px 20px;
    position: relative;
}

#fullscreenCover {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.fullscreen-tabs {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.fullscreen-tabs .lyrics-tab-btn {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fullscreen-tabs .lyrics-tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6) !important;
}

/* 가사 컨테이너 스크롤바 스타일 */
#lyricsContainer::-webkit-scrollbar {
    width: 6px;
}

#lyricsContainer::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#lyricsContainer::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

#lyricsContainer::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
  
  .song-details {
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
    text-align: left;
    margin-bottom: 20px;
  }

.song-details h2 {
    font-size: 24px;
    font-weight: 700;
    color: white !important;
    -webkit-text-stroke: 1px black !important;
    text-stroke: 1px black !important;
    paint-order: stroke fill !important;
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-details p {
    font-size: 16px;
    color: white !important;
    -webkit-text-stroke: 0.8px black !important;
    text-stroke: 0.8px black !important;
    paint-order: stroke fill !important;
    margin: 0;
}

.time-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
    margin-bottom: 40px;
}

.time-bar span {
    font-size: 13px;
    color: white !important;
    -webkit-text-stroke: 0.8px black !important;
    text-stroke: 0.8px black !important;
    paint-order: stroke fill !important;
    white-space: nowrap;
}

#seekBar {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

#seekBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--thumb-color, white);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#seekBar::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--thumb-color, white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.control-btn {
    background: transparent;
    border: none;
    color: white !important;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 15px;
    opacity: 0.9;
}

.control-btn:hover {
    opacity: 1;
    transform: scale(1.15);
}

.control-btn.main-btn {
    background: white;
    border: none;
    color: #1e293b !important;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.control-btn.main-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
  
  .close-fullscreen-btn {
    position: absolute;
    top: 24px;
    left: 24px;
    background: transparent;
    border: none;
    color: white !important;
    font-size: 32px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
  }
  
  .close-fullscreen-btn:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* ===== 풀스크린 플레이어 메뉴 버튼 ===== */
.fullscreen-menu-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white !important;
    font-size: 24px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    z-index: 10;
}

.fullscreen-menu-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
}

/* ===== 풀스크린 플레이어 드롭다운 메뉴 ===== */
.fullscreen-menu-dropdown {
    position: absolute;
    top: 85px;
    right: 24px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 16px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 11;
}

.fullscreen-menu-dropdown.active {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fullscreen-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: white !important;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fullscreen-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.fullscreen-menu-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.fullscreen-menu-item.active i.far {
    font-weight: 900;
}

.fullscreen-menu-item.active i.fa-star::before {
    content: "\f005"; /* fas fa-star (filled star) */
}

.fullscreen-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 8px;
}

/* ===== 사이드바 오버레이 ===== */
#menuOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 998;
}

#menuOverlay.active {
    opacity: 1;
    visibility: visible;
}

.dark-mode #menuOverlay {
    background: rgba(0, 0, 0, 0.7);
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
    #playlistContainer {
        padding: 16px;
    }
    
    .header {
        padding: 12px 16px;
    }
    
    #searchInput.active {
        width: 200px;
    }
    
    #audioPlayerContainer {
        padding: 12px 16px;
    }
    
    #songTitle {
        max-width: 150px;
    }
    
    /* 모바일에서 노래 항목 레이아웃 */
    .song-item {
        padding-right: 70px !important; /* 썸네일 공간 확보 */
    }
}
    
    #fullscreenCover {
        width: 280px;
        height: 280px;
    }
}

/* ===== 기타 유틸리티 ===== */
.lazyload {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazyloaded {
    opacity: 1;
}

/* 가사 컨테이너 */
#lyricsContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    overflow-y: auto;
    padding: 24px 20px;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    z-index: 5;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    margin-top: calc(-320px / 2);
}

#lyricsContainer.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    pointer-events: none;
}

#lyricsContainer.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.dark-mode #lyricsContainer {
    background: rgba(0, 0, 0, 0.9);
}

.lyric-line {
    margin-bottom: 14px;
    padding: 8px 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.lyric-line.highlighted-lyric {
    color: white;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

/* 스크롤바 */
#lyricsContainer::-webkit-scrollbar {
    width: 8px;
}

#lyricsContainer::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 8px 0;
}

#lyricsContainer::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

#lyricsContainer::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
    background-clip: padding-box;
}
