/* ==========================================================================
   kambram.com - Classic MySpace Profile Stylesheet (circa 2006-2008)
   Authentic Custom Profile Theme with Modern Polish & Clean Responsive Layout
   ========================================================================== */

/* --- Custom Variables & Era Color Palette --- */
:root {
  --ms-blue-dark: #003399;
  --ms-blue-med: #336699;
  --ms-blue-light: #6699cc;
  --ms-blue-pale: #d5e8fb;
  --ms-blue-ice: #eef5fc;
  --ms-orange: #ff6600;
  --ms-orange-light: #ff9933;
  --ms-orange-pale: #fff3e6;
  --ms-scene-pink: #ff007f;
  --ms-scene-cyan: #00f0ff;
  --ms-matrix-green: #00ff66;
  --ms-border-color: #b0c4de;
  --ms-table-bg: #ffffff;
  --ms-text-dark: #333333;
  --ms-text-muted: #666666;
  --ms-link-blue: #003399;
  --ms-link-visited: #551a8b;
  --player-chrome-start: #3a3f45;
  --player-chrome-mid: #1e2226;
  --player-chrome-end: #0f1114;
}

/* --- Global Reset & Retro Background --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 13px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: #0b0f19;
  /* Authentic repeating vintage starfield / glitter grid tile */
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.15) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 0, 127, 0.15) 0%, transparent 20%),
    radial-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px),
    radial-gradient(rgba(100, 200, 255, 0.2) 1.5px, transparent 1.5px);
  background-size: 100% 100%, 100% 100%, 36px 36px, 72px 72px;
  background-position: 0 0, 0 0, 0 0, 18px 18px;
  background-attachment: fixed;
  color: var(--ms-text-dark);
  font-family: Verdana, Arial, Helvetica, "Lucida Grande", sans-serif;
  line-height: 1.4;
  overflow-x: hidden;
}

/* Custom Vintage Scrollbar */
::-webkit-scrollbar {
  width: 13px;
  height: 13px;
}
::-webkit-scrollbar-track {
  background: #11141e;
  border-left: 1px solid #22293d;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #6699cc 0%, #003399 100%);
  border: 2px outset #a6c8e0;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ff007f 0%, #336699 100%);
}

/* Standard Links */
a {
  color: var(--ms-link-blue);
  text-decoration: underline;
}
a:hover {
  color: var(--ms-scene-pink);
  text-decoration: underline;
}

/* --- Retro Audio Alert Banner (Autoplay Helper) --- */
.retro-audio-alert {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: linear-gradient(90deg, #ff007f, #800080, #003399, #00f0ff);
  background-size: 300% 300%;
  animation: rainbowShift 6s ease infinite;
  color: #ffffff;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
  border-bottom: 2px solid #ffffff;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.retro-audio-alert.hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.alert-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.alert-text {
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 1px 1px 2px #000;
}

.alert-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-enter-sound {
  background: #ffff00;
  color: #000000;
  border: 2px outset #ffffff;
  padding: 3px 10px;
  font-family: Verdana, sans-serif;
  font-weight: bold;
  font-size: 11px;
  cursor: pointer;
  box-shadow: 1px 1px 0 #000;
}
.btn-enter-sound:hover {
  background: #00ff66;
}
.btn-enter-sound:active {
  border-style: inset;
}

.btn-dismiss-alert {
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  border: 1px solid #ffffff;
  padding: 2px 7px;
  font-size: 11px;
  cursor: pointer;
}
.btn-dismiss-alert:hover {
  background: rgba(255, 0, 0, 0.8);
}

@keyframes rainbowShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Marquee Ticker Bar (Top Edge Banner) --- */
.retro-marquee-wrap {
  background: #000000;
  color: #00ffcc;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: bold;
  border-top: none;
  border-bottom: 2px solid #00f0ff;
  padding: 5px 0;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.retro-marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: marqueeRoll 24s linear infinite;
}
@keyframes marqueeRoll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* --- Master Profile Wrapper (880px classic container) --- */
.profile-wrapper {
  max-width: 880px;
  margin: 16px auto 32px auto;
  background-color: #ffffff;
  border: 2px solid var(--ms-blue-med);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25), 0 0 40px rgba(0, 0, 0, 0.8);
  padding: 14px;
}

/* --- Classic 2-Column Grid --- */
.profile-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 16px;
  align-items: start;
}

/* Common Section Box Styles */
.retro-box {
  background: #ffffff;
  border: 1px solid var(--ms-border-color);
  margin-bottom: 14px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.08);
}

.box-header {
  background: linear-gradient(to bottom, #ff9933 0%, #ff6600 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 8px;
  border-bottom: 1px solid #cc5500;
  letter-spacing: 0.3px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}

.box-header.blue-header {
  background: linear-gradient(to bottom, #6699cc 0%, #336699 100%);
  border-bottom: 1px solid #003399;
}

.box-header.scene-header {
  background: linear-gradient(90deg, #ff007f 0%, #7928ca 100%);
  border-bottom: 1px solid #500e87;
}

.box-body {
  padding: 8px;
  font-size: 11px;
}

/* ==========================================================================
   LEFT COLUMN: Profile & Identity
   ========================================================================== */
.left-col {
  display: flex;
  flex-direction: column;
}

/* User Identity Header */
.user-identity {
  margin-bottom: 8px;
}
.user-name {
  margin: 0 0 2px 0;
  font-family: 'Trebuchet MS', Verdana, sans-serif;
  font-size: 22px;
  font-weight: bold;
  color: #000000;
  text-shadow: 1px 1px 0px #ffffff, 2px 2px 0px rgba(0, 51, 153, 0.3);
}
.user-network-subtext {
  font-size: 11px;
  font-style: italic;
  color: #555555;
  margin-bottom: 6px;
}

/* Profile Photo Area */
.profile-photo-card {
  text-align: center;
  padding: 6px;
  background: #f8fafc;
  border: 1px solid #ccddee;
  margin-bottom: 8px;
}
.photo-frame {
  display: inline-block;
  padding: 5px;
  background: #ffffff;
  border: 1px solid #999999;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.25);
  position: relative;
}
.profile-avatar-img {
  width: 180px;
  height: 180px;
  display: block;
  object-fit: cover;
  border: 1px solid #000000;
}
.online-badge-wrap {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.online-badge-img {
  height: 22px;
  width: auto;
}
.view-pics-links {
  margin-top: 6px;
  font-size: 10px;
  color: #444444;
}

/* Mood & Song Status Box */
.mood-box {
  background: #fff8eb;
  border: 1px dashed #ff9933;
  padding: 6px 8px;
  font-size: 11px;
  margin-bottom: 12px;
  border-radius: 2px;
}
.mood-row {
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.mood-label {
  font-weight: bold;
  color: #b24700;
}
.mood-value {
  color: #222222;
}

/* Contact / Interact Box */
.contact-table {
  width: 100%;
  border-collapse: collapse;
}
.contact-table td {
  width: 50%;
  padding: 4px;
}
.contact-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 5px 6px;
  background: linear-gradient(to bottom, #f9fafb 0%, #e5e7eb 100%);
  border: 1px solid #9ca3af;
  border-radius: 2px;
  font-size: 10px;
  font-family: Verdana, sans-serif;
  font-weight: bold;
  color: #003399;
  cursor: pointer;
  text-align: left;
  box-shadow: 1px 1px 0px #ffffff inset;
  transition: all 0.15s ease;
}
.contact-btn:hover {
  background: linear-gradient(to bottom, #ffffff 0%, #dbeafe 100%);
  border-color: #3b82f6;
  color: #1d4ed8;
}
.contact-btn:active {
  border-style: inset;
  background: #d1d5db;
}
.contact-btn-icon {
  font-size: 12px;
}

/* MySpace URL Box */
.url-box {
  background: #f0f4f8;
  border: 1px solid #bcd;
  padding: 6px;
  font-size: 10px;
  margin-bottom: 12px;
}
.url-title {
  font-weight: bold;
  color: #333333;
  margin-bottom: 2px;
}
.url-text {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: #003399;
  word-break: break-all;
}

/* Info Table (Interests & Details) */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
}
.info-table tr {
  border-bottom: 1px solid #eef2f6;
}
.info-table tr:last-child {
  border-bottom: none;
}
.info-table tr:nth-child(even) {
  background-color: #f8fafc;
}
.info-label {
  width: 32%;
  padding: 4px 6px;
  font-weight: bold;
  color: #336699;
  vertical-align: top;
}
.info-data {
  padding: 4px 6px;
  color: #333333;
}

/* ==========================================================================
   RIGHT COLUMN: Flash Audio Player, Blurbs, Top 8, Comments
   ========================================================================== */
.right-col {
  display: flex;
  flex-direction: column;
}

/* --- Retro Flash MP3 Player Widget --- */
.retro-flash-player {
  background: linear-gradient(180deg, var(--player-chrome-start) 0%, var(--player-chrome-mid) 50%, var(--player-chrome-end) 100%);
  border: 2px solid #5a626d;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.player-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 10px;
  color: #d1d5db;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.player-branding {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
  color: #00ffff;
  font-family: 'Trebuchet MS', sans-serif;
}
.flash-badge {
  background: #dc2626;
  color: #ffffff;
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 900;
}

/* Digital LED Display Screen */
.player-screen {
  background: #06110d;
  border: 2px inset #2d3748;
  border-radius: 4px;
  padding: 8px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.screen-info {
  overflow: hidden;
}
.track-title {
  color: #00ff66;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  text-shadow: 0 0 6px rgba(0, 255, 102, 0.7);
  letter-spacing: 0.5px;
}
.track-artist {
  color: #94a3b8;
  font-size: 10px;
  font-family: Verdana, sans-serif;
  margin-top: 2px;
}
.track-time {
  color: #00ffff;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  margin-top: 3px;
}

/* Vintage Equalizer Visualizer Bars */
.equalizer-display {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 38px;
  padding: 2px;
  background: #030806;
  border: 1px solid #163624;
  border-radius: 2px;
}

.eq-bar {
  width: 5px;
  height: 6px;
  background: linear-gradient(to top, #00ff66 0%, #00ff66 50%, #ffff00 75%, #ff0033 100%);
  border-radius: 1px 1px 0 0;
  transition: height 0.08s ease;
}

/* Default animation when playing */
.playing .eq-bar:nth-child(1)  { animation: eqBounce 0.6s ease-in-out infinite alternate; }
.playing .eq-bar:nth-child(2)  { animation: eqBounce 0.4s ease-in-out infinite alternate 0.1s; }
.playing .eq-bar:nth-child(3)  { animation: eqBounce 0.7s ease-in-out infinite alternate 0.2s; }
.playing .eq-bar:nth-child(4)  { animation: eqBounce 0.5s ease-in-out infinite alternate 0.05s; }
.playing .eq-bar:nth-child(5)  { animation: eqBounce 0.8s ease-in-out infinite alternate 0.15s; }
.playing .eq-bar:nth-child(6)  { animation: eqBounce 0.45s ease-in-out infinite alternate 0.25s; }
.playing .eq-bar:nth-child(7)  { animation: eqBounce 0.65s ease-in-out infinite alternate 0.3s; }
.playing .eq-bar:nth-child(8)  { animation: eqBounce 0.55s ease-in-out infinite alternate 0.18s; }
.playing .eq-bar:nth-child(9)  { animation: eqBounce 0.75s ease-in-out infinite alternate 0.08s; }
.playing .eq-bar:nth-child(10) { animation: eqBounce 0.5s ease-in-out infinite alternate 0.22s; }
.playing .eq-bar:nth-child(11) { animation: eqBounce 0.68s ease-in-out infinite alternate 0.12s; }
.playing .eq-bar:nth-child(12) { animation: eqBounce 0.42s ease-in-out infinite alternate 0.28s; }

@keyframes eqBounce {
  0%   { height: 4px; }
  50%  { height: 28px; }
  100% { height: 36px; }
}

/* Progress Scrubber */
.player-scrubber-wrap {
  margin-bottom: 8px;
}
.player-scrubber {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.player-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: #00ffff;
  border: 1px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 0 4px #00ffff;
}

/* Player Hardware Controls */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.playback-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}

.retro-p-btn {
  background: linear-gradient(180deg, #4b5563 0%, #1f2937 100%);
  color: #ffffff;
  border: 1px outset #6b7280;
  border-radius: 3px;
  padding: 4px 9px;
  font-size: 11px;
  font-family: Verdana, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
}
.retro-p-btn:hover {
  background: linear-gradient(180deg, #6b7280 0%, #374151 100%);
  color: #00ffcc;
}
.retro-p-btn:active {
  border-style: inset;
  background: #111827;
}
.retro-p-btn.active {
  background: linear-gradient(180deg, #059669 0%, #064e3b 100%);
  border-color: #34d399;
  color: #ffffff;
}

.volume-control-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}
.volume-slider {
  width: 70px;
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: #1f2937;
  border: 1px solid #4b5563;
  outline: none;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 12px;
  background: #ffcc00;
  border: 1px solid #ffffff;
  cursor: pointer;
}

/* --- Kamal's Blurbs --- */
.blurb-subhead {
  font-weight: bold;
  color: #ff6600;
  margin-top: 4px;
  margin-bottom: 4px;
  font-size: 11px;
}
.blurb-text {
  margin: 0 0 10px 0;
  font-size: 11px;
  line-height: 1.45;
  color: #333333;
}
.blurb-quote {
  border-left: 3px solid #ff007f;
  padding-left: 8px;
  margin: 6px 0;
  font-style: italic;
  color: #4b5563;
}

/* --- "Top 8" Friends Grid (Repurposed as Projects & Portals) --- */
.friends-count-sub {
  font-weight: normal;
  font-size: 10px;
  color: #ffffcc;
  margin-left: 6px;
}

.top8-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 8px;
  padding: 8px 4px;
}

.friend-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--ms-text-dark);
  transition: transform 0.15s ease;
}
.friend-card:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
.friend-card:hover .friend-title {
  color: var(--ms-scene-pink);
  text-decoration: underline;
}

.friend-title {
  font-size: 10px;
  font-weight: bold;
  color: #003399;
  margin-bottom: 4px;
  max-width: 110px;
  line-height: 1.2;
}

.friend-thumb-frame {
  width: 90px;
  height: 90px;
  background: #ffffff;
  border: 2px solid #003399;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.friend-card:hover .friend-thumb-frame {
  border-color: #ff007f;
  box-shadow: 0 0 8px rgba(255, 0, 127, 0.5);
}

.friend-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.friend-desc {
  font-size: 9px;
  color: #666666;
  margin-top: 3px;
  max-width: 105px;
  line-height: 1.2;
}

/* --- Friend Space / Comments (App Release Log & Wall) --- */
.comments-header-sub {
  font-weight: normal;
  font-size: 10px;
  float: right;
  color: #ffffcc;
}
.comments-header-sub a {
  color: #ffffff;
  text-decoration: underline;
}

.comments-table {
  width: 100%;
  border-collapse: collapse;
}

.comment-row {
  border-bottom: 1px solid #d5e8fb;
}
.comment-row:nth-child(even) {
  background-color: #f7faff;
}

.comment-author-cell {
  width: 110px;
  padding: 8px 6px;
  text-align: center;
  vertical-align: top;
  border-right: 1px solid #e2e8f0;
}

.comment-author-name {
  font-weight: bold;
  font-size: 11px;
  color: #003399;
  margin: 0 auto 4px auto;
  text-align: center;
  width: 100%;
  word-break: break-word;
}
.comment-author-name a {
  color: #003399;
  text-decoration: underline;
}
.comment-author-name a:hover {
  color: var(--ms-scene-pink);
}

.comment-author-thumb {
  width: 54px;
  height: 54px;
  border: 1px solid #003399;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* Guest Comment Letter Avatar Badge */
.comment-author-thumb.guest-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: #2563eb;
  color: #ffffff;
  font-weight: bold;
  font-size: 18px;
  font-family: Verdana, sans-serif;
  text-align: center;
  line-height: 1;
  user-select: none;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}

.comment-content-cell {
  padding: 8px 10px;
  vertical-align: top;
}
.comment-date {
  font-size: 9.5px;
  color: #6b7280;
  margin-bottom: 6px;
}
.comment-text {
  font-size: 11px;
  line-height: 1.4;
  color: #1f2937;
}

/* Add Comment Box */
.add-comment-wrap {
  margin-top: 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 10px;
  border-radius: 3px;
}
.add-comment-title {
  font-size: 11px;
  font-weight: bold;
  color: #003399;
  margin-bottom: 6px;
}
.comment-form-row {
  margin-bottom: 6px;
}
.comment-input-name {
  width: 100%;
  max-width: 220px;
  padding: 4px;
  font-size: 11px;
  border: 1px solid #94a3b8;
  border-radius: 2px;
}
.comment-textarea {
  width: 100%;
  height: 50px;
  padding: 4px;
  font-size: 11px;
  border: 1px solid #94a3b8;
  border-radius: 2px;
  resize: vertical;
  font-family: Verdana, sans-serif;
}
.btn-submit-comment {
  background: linear-gradient(to bottom, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px outset #60a5fa;
  font-family: Verdana, sans-serif;
  font-weight: bold;
  font-size: 10px;
  padding: 4px 12px;
  cursor: pointer;
  border-radius: 2px;
}
.btn-submit-comment:active {
  border-style: inset;
}

/* ==========================================================================
   FOOTER & VINTAGE BADGES & HIT COUNTER
   ========================================================================== */
.profile-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 2px solid #b0c4de;
  text-align: center;
}

.hit-counter-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000000;
  border: 2px outset #555555;
  padding: 4px 10px;
  margin-bottom: 12px;
  color: #ffff00;
  font-family: 'Courier New', monospace;
  font-size: 11px;
}
.odometer-digits {
  background: #111111;
  color: #00ff66;
  border: 1px solid #333333;
  padding: 2px 6px;
  font-size: 14px;
  letter-spacing: 3px;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(0, 255, 102, 0.7);
}

.vintage-badges-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.badge-img {
  height: 28px;
  width: auto;
  border: 1px solid #777777;
}

.footer-copy {
  font-size: 10px;
  color: #64748b;
  line-height: 1.5;
}

/* ==========================================================================
   RETRO INTERACTIVE MODALS (AIM / Contact Popups)
   ========================================================================== */
.retro-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.retro-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* Windows Classic / AIM Style Window */
.retro-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92vw;
  max-width: 480px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  background: #ece9d8;
  border: 2px outset #ffffff;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.6);
  font-family: 'Tahoma', 'Verdana', sans-serif;
  border-radius: 3px 3px 0 0;
}

.retro-window-titlebar {
  background: linear-gradient(90deg, #0a246a 0%, #a6caf0 100%);
  color: #ffffff;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: bold;
  flex-shrink: 0;
  box-sizing: border-box;
}
.titlebar-icon-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.titlebar-btn-close {
  background: #d4d0c8;
  border: 1px outset #ffffff;
  color: #000000;
  font-size: 13px;
  font-weight: bold;
  min-width: 32px;
  min-height: 32px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
  flex-shrink: 0;
}
.titlebar-btn-close:active {
  border-style: inset;
}

.retro-window-body {
  padding: 10px;
  font-size: 11px;
  color: #000000;
  overflow-y: auto;
  flex: 1 1 auto;
  box-sizing: border-box;
  width: 100%;
}

.retro-window input[type="text"],
.retro-window textarea {
  width: 100%;
  box-sizing: border-box;
}

/* AIM Chat Area */
.aim-chat-log {
  background: #ffffff;
  border: 2px inset #ffffff;
  height: 140px;
  max-height: 28vh;
  overflow-y: auto;
  padding: 6px;
  font-size: 11px;
  margin-bottom: 8px;
  width: 100%;
  box-sizing: border-box;
}
.aim-msg {
  margin-bottom: 6px;
  line-height: 1.3;
  word-break: break-word;
}
.aim-sender-kam {
  color: #0000ff;
  font-weight: bold;
}
.aim-sender-you {
  color: #ff0000;
  font-weight: bold;
}
.aim-system {
  color: #555555;
  font-style: italic;
  font-size: 10px;
}

.aim-input-box {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  border: 2px inset #ffffff;
  padding: 4px;
  font-size: 11px;
  font-family: Tahoma, sans-serif;
  resize: none;
  margin-bottom: 8px;
}
.aim-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}
.aim-btn {
  background: #ece9d8;
  border: 2px outset #ffffff;
  padding: 4px 14px;
  font-size: 11px;
  cursor: pointer;
  box-sizing: border-box;
}
.aim-btn:active {
  border-style: inset;
}

/* Sparkle Cursor Effect */
.cursor-sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 999999;
  font-size: 12px;
  user-select: none;
  animation: sparkleFade 0.75s ease-out forwards;
}
@keyframes sparkleFade {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--rand-x, 0) * 1px), calc(var(--rand-y, 25) * 1px)) scale(0.3) rotate(90deg);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Smooth Mobile & Tablet Adaptation)
   ========================================================================== */
@media (max-width: 768px) {
  .profile-wrapper {
    margin: 8px auto;
    padding: 10px;
    width: 96%;
  }

  .profile-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  /* CRITICAL: Left Column (Profile, Online badge, Mood/Song, Contacting Kam, URL, Details) renders FIRST on mobile */
  .left-col {
    order: 1;
    width: 100%;
  }
  
  /* Right Column (Flash Music Player, About Me blurbs, Top 8, Comments) renders SECOND */
  .right-col {
    order: 2;
    width: 100%;
  }

  .top8-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 540px) {
  .top8-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .player-screen {
    grid-template-columns: 1fr;
  }

  .equalizer-display {
    justify-content: center;
  }

  .player-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-table td {
    width: 100%;
    display: block;
  }
}

