@font-face {
  font-family: 'Pretendard Variable';
  src: url('/fonts/PretendardVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #f4f8ff;
  --foreground: #172c48;
  --card: #ffffff;
  --muted: #eef5ff;
  --muted-foreground: #304b70;
  --subtle-foreground: #526780;
  --primary: #a9c8f5;
  --primary-hover: #91b8f7;
  --primary-soft: #dbeafe;
  --primary-soft-hover: #caddfa;
  --primary-ink: #194f9c;
  --primary-foreground: var(--foreground);
  --project-title-glow-near: color-mix(in srgb, var(--primary) 24%, transparent);
  --project-title-glow-far: color-mix(in srgb, var(--primary) 14%, transparent);
  --accent: var(--primary);
  --accent-foreground: var(--foreground);
  --border: #b4c7e3;
  --border-strong: #334663;
  --input: var(--border);
  --ring: #2763ad;
  --shadow-color: #273b59;
  --warning: #9a3412;
  --warning-background: #fffbeb;
  --warning-border: #fde68a;
  --success: #047857;
  --success-background: #ecfdf5;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 5px;
  --shadow-sm: 4px 4px 0 var(--shadow-color);
  --shadow-panel: 7px 7px 0 var(--shadow-color);
  --motion-peer-duration: 300ms;
  --motion-peer-arrival-delay: 60ms;
  --motion-layout-duration: 360ms;
  --motion-panel-duration: 620ms;
  --motion-emphasized-easing: cubic-bezier(0.37, 0, 0.63, 1);
  --grid-line: rgb(82 148 255 / 0.08);
  --error-background: #fff7f7;
  --error-foreground: #991b1b;
}

:root.dark {
  color-scheme: dark;
  --background: #0e1829;
  --foreground: #e0eaff;
  --card: #15233a;
  --muted: #1c2d48;
  --muted-foreground: #b7c8e3;
  --subtle-foreground: #a6bad6;
  --primary: #8bb8fa;
  --primary-hover: #a9c8f5;
  --primary-soft: #213a5c;
  --primary-soft-hover: #2b486e;
  --primary-ink: #a9c8f5;
  --primary-foreground: #0e1829;
  --accent-foreground: var(--primary-foreground);
  --border: #456183;
  --border-strong: #9eb5d5;
  --ring: #9cc5ff;
  --shadow-color: #050b16;
  --warning: #f8b080;
  --warning-background: #42291d;
  --warning-border: #b36c39;
  --success: #85d4b2;
  --success-background: #16372e;
  --grid-line: rgb(82 148 255 / 0.11);
  --error-background: #421f2b;
  --error-foreground: #ffc2cd;
}

:root[data-project-transition='radial']::view-transition {
  pointer-events: none;
}

:root[data-project-transition='radial']::view-transition-group(root),
:root[data-project-transition='radial']::view-transition-old(root),
:root[data-project-transition='radial']::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

:root[data-project-transition='radial']::view-transition-image-pair(root) {
  isolation: auto;
}

:root[data-project-transition='radial']::view-transition-old(root) {
  z-index: 0;
}

:root[data-project-transition='radial']::view-transition-new(root) {
  z-index: 1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  background: var(--background);
}

html.is-scroll-adjusting {
  scroll-behavior: auto;
  overflow-anchor: none;
}

html.has-video-dialog {
  overflow: hidden;
  scrollbar-gutter: auto;
  padding-right: var(--video-scrollbar-width, 0px);
}

body {
  min-width: 0;
  margin: 0;
  background-color: var(--background);
  background-image:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(var(--grid-line) 1px, transparent 1px);
  background-size: 36px 36px;
  color: var(--foreground);
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.artist-card__toggle:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: -4px;
}

::selection {
  background: var(--primary);
  color: var(--primary-foreground);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 9px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--accent);
  box-shadow: 3px 3px 0 var(--shadow-color);
  color: var(--accent-foreground);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

.skip-link--secondary {
  left: 166px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 35;
  top: 0;
  border-bottom: 2px solid var(--border-strong);
  background: var(--card);
}

.site-header__inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin-inline-end: auto;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
}

.theme-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--subtle-foreground);
  cursor: pointer;
}

.theme-toggle svg {
  width: 26px;
  height: 26px;
  padding: 6px;
  border-radius: 999px;
}

@media (max-width: 480px) {
  .theme-toggle {
    padding: 2px;
  }

  .theme-toggle svg {
    width: 20px;
    height: 20px;
    padding: 4px;
  }
}

:root:not(.dark) .theme-toggle [data-theme-icon='light'],
:root.dark .theme-toggle [data-theme-icon='dark'] {
  background: var(--muted);
  color: var(--primary-ink);
}

.inst-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: center;
  padding: 12px 0 44px;
}

.inst-hero__eyebrow {
  margin: 0 0 12px;
  color: var(--primary-ink);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.inst-hero h1 {
  width: fit-content;
  margin: 0 0 14px;
  padding-inline-end: 0.05em;
  background: linear-gradient(
    90deg,
    #bed4f3 0.02%,
    #a9c8f5 34.6154%,
    #5294ff 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

/* Match the shared Works title glow, which is enabled only in dark mode. */
:root.dark .inst-hero h1 {
  filter: drop-shadow(0 0 10px var(--project-title-glow-near))
    drop-shadow(0 0 24px var(--project-title-glow-far));
}

.inst-hero__tagline {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.45;
  word-break: keep-all;
}

.inst-hero__description {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.7;
  word-break: keep-all;
}

.inst-hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.inst-hero__visual::before {
  position: absolute;
  z-index: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, #bed4f3, #a9c8f5 35%, #5294ff);
  filter: blur(40px);
  opacity: 0.58;
  content: '';
}

:root.dark .inst-hero__visual::before {
  opacity: 0.5;
}

@media (min-width: 640px) {
  .inst-hero__visual::before {
    filter: blur(60px);
  }
}

@media (min-width: 961px) {
  .inst-hero__visual::before {
    filter: blur(80px);
  }
}

.inst-hero__visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 200px;
  height: auto;
  border-radius: 25%;
  box-shadow: none;
  filter: none;
}

:root:not(.dark) .inst-hero__visual img {
  outline: 1px solid rgb(25 79 156 / 18%);
  outline-offset: -1px;
}

.quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0 0;
}

.quick-stats div {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.quick-stats dt {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 550;
}

.quick-stats dd {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.page-shell {
  width: min(100% - 48px, 1160px);
  margin: 0 auto;
  padding: 40px 0 56px;
}

.catalog {
  margin-top: 0;
}

.catalog-search {
  width: clamp(240px, 28vw, 360px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.catalog-search-trigger {
  display: none;
}

.catalog-search__field {
  position: relative;
  min-width: 0;
}

.catalog-search__field > svg {
  position: absolute;
  top: 50%;
  left: 12px;
  color: var(--subtle-foreground);
  transform: translateY(-50%);
  pointer-events: none;
}

.catalog-search__field input {
  width: 100%;
  height: 36px;
  padding: 0 40px 0 36px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--card);
  box-shadow: none;
  color: var(--foreground);
  font-size: 13px;
  font-weight: 500;
  appearance: textfield;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.catalog-search__field input::-webkit-search-cancel-button {
  display: none;
  appearance: none;
}

.catalog-search__field input::placeholder {
  color: var(--subtle-foreground);
  font-weight: 450;
}

.catalog-search__field:focus-within input {
  border-color: var(--border-strong);
  box-shadow: none;
}

.catalog-search__field input:focus {
  outline: none;
}

.catalog-search__field input:focus-visible,
.catalog-search-trigger:focus-visible,
.catalog-search__field button:focus-visible {
  outline: none;
}

:root[data-keyboard-focus] .catalog-search__field input:focus-visible,
:root[data-keyboard-focus] .catalog-search-trigger:focus-visible,
:root[data-keyboard-focus] .catalog-search__field button:focus-visible {
  outline: 1px solid var(--primary-ink);
  outline-offset: 2px;
}

.media-notice {
  margin: 0 0 24px;
  padding: 0 2px;
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.6;
}

.catalog-search__field button {
  position: absolute;
  top: 50%;
  right: 2px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--foreground);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 120ms ease;
}

.catalog-search__status {
  margin: 0 0 8px;
  color: var(--muted-foreground);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .catalog-search-trigger {
    position: relative;
    display: inline-flex;
    width: 40px;
    height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--subtle-foreground);
    cursor: pointer;
  }

  .catalog-search-trigger[data-has-query='true']::after {
    position: absolute;
    top: 9px;
    right: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-ink);
    content: '';
  }

  .catalog-search[popover]:not(:popover-open) {
    display: none;
  }

  .catalog-search[popover] {
    position: fixed;
    inset: 76px 16px auto;
    width: auto;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    background: var(--card);
    box-shadow: 2px 2px 0 var(--shadow-color);
  }

  .catalog-search__field input {
    height: 44px;
    padding-right: 48px;
    font-size: 16px;
  }

  .catalog-search__field button {
    width: 44px;
    height: 44px;
  }
}

.catalog-empty {
  display: grid;
  gap: 5px;
  place-items: center;
  min-height: 180px;
  padding: 28px;
  border: 3px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 6px 6px 0 var(--shadow-color);
  text-align: center;
}

.catalog-empty strong {
  font-size: 18px;
  font-weight: 950;
}

.catalog-empty span {
  color: var(--subtle-foreground);
  font-size: 12px;
  font-weight: 700;
}

.catalog-empty .catalog-reload {
  min-height: 44px;
  justify-self: center;
  margin-top: 8px;
  padding-inline: 14px;
  font-size: 13px;
  cursor: pointer;
}

.artist-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin-top: 0;
  scroll-margin-top: 80px;
}

.catalog-loading,
.catalog-empty--message {
  grid-column: 1 / -1;
}

.catalog-loading {
  margin: 0;
  padding: 28px;
  border: 3px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 6px 6px 0 var(--shadow-color);
  font-size: 14px;
  font-weight: 850;
  text-align: center;
}

.catalog-empty--message {
  margin-top: 24px;
}

.artist-list.is-layout-switching .artist-card {
  transition: none;
}

.artist-card {
  container-type: inline-size;
  align-self: start;
  scroll-margin-top: 16px;
  overflow: clip;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 3px 3px 0 var(--shadow-color);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease;
}

.artist-card.is-open {
  position: relative;
  z-index: 1;
}

.artist-card.is-opening {
  position: relative;
  z-index: 1;
}

.artist-card.is-closing {
  position: relative;
  z-index: 1;
}

.artist-card.is-layout-morphing {
  justify-self: start;
  will-change: width, translate;
}

.artist-card.is-layout-morphing .artist-card__panel {
  display: none;
}

.artist-card.is-peer-departing {
  pointer-events: none;
  animation: artist-peer-depart var(--motion-peer-duration)
    var(--motion-emphasized-easing) both;
  will-change: opacity, translate;
}

.artist-card.is-peer-before {
  --peer-exit-x: -20px;
}

.artist-card.is-peer-after {
  --peer-exit-x: 20px;
}

@keyframes artist-peer-depart {
  from {
    opacity: 1;
    translate: 0 0;
  }

  to {
    opacity: 0;
    translate: var(--peer-exit-x) 0;
  }
}

.artist-card.is-peer-arriving {
  pointer-events: none;
  animation: artist-peer-arrive var(--motion-peer-duration)
    var(--motion-emphasized-easing) var(--motion-peer-arrival-delay) both;
  will-change: opacity, translate;
}

@keyframes artist-peer-arrive {
  from {
    opacity: 0;
    translate: var(--peer-exit-x) 0;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

.artist-list.is-searching {
  grid-template-columns: 1fr;
}

.artist-card__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  background: var(--card);
  box-shadow: inset 0 -2px 0 transparent;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.artist-card:is(
    .is-opening,
    .is-open,
    .is-panel-closing,
    .is-panel-motion-preparing
  )
  .artist-card__header {
  background: var(--primary-soft);
  box-shadow: inset 0 -2px 0 var(--border-strong);
}

.artist-card__title {
  min-width: 0;
  margin: 0;
}

.artist-card__toggle {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 104px;
  grid-template-columns: 22px minmax(0, 1fr) auto 24px;
  gap: 8px;
  align-items: center;
  padding: 14px 8px 14px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 80ms ease;
}

.artist-number {
  display: grid;
  width: 22px;
  height: 24px;
  place-items: center;
  color: var(--subtle-foreground);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.artist-card__identity {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.artist-heading {
  display: grid;
  gap: 0;
  min-width: 0;
  color: var(--foreground);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.artist-heading__original,
.artist-heading__ko {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-heading__ko {
  color: var(--primary-ink);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0;
  line-height: 1.3;
  transition: color 180ms ease;
}

.artist-card:is(
    .is-opening,
    .is-open,
    .is-panel-closing,
    .is-panel-motion-preparing
  )
  .artist-heading__ko,
.artist-card:is(
    .is-opening,
    .is-open,
    .is-panel-closing,
    .is-panel-motion-preparing
  )
  .artist-meta {
  color: var(--foreground);
}

.artist-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  overflow: hidden;
  color: var(--muted-foreground);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  transition: color 180ms ease;
  white-space: nowrap;
}

.artist-meta__label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: var(--muted-foreground);
  font-weight: 500;
}

.artist-meta__label::after {
  margin: 0 5px;
  color: var(--muted-foreground);
  content: '·';
}

.artist-meta__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}

.artist-card__count {
  display: inline-flex;
  min-width: 32px;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  padding: 0;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.artist-card__count small {
  color: var(--muted-foreground);
  font-size: 10px;
  font-weight: 500;
}

.artist-card__chevron {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  background: var(--card);
  color: var(--foreground);
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.artist-card__chevron::before,
.artist-card__chevron::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  content: '';
  transform: translate(-50%, -50%);
}

.artist-card__chevron::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.artist-card__toggle[aria-expanded='true'] .artist-card__chevron::after {
  display: none;
}

.artist-card:is(
    .is-open,
    .is-opening,
    .is-panel-closing,
    .is-panel-motion-preparing
  )
  .artist-card__chevron {
  background: var(--primary-ink);
  color: var(--card);
}

.guide-link {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-self: center;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0 12px 0 0;
  padding: 0 4px;
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 550;
  text-decoration: none;
  transition: background-color 120ms ease;
  white-space: nowrap;
}

.artist-card__panel {
  height: 0;
  interpolate-size: allow-keywords;
  overflow: hidden;
  border-top: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    height 420ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 260ms ease,
    visibility 0s linear 420ms;
}

.artist-card__panel-inner {
  min-height: 0;
  contain: layout paint;
  overflow: hidden;
  transform: translateY(-5px);
  transition: transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
}

.artist-card:is(.is-panel-opening, .is-panel-closing) .artist-card__panel {
  will-change: height, opacity;
}

.artist-card.is-open .artist-card__panel {
  height: var(--panel-reveal-height);
  opacity: 1;
  visibility: visible;
  transition:
    height var(--motion-panel-duration) var(--motion-emphasized-easing),
    opacity 360ms ease 100ms,
    visibility 0s;
}

.artist-card.is-open .artist-card__panel-inner {
  transform: translateY(0);
  transition: transform var(--motion-panel-duration)
    var(--motion-emphasized-easing);
}

.artist-card.is-open.is-panel-settled .artist-card__panel {
  height: auto;
  overflow: visible;
  transition: none;
}

.artist-card.is-panel-motion-preparing .artist-card__panel,
.artist-card.is-panel-motion-preparing .artist-card__panel-inner {
  transition: none !important;
}

.artist-card.is-panel-closing .artist-card__panel {
  height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: visible;
  transition:
    height var(--motion-panel-duration) var(--motion-emphasized-easing),
    opacity 360ms ease 160ms,
    visibility 0s linear var(--motion-panel-duration);
}

.artist-card.is-panel-closing .artist-card__panel-inner {
  transform: translateY(-5px);
  transition: transform var(--motion-panel-duration)
    var(--motion-emphasized-easing);
}

.artist-card.is-switching-out .artist-card__panel,
.artist-card.is-switching-out .artist-card__panel-inner {
  transition: none !important;
}

.policy-summary {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.8fr);
  border-bottom: 3px solid var(--border);
  background: var(--muted);
}

.policy-summary__conditions {
  padding: 14px 16px;
  border-right: 2px solid var(--border);
  background: var(--background);
}

.policy-summary__label {
  display: block;
  margin-bottom: 6px;
  color: var(--foreground);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.035em;
}

.policy-summary__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.policy-summary__details p {
  margin: 0;
  padding: 14px 16px;
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.policy-summary__details p + p {
  border-left: 2px solid var(--border);
}

.policy-summary__details strong {
  display: block;
  margin-bottom: 3px;
  color: var(--foreground);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.035em;
}

.policy-summary__details p:last-child strong {
  color: var(--warning);
}

.song-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  background: var(--muted);
}

.song-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 72px;
  padding: 14px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 2px 2px 0 var(--shadow-color);
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.song-row[data-playback='loading'],
.song-row[data-playback='playing'] {
  background: var(--muted);
  border-color: var(--primary-ink);
}

.row-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--primary-ink);
  color: var(--card);
  font-size: 10px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.song-row__main {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.song-row__title {
  display: grid;
  grid-template-areas:
    'title'
    'actions';
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  align-items: start;
  gap: 8px 12px;
}

.song-row__title > .song-link {
  grid-area: title;
}

.song-row__actions {
  display: grid;
  grid-area: actions;
  grid-template-columns: repeat(2, max-content);
  min-width: 0;
  align-items: center;
  justify-self: start;
  gap: 8px;
}

.song-row__actions > .inst-source-link {
  min-height: 44px;
}

.song-source-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--subtle-foreground);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.song-link {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  align-items: baseline;
  gap: 5px;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.012em;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--primary);
  transition:
    color 100ms ease,
    box-shadow 100ms ease;
  overflow-wrap: anywhere;
  line-break: strict;
  word-break: normal;
}

.song-link__label {
  min-width: 0;
  overflow-wrap: anywhere;
}

button.song-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

button.song-link > span[aria-hidden] {
  font-size: 12px;
}

.song-link__ko {
  color: var(--subtle-foreground);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0;
}

.song-link__ko::before {
  color: var(--primary-ink);
  font-weight: 950;
  content: ' · ';
}

.song-link__original:lang(ja),
.artist-heading__original:lang(ja) {
  font-weight: 800;
  letter-spacing: 0;
}

.song-link > span[aria-hidden] {
  flex: 0 0 auto;
  color: var(--primary-ink);
  font-size: 9px;
}

.source-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 2px 6px;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--foreground);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
}

.inst-source-link {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  justify-self: end;
  gap: 4px;
  padding: 0 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: 2px 2px 0 var(--shadow-color);
  color: var(--primary-ink);
  font-size: 10.5px;
  font-weight: 950;
  line-height: 1.35;
  text-decoration: none;
  transition:
    background-color 100ms ease,
    border-color 100ms ease,
    box-shadow 100ms ease,
    color 100ms ease,
    transform 100ms ease;
  white-space: nowrap;
}

.inst-source-link > span[aria-hidden] {
  font-size: 9px;
}

.song-download-link {
  touch-action: manipulation;
}

.song-download-link__format {
  padding: 2px 4px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: var(--muted);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
}

.song-download-link svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.video-dialog {
  position: fixed;
  inset: 0;
  width: min(calc(100% - 32px), 1000px);
  min-width: 0;
  max-width: none;
  height: fit-content;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 6px 6px 0 var(--shadow-color);
  color: var(--foreground);
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transition:
    opacity var(--motion-layout-duration) var(--motion-emphasized-easing),
    transform var(--motion-layout-duration) var(--motion-emphasized-easing);
}

.video-dialog[open] {
  opacity: 1;
  transform: none;
}

.video-dialog::backdrop {
  background: rgb(23 44 72 / 0.56);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--motion-layout-duration) ease;
}

.video-dialog[open]::backdrop {
  opacity: 1;
}

@starting-style {
  .video-dialog[open] {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }

  .video-dialog[open]::backdrop {
    opacity: 0;
  }
}

.video-dialog.is-closing {
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transition-duration: 200ms;
}

.video-dialog.is-closing::backdrop {
  opacity: 0;
  transition-duration: 200ms;
}

.video-dialog__panel {
  display: grid;
  min-width: 0;
}

.video-dialog__header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 2px solid var(--border-strong);
  background: var(--primary-soft);
}

.video-dialog__heading {
  min-width: 0;
}

.video-dialog__eyebrow {
  margin: 0 0 5px;
  color: var(--primary-ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.035em;
}

.video-dialog__title {
  margin: 0;
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.video-dialog__artist {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.video-dialog__close {
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  padding: 0;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--primary);
  box-shadow: 2px 2px 0 var(--shadow-color);
  color: var(--primary-foreground);
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color 100ms ease,
    box-shadow 100ms ease,
    transform 100ms ease;
}

.video-dialog__close svg {
  display: block;
  width: 20px;
  height: 20px;
}

.video-dialog__close:active {
  box-shadow: 0 0 0 var(--shadow-color);
  transform: translate(2px, 2px);
}

.video-dialog__frame {
  position: relative;
  width: 100%;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--border-strong);
}

.video-dialog__frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: 0;
}

.video-dialog__footer {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-top: 2px solid var(--border-strong);
}

.video-dialog__notice {
  min-width: 0;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.video-dialog__external {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0 12px;
  border-color: var(--border-strong);
  background: var(--primary-soft);
  font-size: 12px;
}

@media (hover: hover) {
  .video-dialog__close:hover:not(:active) {
    background: var(--primary-hover);
    box-shadow: 1px 1px 0 var(--shadow-color);
    transform: translate(1px, 1px);
  }
}

@media (max-width: 600px) {
  .video-dialog__header {
    gap: 12px;
    padding: 14px 12px;
  }

  .video-dialog__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 12px;
  }

  .video-dialog__external {
    align-self: flex-end;
  }
}

.local-players {
  display: grid;
  gap: 8px;
  margin: 0 3px 3px 0;
}

.local-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  max-width: 640px;
  container-type: inline-size;
  container-name: inst-audio;
}

.inst-player {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  width: 100%;
  min-width: 0;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  box-shadow: 3px 3px 0 var(--shadow-color);
  color: var(--foreground);
}

.inst-player audio {
  display: none;
}

.inst-player__play,
.inst-player__mute {
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  padding: 0;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--primary);
  box-shadow: 2px 2px 0 var(--shadow-color);
  color: var(--primary-foreground);
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color 100ms ease,
    box-shadow 100ms ease,
    transform 100ms ease;
}

.inst-player__play svg,
.inst-player__mute svg {
  display: block;
  width: 20px;
  height: 20px;
}

.inst-player__spinner {
  animation: inst-player-spin 800ms linear infinite;
}

@keyframes inst-player-spin {
  to {
    transform: rotate(360deg);
  }
}

.inst-player[data-state='playing'] .inst-player__play {
  background: var(--primary-ink);
  color: var(--card);
}

.inst-player[data-state='loading'] .inst-player__play {
  background: var(--primary-soft);
  color: var(--foreground);
  cursor: progress;
}

.inst-player[data-state='error'] {
  border-color: var(--warning);
}

.inst-player__play:active:not(:disabled),
.inst-player__mute:active:not(:disabled) {
  box-shadow: 0 0 0 var(--shadow-color);
  transform: translate(2px, 2px);
}

.inst-player__timeline {
  display: grid;
  grid-template-rows: 16px 44px 16px;
  min-width: 0;
  align-content: center;
}

.inst-player__time {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 16px;
  min-width: 0;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  line-height: 16px;
  white-space: nowrap;
}

.inst-player__elapsed {
  grid-column: 1;
}

.inst-player__duration {
  grid-column: 2;
  justify-self: end;
}

.inst-player__activity {
  min-width: 0;
  color: var(--primary-ink);
  font-size: 10px;
  font-weight: 900;
  line-height: 16px;
  text-align: center;
  white-space: nowrap;
}

.inst-player__volume {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.inst-player[data-volume-control='false'] {
  grid-template-columns: 44px minmax(0, 1fr);
}

.inst-player[data-volume-control='false'] .inst-player__volume {
  display: none;
}

.inst-player__seek,
.inst-player__volume-slider {
  --progress: 0%;

  display: block;
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  appearance: none;
  cursor: pointer;
  touch-action: pan-y;
}

.inst-player__volume-slider {
  width: 72px;
  flex: 0 0 72px;
}

.inst-player__seek:disabled,
.inst-player__volume-slider:disabled {
  opacity: 0.45;
  cursor: default;
}

.inst-player__seek::-webkit-slider-runnable-track,
.inst-player__volume-slider::-webkit-slider-runnable-track {
  box-sizing: border-box;
  height: 12px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: linear-gradient(
    to right,
    var(--primary) var(--progress),
    var(--card) var(--progress)
  );
  box-shadow: 2px 2px 0 var(--shadow-color);
}

.inst-player__seek::-moz-range-track,
.inst-player__volume-slider::-moz-range-track {
  box-sizing: border-box;
  height: 12px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: linear-gradient(
    to right,
    var(--primary) var(--progress),
    var(--card) var(--progress)
  );
  box-shadow: 2px 2px 0 var(--shadow-color);
}

.inst-player__seek::-webkit-slider-thumb,
.inst-player__volume-slider::-webkit-slider-thumb {
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  margin-top: -6px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--primary);
  box-shadow: 2px 2px 0 var(--shadow-color);
  appearance: none;
  transition:
    background-color 100ms ease,
    box-shadow 100ms ease,
    transform 100ms ease;
}

.inst-player__seek::-moz-range-thumb,
.inst-player__volume-slider::-moz-range-thumb {
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--primary);
  box-shadow: 2px 2px 0 var(--shadow-color);
  transition:
    background-color 100ms ease,
    box-shadow 100ms ease,
    transform 100ms ease;
}

.inst-player__seek:active:not(:disabled)::-webkit-slider-thumb,
.inst-player__volume-slider:active:not(:disabled)::-webkit-slider-thumb {
  background: var(--primary-hover);
  box-shadow: 0 0 0 var(--shadow-color);
  transform: translate(2px, 2px);
}

.inst-player__seek:active:not(:disabled)::-moz-range-thumb,
.inst-player__volume-slider:active:not(:disabled)::-moz-range-thumb {
  background: var(--primary-hover);
  box-shadow: 0 0 0 var(--shadow-color);
  transform: translate(2px, 2px);
}

@container inst-audio (max-width: 360px) {
  .inst-player {
    gap: 8px;
  }

  .inst-player__volume {
    gap: 4px;
  }

  .inst-player__volume-slider {
    width: 44px;
    flex-basis: 44px;
  }
}

@media (hover: hover) {
  .inst-player__play:hover:not(:active):not(:disabled),
  .inst-player__mute:hover:not(:active):not(:disabled) {
    background: var(--primary-hover);
    box-shadow: 1px 1px 0 var(--shadow-color);
    transform: translate(1px, 1px);
  }

  .inst-player[data-state='playing']
    .inst-player__play:hover:not(:active):not(:disabled) {
    background: var(--border-strong);
  }
}

.local-player__error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 5px 7px;
  border: 2px solid var(--border);
  border-radius: 3px;
  background: var(--error-background);
  color: var(--error-foreground);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.4;
}

.local-player--compact {
  display: block;
  max-width: 640px;
}

.row-extras {
  display: grid;
  gap: 5px;
}

.condition-stack {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.condition-tags {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 5px;
}

.condition-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 2px 6px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--muted);
  color: var(--primary-ink);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.4;
  white-space: nowrap;
}

.condition-note {
  margin: 0;
  padding-left: 9px;
  border-left: 3px solid var(--primary);
  color: var(--muted-foreground);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.empty-state {
  display: grid;
  min-height: 300px;
  place-items: center;
  align-content: center;
  margin-top: 12px;
  padding: 40px 18px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--card);
  text-align: center;
}

.empty-state > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--muted);
  color: var(--subtle-foreground);
  font-size: 15px;
  font-weight: 800;
}

.empty-state h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.empty-state p {
  margin: 5px 0 17px;
  color: var(--subtle-foreground);
  font-size: 12px;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.button--primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.button--primary:hover {
  background: var(--primary-hover);
}

.site-footer {
  display: flex;
  justify-content: flex-end;
  width: min(100% - 48px, 1160px);
  margin: 0 auto 36px;
  color: var(--muted-foreground);
  font-size: 11px;
}

.site-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--foreground);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.artist-list:not(.is-searching)
  .artist-card:is(.is-layout-open, .is-open, .is-panel-closing) {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  .page-shell,
  .site-footer {
    width: min(100% - 192px, 1160px);
  }
}

@media (min-width: 1201px) {
  .artist-list:not(.is-searching) .artist-card.is-row-peer-hidden-3 {
    display: none;
  }
}

@media (min-width: 861px) and (max-width: 1200px) {
  .artist-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artist-list:not(.is-searching) .artist-card.is-row-peer-hidden-2 {
    display: none;
  }
}

@media (max-width: 980px) {
  .song-row {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
  }
}

@media (min-width: 861px) {
  @container (min-width: 760px) {
    .song-list {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .song-row {
      grid-template-columns: minmax(0, 1fr);
      gap: 0;
      min-height: 0;
    }

    .row-number {
      display: none;
    }

    .song-row__main {
      grid-column: 1 / -1;
    }

    .local-player {
      grid-template-columns: 1fr;
      gap: 4px;
      max-width: none;
    }

    .local-player--compact {
      max-width: none;
    }
  }

  @container (min-width: 1180px) {
    .song-list {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
}

@media (max-width: 860px) {
  .artist-list {
    grid-template-columns: 1fr;
  }

  .inst-hero {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 24px;
  }

  .inst-hero__visual img {
    width: 160px;
  }

  .inst-hero__visual::before {
    width: 200px;
    height: 200px;
  }

  .policy-summary {
    grid-template-columns: 1fr;
  }

  .policy-summary__conditions {
    border-right: 0;
    border-bottom: 2px solid var(--border);
  }
}

@media (hover: hover) {
  .artist-card:not(.is-open):not(.is-opening):not(.is-closing):not(
      .is-hover-suppressed
    ):has(.artist-card__toggle:hover) {
    box-shadow: 1px 1px 0 var(--shadow-color);
    transform: translate(2px, 2px);
  }

  .artist-card:not(.is-closing):not(.is-hover-suppressed)
    .artist-card__header:has(.artist-card__toggle:hover) {
    background: var(--primary-soft);
  }

  .artist-card.is-open .artist-card__header:has(.artist-card__toggle:hover) {
    background: var(--primary-soft-hover);
  }

  .guide-link:hover {
    background: var(--primary-soft);
    color: var(--primary-ink);
  }

  .inst-source-link:hover {
    background: var(--background);
    color: var(--primary-ink);
    box-shadow: 1px 1px 0 var(--shadow-color);
    transform: translate(1px, 1px);
  }

  .song-link:hover {
    box-shadow: inset 0 -3px 0 var(--primary);
    color: var(--primary-ink);
  }

  .song-link:hover .song-link__ko {
    color: var(--primary-ink);
  }
}

.inst-source-link:active {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 0 0 var(--shadow-color);
  transform: translate(2px, 2px);
}

.artist-card__header:has(.artist-card__toggle:active) {
  background: var(--primary-soft);
}

.artist-card:is(.is-open, .is-closing)
  .artist-card__header:has(.artist-card__toggle:active) {
  background: var(--primary-soft-hover);
}

.artist-card:not(.is-open):not(.is-opening):not(.is-closing):has(
    .artist-card__header .artist-card__toggle:active
  ) {
  box-shadow: 0 0 0 var(--shadow-color);
  transform: translate(3px, 3px);
}

.artist-card__header .guide-link:active {
  background: var(--primary-soft-hover);
}

.artist-card:is(.is-open, .is-closing) .artist-card__header .guide-link:active {
  background: var(--primary-soft-hover);
}

@media (max-width: 680px) {
  .site-header__inner,
  .page-shell,
  .site-footer {
    width: calc(100% - 32px);
  }

  .site-header__inner {
    min-height: 60px;
    gap: 12px;
  }

  .brand {
    font-size: 14px;
  }

  .inst-hero {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 16px;
    align-items: start;
    padding: 0 0 28px;
  }

  .inst-hero__eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
  }

  .inst-hero h1 {
    font-size: 36px;
  }

  .inst-hero__tagline {
    font-size: 17px;
  }

  .inst-hero__description {
    font-size: 13px;
  }

  .inst-hero__visual {
    padding-top: 26px;
  }

  .inst-hero__visual img {
    width: 88px;
  }

  .inst-hero__visual::before {
    width: 120px;
    height: 120px;
    filter: blur(40px);
    transform: none;
  }

  .quick-stats {
    gap: 16px;
    margin-top: 16px;
  }

  .quick-stats div {
    gap: 6px;
  }

  .quick-stats dt {
    font-size: 11px;
  }

  .quick-stats dd {
    font-size: 14px;
  }

  .page-shell {
    padding-top: 28px;
  }

  .catalog-search__status {
    font-size: 11px;
  }

  .media-notice {
    margin-bottom: 20px;
    font-size: 11px;
  }

  .artist-list {
    gap: 14px;
    margin-top: 0;
  }

  .artist-card__toggle {
    min-height: 96px;
    grid-template-columns: 20px minmax(0, 1fr) auto 24px;
    gap: 7px;
    padding: 12px 8px 12px 14px;
  }

  .artist-number {
    width: 20px;
    height: 24px;
    font-size: 10px;
  }

  .artist-card__identity {
    gap: 2px;
  }

  .artist-heading {
    font-size: 17px;
  }

  .artist-heading__original,
  .artist-heading__ko {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .artist-heading__ko {
    font-size: 11px;
  }

  .artist-meta {
    font-size: 10px;
    overflow: visible;
    align-items: flex-start;
    white-space: normal;
  }

  .artist-meta__value {
    overflow: visible;
    text-overflow: clip;
  }

  .artist-card__count {
    min-width: 38px;
    min-height: 28px;
    padding: 3px 6px;
    font-size: 13px;
  }

  .artist-card__count small {
    font-size: 9px;
  }

  .guide-link {
    min-width: 48px;
    min-height: 44px;
    gap: 3px;
    margin: 0 8px 0 3px;
    padding: 0 6px;
    font-size: 10px;
  }

  .policy-summary {
    grid-template-columns: 1fr;
  }

  .policy-summary__conditions {
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 2px solid var(--border);
  }

  .policy-summary__details {
    grid-template-columns: 1fr;
  }

  .policy-summary__details p {
    padding: 10px 12px;
    font-size: 11px;
  }

  .policy-summary__details p + p {
    border-top: 2px solid var(--border);
    border-left: 0;
  }

  .song-row {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 6px 9px;
    min-height: 0;
    padding: 11px 10px;
  }

  .row-number {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .song-row__main {
    grid-column: 2;
  }

  .song-link {
    font-size: 13px;
  }

  .song-link__ko {
    font-size: 10.5px;
  }

  .local-player {
    grid-template-columns: 1fr;
    gap: 4px;
    max-width: none;
  }

  .local-player--compact {
    display: block;
  }

  .condition-note {
    font-size: 10px;
  }

  .condition-tag {
    padding: 2px 5px;
    font-size: 10.5px;
  }

  .site-footer {
    margin-bottom: 24px;
  }
}

@media (max-width: 400px) {
  .inst-hero {
    grid-template-columns: minmax(0, 1fr) 80px;
    gap: 12px;
  }

  .inst-hero__visual img {
    width: 80px;
  }

  .inst-hero__visual::before {
    width: 100px;
    height: 100px;
  }

  .song-list {
    gap: 12px;
    padding: 8px 10px 10px 8px;
  }

  .artist-card__toggle {
    grid-template-columns: minmax(0, 1fr) auto 25px;
    gap: 5px;
  }

  .artist-number {
    display: none;
  }

  .guide-link {
    min-width: 48px;
    padding: 0 5px;
    font-size: 10px;
  }

  .song-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .row-number {
    display: none;
  }

  .song-row__main {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .inst-player__spinner {
    animation: none;
  }

  .video-dialog,
  .video-dialog::backdrop {
    transition: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

[hidden] {
  display: none !important;
}
.local-player.is-pending {
  min-height: 100px;
}
