@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500&family=Inter:wght@200;300;400;500&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #050510;
  color: #d0cde0;
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 300;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* starfield canvas */
canvas#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 6vh 2rem 4rem;
}

/* title — individual letter spans get colored by JS */
h1 {
  font-family: 'Caveat', cursive;
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 0.3rem;
  mix-blend-mode: screen;
}

h1 .letter {
  display: inline-block;
  transition: transform 0.3s ease;
}

.subtitle {
  font-size: 0.75rem;
  font-weight: 200;
  letter-spacing: 0.2em;
  color: rgba(180, 170, 210, 0.35);
  margin-bottom: 3rem;
}

.subtitle a {
  color: rgba(180, 170, 210, 0.45);
  text-decoration: none;
  transition: color 0.5s;
}

.subtitle a:hover {
  color: rgba(200, 190, 240, 0.7);
}

/* mount / stream cards */
.mount {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(180, 170, 210, 0.08);
  border-radius: 12px;
  padding: 1.5rem 1.8rem;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(4px);
  transition: border-color 0.5s, background 0.5s;
}

.mount:hover {
  border-color: rgba(180, 170, 210, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.mount-name {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: hsla(42, 55%, 68%, 0.55);
  text-shadow:
    0 0 7px hsla(42, 55%, 72%, 0.15),
    0 0 20px hsla(38, 45%, 60%, 0.08);
  margin-bottom: 0.8rem;
}

/* now playing */
.now-playing {
  font-size: 0.95rem;
  font-weight: 200;
  font-style: italic;
  color: rgba(200, 195, 230, 0.5);
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(180, 170, 210, 0.06);
}

/* detail table — line by line layout */
.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
}

.detail-table td {
  padding: 0.35rem 0;
  vertical-align: top;
}

.detail-table td:first-child {
  width: 100px;
  font-weight: 300;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: rgba(180, 175, 210, 0.3);
  padding-right: 1rem;
  padding-top: 0.42rem;
}

.detail-table td:last-child {
  color: rgba(200, 195, 220, 0.55);
}

.detail-table tr + tr td {
  border-top: 1px solid rgba(180, 170, 210, 0.03);
}

/* legacy inline meta — kept for simple uses */
.mount-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-size: 0.78rem;
  color: rgba(180, 175, 210, 0.45);
  letter-spacing: 0.05em;
}

.mount-meta span {
  white-space: nowrap;
}

.mount-meta .label {
  color: rgba(180, 175, 210, 0.3);
}

/* links */
.listen-link {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: hsla(42, 55%, 68%, 0.55);
  text-decoration: none;
  text-shadow:
    0 0 7px hsla(42, 55%, 72%, 0.15),
    0 0 20px hsla(38, 45%, 60%, 0.08);
  transition: color 0.5s, text-shadow 0.5s;
}

.listen-link:hover {
  color: hsla(42, 60%, 72%, 0.8);
  text-shadow:
    0 0 10px hsla(42, 60%, 72%, 0.3),
    0 0 30px hsla(38, 50%, 60%, 0.15);
}

.listen-link .arrow {
  display: inline-block;
  transition: transform 0.4s;
}

.listen-link:hover .arrow {
  transform: translateX(4px);
}

.action-links {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(180, 170, 210, 0.06);
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.action-links .listen-link {
  margin-top: 0;
}

/* no streams message */
.empty {
  text-align: center;
  padding: 4rem 1rem;
  color: rgba(180, 170, 210, 0.3);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* server info footer */
.server-info {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(180, 170, 210, 0.06);
  font-size: 0.7rem;
  color: rgba(180, 170, 210, 0.2);
  letter-spacing: 0.08em;
}

/* admin tables (clients list, etc) */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin: 1rem 0;
}

.admin-table th {
  text-align: left;
  font-weight: 300;
  color: rgba(180, 175, 210, 0.4);
  letter-spacing: 0.1em;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(180, 170, 210, 0.08);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.admin-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(180, 170, 210, 0.04);
  color: rgba(200, 195, 220, 0.5);
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

input, select, button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(180, 170, 210, 0.1);
  border-radius: 6px;
  color: #d0cde0;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  padding: 0.4rem 0.7rem;
}

button {
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: border-color 0.4s, background 0.4s;
}

button:hover {
  border-color: rgba(180, 170, 210, 0.25);
  background: rgba(255, 255, 255, 0.06);
}
