/* =================================================================== */
/* 🆕 챕터 네비게이션 컨테이너 */
/* =================================================================== */

.chapters-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chapters-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4285f4, #34a853, #fbbc05, #ea4335);
    border-radius: 12px 12px 0 0;
}

.lyrics-container.dark-mode .chapters-container {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-color: #4a6741;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.chapters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.1);
}

.chapters-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chapters-title {
    margin: 0;
    color: #1565c0;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lyrics-container.dark-mode .chapters-title {
    color: #64b5f6;
}

.chapters-count {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.lyrics-container.dark-mode .chapters-count {
    background: linear-gradient(135deg, #5dade2, #3498db);
}

.chapters-toggle .btn {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.2);
}

.chapters-toggle .btn:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: scale(1.1);
}/* =================================================================== */
/* 기본 가사 컨테이너 스타일 */
/* =================================================================== */

.lyrics-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.lyrics-container.dark-mode {
    background: #2c3e50;
    border-color: #34495e;
    color: #ecf0f1;
}

.lyrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.lyrics-title {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.lyrics-container.dark-mode .lyrics-title {
    color: #ecf0f1;
}

.lyrics-count {
    font-size: 0.8em;
    color: #6c757d;
    font-weight: normal;
}

.lyrics-container.dark-mode .lyrics-count {
    color: #bdc3c7;
}

/* =================================================================== */
/* 🆕 개선된 챕터 선택 토글 스타일 */
/* =================================================================== */

.chapters-selector {
    background: rgba(52, 152, 219, 0.08);
    border: 2px solid rgba(52, 152, 219, 0.2);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.chapters-selector.collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-bottom: 0;
    padding: 0 18px;
}

/* 상단 헤더 라인 */
.selector-header-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.selector-label-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.selector-label {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.lyrics-container.dark-mode .selector-label {
    color: #ecf0f1;
}

/* 인라인 컨트롤 버튼들 */
.selector-controls-inline {
    display: flex;
    gap: 10px;
}

.selector-controls-inline .btn {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: auto;
    border-width: 2px;
}

.selector-controls-inline .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.selector-controls-inline .btn i {
    font-size: 14px;
}

/* 향상된 곡 선택 버튼들 */
.selector-buttons-enhanced {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chapter-toggle-btn-enhanced {
    background: #ffffff;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
    text-align: center;
}

.chapter-toggle-btn-enhanced:hover {
    border-color: #2980b9;
    color: #2980b9;
}

.chapter-toggle-btn-enhanced.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.chapter-toggle-btn-enhanced.active:hover {
    background: #2980b9;
    border-color: #2980b9;
}

.chapter-toggle-btn-enhanced:hover {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.25);
    border-color: #2980b9;
}

.chapter-toggle-btn-enhanced.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-color: #1976d2;
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.4);
    transform: scale(1.02);
}

.chapter-toggle-btn-enhanced.active:hover {
    background: linear-gradient(135deg, #2980b9, #1976d2);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 24px rgba(52, 152, 219, 0.5);
}

.chapter-number {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.chapter-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* 다크 모드 */
.lyrics-container.dark-mode .chapters-selector {
    background: rgba(93, 173, 226, 0.12);
    border-color: rgba(93, 173, 226, 0.3);
}

.lyrics-container.dark-mode .chapter-toggle-btn-enhanced {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    border-color: #5dade2;
    color: #5dade2;
}

.lyrics-container.dark-mode .chapter-toggle-btn-enhanced:hover {
    background: linear-gradient(135deg, #4a6741, #34495e);
    border-color: #3498db;
    color: #74b9ff;
}

.lyrics-container.dark-mode .chapter-toggle-btn-enhanced.active {
    background: linear-gradient(135deg, #5dade2, #3498db);
    color: #2c3e50;
    border-color: #74b9ff;
}

.lyrics-container.dark-mode .chapter-toggle-btn-enhanced.active:hover {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
}

.lyrics-container.dark-mode .selector-controls-inline .btn {
    background: #34495e;
    border-color: #5dade2;
    color: #5dade2;
}

.lyrics-container.dark-mode .selector-controls-inline .btn:hover {
    background: #4a6741;
    border-color: #74b9ff;
    color: #74b9ff;
}

/* 향상된 도움말 배지 */
.playlist-help-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
    animation: helpBadgePulse 2s ease-in-out infinite;
}

.playlist-help-badge:hover {
    background: linear-gradient(135deg, #ff5252, #d32f2f);
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.playlist-help-badge i {
    font-size: 14px;
}

.playlist-help-badge span {
    font-size: 12px;
    letter-spacing: 0.3px;
}

/* =================================================================== */
/* 🆕 챕터 카드 스타일 (한 줄 레이아웃) */
/* =================================================================== */

.chapters-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
}

.chapters-nav.collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0;
}

.chapter-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e3f2fd;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    min-height: auto;
    display: flex;
    align-items: center;
}

.chapter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.chapter-card:hover::before {
    transform: scaleY(1);
}

.chapter-card:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
    border-color: #2196f3;
}

.chapter-card.chapter-active {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%) !important;
    color: white !important;
    border-color: #2e7d32 !important;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3) !important;
    transform: scale(1.02) !important;
}

.chapter-card.chapter-clicked {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important;
    color: white !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4) !important;
    animation: chapterCardPulse 0.6s ease-out;
}

@keyframes chapterCardPulse {
    0% { transform: scale(1.02); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1.05); }
}

.chapter-card-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 15px;
}

.chapter-number-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.chapter-details {
    flex: 1;
    min-width: 0;
}

.chapter-card-title {
    margin: 0 0 4px 0;
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chapter-card-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 12px;
    font-weight: 500;
}

.chapter-play-btn {
    background: rgba(52, 152, 219, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3498db;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chapter-card:hover .chapter-play-btn {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}

.chapter-card.chapter-active .chapter-number-badge {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #2e7d32;
}

.chapter-card.chapter-active .chapter-card-title,
.chapter-card.chapter-active .chapter-card-time {
    color: white;
}

.chapter-card.chapter-active .chapter-play-btn {
    background: rgba(255,255,255,0.2);
    color: white;
}

.chapter-card.chapter-clicked .chapter-card-title,
.chapter-card.chapter-clicked .chapter-card-time {
    color: white;
}

.chapter-card.chapter-clicked .chapter-number-badge {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #f57c00;
}

.chapter-card.chapter-clicked .chapter-play-btn {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* 다크 모드 챕터 카드 스타일 */
.lyrics-container.dark-mode .chapters-selector {
    background: rgba(93, 173, 226, 0.1);
    border-color: rgba(93, 173, 226, 0.2);
}

.lyrics-container.dark-mode .chapter-card {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border-color: #4a6741;
    color: #ecf0f1;
}

.lyrics-container.dark-mode .chapter-card:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: #2980b9;
    color: white;
}

.lyrics-container.dark-mode .chapter-card-title {
    color: #ecf0f1;
}

.lyrics-container.dark-mode .chapter-card:hover .chapter-card-title,
.lyrics-container.dark-mode .chapter-card:hover .chapter-card-time {
    color: white;
}

.lyrics-container.dark-mode .chapter-card-time {
    color: #bdc3c7;
}

/* =================================================================== */
/* 🆕 가사박스 내 챕터 타이틀 스타일 */
/* =================================================================== */

.chapter-title-in-lyrics {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    margin: 20px -12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.chapter-title-in-lyrics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255,255,255,0.1) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255,255,255,0.1) 50%, 
        rgba(255,255,255,0.1) 75%, 
        transparent 75%
    );
    background-size: 20px 20px;
    opacity: 0.3;
    animation: movingStripes 20s linear infinite;
}

@keyframes movingStripes {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

.chapter-icon {
    background: rgba(255,255,255,0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.chapter-info {
    flex: 1;
}

.chapter-name {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.chapter-start-time {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.chapter-number {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    min-width: 60px;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.3);
}

/* 다크 모드에서 가사박스 챕터 타이틀 */
.lyrics-container.dark-mode .chapter-title-in-lyrics {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* =================================================================== */
/* 컨트롤 버튼 스타일 */
/* =================================================================== */

.lyrics-controls {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.lyrics-controls .btn {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 44px;
    white-space: nowrap;
}

.lyrics-controls .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.lyrics-controls .btn.active {
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.lyrics-controls .btn i {
    font-size: 14px;
}

/* 다크 모드에서 버튼 스타일 */
.lyrics-container.dark-mode .lyrics-controls .btn {
    background: #34495e;
    border-color: #495057;
    color: #ecf0f1;
}

.lyrics-container.dark-mode .lyrics-controls .btn:hover {
    background: #495057;
    border-color: #6c757d;
    color: #ffffff;
}

.lyrics-controls .btn {
    min-width: auto !important;
    width: auto !important;
}

.lyrics-controls .btn .btn-text {
    display: inline !important;
    visibility: visible !important;
}

/* =================================================================== */
/* 검색 박스 스타일 */
/* =================================================================== */

.lyrics-search-box {
    margin-bottom: 15px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.lyrics-container.dark-mode .lyrics-search-box {
    background: #34495e;
    border-color: #495057;
}

.search-input-container {
    position: relative;
    margin-bottom: 10px;
}

.lyrics-search-input {
    padding-right: 40px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lyrics-container.dark-mode .lyrics-search-input {
    background: #2c3e50;
    border-color: #495057;
    color: #ecf0f1;
}

.lyrics-container.dark-mode .lyrics-search-input::placeholder {
    color: #bdc3c7;
}

.lyrics-container.dark-mode .lyrics-search-input:focus {
    background: #34495e;
    border-color: #3498db;
    color: #ecf0f1;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.search-clear-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 4px 8px;
    font-size: 12px;
}

.lyrics-container.dark-mode .search-clear-btn {
    color: #bdc3c7;
}

.lyrics-container.dark-mode .search-clear-btn:hover {
    color: #ecf0f1;
    background: #495057;
}

.search-results {
    max-height: 150px;
    overflow-y: auto;
    border-radius: 4px;
}

.search-result-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-result-item:hover {
    background-color: #e3f2fd;
}

.search-result-item:last-child {
    border-bottom: none;
}

.lyrics-container.dark-mode .search-result-item {
    border-bottom-color: #495057;
}

.lyrics-container.dark-mode .search-result-item:hover {
    background-color: #495057;
}

.search-result-text {
    flex: 1;
    font-size: 14px;
}

.search-result-time {
    font-size: 12px;
    color: #666;
    background: rgba(0,0,0,0.05);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    margin-left: 10px;
}

.lyrics-container.dark-mode .search-result-time {
    color: #bdc3c7;
    background: rgba(255,255,255,0.1);
}

.search-highlight {
    background-color: #ffeb3b !important;
    color: #000 !important;
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: bold;
}

.lyrics-container.dark-mode .search-highlight {
    background-color: #f39c12 !important;
    color: #2c3e50 !important;
}

/* =================================================================== */
/* 가사 내용 스타일 */
/* =================================================================== */

.lyrics-content {
    max-height: 350px;
    overflow-y: auto;
    background: white;
    border-radius: 6px;
    padding: 12px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    scroll-behavior: smooth;
}

.lyrics-container.dark-mode .lyrics-content {
    background: #34495e;
    border-color: #495057;
}

.lyrics-content::-webkit-scrollbar {
    width: 8px;
}

.lyrics-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.lyrics-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.lyrics-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.lyrics-container.dark-mode .lyrics-content::-webkit-scrollbar-track {
    background: #2c3e50;
}

.lyrics-container.dark-mode .lyrics-content::-webkit-scrollbar-thumb {
    background: #7f8c8d;
}

.lyrics-container.dark-mode .lyrics-content::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

/* =================================================================== */
/* 가사 라인 스타일 */
/* =================================================================== */

.lyrics-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
    position: relative;
}

.lyrics-line[data-time]:not([data-time=""]):not([data-time="null"]) {
    cursor: pointer;
}

.lyrics-line:hover[data-time]:not([data-time=""]):not([data-time="null"]) {
    background-color: #e3f2fd;
    transform: translateX(5px);
    border-left: 3px solid #2196f3;
}

.lyrics-container.dark-mode .lyrics-line:hover[data-time]:not([data-time=""]):not([data-time="null"]) {
    background-color: #455a64;
    border-left-color: #3498db;
}

.lyrics-line.lyrics-active {
    background: linear-gradient(135deg, #2196f3, #1976d2) !important;
    color: white !important;
    font-weight: bold !important;
    transform: scale(1.02) !important;
    box-shadow: 0 3px 12px rgba(33, 150, 243, 0.4) !important;
    border-left: 4px solid #0d47a1 !important;
    z-index: 2;
}

.lyrics-container.dark-mode .lyrics-line.lyrics-active {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    border-left-color: #1abc9c !important;
    box-shadow: 0 3px 12px rgba(52, 152, 219, 0.4) !important;
}

.lyrics-text {
    flex: 1;
    line-height: 1.4;
    word-wrap: break-word;
}

.lyrics-time {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
    min-width: 45px;
    text-align: right;
    background: rgba(0,0,0,0.05);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-weight: 500;
    flex-shrink: 0;
}

.lyrics-container.dark-mode .lyrics-time {
    color: #bdc3c7;
    background: rgba(255,255,255,0.1);
}

.lyrics-line.lyrics-active .lyrics-time {
    background: rgba(255,255,255,0.2) !important;
    color: rgba(255,255,255,0.9) !important;
}

/* 검색 하이라이트 */
.lyrics-line.search-highlight {
    background-color: #fff3cd !important;
    border-left: 3px solid #ffc107;
    animation: searchPulse 1s ease-in-out;
}

.lyrics-container.dark-mode .lyrics-line.search-highlight {
    background-color: #6c5ce7 !important;
    border-left-color: #a29bfe;
}

@keyframes searchPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* =================================================================== */
/* 텍스트 모드 스타일 */
/* =================================================================== */

.lyrics-text-content {
    font-family: inherit;
    white-space: pre-wrap;
    line-height: 1.6;
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
    word-wrap: break-word;
}

.lyrics-container.dark-mode .lyrics-text-content {
    color: #ecf0f1;
}

/* =================================================================== */
/* 크기 조절 스타일 */
/* =================================================================== */

.lyrics-content.lyrics-size-small .lyrics-line {
    font-size: 14px;
    padding: 6px 10px;
}

.lyrics-content.lyrics-size-small .lyrics-time {
    font-size: 10px;
    min-width: 40px;
}

.lyrics-content.lyrics-size-small .lyrics-text-content {
    font-size: 14px;
}

.lyrics-content.lyrics-size-normal .lyrics-line {
    font-size: 16px;
    padding: 8px 12px;
}

.lyrics-content.lyrics-size-normal .lyrics-time {
    font-size: 12px;
    min-width: 45px;
}

.lyrics-content.lyrics-size-normal .lyrics-text-content {
    font-size: 16px;
}

.lyrics-content.lyrics-size-large .lyrics-line {
    font-size: 18px;
    padding: 10px 15px;
    line-height: 1.5;
}

.lyrics-content.lyrics-size-large .lyrics-time {
    font-size: 13px;
    min-width: 50px;
}

.lyrics-content.lyrics-size-large .lyrics-text-content {
    font-size: 18px;
    line-height: 1.7;
}

/* =================================================================== */
/* 진행률 표시 스타일 */
/* =================================================================== */

.lyrics-progress {
    margin-top: 15px;
    background: #f1f3f4;
    border-radius: 6px;
    padding: 10px;
    transition: all 0.3s ease;
}

.lyrics-container.dark-mode .lyrics-progress {
    background: #2c3e50;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #495057;
    flex-wrap: wrap;
    gap: 8px;
}

.lyrics-container.dark-mode .progress-info {
    color: #bdc3c7;
}

.progress-bar-container {
    height: 4px;
    background: #e8eaed;
    border-radius: 2px;
    overflow: hidden;
}

.lyrics-container.dark-mode .progress-bar-container {
    background: #495057;
}

.lyrics-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4285f4, #34a853);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.lyrics-container.dark-mode .lyrics-progress-bar {
    background: linear-gradient(90deg, #3498db, #1abc9c);
}

#currentVideoTime {
    color: #dc3545;
    font-weight: bold;
}

.lyrics-container.dark-mode #currentVideoTime {
    color: #e74c3c;
}

/* =================================================================== */
/* 도움말 텍스트 */
/* =================================================================== */

.lyrics-info {
    margin-top: 15px;
}

.lyrics-help-modern {
    background: rgba(52, 152, 219, 0.08);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #495057;
    transition: all 0.3s ease;
}

.lyrics-help-modern:hover {
    background: rgba(52, 152, 219, 0.12);
    border-color: rgba(52, 152, 219, 0.3);
}

.lyrics-help-modern i {
    color: #3498db;
    font-size: 16px;
}

.lyrics-container.dark-mode .lyrics-help-modern {
    background: rgba(52, 152, 219, 0.12);
    border-color: rgba(52, 152, 219, 0.3);
    color: #bdc3c7;
}

.lyrics-container.dark-mode .lyrics-help-modern:hover {
    background: rgba(52, 152, 219, 0.18);
    border-color: rgba(52, 152, 219, 0.4);
}

.lyrics-container.dark-mode .lyrics-help-modern i {
    color: #5dade2;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .lyrics-help-modern {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .lyrics-help-modern i {
        font-size: 14px;
    }
}

/* =================================================================== */
/* 🆕 챕터 모바일 대응 */
/* =================================================================== */

@media (max-width: 768px) {
    .chapters-container {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .selector-buttons {
        gap: 4px;
    }
    
    .chapter-toggle-btn {
        padding: 3px 8px;
        font-size: 11px;
        min-width: 45px;
    }
    
    .selector-controls .btn {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .chapter-card {
        padding: 10px;
    }
    
    .chapter-card-content {
        gap: 10px;
    }
    
    .chapter-number-badge {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .chapter-card-title {
        font-size: 17px;
    }
    
    .chapter-card-time {
        font-size: 11px;
    }
    
    .chapter-play-btn {
        width: 32px;
        height: 32px;
    }
    
    .chapter-title-in-lyrics {
        margin: 15px -8px;
        padding: 12px 15px;
        gap: 12px;
    }
    
    .chapter-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .chapter-name {
        font-size: 16px;
    }
    
    .chapter-start-time {
        font-size: 12px;
    }
    
    .chapter-number {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 50px;
    }
}

@media (max-width: 480px) {
    .chapters-container {
        padding: 12px;
    }
    
    .chapters-title {
        font-size: 16px;
    }
    
    .chapters-count {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .selector-buttons {
        gap: 3px;
    }
    
    .chapter-toggle-btn {
        padding: 2px 6px;
        font-size: 10px;
        min-width: 40px;
    }
    
    .chapter-card {
        padding: 8px;
    }
    
    .chapter-card-content {
        gap: 8px;
    }
    
    .chapter-number-badge {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .chapter-card-title {
        font-size: 16px;
    }
    
    .chapter-card-time {
        font-size: 10px;
    }
    
    .chapter-play-btn {
        width: 28px;
        height: 28px;
    }
    
    .chapter-title-in-lyrics {
        margin: 12px -8px;
        padding: 10px 12px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
    
    .chapter-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
        flex-shrink: 0;
    }
    
    .chapter-info {
        flex: 1;
        min-width: 0;
    }
    
    .chapter-name {
        font-size: 15px;
        margin: 0 0 2px 0;
    }
    
    .chapter-start-time {
        font-size: 11px;
        display: block;
    }
    
    .chapter-number {
        padding: 4px 8px;
        font-size: 10px;
        min-width: 40px;
        flex-shrink: 0;
    }
}

/* =================================================================== */
/* 모바일 대응 (기존) */
/* =================================================================== */

@media (max-width: 768px) {
    .lyrics-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .lyrics-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .lyrics-controls .btn {
        flex: 1;
        font-size: 11px;
        padding: 4px 6px;
        min-width: auto;
    }
    
    .lyrics-controls .btn .btn-text {
        display: none;
    }
    
    .lyrics-controls .btn i {
        margin-right: 0;
        font-size: 12px;
    }
    
    .lyrics-content {
        max-height: 280px;
        padding: 8px;
    }
    
    .lyrics-line {
        padding: 6px 8px;
        margin-bottom: 3px;
    }
    
    .lyrics-time {
        font-size: 10px;
        min-width: 35px;
        padding: 1px 4px;
        margin-left: 8px;
    }
    
    .search-input-container {
        margin-bottom: 8px;
    }
    
    .lyrics-search-input {
        font-size: 14px;
    }
    
    .search-results {
        max-height: 120px;
    }
    
    .search-result-item {
        padding: 6px 8px;
        font-size: 13px;
    }
    
    .search-result-time {
        font-size: 10px;
        margin-left: 8px;
    }
}

@media (max-width: 480px) {
    .lyrics-container {
        padding: 10px;
        margin: 10px 0;
    }
    
    .lyrics-content {
        max-height: 250px;
    }
    
    .progress-info {
        font-size: 14px;
        gap: 8px;
    }
    
    .lyrics-help-text {
        font-size: 12px;
    }
}

/* =================================================================== */
/* 🆕 플레이리스트 도움말 배지 */
/* =================================================================== */

.playlist-help-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
    animation: helpBadgePulse 2s ease-in-out infinite;
}

.playlist-help-badge:hover {
    background: linear-gradient(135deg, #ff5252, #d32f2f);
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.4);
}

.playlist-help-badge i {
    font-size: 12px;
}

@keyframes helpBadgePulse {
    0%, 100% { 
        box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
    }
    50% { 
        box-shadow: 0 2px 12px rgba(255, 107, 107, 0.6);
    }
}

/* =================================================================== */
/* 🆕 플레이리스트 도움말 모달 */
/* =================================================================== */

.playlist-help-modal-content {
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: none;
    overflow: hidden;
}

.playlist-help-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
    padding: 20px 25px;
    position: relative;
}

.playlist-help-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="music-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23music-pattern)"/></svg>');
    opacity: 0.3;
}

.help-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.help-icon {
    background: rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.help-title-area h5 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.help-subtitle {
    margin: 4px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

.help-close-btn {
    position: relative;
    z-index: 1;
    color: white;
    opacity: 0.8;
    font-size: 24px;
}

.help-close-btn:hover {
    opacity: 1;
    color: white;
}

.playlist-help-body {
    padding: 30px 25px;
    background: #f8f9fa;
}

/* =================================================================== */
/* 도움말 단계별 가이드 */
/* =================================================================== */

.help-steps {
    margin-bottom: 30px;
}

.help-step {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.step-number {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.step-content {
    flex: 1;
}

.step-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-description {
    margin: 0 0 12px 0;
    color: #5a6c7d;
    line-height: 1.5;
}

.step-example {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    color: #2d3436;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
}

/* 데모 버튼들 */
.step-demo {
    margin-top: 10px;
}

.demo-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.demo-btn {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: default;
    transition: all 0.3s ease;
}

.demo-btn.active {
    background: #3498db;
    color: white;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

.demo-arrow {
    color: #e74c3c;
    font-weight: 600;
    font-size: 13px;
    margin-left: 8px;
}

/* 재생 플로우 시각화 */
.step-visual {
    margin-top: 12px;
}

.play-flow {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.flow-item {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.flow-item.selected {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
}

.flow-item.skipped {
    background: #ddd;
    color: #666;
    text-decoration: line-through;
    opacity: 0.7;
}

.flow-item.end {
    background: linear-gradient(135deg, #6c5ce7, #5f3dc4);
    color: white;
}

.play-flow i {
    color: #74b9ff;
    font-size: 14px;
}

/* 팁 영역 */
.step-tip {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-tip span {
    color: #856404;
    font-weight: 500;
    font-size: 13px;
}

/* =================================================================== */
/* 빠른 설정 버튼들 */
/* =================================================================== */

.quick-actions {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.quick-title {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.quick-btn {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.quick-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.highlight-text {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
}

/* =================================================================== */
/* 저장 안내 */
/* =================================================================== */

.save-info {
    background: linear-gradient(135deg, #d1f2eb, #a3e9d0);
    border: 1px solid #52c788;
    border-radius: 12px;
    padding: 16px 20px;
}

.save-info-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.save-info i {
    font-size: 24px;
    margin-top: 2px;
}

.save-text strong {
    color: #00695c;
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.save-text p {
    margin: 0;
    color: #00695c;
    font-size: 13px;
    line-height: 1.4;
}

/* =================================================================== */
/* 모달 푸터 */
/* =================================================================== */

.playlist-help-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 15px 25px;
}

.playlist-help-footer .btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
}

/* =================================================================== */
/* 모바일 대응 */
/* =================================================================== */

@media (max-width: 768px) {
    .playlist-help-badge {
        font-size: 10px;
        padding: 3px 6px;
        margin-left: 6px;
    }
    
    .playlist-help-badge span {
        display: none;
    }
    
    .help-header-content {
        gap: 10px;
    }
    
    .help-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .help-title-area h5 {
        font-size: 16px;
    }
    
    .help-subtitle {
        font-size: 12px;
    }
    
    .playlist-help-body {
        padding: 20px 15px;
    }
    
    .help-step {
        gap: 15px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .quick-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .demo-buttons {
        gap: 4px;
    }
    
    .demo-btn {
        padding: 3px 8px;
        font-size: 11px;
    }
    
    .play-flow {
        gap: 6px;
        padding: 8px;
    }
    
    .flow-item {
        padding: 4px 8px;
        font-size: 11px;
    }
}