﻿/* ============================================
   SHARED MODAL CONTENT STYLES
   Каркас всех модалок — в styles/modal-shell.css.
   Здесь только контент конкретных модалок.
   ============================================ */

/* ============================================
   MUSIC MODAL
   ============================================ */
.music-modal-panel {
    width: min(100%, 800px);
    max-height: min(85vh, 760px);
}

.music-modal-search {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.track-search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-primary);
    outline: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.track-search-input::placeholder {
    color: var(--text-secondary);
}

.track-search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.music-modal-tracks {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    width: 100%;

    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
}

/* Mobile Styles: компактная версия — ниже карточки, меньше отступы и поиск.
   Селекторы с .music-modal, чтобы перебивать базовые правила модуля. */
@media (max-width: 768px) {
    .music-modal .music-modal-search {
        margin-bottom: 0;
    }

    .music-modal .track-search-input {
        padding: 0.65rem 1.1rem;
        font-size: 0.9rem;
    }

    .music-modal .music-modal-tracks {
        gap: 0.6rem;
        padding: 0.6rem;
    }

    .music-modal .track-card {
        gap: 0.8rem;
        padding: 0.65rem 0.75rem;
        border-radius: 14px;
    }

    .music-modal .track-card::before,
    .music-modal .track-card::after {
        border-radius: 14px;
    }

    .music-modal .track-cover {
        width: 52px;
        height: 52px;
        border-radius: 10px;
    }

    .music-modal .track-title {
        font-size: 0.95rem;
    }

    .music-modal .track-artist {
        font-size: 0.72rem;
    }

    .music-modal .track-listen-btn {
        padding: 0.5rem 1.1rem;
        font-size: 0.75rem;
        border-width: 1px;
    }
}

/* ============================================
   SECRET MODAL
   ============================================ */
.secret-modal-panel {
    width: min(92vw, 800px);
    min-height: 280px;
    padding: 20px 28px 26px;
}

.secret-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.6rem 1rem 1.2rem;
    min-height: 170px;
}

@keyframes secretDotPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}

.secret-audio-player {
    display: none;
}

.secret-audio-card {
    width: min(100%, 620px);
    margin: 0 auto;
    padding: 1.2rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 36px rgba(0, 0, 0, 0.48);
}

.secret-audio-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.secret-audio-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.75);
    animation: secretDotPulse 1.2s infinite ease-in-out;
}

.secret-audio-title {
    font-family: var(--font-display);
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.secret-audio-controls {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.9rem;
}

.secret-audio-play {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.24s ease, color 0.24s ease, filter 0.24s ease, text-shadow 0.24s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.92;
}

.secret-audio-play:hover {
    opacity: 1;
    color: #d6d6d6;
    filter: brightness(0.9);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.24);
}

.secret-audio-play.is-playing {
    opacity: 1;
}

.secret-audio-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.secret-audio-icon svg {
    width: 100%;
    height: 100%;
    fill: #fff;
}

.secret-audio-icon--pause {
    display: none;
}

.secret-audio-play.is-playing .secret-audio-icon--play {
    display: none;
}

.secret-audio-play.is-playing .secret-audio-icon--pause {
    display: inline-flex;
}

.secret-audio-progress-wrap {
    width: 100%;
}

.secret-audio-progress {
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    cursor: default;
}

.secret-audio-progress-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffffff, #bfbfbf);
    transition: width 0.1s linear;
}

.secret-audio-time {
    margin-top: 0.38rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
}

.secret-1402-count {
    margin-top: 1rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
}

@media (max-width: 768px) {
    .modal .secret-modal-panel {
        padding: 18px 20px 24px;
    }

    .secret-modal-body {
        padding: 0.4rem 0.5rem 1rem;
        min-height: 150px;
    }
}

/* ============================================
   UPCOMING RELEASE MODAL
   ============================================ */
.upcoming-modal-panel {
    width: min(100%, 420px);
}

.upcoming-modal-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.upcoming-modal-artwork {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.upcoming-modal-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.upcoming-modal-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.upcoming-modal-track-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 5vw, 1.6rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.05;
    word-break: break-word;
}

.upcoming-modal-date {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.04em;
}

.upcoming-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.upcoming-modal-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.82rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    text-align: center;
}

.upcoming-modal-btn--tiktok {
    background: linear-gradient(135deg, rgba(255, 0, 80, 0.14), rgba(0, 242, 234, 0.08));
    border-color: rgba(255, 255, 255, 0.14);
}

.upcoming-modal-btn--tiktok:hover {
    background: linear-gradient(135deg, rgba(255, 0, 80, 0.28), rgba(0, 242, 234, 0.18));
    border-color: rgba(255, 255, 255, 0.24);
}

.upcoming-modal-btn--waiting {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.14), rgba(239, 68, 68, 0.08));
    background-size: 200% 200%;
    animation: gradient-shift-waiting 3s ease infinite;
    border: 2px solid rgba(220, 38, 38, 0.2);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.15);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.upcoming-modal-btn--waiting:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.28), rgba(239, 68, 68, 0.18));
    box-shadow: 0 6px 28px rgba(220, 38, 38, 0.25);
    transform: translateY(-2px);
    border-color: rgba(220, 38, 38, 0.3);
}

.upcoming-modal-btn--waiting:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(220, 38, 38, 0.15);
}

.upcoming-modal-btn--waiting.is-waiting {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(74, 222, 128, 0.08));
    border-color: rgba(34, 197, 94, 0.2);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.15);
}

.upcoming-modal-btn--waiting.is-waiting:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.28), rgba(74, 222, 128, 0.18));
    box-shadow: 0 6px 28px rgba(34, 197, 94, 0.25);
}

@keyframes gradient-shift-waiting {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

#upcoming-modal-waiting-count {
    font-weight: 700;
    opacity: 0.9;
}
