/* ===== Music Page Styles ===== */

/* ===== Page hero (inner pages) ===== */
/* .page-hero определен в global.css - удален дубликат */

/* ===== Portfolio / Works ===== */
.works {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.work-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}
.work-card.is-playing {
    border-color: var(--neon-violet);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3), 0 0 0 1px rgba(168, 85, 247, 0.2);
    transform: translateY(-2px);
}
.work-card-inner { flex: 1; display: flex; flex-direction: column; }
.work-card h3.work-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}
.work-desc {
    color: var(--text-muted);
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    line-height: 1.4;
}
.work-audio {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: auto;
    padding: 0.5rem 0.6rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.work-audio-bar-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    justify-content: center;
}
.work-audio-time-row {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.work-audio-time-row .work-audio-dur { opacity: 0.8; }
.work-audio-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.work-play {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--neon-violet), var(--neon-pink));
    color: #fff;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(168, 85, 247, 0.4);
}
.work-play:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.5);
}
.work-play.playing .work-play-icon { display: none; }
.work-play .work-play-icon { display: block; }
.work-play.playing::after {
    content: '❚❚';
    font-size: 0.6rem;
    letter-spacing: -0.15em;
    color: #fff;
}
.work-audio-bar {
    flex: 0 0 6px;
    width: 100%;
    min-width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.work-audio-controls .work-audio-bar {
    flex: 0 0 6px;
}
.work-audio-bar:hover { background: rgba(255, 255, 255, 0.15); }
.work-audio-progress {
    display: block;
    height: 100%;
    min-height: 6px;
    width: 0;
    background: linear-gradient(90deg, var(--neon-violet), var(--neon-cyan));
    border-radius: 3px;
    transition: width 0.15s linear;
}
.work-audio .work-audio-player {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}
.video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 0.75rem;
    background: #000;
}
.video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.work-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
}
.work-actions-icons .work-action-btn {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    justify-content: center;
}
.work-actions-icons .work-action-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}
.work-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    text-decoration: none;
    font-family: inherit;
}
.work-action-btn:hover {
    color: #fff;
}
.work-action-icon {
    display: inline-flex;
    flex-shrink: 0;
}
.work-action-icon svg {
    display: block;
    vertical-align: middle;
}
.work-action-yt {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.45);
}
.work-action-yt:hover {
    background: rgba(248, 113, 113, 0.2);
    border-color: #f87171;
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.35);
}
.work-action-label {
    white-space: nowrap;
}

.no-works {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}
.no-works code {
    background: var(--surface);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
}
.no-works a {
    color: var(--neon-cyan);
    text-decoration: none;
}
.no-works a:hover { text-decoration: underline; }
.no-works-hint {
    margin-top: 1rem;
    font-size: 0.95rem;
}
.no-works-hint .btn { margin-top: 0.5rem; }

/* ===== Support CTA on music page ===== */
.support-music-cta .support-music-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.support-music-cta h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    color: #fff;
}
.support-music-cta p {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}
.support-music-cta .btn {
    min-width: 220px;
}
