/* ===== samszn — Batman: The Animated Series theme ===== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;800&display=swap');

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Georgia, "Times New Roman", serif;
    /* Batman: TAS poster — dark gradient over it so the centered column stays readable */
    background:
        linear-gradient(rgba(8, 8, 15, 0.45), rgba(8, 8, 15, 0.75)),
        url("/img/gotham.jpg") center top / cover fixed,
        #08080f;
    color: #e8e8ec;
}

/* centered window — sits above the sky/skyline */
.myspace {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-left: 2px solid #c1121f;
    border-right: 2px solid #c1121f;
    box-shadow: 0 0 30px rgba(193, 18, 31, 0.6);
}

/* top chrome */
.titlebar {
    background: linear-gradient(#1a1d2b, #0a0a12);
    color: #c1121f;
    font-family: "Cinzel", Georgia, serif;
    font-size: 20px;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-shadow: 0 0 6px rgba(193, 18, 31, 0.8);
    border-bottom: 2px solid #c1121f;
}
.winbtns { font-size: 16px; letter-spacing: 5px; color: #8a93a6; }

.addressbar {
    background: rgba(20, 24, 38, 0.85);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #7a0000;
}
.addr-label { color: #8a93a6; font-size: 13px; }
.addr-box {
    flex: 1;
    background: #05060a;
    color: #c1121f;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid #2a2f42;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* two-column layout */
.layout {
    flex: 1;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
    padding: 20px;
}
@media (max-width: 760px) { .layout { grid-template-columns: 1fr; } }

/* left info rail */
.rail { display: flex; flex-direction: column; gap: 12px; }

.profile-name {
    font-family: "Cinzel", Georgia, serif;
    font-size: 26px;
    color: #f5f5f7;
    text-shadow: 0 0 12px #c1121f, 2px 2px 0 #000;
    word-break: break-all;
}
.status { display: flex; align-items: center; gap: 8px; }
.dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: #c1121f; box-shadow: 0 0 8px #c1121f;
    animation: pulse 1.2s ease-in-out infinite;
}
.online { color: #c1121f; font-weight: bold; animation: blink 1s steps(2) infinite; }
.muted { color: #8a93a6; font-size: 13px; }
.handle { font-size: 18px; color: #e8e8ec; }
.pill {
    align-self: flex-start;
    background: #c1121f; color: #fff;
    border: 2px solid #7a0000; border-radius: 4px;
    padding: 4px 16px; font-size: 13px;
    box-shadow: 0 0 8px #c1121f;
}

/* framed photo — red on black */
.photo-frame {
    padding: 3px;
    background: #c1121f;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(193, 18, 31, 0.7);
}
.photo-frame img { display: block; width: 100%; height: auto; border-radius: 4px; }

.visitor { color: #c1121f; font-weight: bold; text-align: center; text-shadow: 0 0 6px rgba(193,18,31,0.6); }
.footer-icons {
    display: flex; gap: 18px; align-items: center; justify-content: center;
    color: #e8e8ec; font-size: 18px;
}

/* right content column */
.content { display: flex; flex-direction: column; gap: 14px; }

.section { border-radius: 6px; overflow: hidden; box-shadow: 0 0 12px rgba(0, 0, 0, 0.6); }
.section-header {
    background: linear-gradient(#1a1d2b, #0a0a12);
    color: #c1121f; text-align: center; font-weight: bold;
    font-family: "Cinzel", Georgia, serif;
    letter-spacing: 1px;
    padding: 10px; text-shadow: 0 0 4px rgba(193, 18, 31, 0.6);
    border-bottom: 2px solid #7a0000;
}
.section-body {
    background: rgba(10, 12, 20, 0.88);
    padding: 16px; color: #d7dae2;
}

/* now playing */
.track-title { text-align: center; margin-bottom: 12px; color: #e8e8ec; }
.progress {
    background: rgba(0, 0, 0, 0.6); border: 1px solid #7a0000;
    border-radius: 4px; height: 14px; overflow: hidden;
}
.progress-fill {
    height: 100%; width: 0;
    background: linear-gradient(90deg, #7a0000, #c1121f);
    box-shadow: 0 0 8px #c1121f;
    animation: play 8s linear infinite;
}
.controls { text-align: center; margin-top: 12px; font-size: 18px; letter-spacing: 6px; color: #c1121f; }

/* buttons */
.btn-primary, .btn-light, .comment-form button {
    font-family: "Cinzel", Georgia, serif; cursor: pointer;
    border-radius: 4px; padding: 12px; font-size: 15px;
    border: 2px solid #7a0000; box-shadow: 0 0 10px rgba(193, 18, 31, 0.5);
}
.btn-primary { background: linear-gradient(#c1121f, #7a0000); color: #fff; width: 100%; }
.btn-light { display: block; text-align: center; text-decoration: none; background: #1a1d2b; color: #c1121f; }
.comment-form button { background: #c1121f; color: #fff; }

/* top 8 grid */
.top8 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.top8-slot {
    position: relative;
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #7a0000;
    border-radius: 4px;
    overflow: hidden;
}
.top8-filled { display: block; text-decoration: none; }
.top8-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t8name {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75); color: #e8e8ec;
    font-size: 9px; text-align: center; padding: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* comments wall */
.comment-form { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.comment-form input {
    font-family: inherit; padding: 10px; border-radius: 4px;
    border: 2px solid #7a0000; background: rgba(5, 6, 10, 0.9);
    color: #e8e8ec; font-size: 14px;
}
.comment {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #7a0000; border-radius: 4px;
    padding: 10px; margin: 8px 14px; color: #d7dae2;
}
.comment strong { color: #c1121f; text-shadow: 0 0 5px rgba(193, 18, 31, 0.6); }

/* watermark */
.watermark {
    text-align: center; color: rgba(193, 18, 31, 0.6); padding: 18px;
    font-size: 13px; line-height: 1.9;
}

/* back-link to the host profile */
.universe-link { text-align: center; padding: 10px; }
.universe-link a { color: #c1121f; text-decoration: none; font-size: 13px; text-shadow: 0 0 6px rgba(193, 18, 31, 0.6); }
.universe-link a:hover { color: #fff; }

/* responsive 16:9 embed (youtube/ig/twitter iframe) */
.embed-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 4px; }

/* classic MySpace structure */
.namebar {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 8px; padding: 16px 20px;
    border-bottom: 2px solid #7a0000;
}
.namebar-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.extended { text-align: center; color: #8a93a6; font-size: 13px; padding: 4px 0; }

.contact-box { display: flex; flex-direction: column; gap: 8px; }
.contact-link {
    display: block; background: rgba(5, 6, 10, 0.9); color: #c1121f;
    text-decoration: none; padding: 9px 10px; border-radius: 4px;
    border: 1px solid #7a0000; font-size: 14px;
}
.contact-link:hover { background: #c1121f; color: #fff; }

.urlbox {
    background: rgba(0, 0, 0, 0.5); border: 1px dashed #7a0000;
    border-radius: 4px; padding: 6px 10px; font-size: 12px;
    color: #8a93a6; text-align: center; word-break: break-all;
}

.details-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.details-table td {
    padding: 6px 8px; border-bottom: 1px solid rgba(122, 0, 0, 0.5); vertical-align: top;
}
.details-table td:first-child { color: #8a93a6; width: 40%; }
.details-table td:last-child  { color: #e8e8ec; }

.blurb-title {
    color: #c1121f; font-weight: bold; font-family: "Cinzel", Georgia, serif;
    margin: 6px 0; letter-spacing: 1px;
}
.content p { margin: 4px 0 12px; color: #d7dae2; }

/* animations */
@keyframes pulse  { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.6; } }
@keyframes blink  { 50% { opacity: 0.3; } }
@keyframes play   { 0% { width: 0; } 100% { width: 100%; } }
@keyframes signal { 0%,100% { opacity: 0.85; } 50% { opacity: 0.5; } }

/* charm cursor (created by sparkles.js) */
.sparkle {
    position: fixed; pointer-events: none; font-size: 16px; z-index: 9999;
    animation: sparkle-fade 0.8s linear forwards;
}
@keyframes sparkle-fade {
    0%   { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    100% { opacity: 0; transform: translate(-50%, 10px) scale(0.2) rotate(90deg); }
}
