/* ================================================================
   view_mars.php — Mars HIMATIKA
   Tema: Hymn / Anthem — megah, khidmat, berkarakter
   ================================================================ */

/* ── Hero override untuk nuansa musikal ── */
.mars-hero {
    background: linear-gradient(160deg, #06060f 0%, #0a0d1e 35%, #120828 65%, #06060f 100%);
    padding: 80px 48px 72px;
    border-bottom: 2px solid rgba(201,168,76,.3);
    position: relative;
    overflow: hidden;
}
.mars-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 70% at 50% 110%, rgba(201,168,76,.12) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 20% 20%, rgba(0,100,180,.08) 0%, transparent 55%),
        radial-gradient(ellipse 30% 30% at 80% 10%, rgba(180,0,100,.06) 0%, transparent 55%);
    pointer-events: none;
}
/* Staff notasi musik dekoratif */
.mars-staff {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.mars-staff-line {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,.08) 20%, rgba(201,168,76,.08) 80%, transparent);
}
.mars-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}
.mars-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(201,168,76,.2), rgba(201,168,76,.08));
    border: 1px solid rgba(201,168,76,.35);
    box-shadow: 0 0 32px rgba(201,168,76,.15), inset 0 1px 0 rgba(255,255,255,.06);
    margin-bottom: 22px;
    font-size: 30px;
    animation: mars-breathe 4s ease-in-out infinite;
}
@keyframes mars-breathe {
    0%, 100% { box-shadow: 0 0 32px rgba(201,168,76,.15), inset 0 1px 0 rgba(255,255,255,.06); }
    50%       { box-shadow: 0 0 52px rgba(201,168,76,.28), inset 0 1px 0 rgba(255,255,255,.06); }
}
.mars-hero-tag {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c9a84c;
    border: 1px solid rgba(201,168,76,.35);
    padding: 4px 14px;
    border-radius: 100px;
    background: rgba(201,168,76,.07);
    margin-bottom: 16px;
}
.mars-hero h1 {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: clamp(26px, 4.5vw, 48px);
    font-weight: 700;
    color: white;
    letter-spacing: .5px;
    margin-bottom: 12px;
    line-height: 1.15;
}
.mars-hero h1 span { color: #ffc83c; }
.mars-hero-sub {
    font-family: 'IM Fell English', Georgia, serif;
    font-style: italic;
    font-size: 15px;
    color: rgba(255,255,255,.55);
    line-height: 1.75;
}
/* Ornamen bawah judul */
.mars-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 18px 0 14px;
}
.mars-orn-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,.5));
}
.mars-orn-line:last-child {
    background: linear-gradient(90deg, rgba(201,168,76,.5), transparent);
}
.mars-orn-diamond {
    width: 6px; height: 6px;
    background: #c9a84c;
    transform: rotate(45deg);
}

/* ── AREA MEDIA PLAYER ── */
.mars-player-section {
    margin-bottom: 52px;
}
.mars-player-wrap {
    background: linear-gradient(160deg, #0e0e1a 0%, #141425 100%);
    border: 1px solid rgba(201,168,76,.25);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.03);
    position: relative;
}
.mars-player-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c9a84c 30%, #f0d070 50%, #c9a84c 70%, transparent);
}

/* Header player */
.mars-player-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px 14px;
    border-bottom: 1px solid rgba(201,168,76,.1);
}
.mars-player-disc {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: conic-gradient(#1a1a2e 0%, #0077aa 25%, #c9a84c 50%, #0077aa 75%, #1a1a2e 100%);
    animation: mars-spin 8s linear infinite;
    animation-play-state: paused;
    box-shadow: 0 0 12px rgba(201,168,76,.2);
    position: relative;
    flex-shrink: 0;
}
.mars-player-disc::after {
    content: '';
    position: absolute;
    inset: 30%;
    border-radius: 50%;
    background: #0e0e1a;
    border: 1px solid rgba(255,255,255,.1);
}
.mars-player-disc.playing { animation-play-state: running; }
@keyframes mars-spin { to { transform: rotate(360deg); } }

.mars-player-info { flex: 1; min-width: 0; }
.mars-player-title {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 700;
    color: #e8dfc8;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mars-player-meta {
    font-size: 11px;
    color: rgba(232,223,200,.4);
    letter-spacing: .5px;
}
.mars-player-type {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(201,168,76,.12);
    color: #c9a84c;
    border: 1px solid rgba(201,168,76,.25);
    white-space: nowrap;
}

/* Embed iframe */
.mars-embed-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 for video */
    background: #000;
}
.mars-embed-container.audio-mode {
    padding-top: 0;
    height: 180px;
}
.mars-embed-container iframe,
.mars-embed-container audio {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}
.mars-embed-container audio {
    background: transparent;
    height: 100%;
}

/* Audio player wrapper styling */
.mars-audio-wrap {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    min-height: 140px;
    justify-content: center;
}
.mars-audio-wrap audio {
    position: static;
    width: 100%;
    border-radius: 8px;
    filter: invert(1) hue-rotate(180deg);
    height: 40px;
}

/* Keterangan player */
.mars-player-footer {
    padding: 14px 22px;
    border-top: 1px solid rgba(201,168,76,.08);
    display: flex;
    align-items: center;
    gap: 10px;
}
.mars-player-desc {
    font-size: 12px;
    color: rgba(232,223,200,.45);
    font-family: 'IM Fell English', Georgia, serif;
    font-style: italic;
    flex: 1;
}
.mars-pencipta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    color: #c9a84c;
    letter-spacing: .5px;
    background: rgba(201,168,76,.08);
    border: 1px solid rgba(201,168,76,.2);
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

/* ── LIRIK SECTION ── */
.mars-lyrics-section {
    margin-bottom: 52px;
}
.mars-lyrics-card {
    background: linear-gradient(160deg, #0d0d1a 0%, #111120 100%);
    border: 1px solid rgba(201,168,76,.22);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
    position: relative;
}
.mars-lyrics-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,119,170,.6) 40%, rgba(201,168,76,.4) 60%, transparent);
}

/* Pattern kertas not dekoratif di belakang lirik */
.mars-lyrics-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 28px,
        rgba(201,168,76,.025) 28px,
        rgba(201,168,76,.025) 29px
    );
    pointer-events: none;
}

.mars-lyrics-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 28px;
    border-bottom: 1px solid rgba(201,168,76,.1);
    position: relative;
    z-index: 2;
}
.mars-lyrics-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(201,168,76,.12);
    border: 1px solid rgba(201,168,76,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.mars-lyrics-title {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 700;
    color: #c9a84c;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Isi lirik */
.mars-lyrics-body {
    padding: 36px 40px;
    position: relative;
    z-index: 2;
}
.mars-lyrics-text {
    font-family: 'IM Fell English', Georgia, serif;
    font-style: italic;
    font-size: 18px;
    line-height: 2.2;
    color: #e8dfc8;
    white-space: pre-line;
    text-align: center;
    letter-spacing: .3px;
}
/* Highlight baris chorus / reff jika dibungkus **teks** */
.mars-lyrics-text strong {
    font-style: normal;
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 700;
    color: #ffc83c;
    display: block;
    margin: 6px 0 2px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Divider antar bait */
.mars-lyrics-stanza {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(201,168,76,.08);
}
.mars-lyrics-stanza:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Tanda kutip dekoratif */
.mars-open-quote {
    font-family: 'Cinzel Decorative', serif;
    font-size: 80px;
    line-height: .7;
    color: rgba(201,168,76,.08);
    float: left;
    margin-right: -12px;
    margin-bottom: -20px;
    font-style: normal;
    pointer-events: none;
}

/* Jika belum ada data */
.mars-empty {
    text-align: center;
    padding: 80px 20px;
    color: rgba(232,223,200,.4);
}
.mars-empty-icon {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: .4;
    animation: mars-breathe 3s ease-in-out infinite;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .mars-hero { padding: 60px 20px 52px; }
    .mars-lyrics-body { padding: 24px 20px; }
    .mars-lyrics-text { font-size: 15px; line-height: 2; }
    .mars-player-header { flex-wrap: wrap; }
    .mars-player-footer { flex-wrap: wrap; }
}
