/*
 * Roberto Music Collective
 * K2 modern visual skin
 * HTML is intentionally untouched.
 */

:root {
  --bg: #f6f7f9;
  --paper: #ffffff;
  --paper-soft: #f1f4f7;
  --ink: #17181c;
  --muted: #68707d;
  --line: #d8dde5;
  --accent: #e43d30;
  --accent-dark: #aa241f;
  --blue: #1f6feb;
  --green: #167c5a;
  --shadow: 0 18px 45px rgba(18, 24, 38, 0.10);
  --shadow-soft: 0 8px 22px rgba(18, 24, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    linear-gradient(90deg, rgba(23, 24, 28, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 24, 28, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", "Yu Gothic UI", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
  background: transparent;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body > table {
  width: 100% !important;
}

table,
tbody,
tr,
td,
th {
  border: 0;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

a:visited {
  color: #5d4ab7;
}

a:hover {
  color: var(--accent-dark);
  background: transparent;
}

a:focus-visible {
  outline: 3px solid rgba(31, 111, 235, 0.25);
  outline-offset: 3px;
}

font {
  color: inherit !important;
  font-size: inherit;
}

blink,
.blink {
  animation: none !important;
}

.wrap {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 28px clamp(18px, 4vw, 44px) 44px;
}

.wrap > table:first-of-type {
  display: block;
  margin: 18px 0 24px;
  padding: clamp(26px, 7vw, 68px) clamp(18px, 5vw, 56px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.wrap > table:first-of-type tbody,
.wrap > table:first-of-type tr,
.wrap > table:first-of-type td {
  display: block;
}

.logo {
  display: block;
  width: min(420px, 82vw);
  max-width: 100%;
  max-height: none;
  height: auto;
  margin: 0 auto 20px;
  filter: drop-shadow(0 16px 24px rgba(18, 24, 38, 0.18));
}

.site-subtitle {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.counter-wrap {
  padding: 0;
  text-align: center;
}

.wrap > table:nth-of-type(2) {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: -42px auto 26px;
  padding: 12px 18px;
  background: #17181c;
  color: #ffffff;
  border: 1px solid #2b3038;
  box-shadow: var(--shadow-soft);
}

.wrap > table:nth-of-type(2) tbody,
.wrap > table:nth-of-type(2) tr,
.wrap > table:nth-of-type(2) td {
  display: block;
}

.counter {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: 0 8px;
  padding: 2px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(1.05rem, 3.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.13em;
}

.counter-label {
  display: block;
  margin-top: 4px;
  color: #b8c0cc;
  font-size: 0.76rem;
}

hr {
  height: 1px;
  margin: 28px 0;
  border: 0;
  background: var(--line);
}

hr.wave {
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--green));
}

.nav-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 26px;
  padding: 12px;
  background: rgba(246, 247, 249, 0.88);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  font-size: 0;
}

.nav-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-bar a:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.page-title {
  margin: 34px 0 28px;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  text-align: left;
}

.page-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 18px;
  background: var(--accent);
}

.news-section,
.streaming-section,
.lyrics-section,
.transmission-log,
.construction,
.link-body {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.news-section {
  margin: 28px 0;
  padding: clamp(18px, 3vw, 28px);
}

.news-title {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.news-item {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.95rem;
}

.news-item:last-child {
  border-bottom: 0;
}

.new-badge {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 0;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  padding: 0;
}

.music-item {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  width: auto;
  min-height: 100%;
  padding: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.music-item:hover {
  border-color: #b8c0cc;
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.jacket,
.jacket-placeholder {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  margin: 0;
  border: 0;
}

.jacket {
  display: block;
  object-fit: cover;
}

.jacket-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-soft);
  color: var(--muted);
  font-size: 0.8rem;
}

.track-num,
.track-title {
  display: block;
  padding: 0 16px;
}

.track-num {
  margin-top: 10px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.track-title {
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 800;
  line-height: 1.45;
}

.song-page-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
}

.song-header {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  grid-template-areas:
    "art code"
    "art title";
  gap: 10px clamp(24px, 4vw, 46px);
  align-items: end;
  margin: 36px 0;
  padding: clamp(18px, 4vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: left;
}

.song-jacket,
.song-jacket-placeholder {
  grid-area: art;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  margin: 0;
  border: 0;
}

.song-jacket {
  display: block;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(18, 24, 38, 0.16);
}

.song-jacket-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-soft);
  color: var(--muted);
}

.song-rmc {
  grid-area: code;
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.song-title {
  grid-area: title;
  display: block;
  max-width: 12em;
  color: var(--ink);
  font-size: clamp(2rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
}

.streaming-section {
  margin: 26px 0;
  padding: clamp(18px, 3vw, 26px);
  text-align: left;
}

.streaming-label {
  display: block;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.streaming-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.streaming-links a,
.link-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.streaming-links a:hover,
.link-item:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.streaming-links a.yt {
  border-color: rgba(228, 61, 48, 0.35);
  color: var(--accent-dark);
}

.streaming-links a.yt:hover {
  border-color: var(--accent);
  background: #fff7f6;
}

.lyrics-section {
  margin: 26px 0;
  padding: clamp(18px, 3vw, 28px);
}

.lyrics-toggle {
  display: block;
  padding: 2px 0 14px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  user-select: none;
}

.lyrics-toggle:hover {
  color: var(--accent-dark);
}

.lyrics-body {
  max-height: min(72vh, 720px);
  overflow: auto;
  margin: 10px 0 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: #fbfcfd;
  color: #2d333b;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", "Yu Gothic UI", monospace;
  font-size: 0.9rem;
  line-height: 1.9;
  white-space: pre-wrap;
}

.about-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
}

.about-body p {
  margin: 18px 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 2;
}

.transmission-log {
  margin: 28px 0;
  padding: 20px;
  background: #0f1512;
  border-color: #22362d;
  color: #c8f2da;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.8;
}

.transmission-log p {
  color: inherit;
}

.transmission-log .log-head {
  margin-top: 0;
  color: #8ce8b5;
}

.link-body {
  max-width: 680px;
  padding: clamp(18px, 4vw, 34px);
  text-align: left;
}

.link-group-title {
  margin: 26px 0 12px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.link-body .link-group-title:first-child {
  margin-top: 0;
}

.link-item {
  width: 100%;
  margin: 10px 0;
  justify-content: space-between;
}

.link-item::after {
  content: "open";
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.construction {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 58px);
  text-align: center;
}

.construction font {
  display: block;
  color: var(--ink) !important;
  font-size: clamp(2rem, 7vw, 4.5rem) !important;
  font-weight: 900;
  line-height: 1;
}

.construction-mark {
  margin: 24px 0 8px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.construction-msg {
  margin: 10px auto;
  max-width: 520px;
  color: var(--muted);
  font-size: 1rem;
}

.footer {
  margin-top: 42px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.8;
  text-align: center;
}

p[style] {
  color: inherit !important;
}

p[style] a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

p[style] a:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 820px) {
  body {
    font-size: 15px;
  }

  table,
  tbody,
  tr,
  td,
  th {
    display: block !important;
    width: 100% !important;
  }

  .wrap {
    padding: 16px 14px 34px;
  }

  .wrap > table:first-of-type {
    margin-top: 10px;
  }

  .wrap > table:nth-of-type(2) {
    width: 100%;
    margin-top: -28px;
  }

  .nav-bar {
    position: static;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 10px;
  }

  .nav-bar a {
    flex: 0 0 auto;
  }

  .music-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .music-item {
    padding-bottom: 14px;
  }

  .track-num,
  .track-title {
    padding: 0 12px;
  }

  .song-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "art"
      "code"
      "title";
    gap: 12px;
    margin: 24px 0;
  }

  .song-jacket,
  .song-jacket-placeholder {
    max-width: 420px;
    margin: 0 auto;
  }

  .streaming-section,
  .lyrics-section {
    text-align: left;
  }

  .streaming-links a {
    flex: 1 1 150px;
  }
}

@media (max-width: 460px) {
  .music-grid {
    grid-template-columns: 1fr;
  }

  .counter {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 8px 0;
  }

  .news-item {
    display: block;
  }

  .new-badge {
    display: inline-block;
    margin: 0 0 6px;
  }

  .lyrics-body {
    padding: 16px;
    font-size: 0.84rem;
  }
}
