﻿@charset "UTF-8";

/* ==========================================================================
   글로벌 및 기본 스타일
   ========================================================================== */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    color: #ffffff;
    font-size: 16px;
}

/* 오버레이 활성 시 body 스크롤 방지 */
body.overlay-active {
    overflow: hidden;
}

* {
    box-sizing: border-box;
}

/* 스크롤바 기본 스타일 (숨김 처리) */
body, #left-sidebar, #main-content, #right-sidebar #queue-list, #search-results-area .album-tracklist {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
body::-webkit-scrollbar,
#left-sidebar::-webkit-scrollbar,
#main-content::-webkit-scrollbar,
#right-sidebar #queue-list::-webkit-scrollbar,
#search-results-area .album-tracklist::-webkit-scrollbar {
    display: none;
}

/* 기본 버튼 스타일 초기화 (필요시) */
button, input[type="range"] {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: inherit;
    vertical-align: middle;
}
input[type="range"] {
    cursor: pointer;
}
input[type="text"] {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* ==========================================================================
   레이아웃
   ========================================================================== */

#app-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#app-body {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}

#left-sidebar {
    flex: 0 0 18.5%; 
    max-width: 280px; 
    min-width: 200px; 
    background: rgba(255, 255, 255, 0.02); 
    border-right: 1px solid rgba(255, 255, 255, 0.1); 
    flex-shrink: 0;
    padding: 1rem 1rem calc(1rem + 90px) 1rem; 
    overflow-y: auto; 
}

#left-sidebar .sidebar-logo {
    display: flex;
    align-items: center;
    padding: 0.75rem 0.5rem; 
    margin-bottom: 0.5rem; 
    font-size: 1.25rem; 
    font-weight: 600; 
    color: #e0e0e0; 
}

#left-sidebar .sidebar-logo i.fa-headphones {
    margin-right: 0.6rem; 
    font-size: 1.3rem; 
    color: #7e8eff; 
    line-height: 1; 
}

#left-sidebar .sidebar-logo span {
    line-height: 1; 
}

#app-container { 
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}

#main-content {
    flex-grow: 1;
    overflow-y: auto; 
    position: relative; 
}

#right-sidebar {
    flex: 0 0 22.2%; 
    max-width: 400px; 
    min-width: 300px; 
    background-color: #040404; 
    padding: 1rem 0; 
    border-left: 1px solid #282828; 
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
}

#right-sidebar #youtube-player-right-wrapper {
    width: calc(100% - 2rem); 
    padding-top: 56.25%; 
    position: relative;
    background-color: #000;
    margin: 0 1rem 1rem 1rem;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0; 
}
#right-sidebar #youtube-player-right, #right-sidebar #youtube-player-right-wrapper iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}

#right-sidebar #queue-list {
    list-style: none;
    flex-grow: 1; 
    overflow-y: auto; 
    margin: 0; 
    padding: 0 1rem; 
    padding-bottom: 100px; 
    min-height: 0;
}


#right-sidebar #queue-list li {
    display: flex; align-items: center; padding: 0.5rem; margin-bottom: 0.5rem; border-radius: 4px; cursor: pointer; transition: background-color 0.2s ease;
}
#right-sidebar #queue-list li:hover { background-color: rgba(255,255,255,0.08); } 
#right-sidebar #queue-list li.playing { background-color: rgba(102, 126, 234, 0.2); } 
#right-sidebar #queue-list li img { width: 35px; height: 35px; object-fit: cover; border-radius: 3px; margin-right: 0.8rem; flex-shrink: 0; }
#right-sidebar #queue-list li .queue-track-info { overflow: hidden; white-space: nowrap; }
#right-sidebar #queue-list li .queue-track-title { font-size: 0.9rem; font-weight: 500; text-overflow: ellipsis; overflow: hidden; display: block; }
#right-sidebar #queue-list li .queue-track-artist { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-overflow: ellipsis; overflow: hidden; display: block; }
#right-sidebar #queue-list li.empty-queue { color: #666; text-align: center; padding: 2rem 0; cursor: default; }
#right-sidebar #queue-list li.empty-queue:hover { background: none; }

#player-bar {
    height: 90px;
    background: rgba(0, 0, 0, 0.9); 
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    display: flex;
    align-items: center;
    padding: 0 1.5rem; 
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
}

/* ==========================================================================
   상단 네비게이션 바 및 사용자 정보
   ========================================================================== */

#main-content .content-navigation-wrapper { 
    padding: 0.5rem 1.5rem;
    position: sticky; 
    top: 0px;
    z-index: 10;
    margin-bottom: 0;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease-out, border-color 0.3s ease-out;
}

#main-content .content-navigation-wrapper.scrolled {
    background: rgba(15, 15, 35, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#main-content .content-navigation { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding-bottom: 0;
    min-height: 40px;
}

#main-content .content-navigation .navigation-buttons { 
    display: flex; 
    gap: 0.8rem; 
}

.header-right {
    flex-shrink: 0;
    margin-left: auto;
}

.header-right ul {
    display: none !important;
}


/* ==========================================================================
   컴포넌트 스타일
   ========================================================================== */

#ai-search-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1.5rem 3rem 1.5rem;
    text-align: center;
}

.ai-search-title { font-size: 48px; font-weight: 700; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 16px; color: transparent; }
.ai-search-subtitle { font-size: 18px; color: rgba(255, 255, 255, 0.7); font-weight: 300; margin-bottom: 40px; max-width: none; }
#ai-search-section .page-search-form { position: relative; display: flex; align-items: center; width: 100%; max-width: 800px; background: rgba(255, 255, 255, 0.08); border: 2px solid rgba(255, 255, 255, 0.1); border-radius: 24px; padding: 8px 8px 8px 16px; margin: 0 auto 24px; transition: all 0.3s ease; }
#ai-search-section .page-search-form:focus-within { border-color: #667eea; background: rgba(255, 255, 255, 0.12); box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1); }
#ai-search-section .page-search-form .search-icon-ai { color: #667eea; font-size: 20px; margin-right: 12px; flex-shrink: 0; }
#ai-search-section .page-search-form .page-search-input { flex-grow: 1; padding: 12px 0; border: none; background-color: transparent; color: #ffffff; font-size: 16px; outline: none; }
#ai-search-section .page-search-form .page-search-input::placeholder { color: rgba(255, 255, 255, 0.5); }
#ai-search-section .page-search-form .page-search-button-ai { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 50%; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; cursor: pointer; margin-left: 8px; flex-shrink: 0; transition: all 0.2s ease; }
#ai-search-section .page-search-form .page-search-button-ai:hover { transform: scale(1.05); box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3); background: linear-gradient(135deg, #768eea 0%, #865bb2 100%); }
#ai-search-section .page-search-form .page-search-button-ai i { font-size: 16px; }
.example-queries { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.example-query-btn { background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); padding: 8px 16px; border-radius: 20px; font-size: 13px; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; }
.example-query-btn:hover { background: rgba(102, 126, 234, 0.2); border-color: #667eea; color: #ffffff; }

.icon-button,
#main-content .content-navigation .nav-btn { background-color: rgba(255, 255, 255, 0.05); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; width: auto; height: auto; padding: 8px 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; font-size: 0.9rem; }
.icon-button:hover,
#main-content .content-navigation .nav-btn:hover:not(:disabled) { background-color: rgba(102, 126, 234, 0.2); color: white; border-color: #667eea;}
#main-content .content-navigation .nav-btn:disabled { opacity: 0.5; cursor: not-allowed; background-color: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.05); color: rgba(255,255,255,0.3);}

#left-sidebar ul.sidebar-nav { list-style: none; padding: 0; margin: 0; }
#left-sidebar ul.sidebar-nav li a { color: rgba(255, 255, 255, 0.7); text-decoration: none; display: flex; align-items: center; padding: 12px 8px; margin-bottom: 4px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: all 0.2s ease; white-space: nowrap; overflow: hidden; }
#left-sidebar ul.sidebar-nav li a:hover { color: #ffffff; background-color: rgba(255, 255, 255, 0.05); }
#left-sidebar ul.sidebar-nav li a.active { color: #ffffff; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
#left-sidebar ul.sidebar-nav li a i.fa-fw { margin-right: 12px; font-size: 1.1rem; width: 16px; text-align: center; }
#left-sidebar ul.sidebar-nav li a span { flex-grow: 1; overflow: hidden; text-overflow: ellipsis; }
.sidebar-section-divider { height: 1px; background-color: rgba(255,255,255,0.1); margin: 1rem 0.5rem; }
.sidebar-section-title { color: rgba(255, 255, 255, 0.6); font-size: 12px; margin-bottom: 12px; padding: 0 8px; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; }

#search-results-area { padding: 0 1.5rem calc(1.5rem + 90px) 1.5rem; }
#search-results-area .initial-message,
#search-results-area .error-message,
#search-results-area .no-results-message { text-align: center; padding: 3rem 0; font-size: 1.1rem; color: rgba(255,255,255,0.6); }

#search-results-area .loading-spinner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    background-color: transparent; /* 오류 수정 */
}
#search-results-area .loading-spinner i {
    margin: 0 0 1rem 0;
    animation: spin 1.5s linear infinite;
}
@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

#search-results-area .search-results-container { padding: 0; }
#search-results-area .search-results-container section { margin-bottom: 2.5rem; }
#search-results-area .search-results-container section h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; color: #ffffff; }
#search-results-area .exact-title-match-section h3 { font-size: 0.9rem; font-weight: 400; }

#search-results-area .artist-highlight-card {
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    gap: 1.5rem;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: background-color 0.2s, border-color 0.2s;
    cursor: default;
}

#search-results-area .artist-highlight-card:hover { 
    background-color: rgba(255, 255, 255, 0.08); 
    border-color: rgba(255,255,255,0.1);
}

#search-results-area .card-top {
    display: flex;
    align-items: center; 
    gap: 1.5rem;
    width: 100%;
}

#search-results-area .artist-thumbnail-wrapper { 
    flex-shrink: 0; 
}
#search-results-area .artist-thumbnail { 
    width: 150px; 
    height: 150px; 
    border-radius: 50%; 
    object-fit: cover; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
#search-results-area .artist-info { 
    flex-grow: 1; 
}
#search-results-area .artist-name { 
    font-size: 2.25rem; 
    font-weight: 700; 
    margin: 0 0 0.3rem 0; 
}
#search-results-area .artist-category { 
    font-size: 0.9rem; 
    color: rgba(255,255,255,0.6); 
    margin: 0;
}

#search-results-area .card-bottom {
    display: flex;
    gap: 0.8rem;
    align-self: flex-start;
}

#search-results-area .card-bottom .btn {
    flex-grow: 1; 
    flex-basis: 0;
}

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.25rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; text-decoration: none; border: none; line-height: 1.2; vertical-align: middle; white-space: nowrap; }
.btn i { margin-right: 0.5rem; font-size: 0.9em; }
.btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.btn-primary:hover { transform: scale(1.04); box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3); }
.btn-secondary { background-color: rgba(255, 255, 255, 0.1); color: white; border: 1px solid rgba(255, 255, 255, 0.15); }
.btn-secondary:hover { background-color: rgba(255, 255, 255, 0.2); }

.all-tracks-list, .album-tracklist { list-style: none; padding: 0; margin: 0; }
.all-tracks-list li, .album-tracklist li { display: flex; align-items: center; padding: 12px 16px; border-radius: 12px; margin-bottom: 8px; transition: all 0.2s ease; cursor: default; position: relative; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); }
.all-tracks-list li:hover, .album-tracklist li:hover { background-color: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.1); }
.track-start-section { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-right: 16px; position: relative; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 8px;}
.album-tracklist .track-start-section { margin-right: 1rem; background: transparent; } 
.track-number { color: rgba(255,255,255,0.6); font-size: 0.9rem; text-align: center; width: 100%; transition: opacity 0.2s ease; text-decoration: none !important; user-select: none; }
.track-play-button { background: none; border: none; color: #ffffff; cursor: pointer; font-size: 16px; padding: 0.4rem; transition: color 0.2s ease, opacity 0.2s ease; opacity: 0; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; }
.all-tracks-list li:hover .track-start-section .track-number,
.album-tracklist li:hover .track-start-section .track-number { opacity: 0; }
.all-tracks-list li:hover .track-start-section .track-play-button,
.album-tracklist li:hover .track-start-section .track-play-button { opacity: 1; }
.equalizer-indicator { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 18px; height: 16px; display: none; justify-content: space-between; align-items: flex-end; z-index: 1; }
.equalizer-indicator .eq-bar { width: 3px; height: 100%; background-color: #667eea; transform-origin: bottom; transform: scaleY(0.1); }
li:not(.playing):hover .track-start-section .track-number { opacity: 0; }
li:not(.playing):hover .track-start-section .track-play-button { opacity: 1; }
li.playing { background-color: rgba(102, 126, 234, 0.1); border-color: #667eea; }
li.playing .track-start-section .track-number { opacity: 0; }
li.playing .track-start-section .track-play-button { display: none; }
li.playing .track-start-section .equalizer-indicator { display: flex; }
li.playing .equalizer-indicator .eq-bar { animation: eq-play 1.2s infinite ease-in-out; background-color: #667eea;}
li.playing .track-title { color: #667eea; }
@keyframes eq-play { 0%{transform:scaleY(.1)} 20%{transform:scaleY(.8)} 40%{transform:scaleY(.3)} 60%{transform:scaleY(1)} 80%{transform:scaleY(.5)} 100%{transform:scaleY(.1)} }
li.playing .equalizer-indicator .eq-bar:nth-child(1) { animation-delay: -1.1s; }
li.playing .equalizer-indicator .eq-bar:nth-child(2) { animation-delay: -0.9s; }
li.playing .equalizer-indicator .eq-bar:nth-child(3) { animation-delay: -0.7s; }
li.playing .equalizer-indicator .eq-bar:nth-child(4) { animation-delay: -0.5s; }
.track-thumbnail { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; margin-right: 16px; flex-shrink: 0; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.track-details { flex-grow: 1; overflow: hidden; margin-right: 1rem; }
.track-title { display: block; font-weight: 500; color: white; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.track-artist-album { display: block; font-size: 12px; color: rgba(255,255,255,0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-duration { font-size: 12px; color: rgba(255,255,255,0.6); flex-shrink: 0; margin-left: auto; padding-left: 1rem; text-align: right; min-width: 40px;}
.track-play-button[disabled] { color: rgba(255, 255, 255, 0.2) !important; cursor: not-allowed; opacity: 0.5 !important; }
li:has(.track-play-button[disabled]) { opacity: 0.6; cursor: default; background-color: transparent !important; }
.btn-show-more-artist-songs, .btn-collapse-artist-songs { display: block; margin: 1rem 0 0 auto; width: fit-content; color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; cursor: pointer; font-weight: bold; padding: 0.5rem 1rem; font-size: 0.85rem; transition: all 0.2s; }
.btn-show-more-artist-songs:hover, .btn-collapse-artist-songs:hover { color: white; background-color: rgba(102, 126, 234, 0.2); border-color: #667eea;}
.btn-show-more-artist-songs.hidden, .btn-collapse-artist-songs.hidden { display: none; }
#search-results-area .album-grid { display: flex; flex-direction: column; gap: 1rem; }
#search-results-area .album-list-item { padding: 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.05); background-color: rgba(255, 255, 255, 0.03); }
#search-results-area .album-list-header { 
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem; 
    position: relative; 
    background-color: rgba(255, 255, 255, 0.05); 
    cursor: default; 
}
#search-results-area .album-card-top {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}
#search-results-area .album-list-thumbnail { 
    width: 110px; 
    height: 110px; 
    object-fit: cover; 
    border-radius: 12px; 
    flex-shrink: 0; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
}
#search-results-area .album-list-details { 
    flex-grow: 1; 
    min-width: 0;
}
#search-results-area .album-list-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
#search-results-area .album-list-meta { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 0; }
#search-results-area .album-list-actions { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 0.8rem; 
    align-items: center; 
    width: 100%;
}
#search-results-area .no-tracks-info { font-size: 0.85rem; color: #888; margin-top: 0.8rem; width: 100%; }
#search-results-area .btn-toggle-album-tracks { 
    background-color: rgba(255, 255, 255, 0.1); 
    color: white; 
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.2s ease; 
    display: inline-flex; 
    align-items: center; 
    gap: 0.4rem; 
}
#search-results-area .btn-toggle-album-tracks:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
#search-results-area .btn-toggle-album-tracks .toggle-icon { 
    transition: transform 0.2s ease;
    margin-left: 0.2rem;
}
#search-results-area .btn-toggle-album-tracks[aria-expanded="true"] .toggle-icon { transform: rotate(180deg); }

#search-results-area .album-tracklist { 
    list-style: none; 
    padding: 0.5rem;
    margin: 0; 
    background-color: rgba(0, 0, 0, 0.1); 
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out, padding 0.3s ease-out, border-top 0s linear 0.3s; 
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
    opacity: 1; 
    visibility: visible;
}
#search-results-area .album-tracklist.collapsed { 
    padding: 0 0.5rem;
    overflow: hidden; 
    border-top: none; 
    opacity: 0; 
    visibility: hidden; 
    height: 0; 
    transition: opacity 0.3s ease-out, visibility 0s linear 0.3s, height 0s linear 0.3s, padding 0.3s ease-out, border-top 0s linear 0.3s; 
}
#search-results-area .album-tracklist li {
    border-radius: 8px;
    margin-bottom: 4px;
    border: 1px solid transparent;
    background: transparent;
    padding-left: 1rem;
    padding-right: 1rem;
}
#search-results-area .album-tracklist li:last-child {
    margin-bottom: 0;
}
#search-results-area .album-tracklist li.playing { 
    border: 1px solid #667eea;
    background-color: rgba(102, 126, 234, 0.1) !important;
}
#search-results-area .album-tracklist .track-title { 
    font-weight: 400; 
}

#player-bar #player-left { display: flex; align-items: center; flex: 1; min-width: 180px; overflow: hidden; gap: 16px;}
#player-bar .player-thumbnail { width: 56px; height: 56px; margin-right: 0; border-radius: 8px; flex-shrink: 0; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);}
#player-bar .track-text { overflow: hidden; margin-right: 0; }
#player-bar .player-track-title { font-size: 14px; font-weight: 500; color: white; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#player-bar .player-track-artist { font-size: 12px; color: rgba(255,255,255,0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#player-bar #like-button { color: rgba(255,255,255,0.6); font-size: 16px; padding: 8px; transition: color 0.2s ease; flex-shrink: 0; }
#player-bar #like-button:hover { color: #ff6b6b; }
#player-bar #like-button.active { color: #ff6b6b; }
#player-bar #player-center { display: flex; flex-direction: column; align-items: center; flex: 1; max-width: 600px; padding: 0 1rem; gap: 8px;}

#player-bar .player-ctrl-btn {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    padding: 8px;
    transition: all 0.2s ease;
    line-height: 1;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#player-bar .player-ctrl-btn:hover:not(#play-pause-button) {
    color: white;
    background: rgba(255,255,255,0.1);
}

#player-bar #center-controls { display: flex; align-items: center; gap: 16px; margin-bottom: 0; }
#player-bar #center-controls .player-ctrl-btn.active { color: #667eea; }
#player-bar #center-controls #center-controls .player-ctrl-btn#repeat-button.active-one { position: relative; overflow: visible; }
#player-bar #center-controls #play-pause-button { width: 40px; height: 40px; background-color: #ffffff; color: #000000; border-radius: 50%; font-size: 18px; display: flex; align-items: center; justify-content: center; border: none; transition: all 0.2s ease; }
#player-bar #center-controls #play-pause-button:hover { background-color: #f0f0f0; transform: scale(1.05); }
#player-bar #center-progress { display: flex; align-items: center; width: 100%; gap: 12px; }
#player-bar #center-progress span { font-size: 11px; color: rgba(255,255,255,0.6); min-width: 32px; text-align: center; user-select: none; }
#player-bar input[type="range"]#progress-bar { flex-grow: 1; height: 4px; -webkit-appearance: none; appearance: none; background: linear-gradient(to right, #667eea var(--progress-percent, 0%), rgba(255, 255, 255, 0.2) var(--progress-percent, 0%)); border-radius: 2px; outline: none; cursor: pointer; transition: background 0.1s ease; }
#player-bar input[type="range"]#progress-bar::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; background: #ffffff; border-radius: 50%; cursor: pointer; transition: background-color 0.2s ease; opacity: 1; margin-top: -4px; }
#player-bar input[type="range"]#progress-bar::-moz-range-thumb { width: 12px; height: 12px; background: #ffffff; border-radius: 50%; cursor: pointer; border: none; transition: background-color 0.2s ease; opacity: 1; }
#player-bar input[type="range"]#progress-bar:hover::-webkit-slider-thumb,
#player-bar input[type="range"]#progress-bar:active::-webkit-slider-thumb { background: #667eea; }
#player-bar input[type="range"]#progress-bar:hover::-moz-range-thumb,
#player-bar input[type="range"]#progress-bar:active::-moz-range-thumb { background: #667eea; }
#player-bar #progress-bar { position: relative; }
#player-bar #player-right { display: flex; align-items: center; justify-content: flex-end; flex: 1; min-width: 180px; gap:8px;}

/* ▼▼▼ 이퀄라이저 아이콘 스타일 추가 ▼▼▼ */
#player-bar #equalizer-button { 
    display: none; 
}
#player-bar #equalizer-button.blinking-eq { 
    animation: pulse-green 2s infinite; 
    cursor: pointer; 
}
#player-bar #equalizer-button.is-on { 
    cursor: default; 
    animation: none; 
}
.custom-eq-icon { 
    display: flex; 
    justify-content: space-around; 
    align-items: center; 
    width: 18px; 
    height: 18px; 
}
.eq-bar-custom { 
    width: 2px; 
    height: 100%; 
    background-color: #555; 
    border-radius: 1px; 
    position: relative; 
}
.eq-slider-custom { 
    width: 6px; 
    height: 6px; 
    background-color: #999; 
    border-radius: 50%; 
    position: absolute; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    transition: background-color 0.2s ease; 
}
.eq-bar-custom:nth-child(1) .eq-slider-custom { 
    top: calc(75% - 2px); 
}
.eq-bar-custom:nth-child(2) .eq-slider-custom { 
    top: calc(25% + 2px); 
}
#player-bar #equalizer-button.blinking-eq .eq-slider-custom,
#player-bar #equalizer-button.is-on .eq-slider-custom { 
    background-color: #4ade80; 
}
@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
/* ▲▲▲ 이퀄라이저 아이콘 스타일 추가 끝 ▲▲▲ */

#player-bar #volume-controls { display: flex; align-items: center; gap: 8px; }
#player-bar #volume-button { color: rgba(255,255,255,0.8); font-size: 16px; padding: 8px; }
#player-bar #volume-button:hover { color: white; }
#player-bar #volume-slider { width: 80px; height: 4px; -webkit-appearance:none; appearance: none; background: rgba(255,255,255,0.2); border-radius:2px; outline:none; cursor:pointer; }
#player-bar #volume-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 10px; height: 10px; background: #fff; border-radius: 50%; cursor: pointer; opacity:0; }
#player-bar #volume-slider:hover::-webkit-slider-thumb { opacity:1; background: #667eea; }
#player-bar #queue-toggle-button { color: rgba(255,255,255,0.8); font-size: 16px; padding: 8px; margin-left: 0; }
#player-bar #queue-toggle-button:hover { color: white; }
#player-bar #queue-toggle-button.active { color: #667eea; }
#player-bar.loading .player-thumbnail { opacity: 0.6; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } }
#youtube-player-wrapper { position: absolute; top: -1000px; left: 0; width: 1px; height: 1px; overflow: hidden; }
#search-results-area .view-content-list { list-style: none; padding: 0; margin: 0; }
#search-results-area .view-content-list li { display: flex; align-items: center; padding: 12px 16px; border-radius: 12px; margin-bottom: 8px; transition: all 0.2s ease; cursor: pointer; background:rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); }
#search-results-area .view-content-list li:hover { background-color: rgba(255, 255, 255, 0.08); border-color: rgba(255,255,255,0.1);}
#search-results-area .view-content-list li img.view-item-thumbnail { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; margin-right: 16px; flex-shrink: 0; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
#search-results-area .view-content-list li .view-item-details { flex-grow: 1; overflow: hidden; margin-right: 1rem; }
#search-results-area .view-content-list li .view-item-title { display: block; font-weight: 500; color: white; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
#search-results-area .view-content-list li .view-item-artist { display: block; font-size: 12px; color: rgba(255,255,255,0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#search-results-area .view-content-list li .play-view-item-button { color: rgba(255,255,255,0.6); font-size: 1rem; line-height: 1; padding: 0.4rem; margin-left: auto; flex-shrink: 0; transition: color 0.2s ease; opacity: 0; }
#search-results-area .view-content-list li:hover .play-view-item-button, #search-results-area .view-content-list li.playing .play-view-item-button { opacity: 1; }
#search-results-area .view-content-list li .play-view-item-button:hover { color: #ffffff; }
#search-results-area .view-content-list li.playing .view-item-title { color: #667eea; }
#search-results-area .view-content-list li.playing .play-view-item-button { color: #667eea; }
#search-results-area .artist-actions .btn-shuffle-all-artist-tracks.active-shuffle,
#search-results-area .album-list-actions .btn-shuffle-artist-album.active-shuffle { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-color: transparent; }
#search-results-area .artist-actions .btn-shuffle-all-artist-tracks.active-shuffle i,
#search-results-area .album-list-actions .btn-shuffle-artist-album.active-shuffle i { color: white; }

/* 페이지 로드 시 콘텐츠 섹션 기본 숨김 (번쩍임 방지) */
#content-container > section {
    display: none;
}

/* ==========================================================================
   모바일 하단 네비게이션
   ========================================================================== */
#mobile-bottom-nav {
    display: none; /* PC에서는 숨김 */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #0c0c1a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1002;
    justify-content: space-around;
    align-items: stretch;
}

#mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: color 0.2s ease;
    gap: 4px;
    -webkit-tap-highlight-color: transparent;
    background: none;
    border: none;
    padding: 5px 0;
    cursor: pointer;
}

#mobile-bottom-nav .nav-item:hover,
#mobile-bottom-nav .nav-item.active {
    color: #ffffff;
}

#mobile-bottom-nav .nav-item i {
    font-size: 20px;
    line-height: 1;
}

/* ==========================================================================
   반응형 스타일
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1024px) { 
    #right-sidebar { display: none; } 
    #player-bar #player-left { min-width: 0; margin-right: 1rem; }
    #left-sidebar {
        flex: 0 0 240px;
    }
}

@media (max-width: 768px) {
    html, body { overflow-x: hidden; }

    #left-sidebar { display: none; }
    #app-body { padding-bottom: 1px; }
    #app-container { width: 100%; }
    
    #mobile-bottom-nav { display: flex; }

    #mobile-header-logo {
        display: flex !important;
    }

    #player-bar { 
        height: 80px; 
        padding: 0 16px; 
        justify-content: space-between; 
        gap: 16px; 
        bottom: 60px;
    }
    #player-bar #player-left { display: flex !important; flex: 0 0 auto; min-width: auto; }
    #player-bar #player-left .player-thumbnail,
    #player-bar #player-left .track-text { display: none; }
    #player-bar #player-center { flex: 1 1 auto; padding: 0; max-width: none; justify-content: center; }
    #player-bar #center-controls { gap: 1rem; }
    #player-bar #center-controls #play-pause-button { width: 40px; height: 40px; font-size: 1rem; }
    #player-bar #center-progress { display: none; } 
    #player-bar #player-right { display: flex !important; flex: 0 0 auto; min-width: auto; }
    #player-bar #player-right #volume-controls,
    #player-bar #player-right #equalizer-button { display: none !important; }
    #player-bar #player-right #queue-toggle-button { display: flex !important; }
    
    #main-content { margin-left: 0; padding: 0 10px 150px 10px; }
    #main-content .content-navigation-wrapper { padding: 0.8rem 1rem; }
    
    #search-results-area { padding: 0 1rem calc(1rem + 140px) 1rem; }
    #search-results-area .artist-highlight-card { padding: 1.25rem; }
    #search-results-area .artist-highlight-card .card-top { align-items: center; gap: 1rem; }
    #search-results-area .artist-highlight-card .artist-thumbnail { width: 80px; height: 80px; }
    #search-results-area .artist-highlight-card .artist-name { font-size: 1.2rem; }
    #search-results-area .artist-highlight-card .card-bottom { gap: 0.5rem; }
    #search-results-area .artist-highlight-card .btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
    
    #search-results-area .album-list-header { flex-direction: column; align-items: flex-start; gap: 0.8rem; padding: 0.8rem; }
    #search-results-area .album-card-top { gap: 1rem; }
    #search-results-area .album-list-thumbnail { width: 60px; height: 60px; }
    #search-results-area .album-list-title { font-size: 0.9rem; white-space: normal; }
    #search-results-area .album-list-actions { flex-wrap: wrap; }
    #search-results-area .album-list-actions .btn,
    #search-results-area .btn-toggle-album-tracks { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
    
    #right-sidebar { 
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100%; 
        height: calc(100% - 140px);
        z-index: 2000; 
        background-color: #0f0f23; 
        border-left: none; 
        padding-top: 1rem; 
    }
    
    #ai-search-section { padding: 1rem 1rem 2rem 1rem; }
    .ai-search-title { font-size: 28px; }
    .ai-search-subtitle { font-size: 16px; margin-bottom: 24px; }
    #ai-search-section .page-search-form { max-width: 100%; padding: 6px 6px 6px 12px; }
    #ai-search-section .page-search-form .page-search-input { font-size: 14px; padding: 10px 0; }
    #ai-search-section .page-search-form .search-icon-ai { font-size: 18px; margin-right: 8px; }
    #ai-search-section .page-search-form .page-search-button-ai { width: 40px; height: 40px; }
    #ai-search-section .page-search-form .page-search-button-ai i { font-size: 14px; }
    .example-queries { gap: 8px; }
    .example-query-btn { font-size: 12px; padding: 6px 12px; }
}

@media (max-width: 480px) {
    #main-content .content-navigation-wrapper { padding: 0.5rem; }
    
    #search-results-area { padding: 0 0.5rem calc(0.5rem + 140px) 0.5rem; }
    
    /* ======== ▼▼▼ 노래 제목 공간 확보를 위한 수정 ▼▼▼ ======== */
    /* [수정] 검색 결과, Discover, Your Songs 섹션의 모바일 트랙 썸네일 숨김 */
    #search-results-area .all-tracks-list .track-thumbnail,
    #discover-section .track-thumbnail,
    #your-songs-section .track-thumbnail {
        display: none;
    }
    
    /* [수정] 검색 결과, Discover, Your Songs 섹션의 모바일 트랙 리스트 스타일 통합 및 공간 확보 */
    #search-results-area .all-tracks-list li, 
    #search-results-area .album-tracklist li,
    #discover-section .all-tracks-list li,
    #your-songs-section .all-tracks-list li {
        padding: 0.4rem 0.3rem; /* 좌우 패딩 축소 */
    }

    #search-results-area .track-start-section,
    #discover-section .track-start-section,
    #your-songs-section .track-start-section { 
        width: 2.3em; /* 너비 축소 */
        margin-right: 0.3rem; /* 오른쪽 여백 축소 */
        background: transparent;
    }

    /* [추가/수정] 트랙 상세 정보 영역의 오른쪽 여백 축소 */
    #search-results-area .track-details,
    #discover-section .track-details,
    #your-songs-section .track-details {
        margin-right: 0.3rem; /* 오른쪽 여백 축소로 제목 공간 확보 */
    }

    #search-results-area .all-tracks-list .track-title, 
    #search-results-area .album-tracklist .track-title,
    #discover-section .track-title,
    #your-songs-section .track-title { 
        font-size: 0.85rem; 
    }

    #search-results-area .all-tracks-list .track-artist-album,
    #discover-section .track-artist-album,
    #your-songs-section .track-artist-album { 
        font-size: 0.7rem; 
    }

    #search-results-area .all-tracks-list .track-duration, 
    #search-results-area .album-tracklist .track-duration,
    #discover-section .track-duration,
    #your-songs-section .track-duration { 
        font-size: 0.7rem; 
        padding-left: 0.2rem; /* 왼쪽 여백 축소 */
        min-width: 35px; /* 최소 너비 축소 */
    }

    /* [추가/수정] Your Songs 섹션 삭제 버튼 영역 공간 최적화 */
    #your-songs-section .song-actions {
        padding-left: 0.3rem; /* 왼쪽 여백 축소 */
    }
    #your-songs-section .song-actions .btn-delete-song {
        padding: 0.3rem; /* 버튼 패딩 축소 */
        font-size: 0.9em; /* 아이콘 크기 미세 조정 */
    }
    /* ======== ▲▲▲ 노래 제목 공간 확보 수정 완료 ▲▲▲ ======== */
    
    #search-results-area .album-list-thumbnail { width: 50px; height: 50px; }
    #search-results-area .album-list-title { font-size: 0.85rem; }
    #search-results-area .album-list-meta { font-size: 0.75rem; margin-bottom: 0.5rem;}
    #search-results-area .album-list-actions { gap: 0.5rem; }
    #search-results-area .album-list-actions .btn,
    #search-results-area .btn-toggle-album-tracks { font-size: 0.7rem; padding: 0.3rem 0.5rem; }
    
    #search-results-area .album-tracklist li { padding: 0.5rem 0.8rem; }
    
    #ai-search-section { padding: 0.5rem 0.5rem 1.5rem 0.5rem; }
    .ai-search-title { font-size: 24px; }
    .ai-search-subtitle { font-size: 14px; margin-bottom: 1rem; }
    #ai-search-section .page-search-form { padding: 4px 4px 4px 10px; }
    #ai-search-section .page-search-form .page-search-input { font-size: 13px; padding: 8px 0; }
    #ai-search-section .page-search-form .search-icon-ai { font-size: 16px; margin-right: 6px; }
    #ai-search-section .page-search-form .page-search-button-ai { width: 36px; height: 36px; }
    #ai-search-section .page-search-form .page-search-button-ai i { font-size: 13px; }
    .example-query-btn { font-size: 11px; padding: 5px 10px; }
}

/* ==========================================================================
   햄버거 메뉴 및 오버레이 스타일
   ========================================================================== */

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000;
}
.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #fdd835;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.sidebar-logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

#side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

#side-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

#side-menu-overlay .overlay-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 320px;
    background: #0f0f23;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

#side-menu-overlay.is-open .overlay-panel {
    transform: translateX(0);
}

.overlay-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.overlay-header .sidebar-logo {
    display: flex;
    align-items: center;
    font-size: 1.25rem; 
    font-weight: 600; 
    color: #e0e0e0;
}
.overlay-header .sidebar-logo i {
    margin-right: 0.6rem; 
    font-size: 1.3rem; 
    color: #7e8eff;
}

.menu-close {
    font-size: 2.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
}

.overlay-nav-content {
    padding: 1rem;
    overflow-y: auto;
    flex-grow: 1;
}

.overlay-nav-content .overlay-section-divider,
.overlay-nav-content .sidebar-section-divider {
    height: 1px;
    background-color: rgba(255,255,255,0.1);
    margin: 1.5rem 0.5rem;
}

.overlay-nav-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.overlay-nav-content ul li a,
.overlay-nav-content ul li {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    padding: 12px 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
    font-weight: 500;
}
.overlay-nav-content ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.overlay-nav-content ul li i.fa-fw {
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}
.overlay-nav-content ul li strong {
    color: #fff;
}

@media (max-width: 768px) {
    #side-menu-overlay .overlay-panel {
        width: 100%;
        background-color: rgba(15, 15, 35, 0.85);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
    .overlay-header {
        display: flex;
    }
}

@media (min-width: 769px) {
    .menu-close {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 2rem;
    }
}

#player-bar #center-controls .player-ctrl-btn#repeat-button.active-one::after,
#player-bar #center-controls .player-ctrl-btn#repeat-button.active-all::after {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
    position: absolute;
    z-index: 10;
    pointer-events: none;
}

#player-bar #center-controls .player-ctrl-btn#repeat-button.active-one::after {
    content: "1";
    font-size: 0.7em;
    top: -2px;
    right: 2px;
}

#player-bar #center-controls .player-ctrl-btn#repeat-button.active-all::after {
    content: "ALL";
    font-size: 0.5em;
    letter-spacing: 0px;
    top: 0px;
    right: 0px;
}

#player-bar #center-controls .player-ctrl-btn#repeat-button.active-one,
#player-bar #center-controls .player-ctrl-btn#repeat-button.active-all { 
    position: relative; 
    overflow: visible; 
}

.sidebar-section-title i {
    margin-right: 12px;
    font-size: 1.5em;
    vertical-align: -1px;
}