/* =============================================
   MUSEiT Player Styles
   Requires: base.css
   ============================================= */

/* ===== PLAYER CONTAINER ===== */
.container {
    max-width: 800px;
}

body {
    padding: 20px;
}

/* ===== MOMENT CARD ===== */
.moment-card {
    padding: 40px 32px;
    margin-bottom: 24px;
}

.moment-header {
    text-align: center;
    margin-bottom: 32px;
}

.moment-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.6px;
}

.moment-meta {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ===== VOICE SECTION ===== */
.voice-section {
    background: rgba(164, 229, 224, 0.18);
    border: 1px solid rgba(12, 97, 112, 0.18);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 28px;
    text-align: center;
}

[data-theme="dark"] .voice-section {
    background: rgba(55, 190, 176, 0.10);
    border-color: rgba(164, 229, 224, 0.18);
}

.voice-section h3 {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

audio {
    width: 100%;
    max-width: 500px;
}

/* ===== VIDEO SECTION ===== */
.video-section {
    margin-bottom: 28px;
}

.video-section h3 {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.youtube-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 14px;
}

/* ===== CHARITY BADGE ===== */
.charity-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--mint) 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 14px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 12px 30px rgba(12, 97, 112, 0.25);
}

/* ===== CREATE BUTTON ===== */
.create-button {
    display: inline-block;
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--mint) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 24px;
}

.create-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(12, 97, 112, 0.30);
}

/* ===== LOADING STATE ===== */
.loading {
    display: block;
    text-align: center;
    padding: 80px 20px;
}

/* ===== ERROR STATE ===== */
.error {
    text-align: center;
    padding: 60px 20px;
}

.error-card {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 40px 32px;
    margin-bottom: 28px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .error-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.10);
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
}

.error h2 {
    color: var(--text);
    font-size: 24px;
    margin-bottom: 12px;
}

.error p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ===== MOBILE ===== */
@media (max-width: 640px) {
    .moment-card {
        padding: 28px 20px;
    }

    .moment-header h1 {
        font-size: 22px;
    }
}
