/* music page */
main.music.list .container { max-width: 920px; padding: 0 1.5rem; }
main.music .container { padding: 0 1.5rem; }
main.music.list .songs { margin-bottom: 2.5rem; }

/* Old `.board-header` is removed — replaced by .page-hero + .toolbar */

/* Old `.teams` chip group — keep selector for legacy compatibility but
   restyle to match new .chips/.chip pattern */
.teams {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0 0 1rem 0;
}
.teams .btn,
.teams a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.6);
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}
.teams .btn:hover,
.teams a:hover { color: var(--red-dark); border-color: rgba(203, 0, 14, 0.3); }
.teams .btn-dark,
.teams .active {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: #fff;
}
.teams .btn-dark:hover,
.teams .active:hover { background: var(--red-dark); color: #fff; }
.teams .count {
    color: rgba(0, 0, 0, 0.4);
    font-weight: 500;
    margin-left: 0.125rem;
    font-size: 0.7rem;
}
.teams .btn-dark .count,
.teams .active .count { color: rgba(255, 255, 255, 0.7); }

/* Year section heading inside the list (legacy `h2` markup) */
main.music.list h2 {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-bottom: 0.625rem;
    margin: 2rem 0 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-family: var(--font-serif);
    font-weight: 300;
    color: rgba(0, 0, 0, 0.7);
    font-size: 1rem;
}
main.music.list h2 strong {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: #111;
    letter-spacing: -0.01em;
    display: inline-block;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--red-dark);
    line-height: 1.2;
}
main.music.list h2 .count {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.4);
    margin-left: auto;
    font-family: var(--font-serif);
    font-style: italic;
}
@media (min-width: 768px) {
    main.music.list h2 strong { font-size: 1.65rem; }
}

/* Music list — table fallback (kept for the legacy markup),
   styled as flex rows that visually match .track-row.
   Bootstrap의 .table 기본값(흰 배경, 테두리)을 모두 무력화한다. */
.music-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    --bs-table-bg: transparent;
    --bs-table-color: inherit;
    --bs-table-border-color: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: transparent;
    background: transparent;
    color: inherit;
}
.music-table thead { display: none; }
.music-table tbody { background: transparent; }
.music-table tr {
    display: grid;
    grid-template-columns: 1.625rem 1fr auto auto;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.625rem;
    border: 1px solid transparent;
    background: transparent;
    transition: background 0.15s ease;
}
.music-table tr:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.3));
}
.music-table td {
    border: none;
    padding: 0;
    vertical-align: middle;
    background: transparent;
    box-shadow: none;
}
.music-table tr.date-group {
    grid-template-columns: 1fr;
    padding: 0.75rem 0 0.25rem;
    border: none;
}
.music-table tr.date-group:hover { background: transparent; }
.music-table tr.date-group td {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.55);
    letter-spacing: 0.05em;
    font-family: var(--font-serif);
    font-style: italic;
}
.music-table td.track {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.35);
    font-family: var(--font-serif);
    font-weight: 500;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.music-table td.title {
    min-width: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #111;
    line-height: 1.35;
    word-break: keep-all;
    overflow: hidden;
}
.music-table td.title .has-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.music-table td.title .artist {
    color: var(--red-dark);
    font-weight: 500;
    font-size: 0.7rem;
}
.music-table td.title time {
    margin: 0;
    color: rgba(0, 0, 0, 0.4);
    font-weight: 400;
    font-family: var(--font-serif);
    font-variant-numeric: tabular-nums;
    font-size: 0.7rem;
}
.music-table td.title .description {
    color: rgba(0, 0, 0, 0.55);
    font-weight: 400;
    font-size: 0.75rem;
    margin-top: 0.125rem;
    display: block;
}
.music-table td.buttons {
    text-align: right;
    white-space: nowrap;
}
.music-table td.buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1;
}
.music-table td.buttons .btn-light { background: transparent; }
.music-table td.buttons .btn:hover {
    border-color: var(--red-dark);
    color: var(--red-dark);
    background: rgba(255, 255, 255, 0.7);
}
.music-table td.buttons .count {
    font-size: 0.7rem;
    color: inherit;
    margin-left: 0.1rem;
    font-variant-numeric: tabular-nums;
}
.music-table td.buttons .count.play-count,
.music-table td.buttons .count.download-count { color: inherit; }

.play-btn.playing {
    background-color: var(--red-dark) !important;
    border-color: var(--red-dark) !important;
    color: #fff !important;
}
.play-btn.playing:hover {
    background-color: #a40009 !important;
    border-color: #a40009 !important;
    color: #fff !important;
}

/* Load more */
.load-more-btn .btn {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.7);
}
.load-more-btn .btn:hover { color: var(--red-dark); border-color: rgba(203, 0, 14, 0.3); }

/* Audio player */
#audioPlayer {
    position: fixed;
    width: calc(100% - 1.5rem);
    max-width: 540px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    bottom: 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 0.5rem 0.875rem;
    display: none;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
    background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,255,255,0.65));
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
#audioPlayer.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
#audioPlayer .metadata {
    flex-grow: 1;
    margin: 0 0.75rem;
    overflow: hidden;
    min-width: 0;
}
#audioPlayer .metadata #currentTitle {
    font-weight: 600;
    font-size: 0.825rem;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 0.25rem;
}
#audioPlayer .metadata #currentArtist {
    font-size: 0.72rem;
    color: rgba(0, 0, 0, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#audioPlayer .progress {
    cursor: pointer;
    height: 2px !important;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    margin-top: 0.25rem;
    transition: height 0.3s ease;
}
#audioPlayer .progress:hover { height: 8px !important; }
#audioPlayer .progress .progress-bar {
    background-color: var(--red-dark);
    border-radius: 999px;
}
#audioPlayer .btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
#audioPlayer .btn-danger {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: #fff;
}
#audioPlayer .btn-light {
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.5);
    width: 28px;
    height: 28px;
}
#audioPlayer .btn-light:hover { color: #000; background: transparent; }


/* ===========================================
    Album header (with cover) — used inside index.blade.php
   =========================================== */
.album { margin-bottom: 3rem; }
.album-header {
    margin-bottom: 1.25rem;
    padding: 1.5rem;
    border-radius: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.album .album-cover {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    max-width: 200px;
}
.album .album-cover img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.album-info { padding: 0; }
.album-info h6 {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.45);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
    font-weight: 400;
}
.album-info h5 {
    display: inline-block;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.5rem;
    font-style: normal;
    margin: 0 0 0.875rem 0;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--red-dark);
    color: #111;
    line-height: 1.2;
    word-break: keep-all;
}
.album-info time,
.album-info address {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.6);
    font-style: normal;
    margin: 0 0.375rem 0.375rem 0;
    font-family: var(--font-gothic);
}
.album-info time::before {
    content: '\F1E8';
    font-family: 'bootstrap-icons';
    font-size: 0.6rem;
}
.album-info address::before {
    content: '\F2C9';
    font-family: 'bootstrap-icons';
    font-size: 0.6rem;
}
.album-info .description {
    color: rgba(0, 0, 0, 0.55);
    line-height: 1.5;
    font-size: 0.8rem;
    margin: 0.5rem 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.album-artist {
    margin: 0.5rem 0 0;
    border-collapse: collapse;
    font-size: 0.75rem;
}
.album-artist td { padding: 0.15rem 0; }
.album-artist .inst {
    color: rgba(0, 0, 0, 0.45);
    text-align: right;
    padding-right: 0.5rem;
    min-width: 4rem;
}
.album-artist .name { color: #111; font-weight: 500; }

@media (min-width: 576px) {
    .album-header { grid-template-columns: 200px 1fr; align-items: center; padding: 1.5rem 2rem; }
    .album .album-cover { max-width: 100%; }
}

/* Program-style album */
.program-song {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0;
}
.program-song .song-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.program-song .song-title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--red-dark);
}
.program-song .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1;
}
.program-song .btn-dark {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: #fff;
}
.program-song .btn:hover {
    border-color: var(--red-dark);
    color: var(--red-dark);
}
.program-song .btn-dark:hover { background: #a40009; border-color: #a40009; color: #fff; }
.program-song .count { font-size: 0.65rem; margin-left: 0.125rem; font-variant-numeric: tabular-nums; color: inherit; }
.program-song .count.play-count,
.program-song .count.download-count { color: inherit; }
.program hr {
    width: 30%;
    color: rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}


/* ===========================================
    Music form
   =========================================== */
.music-form {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.form-section {
    background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.3), rgba(255,255,255,0.5));
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.form-section h3 {
    color: #111;
    font-family: var(--font-serif);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--red-dark);
    display: inline-block;
    font-size: 1rem;
}
.form .btn-section {
    text-align: center;
    margin: 2.5rem 0;
}
