/* ===== theylovejl — Bratz Girl theme (web) ===== */

@font-face {
    font-family: "VCR OSD Mono";
    src: url("/fonts/VCR_OSD_MONO_1.001.ttf") format("truetype");
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: "VCR OSD Mono", "Courier New", monospace;
    background: linear-gradient(#4A0E4E, #1A1A2E, #16213E);
    background-attachment: fixed;
    color: #ffffff;
    text-transform: lowercase;
}

/* centered window */
.myspace {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-left: 2px solid #FF1493;
    border-right: 2px solid #FF1493;
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.7);
}

/* top chrome */
.titlebar {
    background: linear-gradient(#FF1493, #9B59B6);
    color: #fff;
    font-size: 20px;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-shadow: 0 0 4px #FF1493;
    border-bottom: 2px solid #FF1493;
}
.winbtns { font-size: 16px; letter-spacing: 5px; }

.addressbar {
    background: rgba(155, 89, 182, 0.30);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #FF1493;
}
.addr-label { color: #DDA0DD; font-size: 13px; }
.addr-box {
    flex: 1;
    background: #fff;
    color: #4A0E4E;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    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-size: 26px;
    color: #fff;
    text-transform: none;
    text-shadow: 0 0 10px #FF1493, 2px 2px 0 #9B59B6;
    word-break: break-all;
}
.status { display: flex; align-items: center; gap: 8px; }
.dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: #39ff14; box-shadow: 0 0 8px #39ff14;
    animation: pulse 1.2s ease-in-out infinite;
}
.online { color: #39ff14; font-weight: bold; animation: blink 1s steps(2) infinite; }
.muted { color: #DDA0DD; font-size: 13px; }
.handle { font-size: 18px; color: #fff; }
.pill {
    align-self: flex-start;
    background: #FF1493; color: #fff;
    border: 2px solid #FF1493; border-radius: 20px;
    padding: 4px 16px; font-size: 13px;
    box-shadow: 0 0 8px #FF1493;
}

/* hot-pink framed photo */
.photo-frame {
    padding: 3px;
    background: #FF1493;
    border-radius: 6px;
    box-shadow: 0 0 20px #FF1493;
}
.photo-frame img { display: block; width: 100%; height: auto; border-radius: 4px; }

.visitor { color: #39ff14; font-weight: bold; text-align: center; }
.footer-icons {
    display: flex; gap: 18px; align-items: center; justify-content: center;
    color: #fff; font-size: 18px;
}

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

.section { border-radius: 8px; overflow: hidden; box-shadow: 0 0 12px rgba(255, 20, 147, 0.5); }
.section-header {
    background: linear-gradient(#FF1493, #9B59B6);
    color: #fff; text-align: center; font-weight: bold;
    padding: 10px; text-shadow: 0 0 2px rgba(255, 255, 255, 0.4);
    border-bottom: 2px solid #FF1493;
}
.section-body {
    background: rgba(155, 89, 182, 0.18);
    padding: 16px; color: #fff;
}

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

/* buttons */
.btn-primary, .btn-light, .comment-form button {
    font-family: inherit; text-transform: lowercase; cursor: pointer;
    border-radius: 8px; padding: 12px; font-size: 16px;
    border: 2px solid #FF1493; box-shadow: 0 0 10px #FF1493;
}
.btn-primary { background: linear-gradient(#FF1493, #9B59B6); color: #fff; width: 100%; }
.btn-light { display: block; text-align: center; text-decoration: none; background: #9B59B6; color: #fff; }
.comment-form button { background: #FF1493; 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(155, 89, 182, 0.25);
    border: 2px solid #FF1493;
    border-radius: 6px;
    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.65); color: #fff;
    font-size: 9px; text-align: center; padding: 2px;
    text-transform: none; 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: 6px;
    border: 2px solid #FF1493; background: rgba(255, 255, 255, 0.95);
    color: #4A0E4E; font-size: 14px;
}
.comment {
    background: rgba(155, 89, 182, 0.25);
    border: 2px solid #FF1493; border-radius: 8px;
    padding: 10px; margin: 8px 14px; color: #fff;
}
.comment strong { color: #fff; text-shadow: 0 0 5px #FF1493; }

/* watermark */
.watermark {
    text-align: center; color: rgba(255, 20, 147, 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: #ff69b4; text-decoration: none; font-size: 13px; text-shadow: 0 0 6px #FF1493; }
.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: 6px; }

/* ===== 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 #FF1493;
}
.namebar-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.extended { text-align: center; color: #DDA0DD; font-size: 13px; text-shadow: 0 0 5px #FF1493; padding: 4px 0; }

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

.urlbox {
    background: rgba(0, 0, 0, 0.3); border: 1px dashed #FF1493;
    border-radius: 6px; padding: 6px 10px; font-size: 12px;
    color: #DDA0DD; 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(255, 20, 147, 0.35); vertical-align: top;
}
.details-table td:first-child { color: #DDA0DD; width: 40%; }
.details-table td:last-child  { color: #fff; }

.blurb-title {
    color: #fff; font-weight: bold; text-shadow: 0 0 5px #FF1493;
    margin: 6px 0; text-decoration: underline;
}
.content p { margin: 4px 0 12px; color: #fff; }

/* 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%; } }

/* sparkle/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); }
}
