/* hornybeats.com - MySpace circa 2006.
   Four skins, picked on the page (see "Change Skin" box). Blue is the default. */
:root {
  --bg: #d6e6fa;       /* page + box fill */
  --line: #3d5a99;     /* box borders, headings */
  --ink: #1f2d55;      /* body text */
  --hot: #c4153a;      /* links, LIVE light */
  --muted: #4b5f8f;
  --font: "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "Courier New", monospace;
  --font-ui: Verdana, Tahoma, Arial, sans-serif;
}
:root[data-skin="mint"]  { --bg: #d4f2e4; --line: #1f6b52; --ink: #123d30; --hot: #c2185b; --muted: #3d6b5c; }
:root[data-skin="lime"]  { --bg: #e6f5b8; --line: #4a6b12; --ink: #2a3a0a; --hot: #b3261e; --muted: #556b2a; }
:root[data-skin="black"] { --bg: #111111; --line: #9a9a9a; --ink: #e6e6e6; --hot: #ff4d6d; --muted: #a8a8a8; color-scheme: dark; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font);
}

a { color: var(--hot); }
a:hover { text-decoration: none; background: var(--hot); color: var(--bg); }
:focus-visible { outline: 2px dashed var(--hot); outline-offset: 2px; }

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 20px 28px;
  max-width: 1020px;
  margin: 0 auto;
  padding: 20px 16px;
}
.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.box {
  border: 3px solid var(--line);
  padding: 10px 14px 14px;
}
.box p { margin: 0 0 8px; }
.box.inset { margin-left: 32px; } /* the staggered boxes on the right, like the inspo */

.box-title {
  margin: 0 0 8px;
  font: inherit;
  font-size: 1.05rem;
  color: var(--line);
  text-align: center;
}
.box-title.u { text-align: left; text-decoration: underline; }
.sub { color: var(--muted); }

/* skin picker */
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.swatch {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-height: 44px; padding: 6px 4px;
  font: inherit; font-size: 0.85rem; color: var(--ink);
  background: none; border: 2px solid transparent; cursor: pointer;
}
.swatch:hover { color: var(--hot); }
.swatch[aria-pressed="true"] { border-color: var(--line); }
.chip { width: 32px; height: 22px; border: 3px solid var(--c2); background: var(--c1); }

/* profile */
.name {
  margin: 0 0 6px;
  font: inherit;
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--line);
  text-decoration: underline;
}
.profile-row { display: flex; gap: 14px; }
.profile-pic { width: 52%; height: auto; aspect-ratio: 240 / 280; align-self: flex-start; display: block; border: 1px solid var(--line); flex-shrink: 0; font-family: var(--font); }
.logo-bg { fill: var(--line); }
.logo-ring { stroke: var(--bg); }
.logo-text { fill: var(--bg); }
.logo-hot { fill: var(--hot); }
.profile-info { font-size: 0.95rem; color: var(--muted); display: flex; flex-direction: column; }
.profile-info .last-login { margin-top: auto; }
.quote { color: var(--ink); }
.view-my { text-align: center; margin: 10px 0 0 !important; }

/* radio */
.onair { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--muted); }
.dot { width: 12px; height: 12px; border: 2px solid var(--line); border-radius: 50%; background: transparent; flex-shrink: 0; }
.dot.live { background: var(--hot); border-color: var(--hot); animation: blink 1.2s steps(2, start) infinite; }
.dot.demand { background: var(--line); }
@keyframes blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .dot.live { animation: none; } }

.np { margin: 10px 0 8px; min-height: 3em; }
.np-title { font-size: 1.15rem; color: var(--ink); overflow-wrap: anywhere; }
.np-artist { color: var(--muted); }

.bar { height: 12px; border: 2px solid var(--line); }
.bar-fill { height: 100%; width: 0; background: var(--line); }
.times { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }

.controls { display: flex; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.btn {
  font: inherit;
  font-size: 0.95rem;
  min-height: 44px;
  padding: 6px 16px;
  color: var(--line);
  background: var(--bg);
  border: 3px outset var(--line);
  cursor: pointer;
}
.btn:active { border-style: inset; }
.btn-main { color: var(--bg); background: var(--line); }

.vol { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--muted); }
.vol input { flex: 1; accent-color: var(--line); min-height: 32px; }
.upnext { font-size: 0.9rem; color: var(--muted); margin: 6px 0 0 !important; }

/* contact (the old Verdana icon grid) */
.contact .actions {
  list-style: none;
  margin: 0;
  padding: 0 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
}
.actions a, .actions button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.actions a:hover, .actions button:hover { background: none; color: var(--hot); text-decoration: underline; }
.actions svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.toast { min-height: 1.5em; margin: 6px 0 0 !important; font-size: 0.85rem; color: var(--hot); text-align: center; }

/* submit a track */
#submit-form { display: flex; flex-direction: column; gap: 4px; }
#submit-form label { font-size: 0.9rem; color: var(--muted); margin-top: 6px; }
#submit-form input, #submit-form textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 2px inset var(--line);
  padding: 8px; min-height: 44px; width: 100%;
}
#submit-form input[type="file"] { padding: 6px; border-style: dashed; }
#submit-form input::placeholder { color: var(--muted); opacity: 0.8; }
#submit-form .btn { margin-top: 12px; align-self: flex-start; }
#submit-form .btn:disabled { opacity: 0.6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.5em; margin: 6px 0 0 !important; font-size: 0.9rem; color: var(--line); }
.form-msg.bad { color: var(--hot); }

/* details */
.details dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }

/* friends */
.friend-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; text-align: center; }
.friend-grid a { display: block; text-decoration: none; font-size: 0.8rem; overflow-wrap: anywhere; }
.friend-grid a:hover { background: none; }
.avatar {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin-bottom: 4px;
  border: 2px solid var(--line);
  color: var(--bg);
  background: var(--line);
  font-size: 1.4rem;
  text-decoration: none;
}
.fname { text-decoration: underline; }
.friend-grid a:hover .avatar { background: var(--hot); border-color: var(--hot); }

/* blog */
.post { border-top: 2px dashed var(--line); padding-top: 12px; margin-top: 12px; }
.post-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }
.post-title { margin: 4px 0; font: inherit; font-size: 1.05rem; color: var(--ink); text-decoration: underline; }
.post-body { margin: 6px 0 !important; }
.post-meta { font-size: 0.85rem; color: var(--muted); }
.post-track { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.post-track .btn { min-height: 40px; font-size: 0.85rem; padding: 4px 12px; }
.post-track .btn[aria-pressed="true"] { color: var(--bg); background: var(--hot); border-color: var(--hot); }

.foot { text-align: center; font-size: 0.8rem; color: var(--muted); padding: 10px 16px 30px; }

/* phones: stack the columns, radio first */
@media (max-width: 760px) {
  .page { grid-template-columns: 1fr; }
  .box.inset { margin-left: 0; }
  .name { font-size: 1.4rem; }
}
@media (max-width: 420px) {
  .profile-row { flex-direction: column; }
  .profile-pic { width: 70%; align-self: center; }
  .friend-grid { grid-template-columns: repeat(3, 1fr); }
}
