@charset "utf-8";
@import url('https://googleapis.com');

#music_app {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #fcfcfd;
    padding: 30px 0;
    letter-spacing: -0.02em;
}

/* 상단 타이틀 부 */
#music_app .music-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}
#music_app .music-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 8px;
}
#music_app .music-header p {
    font-size: 14px;
    color: #86868b;
}

/* 그리드 레이아웃 (레이아웃 깨짐 방지) */
#music_app .music-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
#music_app .music-sidebar-col {
    flex: 0 0 320px;
    width: 320px;
}
#music_app .music-content-col {
    flex: 1;
    min-width: 0; /* flex 자식 text-truncate 버그 방지 */
}

@media (max-width: 991px) {
    #music_app .music-sidebar-col { flex: 0 0 100%; width: 100%; }
}

/* 사이드바 박스 공통 */
#music_app .sb-box {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
#music_app .sb-box h5 {
    font-size: 16px;
    font-weight: 700;
    color: #2c2c2e;
    margin-bottom: 18px;
    border-left: 4px solid #6f42c1;
    padding-left: 8px;
}

/* 입력 폼 스타일 UI */
#music_app .form-group { margin-bottom: 14px; }
#music_app .form-group label { display: block; font-size: 12px; font-weight: 500; color: #515154; margin-bottom: 6px; }
#music_app .form-ctrl {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    border: 1px solid #d2d2d7;
    border-radius: 6px;
    background-color: #fff;
    box-sizing: border-box;
    transition: all 0.2s;
}
#music_app .form-ctrl:focus { border-color: #6f42c1; outline: none; box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.15); }

/* 버튼 스타일 */
#music_app .btn-submit {
    width: 100%;
    padding: 12px;
    background: #6f42c1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
#music_app .btn-submit:hover { background: #5a32a3; }

/* 카테고리 메뉴 목록 */
#music_app .cate-list { list-style: none; padding: 0; margin: 0; }
#music_app .cate-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    color: #424245;
    font-size: 13px;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 4px;
    transition: all 0.2s;
}
#music_app .cate-item a:hover { background-color: #f5f5f7; color: #6f42c1; }
#music_app .cate-item.active a { background-color: #6f42c1; color: #fff; font-weight: 500; }
#music_app .cate-count {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f5f5f7;
    color: #86868b;
}
#music_app .cate-item.active .cate-count { background: rgba(255,255,255,0.2); color: #fff; }

/* 메인 카드 리스트 디자인 */
#music_app .content-title { font-size: 18px; font-weight: 700; color: #1d1d1f; margin-bottom: 20px; }
#music_app .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
#music_app .music-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.01);
    transition: transform 0.2s, box-shadow 0.2s;
}
#music_app .music-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: #d2d2d7;
}

/* 카드 상단 배지 및 삭제버튼 */
#music_app .card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
#music_app .badge-tag { font-size: 11px; font-weight: 500; background: #f5f5f7; color: #6f42c1; padding: 4px 8px; border-radius: 4px; }
#music_app .btn-del {
    background: none; border: none; color: #bebecc; font-size: 16px; cursor: pointer; padding: 0 4px; line-height: 1;
}
#music_app .btn-del:hover { color: #ff3b30; }

/* 카드 텍스트 */
#music_app .card-name { font-size: 16px; font-weight: 700; color: #1d1d1f; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#music_app .card-desc { font-size: 13px; color: #6e6e73; line-height: 1.5; margin-bottom: 20px; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; height: 39px; }

/* 바로가기 청취 버튼 (아이콘 삽입 스타일) */
#music_app .btn-listen {
    display: block;
    text-align: center;
    padding: 10px;
    background: #f5f5f7;
    color: #1d1d1f;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}
#music_app .btn-listen:hover {
    background: #1d1d1f;
    color: #ffffff;
}

/* 빈 항목 상태 */
#music_app .empty-box {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px dashed #d2d2d7;
    border-radius: 12px;
    color: #86868b;
    font-size: 14px;
}

/* 페이징 내비게이션 바 위치를 화면 중앙(센터)으로 이동 */
#music_app .pg_wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 20px auto 20px auto !important;
    width: 100% !important;


/* 마스터 대시보드 전용 부가 스타일 추가 */
#favorites_master_app .master-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 10px;
}
#favorites_master_app .form-ctrl {
    width: 100%;
    border: 1px solid #d2d2d7;
    border-radius: 6px;
    box-sizing: border-box;
}