@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;600;700;800&family=Lato:wght@400;700;900&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-hover: #f8f7ff;
  --surface-solid: #ffffff;
  --surface-input: #fbfaff;
  --line: rgba(92, 84, 168, 0.18);
  --line-hover: rgba(92, 84, 168, 0.42);
  
  --gradation: linear-gradient(135deg, #7f7efd 0%, #eccadc 98%);
  --gradation-hover: linear-gradient(135deg, #8f8efd 0%, #f4d4e3 100%);
  --purple: #615fc7;
  --pink: #a54f80;
  --cyan: #167f7c;
  --danger: #d92f7f;
  
  --text: #211e32;
  --text-sub: #3f3a52;
  --muted: #706a82;
  
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  
  --shadow-glow: 0 10px 30px -12px rgba(97, 95, 199, 0.22);
  --shadow-card: 0 8px 24px rgba(39, 33, 72, 0.09);
  
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 85% 5%, rgba(127, 126, 253, 0.10) 0%, transparent 42%),
    radial-gradient(circle at 15% 50%, rgba(236, 202, 220, 0.12) 0%, transparent 48%),
    radial-gradient(circle at 75% 85%, rgba(127, 126, 253, 0.06) 0%, transparent 38%);
  background-attachment: fixed;
  color: var(--text-sub);
  font-family: 'Barlow', 'Lato', 'Noto Sans JP', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Header */
.site-header {
  height: 76px;
  padding: 0 max(24px, calc((100vw - var(--max-width)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gradation);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #08070d;
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(127, 126, 253, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text b {
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: var(--text);
}

.brand-text b span {
  background: var(--gradation);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-header nav a {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: var(--text-sub);
  position: relative;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--text);
  background: rgba(127, 126, 253, 0.12);
  border: 1px solid rgba(127, 126, 253, 0.25);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 6px 12px;
  font-size: 1.3rem;
  cursor: pointer;
}

.unofficial {
  padding: 8px 24px;
  text-align: center;
  background: #faf9ff;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
}

/* Layout Container */
main {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 80px;
  flex: 1;
}

/* Hero Section */
.hero {
  min-height: 340px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
  padding: 40px 0 60px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 50px;
  position: relative;
}

.hero::after {
  content: "MUSIC";
  position: absolute;
  right: -20px;
  bottom: -15px;
  font-size: 9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(127, 126, 253, 0.03);
  pointer-events: none;
  user-select: none;
}

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(93, 228, 224, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(93, 228, 224, 0.25);
  margin-bottom: 12px;
}

.hero h1, .page-head h1, .detail-hero h1, .song-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 12px 0;
}

.hero h1 span, .gradient-text {
  background: var(--gradation);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p, .page-head p {
  color: var(--text-sub);
  font-size: 1.05rem;
  max-width: 600px;
  margin-top: 10px;
}

.hero-search {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  position: relative;
  z-index: 10;
}

.hero-search label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero-search div, .search-wide {
  display: flex;
  gap: 0;
}

.hero-search input, .search-wide input {
  min-width: 0;
  flex: 1;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  border-right: 0;
}

.hero-search button, .search-wide button {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Sections & Grid */
.section {
  margin-top: 56px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin: 4px 0 0;
  letter-spacing: -0.02em;
}

.section-head h2 small {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  margin-left: 8px;
}

.text-link {
  color: var(--purple);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-link:hover {
  color: var(--pink);
  transform: translateX(3px);
}

/* Cover Card & Aspect Ratios */
.card-grid, .compare-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.compare-grid {
  grid-template-columns: repeat(3, 1fr);
}

.cover-card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-card);
}

.cover-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f1effa;
  overflow: hidden;
  display: block;
}

.thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cover-card:hover .thumb-wrapper img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 13, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.play-overlay-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradation);
  color: #08070d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  padding-left: 3px;
  box-shadow: 0 4px 20px rgba(127, 126, 253, 0.6);
  transform: scale(0.85);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cover-card:hover .play-overlay {
  opacity: 1;
}

.cover-card:hover .play-overlay-icon {
  transform: scale(1);
}

.thumb-fallback {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f2efff 0%, #fff5fa 100%);
  color: var(--purple);
}

.thumb-fallback span {
  font-size: 2.5rem;
}

.thumb-fallback small {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-top: 4px;
}

.status {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(255, 79, 163, 0.9);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.status.upcoming {
  background: rgba(127, 126, 253, 0.9);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body .eyebrow {
  margin: 0 0 6px;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.song-line {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--text-sub);
}

.song-line span {
  color: var(--muted);
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(127, 126, 253, 0.1);
}

time {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Buttons */
.button, button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: var(--gradation);
  color: #08070d;
  border: 0;
  border-radius: var(--radius-md);
  padding: 11px 20px;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(127, 126, 253, 0.25);
}

.button:hover, button:hover {
  background: var(--gradation-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(127, 126, 253, 0.4);
}

.button.secondary, button.secondary {
  background: rgba(127, 126, 253, 0.12);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button.secondary:hover, button.secondary:hover {
  background: rgba(127, 126, 253, 0.22);
  border-color: var(--line-hover);
}

.button.sm, button.sm {
  padding: 7px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.button.youtube-btn {
  background: rgba(255, 0, 0, 0.12);
  color: #ff5555;
  border: 1px solid rgba(255, 0, 0, 0.25);
  box-shadow: none;
}

.button.youtube-btn:hover {
  background: rgba(255, 0, 0, 0.22);
  color: #ffffff;
  border-color: rgba(255, 0, 0, 0.45);
}

/* Forms & Inputs */
input, select, textarea {
  width: 100%;
  background: var(--surface-input);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(127, 126, 253, 0.25);
}

.filters {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1fr auto auto;
  gap: 12px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
  align-items: center;
}

.filters > a {
  padding: 10px 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.filters > a:hover {
  color: var(--text);
}

.result-count {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 20px 0;
}

/* Talent Grid & Avatar Ratios */
.talent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.talent-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.talent-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-hover);
}

/* Avatar Frame: Aspect ratio 1:1 circular gradient ring */
.avatar-frame {
  width: 68px;
  height: 68px;
  aspect-ratio: 1 / 1;
  padding: 3px;
  background: var(--gradation);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(127, 126, 253, 0.3);
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  background: #f3f1fb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
  overflow: hidden;
}

.avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-frame.large {
  width: 110px;
  height: 110px;
  padding: 4px;
}

.avatar-frame.large .avatar-inner {
  font-size: 2.8rem;
}

.talent-card h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}

.talent-card p {
  margin: 4px 0 0;
  color: var(--pink);
  font-size: 0.9rem;
  font-weight: 600;
}

.talent-card .subscribers {
  color: var(--muted);
  font-size: 0.82rem;
}

.talent-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(127, 126, 253, 0.1);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: all 0.25s ease;
}

.talent-card:hover .talent-arrow {
  background: var(--gradation);
  color: #08070d;
  transform: translateX(4px);
}

/* Detail Hero Section */
.detail-hero {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 40px 0 50px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.detail-hero h1 {
  font-size: 3.2rem;
  margin: 8px 0;
}

/* Song List Page */
.song-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.song-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: all 0.25s ease;
}

.song-list-item:hover {
  background: var(--surface-hover);
  border-color: var(--line-hover);
  transform: translateX(4px);
}

.song-list-item > div {
  display: flex;
  align-items: center;
  gap: 24px;
}

.song-number {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(127, 126, 253, 0.12);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.song-list-item h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.song-list-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.singer-count {
  display: flex;
  align-items: center;
  gap: 10px;
}

.singer-count strong {
  font-size: 1.6rem;
  color: var(--cyan);
  font-weight: 900;
}

.singer-count span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Song Hero Header */
.song-hero {
  text-align: center;
  padding: 60px 20px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 30%, rgba(127, 126, 253, 0.15) 0%, transparent 65%);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}

.song-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.song-hero > div {
  margin-top: 20px;
}

.song-hero > div b {
  color: var(--cyan);
  font-size: 2.2rem;
  margin-right: 6px;
}

/* Modal Player */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 3, 8, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  max-width: 960px;
  background: #100e21;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.open .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(19, 17, 36, 0.8);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-close {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.modal-player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal-player-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Empty & Flash Notices */
.empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
  padding: 30px;
}

.empty span {
  font-size: 2.2rem;
  color: var(--purple);
  margin-bottom: 8px;
}

.api-notice, .flash {
  padding: 14px 20px;
  border: 1px solid rgba(236, 202, 220, 0.3);
  background: rgba(236, 202, 220, 0.08);
  color: var(--pink);
  border-radius: var(--radius-md);
  margin: 20px 0;
  font-size: 0.9rem;
}

.flash.success {
  border-color: rgba(93, 228, 224, 0.3);
  background: rgba(93, 228, 224, 0.08);
  color: var(--cyan);
}

.flash.error {
  border-color: rgba(255, 79, 163, 0.3);
  background: rgba(255, 79, 163, 0.08);
  color: var(--danger);
}

/* Page Head Header */
.page-head {
  padding: 20px 0 35px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 35px;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  background: #faf9ff;
  margin-top: auto;
}

footer p {
  margin: 6px 0;
}

footer a {
  color: var(--text-sub);
}

footer a:hover {
  color: var(--pink);
}

/* Informational pages */
.info-page,
.admin-login {
  width: min(860px, calc(100% - 32px));
  margin: 42px auto 72px;
}

.info-page > h1,
.admin-login h1 {
  margin: 8px 0 24px;
}

.info-card,
.admin-login-card {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.info-card h2 {
  margin: 32px 0 10px;
  font-size: 1.2rem;
}

.info-card p,
.info-card li {
  line-height: 1.9;
}

.contact-button {
  display: inline-flex;
  margin: 18px 0 8px;
}

.contact-address {
  word-break: break-all;
}

.contact-lead {
  max-width: 680px;
  margin: -12px 0 26px;
  color: var(--muted);
  line-height: 1.8;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 20px;
  align-items: start;
}

.contact-form-card {
  padding: clamp(24px, 4vw, 38px);
}

.contact-form {
  display: grid;
  gap: 22px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface-input);
  font: inherit;
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.7;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.required { color: #ff7d89; margin-left: 4px; }
.contact-submit { width: 100%; justify-content: center; }
.contact-honeypot { position: absolute !important; left: -10000px !important; }

.contact-side-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.contact-side-card p {
  margin: 7px 0 12px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
}

.contact-x-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.notice-box {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-input);
}

.admin-login-card {
  max-width: 460px;
  margin: 0 auto;
}

.admin-login-card form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.admin-login-card label {
  display: grid;
  gap: 8px;
}

.admin-logout {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

/* Admin Styling */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.panel {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.panel.wide {
  grid-column: 1 / -1;
}

.panel h2 {
  margin-top: 0;
  color: var(--text);
}

.panel form > label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 14px 0 6px;
}

.panel .check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel .check input {
  width: auto;
}

.preview-box {
  min-height: 60px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 0.82rem;
}

.preview-box img {
  width: 110px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-height: 620px;
  overflow-y: auto;
}

.candidate-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.candidate-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.member-picker {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 10px 0;
}

.member-picker legend { color: var(--muted); padding: 0 6px; }
.member-picker .check { display: inline-flex; margin: 4px 12px 4px 0; }
.member-picker.compact { max-height: 130px; overflow: auto; min-width: 210px; }
.review-warning { color: #b45309; font-weight: 700; margin: 8px 0; }
.member-details { margin: 10px 0; }
.member-details > summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.member-details > summary span { color: var(--accent); font-size: .82em; margin-left: 6px; }
.member-details[open] > summary { border-color: var(--accent); }
.member-details.compact { min-width: 190px; }
.card-admin { border-top: 1px solid var(--line); background: var(--surface); }
.card-admin > summary { cursor: pointer; padding: 12px 16px; color: var(--accent); font-weight: 700; }
.card-admin form { padding: 0 16px 16px; display: grid; gap: 9px; }
.card-admin .member-picker { max-height: 145px; overflow: auto; }
.collab-filters { margin-bottom: 22px; }
.filter-checks { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.filter-chip { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: var(--surface); }
.filter-chip:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.filter-chip.external:has(input:checked) { border-color: #f59e0b; }
.original-section { border-radius: 24px; padding: 24px; background: linear-gradient(135deg, rgba(127,126,253,.09), rgba(236,72,153,.07)); }
.music-type-badge { display: inline-flex; font-size: .7rem; font-weight: 800; letter-spacing: .12em; color: #ec4899; margin-bottom: 7px; }
.original-head { background: linear-gradient(135deg, rgba(127,126,253,.12), rgba(236,72,153,.10)); border-radius: 22px; padding: 26px; }
.talent-editor-list { display: grid; gap: 8px; }
.talent-editor { margin: 0; }
.talent-editor form { display: grid; gap: 8px; padding: 12px 4px 4px; }
.talent-editor form + form { display: block; padding-top: 4px; }

/* Breakpoints (milpr.com standard: 1280px, 1140px, 840px, 540px, 320px) */
@media (max-width: 1140px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 840px) {
  .site-header {
    height: 68px;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .site-header nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 15px 30px rgba(39, 33, 72, 0.14);
  }
  
  .site-header nav.open {
    display: flex;
  }
  
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 20px 0 40px;
  }
  
  .card-grid, .compare-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  
  .talent-grid {
    grid-template-columns: 1fr;
  }
  
  .admin-grid {
    grid-template-columns: 1fr;
  }
  
  .panel.wide {
    grid-column: auto;
  }
  
  .candidate-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  main {
    padding: 24px 16px 60px;
  }
  
  .hero h1 {
    font-size: 2.3rem;
  }
  
  .card-grid, .compare-grid {
    grid-template-columns: 1fr;
  }
  
  .filters {
    grid-template-columns: 1fr;
  }
  
  .detail-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .avatar-frame.large {
    width: 80px;
    height: 80px;
  }
  
  .avatar-frame.large .avatar-inner {
    font-size: 2rem;
  }
  
  .detail-hero h1 {
    font-size: 2.2rem;
  }
  
  .song-list-item {
    padding: 16px;
  }
  
  .singer-count span {
    display: none;
  }
  
  .candidate-card {
    grid-template-columns: 1fr;
  }
}
