/* ==========================================================================
   deepwave - Modern Dark Music Streaming Theme
   ========================================================================== */

:root {
    --bg-primary: #0a0d14;
    --bg-secondary: #101522;
    --bg-tertiary: #182032;
    --bg-glass: rgba(16, 21, 34, 0.85);
    --bg-card: rgba(24, 32, 50, 0.6);
    --bg-card-hover: rgba(32, 43, 68, 0.9);
    
    --accent-blue: #3b82f6;
    --accent-indigo: #6366f1;
    --accent-cyan: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --accent-wave: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-hover: #ffffff;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(59, 130, 246, 0.3);
    
    --header-height: 70px;
    --player-height: 90px;
    --sidebar-width: 240px;
    --border-radius: 12px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Layout Structure
   ========================================================================== */
.app-container {
    display: flex;
    flex: 1;
    height: calc(100vh - var(--player-height));
    height: calc(100dvh - var(--player-height));
    position: relative;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
    user-select: none;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px 20px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--accent-wave);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.brand:hover {
    opacity: 0.85;
}

.brand i {
    -webkit-text-fill-color: var(--accent-cyan);
    font-size: 1.5rem;
}

.nav-section {
    margin-bottom: 20px;
}

.nav-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 6px 12px;
    font-weight: 700;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-item:hover {
    color: var(--text-hover);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: #ffffff;
    background: var(--accent-gradient);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.nav-item i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-profile-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.03);
}

.user-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.user-nickname {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role-badge {
    font-size: 0.7rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Main Content Area */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.07), transparent 40%),
                radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.05), transparent 40%);
    overflow: hidden;
}

/* Top Bar */
.top-bar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(10, 13, 20, 0.4);
    backdrop-filter: blur(12px);
    flex-shrink: 0;
    gap: 24px;
}

.mobile-nav-tabs {
    display: none;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 540px;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition-fast);
}

.search-input {
    width: 100%;
    height: 44px;
    padding: 0 20px 0 46px;
    border-radius: 22px;
    border: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-size: 0.92rem;
    outline: none;
    transition: var(--transition-fast);
}

.search-input::placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-input:hover {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
}

.search-input:focus {
    border-color: var(--accent-blue);
    background-color: rgba(16, 21, 34, 0.85);
    box-shadow: 0 0 0 3px var(--border-glow), 0 4px 16px rgba(0, 0, 0, 0.2);
}

.search-box:focus-within i {
    color: var(--accent-blue);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn:hover {
    background-color: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background: var(--accent-gradient);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

/* Content Container */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
}

.content-area::-webkit-scrollbar {
    width: 6px;
}
.content-area::-webkit-scrollbar-track {
    background: transparent;
}
.content-area::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
.content-area::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Views & Headers */
.view-header {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.view-title {
    font-size: 1.6rem;
    font-weight: 700;
}

.view-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
}

.card-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card-item:hover {
    background-color: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-cover {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    background-color: var(--bg-tertiary);
    object-fit: cover;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-play-overlay {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(8px);
    transition: var(--transition-fast);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.card-item:hover .card-play-overlay {
    opacity: 1;
    transform: translateY(0);
}

.card-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tracks Table */
.tracks-table-container {
    width: 100%;
    margin-top: 14px;
}

.tracks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.tracks-table th {
    text-align: left;
    padding: 10px 14px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.tracks-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.track-row {
    cursor: pointer;
    transition: var(--transition-fast);
}

.track-row:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.track-row.active {
    background-color: rgba(59, 130, 246, 0.12);
}

.track-row.active .track-title {
    color: var(--accent-cyan);
    font-weight: 600;
}

.track-num {
    width: 36px;
    color: var(--text-muted);
    text-align: center;
}

.track-title-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.track-thumb {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background-color: var(--bg-tertiary);
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-shrink: 0;
    overflow: hidden;
}

.track-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
}

.track-info-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.track-title {
    font-weight: 500;
    color: var(--text-primary);
}

.track-artist {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.track-album {
    color: var(--text-secondary);
}

.track-badge {
    display: inline-block;
    padding: 1px 5px;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-cyan);
    margin-left: 6px;
    text-transform: uppercase;
}

.track-cache-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.68rem;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    margin-left: 6px;
    font-weight: 600;
    vertical-align: middle;
}

.player-cache-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    font-weight: 600;
    white-space: nowrap;
}

.track-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 4px;
}

.btn-icon:hover {
    color: var(--text-hover);
}

.btn-icon.favorited {
    color: #ef4444;
}

/* ==========================================================================
   Bottom Music Player Bar
   ========================================================================== */
.player-bar {
    height: var(--player-height);
    background: rgba(14, 18, 30, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
    position: relative;
}

/* Current Playing Track */
.player-current-track {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.player-cover {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: var(--bg-tertiary);
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-muted);
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.player-cover img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.player-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.player-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-artist {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-album {
    font-size: 0.72rem;
    color: var(--accent-cyan);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
}

.player-album:hover {
    text-decoration: underline;
    color: #ffffff;
}

/* Controls */
.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 18px;
}

.btn-ctrl {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6px;
}

.btn-ctrl:hover {
    color: var(--text-hover);
}

.btn-ctrl.active {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.btn-ctrl .repeat-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    font-size: 0.55rem;
    font-weight: 800;
    line-height: 1;
    background: var(--accent-cyan);
    color: #0a0d14;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.btn-play-pause {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    transition: var(--transition-fast);
}

.btn-play-pause:hover {
    transform: scale(1.05);
    color: #ffffff;
}

/* Progress Bar */
.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 540px;
}

.time-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 34px;
    text-align: center;
}

.seek-bar-wrapper {
    flex: 1;
    height: 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.seek-bar-bg {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    position: relative;
}

.seek-bar-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.seek-bar-wrapper:hover .seek-bar-bg {
    height: 6px;
}

/* Volume & Utility Controls */
.player-extra-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.volume-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider-wrapper {
    width: 75px;
    height: 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.volume-bar-bg {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    position: relative;
}

.volume-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 80%;
    background-color: var(--text-secondary);
    border-radius: 2px;
}

.volume-slider-wrapper:hover .volume-bar-fill {
    background: var(--accent-blue);
}

/* ==========================================================================
   Modals & Popups
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    z-index: 1000;
}

.modal-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 440px;
    padding: 24px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-input {
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.88rem;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent-blue);
}

/* Toast */
.toast-msg {
    position: fixed;
    bottom: 105px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 40, 60, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 1100;
    display: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* ==========================================================================
   Responsive (Mobile & Tablet Optimization)
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
        --player-height: 148px;
    }

    /* 사이드바 숨김 */
    .sidebar {
        display: none;
    }

    /* 메인 래퍼 및 콘텐츠 여백 */
    .main-wrapper {
        width: 100vw;
        height: calc(100vh - var(--player-height));
        height: calc(100dvh - var(--player-height));
    }

    .top-bar {
        height: var(--header-height);
        padding: 0 14px;
        gap: 10px;
    }

    .search-box {
        flex: 1;
        max-width: 100%;
        height: 38px;
    }

    .search-box i {
        left: 14px;
        font-size: 0.88rem;
    }

    .search-input {
        height: 38px;
        padding: 0 14px 0 36px;
        font-size: 16px; /* iOS 자동 확대 방지 */
    }

    .content-area {
        padding: 14px 14px calc(180px + env(safe-area-inset-bottom, 0px)) 14px;
    }

    /* 모바일 상단 가로 스크롤 탭바 */
    .mobile-nav-tabs {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 10px 14px 10px 14px;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid var(--border-color);
        background: rgba(14, 18, 30, 0.85);
        backdrop-filter: blur(12px);
        flex-shrink: 0;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .mobile-nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .mobile-tab-btn {
        background: var(--bg-tertiary);
        border: 1px solid var(--border-color);
        color: var(--text-secondary);
        padding: 7px 15px;
        border-radius: 20px;
        font-size: 0.82rem;
        font-weight: 500;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
        transition: var(--transition-fast);
        touch-action: manipulation;
    }

    .mobile-tab-btn.active {
        background: var(--accent-gradient);
        color: #fff;
        border-color: transparent;
        font-weight: 600;
        box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
    }

    /* 앨범 상세 모바일 히어로 */
    .album-detail-hero {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 16px !important;
        margin-bottom: 24px !important;
    }

    .album-detail-hero img,
    .album-detail-hero .album-cover-placeholder {
        width: 170px !important;
        height: 170px !important;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6) !important;
    }

    .album-detail-hero .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 12px 0;
        font-size: 0.95rem;
    }

    /* 모바일 앨범/아티스트 카드 2열 그리드 */
    .cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .card-item {
        padding: 10px !important;
    }

    .card-title {
        font-size: 0.88rem !important;
    }

    /* 모바일 트랙 리스트 (테이블 -> 터치형 리스트 아이템) */
    .tracks-table-container {
        margin-top: 8px;
    }

    .tracks-table thead {
        display: none;
    }

    .tracks-table, .tracks-table tbody, .tracks-table tr, .tracks-table td {
        display: block;
        width: 100%;
    }

    .track-row {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 10px 8px !important;
        border-radius: 10px;
        margin-bottom: 4px;
        background: transparent;
        touch-action: manipulation;
    }

    .track-row.active {
        background: rgba(59, 130, 246, 0.15) !important;
    }

    .track-num {
        display: none !important;
    }

    .track-row td:nth-child(2) {
        flex: 1;
        min-width: 0;
        padding: 0 !important;
        border-bottom: none !important;
    }

    .track-album {
        display: none !important;
    }

    .track-row td:nth-child(4) {
        display: none !important; /* 재생시간 숨김 (곡 메타에 포함) */
    }

    .track-row td:nth-child(5) {
        width: auto !important;
        padding: 0 !important;
        border-bottom: none !important;
    }

    .track-thumb {
        width: 44px !important;
        height: 44px !important;
        border-radius: 8px !important;
    }

    .track-title {
        font-size: 0.9rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .track-artist {
        font-size: 0.78rem !important;
        margin-top: 2px;
    }

    .track-actions {
        gap: 6px;
    }

    .btn-icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.05rem;
        touch-action: manipulation;
    }

    /* 2줄 분리형 모바일 플레이어 바 (안드로이드 시스템 버튼 & Safe Area 완전 대응) */
    .player-bar {
        height: auto !important;
        min-height: var(--player-height);
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 10px 16px max(24px, calc(16px + env(safe-area-inset-bottom, 0px))) 16px !important;
        gap: 8px !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    }

    /* 1단: 곡 정보 + 좋아요 버튼 */
    .player-current-track {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .player-cover {
        width: 42px;
        height: 42px;
        border-radius: 8px;
    }

    .player-meta {
        flex: 1;
        min-width: 0;
    }

    .player-title {
        font-size: 0.88rem;
    }

    .player-artist {
        font-size: 0.76rem;
    }

    /* 2단: 시크바 + 재생 컨트롤 버튼들 */
    .player-controls {
        width: 100%;
        gap: 6px;
    }

    .progress-container {
        width: 100%;
        max-width: 100%;
        gap: 8px;
    }

    .time-text {
        font-size: 0.7rem;
        min-width: 30px;
    }

    .control-buttons {
        gap: 28px;
        margin-bottom: 2px;
    }

    .btn-ctrl {
        font-size: 1.15rem;
        padding: 6px;
        touch-action: manipulation;
    }

    .btn-play-pause {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
        touch-action: manipulation;
    }

    .player-extra-controls {
        display: none !important;
    }

    /* 모달 팝업 모바일 최적화 */
    .modal-card {
        width: 92% !important;
        max-width: 380px !important;
        padding: 20px !important;
        border-radius: 14px !important;
    }

    .form-input {
        height: 42px;
        font-size: 16px; /* iOS Safari 줌 방지 */
    }

    .toast-msg {
        bottom: calc(165px + env(safe-area-inset-bottom, 0px));
    }
}
