:root {
  --wnrf-black: #050505;
  --wnrf-panel: #111111;
  --wnrf-panel-soft: #181818;
  --wnrf-red: #e50914;
  --wnrf-white: #f5f5f5;
  --wnrf-muted: #b8b8b8;
  --wnrf-border: rgba(229, 9, 20, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(circle at top, #1a1a1a 0%, #050505 55%);
  color: var(--wnrf-white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a { color: var(--wnrf-red); text-decoration: none; }
a:hover { color: #ffffff; }

.wnrf-wrap { width: min(1180px, 94%); margin: 0 auto; }

.wnrf-header {
  background: linear-gradient(180deg, #121212, #000000);
  border-bottom: 3px solid var(--wnrf-red);
  padding: 24px 0;
}

.wnrf-logo { font-size: 2rem; font-weight: 900; color: var(--wnrf-red); letter-spacing: 1px; }
.wnrf-tagline { color: var(--wnrf-muted); margin-top: 4px; }

.wnrf-nav { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.wnrf-nav a {
  background: var(--wnrf-panel);
  border: 1px solid var(--wnrf-border);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: bold;
}
.wnrf-nav a:hover { background: var(--wnrf-red); color: #000; }

.wnrf-main { padding: 34px 0; }

.wnrf-card {
  background: linear-gradient(180deg, var(--wnrf-panel), #0b0b0b);
  border: 1px solid var(--wnrf-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}

.wnrf-card h1, .wnrf-card h2, .wnrf-card h3 { color: var(--wnrf-red); margin-top: 0; }

.wnrf-button {
  display: inline-block;
  background: var(--wnrf-red);
  color: #000;
  font-weight: 900;
  padding: 11px 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  margin: 4px 4px 4px 0;
}
.wnrf-button:hover { background: #ffffff; color: #000; }

.wnrf-kicker { color: var(--wnrf-red); font-weight: 900; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }

.wnrf-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: 24px;
  min-height: 320px;
  background: linear-gradient(135deg, rgba(229,9,20,.18), rgba(0,0,0,.1)), linear-gradient(180deg, #151515, #050505);
}
.wnrf-hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1; margin-bottom: 16px; }
.wnrf-hero p { max-width: 650px; font-size: 1.1rem; }
.wnrf-logo-box { text-align: center; }
.wnrf-main-logo { width: 100%; max-width: 450px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 0 20px rgba(229,9,20,.35)); }

.wnrf-now { padding: 30px; }
.wnrf-now h2 { font-size: 1.8rem; margin-bottom: 22px; }
.wnrf-now-song { display: flex; gap: 36px; align-items: center; padding: 10px 0; }
.wnrf-now-art {
  width: 250px !important;
  height: 250px !important;
  object-fit: cover;
  border-radius: 16px;
  border: 3px solid var(--wnrf-red);
  background: #000;
  flex: 0 0 250px !important;
  box-shadow: 0 0 28px rgba(229, 9, 20, .25);
}
.wnrf-now-info { flex: 1; }
.song-artist, .song-title, .small-note { font-size: 1.4rem; line-height: 1.4; margin: 0 0 10px; font-weight: 700; }
.song-artist { color: var(--wnrf-red); }
.song-title { color: #ffffff; }
.small-note { color: #cfcfcf; }
.label { color: #ffffff !important; font-weight: 700; }

.wnrf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.song-list { list-style: none; padding-left: 0; margin-left: 0; }
.song-list li { border-bottom: 1px solid #333; padding: 11px 0; }
.song-list li:last-child { border-bottom: 0; }
.wnrf-rank { color: var(--wnrf-red); font-weight: 900; }

.library-hero { text-align: center; }
.library-count { font-size: 1.35rem; font-weight: 900; color: #ffffff; }
.library-search { display: flex; gap: 10px; justify-content: center; margin: 24px auto 0; max-width: 760px; }
.library-search input { flex: 1; min-width: 220px; }
.library-results { display: grid; gap: 16px; }
.library-track {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 18px;
  align-items: center;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 14px;
}
.library-art, .request-preview-art {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--wnrf-border);
  background: #000;
}
.library-track-info h3 { margin-bottom: 6px; }
.library-title, .library-album { margin: 3px 0; }
.library-title { font-size: 1.1rem; font-weight: 900; }
.library-action { text-align: right; }

.request-preview { display: flex; gap: 20px; align-items: center; }
.wnrf-success { color: #9cff9c; font-weight: bold; }
.wnrf-error { color: #ff9c9c; font-weight: bold; }

.wnrf-table-wrap { width: 100%; overflow-x: auto; }
.wnrf-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.wnrf-table th { background: var(--wnrf-red); color: #000; text-align: left; padding: 12px; }
.wnrf-table td { border-bottom: 1px solid #333; padding: 12px; }
.wnrf-table tr:hover td { background: rgba(229,9,20,.08); }

.wnrf-card form input[type="text"], .wnrf-card form textarea, .library-search input {
  display: block;
  width: 100%;
  padding: 14px;
  background: #111;
  color: #fff;
  border: 2px solid var(--wnrf-border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
}
.wnrf-card form textarea { min-height: 130px; resize: vertical; }
.wnrf-card form label { color: #fff; }

.wnrf-footer { border-top: 1px solid var(--wnrf-border); padding: 24px 0; color: var(--wnrf-muted); text-align: center; }

@media (max-width: 900px) {
  .wnrf-hero, .wnrf-grid { grid-template-columns: 1fr; }
  .library-track { grid-template-columns: 90px 1fr; }
  .library-art { width: 90px; height: 90px; }
  .library-action { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 600px) {
  .wnrf-nav { display: grid; grid-template-columns: 1fr 1fr; }
  .wnrf-nav a { text-align: center; }
  .wnrf-now-song, .request-preview { flex-direction: column; align-items: flex-start; }
  .wnrf-now-art { width: 100% !important; height: auto !important; max-width: 320px !important; flex: 0 0 auto !important; }
  .library-search { flex-direction: column; }
  .library-track { grid-template-columns: 1fr; }
  .library-art { width: 150px; height: 150px; }
}
