/* ============================================================
   MySpace classic recreation — the 1.0 profile page
   Two-column table layout: left ~300px, right ~560px.
   Orange section headers, light-blue table headers.
   ============================================================ */

#profile-page {
  width: 900px; margin: 8px auto 20px; background: #fff; padding: 6px;
  font-size: 11px; line-height: 1.45;
}

/* extended network banner */
.ext-net {
  background: #d9e4f2; border: 1px solid #96aac4; color: #3b5a82;
  text-align: center; font-weight: bold; font-size: 12px;
  padding: 8px 6px; margin: 0 0 4px;
}
.ext-net .sub { font-weight: normal; font-size: 10px; margin-top: 3px; }

/* the big name */
.p-name {
  font-size: 20px; font-weight: bold; color: #000; margin: 8px 0 2px;
  font-family: Verdana, Arial, sans-serif;
}

.p-cols { display: flex; gap: 10px; align-items: flex-start; }
.p-left { width: 300px; flex: none; }
.p-right { flex: 1; min-width: 0; }

/* left column pieces */
.p-pic { border: 1px solid #999; width: 170px; }
.p-pic img { width: 170px; height: 220px; display: block; }
.p-viewmy { font-size: 10px; margin: 3px 0 8px; }

.p-moodline { margin: 3px 0; }
.p-moodline b { color: #000; }

.online-now {
  display: inline-block; background: #003399; color: #fff; font-weight: bold;
  font-size: 10px; padding: 2px 7px; border: 1px solid #001f5e;
  animation: onblink 1.4s steps(2) infinite;
}
@keyframes onblink { 50% { background: #0055ee; } }
.offline-badge {
  display: inline-block; background: #eee; color: #777; font-weight: bold;
  font-size: 10px; padding: 2px 7px; border: 1px solid #bbb;
}

.p-box { border: 1px solid #999; margin: 10px 0; }
.p-box > .p-box-h {
  background: #b1d0f0; color: #003399; font-weight: bold; font-size: 11px;
  padding: 2px 6px; border-bottom: 1px solid #999;
}
.p-box .p-box-in { padding: 5px 7px; }

/* generic myspace data table (Interests / Details / Schools) */
table.ms { border-collapse: collapse; width: 100%; margin: 10px 0; }
table.ms th, table.ms td { border: 1px solid #999; padding: 3px 6px; vertical-align: top; text-align: left; }
table.ms th { background: #b1d0f0; color: #003399; font-size: 11px; }
table.ms td.lbl { background: #e6f0fa; color: #003399; font-weight: bold; width: 38%; }

/* contact box */
.contact-box { border: 1px solid #999; margin: 10px 0; }
.contact-box .cb-h {
  background: #5a78a0; color: #fff; font-weight: bold; padding: 3px 7px; font-size: 11px;
  border-bottom: 1px solid #999;
}
.contact-box .cb-grid { display: grid; grid-template-columns: 1fr 1fr; }
.contact-box .cb-grid a {
  display: block; padding: 4px 6px; font-size: 10px; text-decoration: none;
  border-bottom: 1px solid #d7e3f2;
}
.contact-box .cb-grid a::before { content: '» '; color: #003399; font-weight: bold; }
.contact-box .cb-grid a:hover { background: #eaf1fa; text-decoration: underline; }

/* orange section headers */
.orange-h { color: #ff6600; font-weight: bold; font-size: 13px; margin: 14px 0 4px; }
.orange-h .small { font-size: 10px; color: #999; font-weight: normal; }
.orange-sub { color: #ff6600; font-weight: bold; font-size: 11px; margin: 6px 0 2px; }

.p-blurbs-body { font-size: 11px; line-height: 1.55; }
.p-blurbs-body font, .p-blurbs-body marquee { max-width: 100%; }

/* music player box */
.ms-player { border: 1px solid #999; margin: 10px 0; background: #f2f2f2; }
.ms-player .mp-h { background: #666; color: #fff; font-size: 10px; padding: 2px 6px; font-weight: bold; }
.ms-player .mp-in { padding: 6px 8px; }
.ms-player .mp-song { font-weight: bold; font-size: 11px; }
.ms-player .mp-artist { font-size: 10px; color: #555; }
.ms-player .mp-controls { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.ms-player .mp-btn {
  width: 26px; height: 22px; line-height: 20px; text-align: center; font-size: 11px;
  background: linear-gradient(to bottom, #f7f7f7, #cfcfcf); border: 1px solid #888; cursor: pointer;
  user-select: none; border-radius: 3px; flex: none;
}
.ms-player .mp-btn:hover { background: linear-gradient(to bottom, #fff, #dcdcdc); }
.ms-player .mp-bar { flex: 1; height: 8px; background: #ccc; border: 1px solid #999; position: relative; }
.ms-player .mp-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #6699cc; }
.ms-player .mp-opts { font-size: 9.5px; margin-top: 5px; color: #555; }
.ms-player .mp-status { font-size: 9.5px; color: #777; font-style: italic; min-height: 12px; }

/* friend space */
.friend-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0; }
.friend-cell { text-align: center; font-size: 10px; }
.friend-cell img { width: 100%; aspect-ratio: 17/22; object-fit: cover; border: 1px solid #999; display: block; }
.friend-cell .fname { display: block; margin-top: 2px; font-weight: bold; }
.friend-cell .fonline { color: #090; font-size: 9px; }

/* comments */
.comment-row { display: flex; gap: 10px; border: 1px solid #999; margin: 8px 0; padding: 7px; background: #fff; }
.comment-row .c-left { width: 110px; flex: none; text-align: center; }
.comment-row .c-left img { width: 96px; height: 124px; object-fit: cover; border: 1px solid #999; }
.comment-row .c-left .c-name { font-weight: bold; display: block; margin-top: 2px; }
.comment-row .c-right { flex: 1; min-width: 0; }
.comment-row .c-date { color: #777; font-size: 10px; background: #f0f4fa; border-bottom: 1px solid #d7e3f2; padding: 1px 5px; margin: -2px -2px 5px; }
.comment-row .c-text { line-height: 1.55; }

.add-comment { border: 1px solid #999; padding: 8px; background: #f4f8fd; margin-top: 10px; }
.add-comment textarea { width: 100%; height: 64px; }

/* views counter */
.p-views { font-size: 10px; color: #333; margin: 4px 0; }
.p-views b { color: #cc0000; }

/* blog box on profile */
.blog-mini { font-size: 10.5px; line-height: 1.7; }

/* schools table extra */
.school-status { color: #777; font-size: 10px; }

/* top8 editor */
.t8-row { display: flex; align-items: center; gap: 8px; border: 1px solid #c5d8ef; padding: 5px; margin: 4px 0; background: #fff; }
.t8-row img { width: 44px; height: 57px; border: 1px solid #999; }
.t8-row .t8-name { flex: 1; font-weight: bold; }
.t8-row select { width: 80px; }

/* profile editor */
.editor-grid { display: flex; gap: 14px; align-items: flex-start; }
.editor-main { flex: 1; min-width: 0; }
.editor-side { width: 250px; flex: none; }
.editor-main textarea { width: 100%; font-family: 'Courier New', monospace; font-size: 11px; }
.ed-themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.ed-theme {
  border: 2px solid #999; cursor: pointer; text-align: center; font-size: 10px; padding-bottom: 4px; background: #fff;
}
.ed-theme.sel { border-color: #ff6600; box-shadow: 0 0 0 1px #ff6600; }
.ed-theme .swatch { height: 42px; margin-bottom: 3px; border-bottom: 1px solid #ccc; }

/* gallery */
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gal-grid img { width: 100%; border: 1px solid #999; }

/* video page */
.vid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vid-cell { border: 1px solid #c5d8ef; padding: 5px; text-align: center; }
.vid-thumb { height: 90px; background: #000; position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.vid-thumb .play-tri { width: 0; height: 0; border-left: 20px solid rgba(255,255,255,.85); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.vid-thumb .dur { position: absolute; right: 4px; bottom: 3px; color: #fff; font-size: 9px; background: rgba(0,0,0,.6); padding: 0 3px; }
.vid-player-c { width: 100%; height: 260px; background: #000; display: block; }

/* mail */
table.mail-list { border-collapse: collapse; width: 100%; }
table.mail-list td, table.mail-list th { border: 1px solid #c5d8ef; padding: 4px 7px; text-align: left; }
table.mail-list th { background: #dce9f8; color: #003399; }
table.mail-list tr.unread td { background: #fff8e8; font-weight: bold; }
.mail-tabs { margin-bottom: 8px; }
.mail-tabs a { padding: 3px 10px; border: 1px solid #99badd; background: #eef4fc; margin-right: 4px; text-decoration: none; }
.mail-tabs a.on { background: #003399; color: #fff; font-weight: bold; }

@media (max-width: 979px) {
  #profile-page { width: auto; margin: 4px; }
  .p-cols { flex-direction: column; }
  .p-left { width: 100%; }
  .friend-grid { grid-template-columns: repeat(4, 1fr); }
  .dash-wrap { flex-direction: column; }
  .dash-left, .dash-right { width: 100%; }
  .home-cols { flex-direction: column; }
  .home-left { width: 100%; }
}
