.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    background: #1b1f26;
    border-radius: 12px;
    min-height: calc(100vh - 2rem);
}

.page-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bg-3);
}

.header-avatar {
    width: 4rem;
    height: 4rem;
    background: var(--bg-3);
    border-radius: 0.175rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    overflow: hidden;
    color: #9CA3AF;
    font-size: 1.25rem;
}

.header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.1rem;
}

.header-avatar.dot {
    background: linear-gradient(135deg, #ea580c, #dc2626);
    border-radius: 50%;
    color: white;
}

.header-content {
    flex: 1;
}

.header-title {
    font-size: var(--fs-xl);
    font-weight: 600;
    margin: 0;
    color: #F9FAFB;
    line-height: 1.2;
}

.header-subtitle {
    color: #9CA3AF;
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
    line-height: 1.3;
}

.header-meta {
    margin-left: auto;
    margin-top: 0.25rem;
    color: #6B7280;
    font-size: 0.875rem;
    text-align: right;
    flex-shrink: 0;
}

.back-button {
    margin-bottom: 1.5rem;
}

.back-link {
    color: var(--brand);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--brand-2);
}

.back-link i {
    margin-right: 0.5rem;
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--g-start) 0%, var(--g-mid) 60%, var(--g-end) 100%);
    border: 1px solid var(--bg-3);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.card-item:hover {
    background: linear-gradient(135deg, var(--g-start) 0%, var(--g-mid) 40%, var(--g-end) 100%);
    border-color: #4a5568;
}

.card-item.active,
.card-item.playing {
    background: linear-gradient(135deg, #7c2d12 0%, #431407 100%);
    border-color: #f97316;
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.3);
}

.card-icon {
    width: 3rem;
    height: 3rem;
    background: var(--bg-3);
    border-radius: 0.175rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-weight: 600;
    color: #F9FAFB;
    font-size: 0.875rem;
    overflow: hidden;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.1rem;
}

.card-item.active .card-icon,
.card-item.playing .card-icon {
    background: #f97316;
    color: #fff;
}

.card-content {
    flex: 1;
    min-width: 0;
}

.card-title {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: #F9FAFB;
    line-height: 1.25;
}

.card-meta {
    color: #9CA3AF;
    font-size: 0.875rem;
    line-height: 1.25;
}

.card-progress {
    margin-top: 0.5rem;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: #0f0f0f;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    transition: width 0.3s ease;
    position: relative;
    z-index: 2;
}

.progress-bar-fill.completed {
    background: linear-gradient(180deg, rgba(101, 163, 13, 0.8), rgba(132, 204, 22, 0.7));
}

.progress-bar-fill.in-progress {
    background: linear-gradient(180deg, rgba(234, 88, 12, 0.8), rgba(249, 115, 22, 0.7));
}

.card-buffer-indicator {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    background: rgba(107, 114, 128, 0.4) !important;
    background-image: 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%,
        transparent
    ) !important;
    background-size: 1rem 1rem !important;
    animation: progress-bar-stripes 1s linear infinite !important;
    z-index: 1 !important;
    transition: width 0.3s ease-out;
}

.progress-bar-fill.playing {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.7), rgba(249, 115, 22, 0.6)) !important;
    box-shadow: 0 0 8px rgba(234, 88, 12, 0.5) !important;
    animation: progress-pulse 2s ease-in-out infinite !important;
    z-index: 2 !important;
}

.card-item.active .progress-bar-container {
    position: relative !important;
}

.card-status {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-completed {
   background: rgba(101, 163, 13, 0.2);
   color: #65a30d;
}

.status-in-progress {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

.status-not-started {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.listen-count {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #9CA3AF;
    font-size: 0.75rem;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.action-btn {
    background: none;
    border: none;
    color: #6B7280;
    font-size: 14px;
    cursor: pointer;
    padding: 0.375rem;
    border-radius: 0.375rem;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-btn:hover {
    color: #374151;
    background: rgba(107, 114, 128, 0.1);
}

.download-btn:hover {
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
}

.share-btn:hover {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.1);
}

.favorite-btn {
    background: none;
    border: none;
    color: #6B7280;
    font-size: 16px;
    cursor: pointer;
    padding: 0.375rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.favorite-btn:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.favorite-btn.active {
    color: #f97316;
}

.favorite-btn.active:hover {
    color: #ea580c;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6B7280;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #4B5563;
}

@keyframes progress-bar-stripes {
    from { background-position: 1rem 0; }
    to   { background-position: 0 0; }
}

@keyframes progress-pulse {
    0%, 100% { 
        box-shadow: 0 0 6px rgba(234, 88, 12, 0.4);
    }
    50% { 
        box-shadow: 0 0 10px rgba(234, 88, 12, 0.7);
    }
}

@keyframes favoriteAnimation {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-3px) scale(1.15);
    }
    60% {
        transform: translateY(-1px) scale(1.05);
    }
}

@media (max-width: 768px) {
    .page-container {
        margin: 0;
        padding: 0.75rem;
    }
    
    .page-header {
        margin-bottom: 1.5rem;
    }
    
    .header-avatar {
        width: 4rem;
        height: 4rem;
        font-size: 1.125rem;
    }
    
    .header-title { font-size: 1.125rem; }
    .header-subtitle, .header-meta { font-size: 0.7rem; }
    
    .back-button {
        margin-bottom: 1rem;
    }
    
    .card-list { gap: 0.375rem; }
    
    .card-item { padding: 0.625rem; }
    
    .card-icon {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 0.875rem;
    }
    
    .card-title { font-size: 0.875rem; }
    .card-meta { font-size: 0.75rem; }
    
    .card-progress { margin-top: 0.375rem; }
    
    .progress-bar-container { height: 3px; }
    
    .status-badge {
        padding: 0.1rem 0.375rem;
        font-size: 0.625rem;
    }
    
    .listen-count { font-size: 0.625rem; }
    
    .action-btn {
        font-size: 12px;
        min-width: 24px;
        height: 24px;
        padding: 0.25rem;
    }
    
    .favorite-btn {
        font-size: 14px;
        min-width: 28px;
        height: 28px;
        padding: 0.25rem;
    }
    
    .status-group {
        gap: 0.375rem;
    }
    
    .empty-state { padding: 2rem 1rem; }
    
    .empty-state i { font-size: 2rem; }
}

@media (min-width: 769px) {
    .desktop-nav,
    .desktop-user-menu {
        display: block !important;
    }
    
    .mobile-menu-button {
        display: none !important;
    }
}
