:root {
  color-scheme: dark;
  --oto-bg: #100E16;
  --oto-card: #1C1828;
  --oto-purple: #7156D9;
  --oto-purple-deep: #4D368F;
  --oto-text: #F7F5FC;
  --oto-muted: #B7B0C8;
  --oto-soft: #2D2346;
  --oto-border: #302A3D;
  --oto-danger: #FF8F9D;
  --oto-success: #95D7B3;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; background: var(--oto-bg); scrollbar-gutter: stable; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: 0 0 calc(96px + env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 50% 0, rgb(113 86 217 / 10%), transparent 45%), var(--oto-bg);
  color: var(--oto-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  animation: oto-page-fade-in .32s ease-out both;
}
@keyframes oto-page-fade-in { from { opacity: 0; } to { opacity: 1; } }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: oto-page-fade-out .18s ease-in both; }
::view-transition-new(root) { animation: oto-page-fade-in .32s ease-out both; }
@keyframes oto-page-fade-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
a { color: inherit; text-underline-offset: 3px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #A996F5; outline-offset: 3px; }
[hidden] { display: none !important; }

.page-shell { width: min(calc(100% - 32px), 560px); margin-inline: auto; }
.page-header {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 40px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--oto-border);
}
.page-header h1 { margin: 0; color: var(--oto-muted); font-size: 12px; font-weight: 650; letter-spacing: .08em; text-align: center; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--oto-text);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.04em;
  text-decoration: none;
}
.brand::before { content: "♫"; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 11px; background: var(--oto-purple); color: #fff; font-size: 19px; }
.settings-link {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  justify-self: end;
  border: 1px solid var(--oto-border);
  border-radius: 14px;
  background: var(--oto-card);
  color: var(--oto-text);
  font-size: 19px;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.settings-link:hover { border-color: var(--oto-purple); transform: rotate(8deg); }

.profile-card, .share-card, .edit-card, .terms-card, .liked-songs-card, .history-card, .location-card, .search-card, .share-song-card {
  margin-top: 20px;
  padding: clamp(18px, 5vw, 24px);
  border: 1px solid var(--oto-border);
  border-radius: 20px;
  background: rgb(28 24 40 / 92%);
  box-shadow: 0 14px 38px rgb(0 0 0 / 16%);
}
.profile-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.profile-avatar {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  overflow: hidden;
  border: 3px solid rgb(113 86 217 / 38%);
  border-radius: 50%;
  background: var(--oto-soft);
  color: #C7B9FF;
  font-size: 2rem;
}
.profile-avatar img, .current-image img { width: 100%; height: 100%; object-fit: cover; }
.profile-card h2 { margin: 12px 0 18px; font-size: 1.2rem; overflow-wrap: anywhere; }
.share-card h2, .location-card h2, .search-card h2, .terms-card h2, .liked-songs-card h2, .history-card h2, .share-song-card h2 { margin: 0 0 16px; font-size: 1rem; font-weight: 750; }
.share-card h2::before, .liked-songs-card h2::before, .history-card h2::before { content: ""; display: inline-block; width: 4px; height: 1em; margin-right: 9px; border-radius: 4px; background: var(--oto-purple); vertical-align: -2px; }
.song-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.song-art, .current-image { display: grid; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid var(--oto-border); border-radius: 12px; background: var(--oto-soft); color: #C7B9FF; }
.song-art { width: 64px; height: 64px; object-fit: cover; }
.song-art-placeholder { font-size: 1.6rem; }
.song-details { min-width: 0; }
.song-title { margin: 0; color: var(--oto-text); font-weight: 750; overflow-wrap: anywhere; }
.song-artist { margin: 4px 0 0; color: var(--oto-muted); font-size: .88rem; overflow-wrap: anywhere; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.button:active { transform: scale(.98); }
.button-primary { width: 100%; background: var(--oto-purple); color: #fff; }
.button-primary:hover { background: #8068E3; }
.button-secondary { border-color: var(--oto-border); background: #211B30; color: var(--oto-text); }
.button-secondary:hover { border-color: var(--oto-purple); background: var(--oto-soft); }
.profile-follow-button { width: min(100%, 220px); min-height: 42px; }
.profile-follow-button.is-following { border-color: #514178; background: #2B2240; color: #D5CBFF; }
.profile-follow-button:disabled { opacity: .65; cursor: wait; }
.history-link-card { margin-top: 14px; }
.history-link-card .button { width: 100%; }
.back-button { margin-top: 18px; }
.profile-back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; margin: 18px 0 20px; color: var(--oto-muted); font-size: 13px; text-decoration: none; }
.profile-back-link span { font-size: 25px; line-height: 1; }
.profile-back-link:hover { color: var(--oto-text); }
.profile-back-link + .profile-card { margin-top: 0; }

.edit-card { display: grid; gap: 20px; }
.form-field { display: grid; min-width: 0; gap: 8px; }
.form-field label, form > label { color: var(--oto-text); font-weight: 700; }
.form-field input:not([type="file"]), .search-form input[type="text"], .edit-card input[type="email"], .edit-card input[type="password"] {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #433B55;
  border-radius: 12px;
  background: #15121D;
  color: var(--oto-text);
}
.birth-date-selects { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 9px; }
.birth-date-part { display: grid; min-width: 0; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 7px; color: var(--oto-muted); font-size: .9rem; }
.birth-date-part select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid #433B55;
  border-radius: 12px;
  background: #15121D;
  color: var(--oto-text);
  font: inherit;
}
.birth-date-part select:focus-visible { outline: 2px solid #C7B9FF; outline-offset: 2px; }
@media (max-width: 380px) {
  .birth-date-selects { gap: 6px; }
  .birth-date-part { grid-template-columns: 1fr; gap: 3px; font-size: .78rem; }
  .birth-date-part select { min-height: 44px; padding: 8px; }
}
input::placeholder { color: #827B90; }
.form-field input[type="file"] { width: 100%; color: var(--oto-muted); }
.form-field input[type="file"]::file-selector-button { min-height: 40px; margin-right: 10px; padding: 7px 12px; border: 1px solid var(--oto-border); border-radius: 10px; background: var(--oto-soft); color: var(--oto-text); font: inherit; }
.current-image { width: 112px; height: 112px; border-radius: 18px; font-size: 2rem; }
.form-field small, .form-note { color: var(--oto-muted); font-size: .88rem; line-height: 1.6; }
.form-note { margin: 0; }
.gender-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.gender-fieldset legend { margin-bottom: 8px; padding: 0; color: var(--oto-text); font-weight: 700; }
.gender-options { display: flex; flex-wrap: wrap; gap: 9px; }
.gender-option { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--oto-border); border-radius: 12px; background: #211B30; cursor: pointer; }
.gender-option input[type="radio"] { width: 16px; min-height: 16px; margin: 0; padding: 0; accent-color: var(--oto-purple); }
.form-actions { display: flex; gap: 10px; }
.form-actions .button { flex: 1; }
.form-error, .notice { margin: 0; padding: 11px 13px; border: 1px solid transparent; border-radius: 12px; }
.search-card > p[role="alert"] { padding: 11px 13px; border: 1px solid rgb(255 143 157 / 25%); border-radius: 12px; background: rgb(129 39 57 / 20%); color: var(--oto-danger); }
.form-error, .notice-error, .auth-message.is-error { border-color: rgb(255 143 157 / 25%); background: rgb(129 39 57 / 20%); color: var(--oto-danger); }
.notice-success, .auth-message.is-success { border-color: rgb(149 215 179 / 25%); background: rgb(35 99 68 / 20%); color: var(--oto-success); }
.notice { margin-top: 14px; }
.notice:empty { display: none; }
.switch-link { margin: 22px 0; color: var(--oto-muted); font-size: .92rem; text-align: center; }
.switch-link a, .auth-text-link { color: #C7B9FF; font-weight: 700; }
.verification-help-link {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--oto-muted);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.verification-help-link:hover {
  border-color: var(--oto-border);
  background: rgb(113 86 217 / 7%);
  color: var(--oto-text);
}
.verification-help-icon, .verification-page-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(169 150 245 / 20%);
  border-radius: 12px;
  background: var(--oto-soft);
  color: #C7B9FF;
}
.verification-help-label { flex: 1; font-size: .9rem; font-weight: 700; }
.verification-help-chevron { color: #C7B9FF; font-size: 1.35rem; line-height: 1; }
.verification-page-card { gap: 16px; }
.verification-page-icon { width: 52px; height: 52px; font-size: 1.35rem; }
.verification-page-card h2 { margin: 0; font-size: 1.15rem; }
.verification-page-card > .form-note { margin: 0; }
.verification-resend-form { display: grid; gap: 16px; }
.verification-resend-form .auth-message { margin-top: 0; }
.auth-message { margin-top: 10px; }
.auth-message { display: none; margin: 0; }
.auth-message.is-visible { display: block; }
.auth-card { width: 100%; }

.settings-menu { display: grid; margin-top: 20px; overflow: hidden; border: 1px solid var(--oto-border); border-radius: 18px; background: var(--oto-card); }
.settings-menu a, .settings-menu form > button {
  display: flex;
  width: 100%;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid var(--oto-border);
  background: transparent;
  color: var(--oto-text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.settings-menu form { margin: 0; }
.settings-menu form > button { color: #FF9BA8; }
.settings-menu a:last-child, .settings-menu form:last-child > button { border-bottom: 0; }
.settings-menu a:hover, .settings-menu form > button:hover { background: rgb(113 86 217 / 10%); }
.settings-menu span { color: var(--oto-muted); font-size: 1.4rem; }

.bottom-nav {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 8px max(14px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid rgb(48 42 61 / 90%);
  background: rgb(20 17 28 / 94%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.bottom-nav a { display: flex; min-height: 56px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 14px; color: #91899F; font-size: 11px; font-weight: 650; text-decoration: none; transition: color .18s ease, background .18s ease; }
body:not(.main-body) .bottom-nav a::before { font-size: 19px; line-height: 1; }
body:not(.main-body) .bottom-nav a:nth-child(1)::before { content: "⌂"; }
body:not(.main-body) .bottom-nav a:nth-child(2)::before { content: "🜲"; }
body:not(.main-body) .bottom-nav a:nth-child(3)::before { content: "♡"; }
body:not(.main-body) .bottom-nav a:nth-child(4)::before { content: "◉"; }
.bottom-nav a:hover, .bottom-nav a[aria-current="page"] { background: #2B2240; color: #C7B9FF; }

.liked-songs-card, .history-card { margin-bottom: 20px; }
.ranking-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 20px; padding: 4px; border: 1px solid var(--oto-border); border-radius: 15px; background: var(--oto-card); }
.ranking-tabs a { display: grid; min-height: 42px; place-items: center; padding: 6px 4px; border-radius: 11px; color: var(--oto-muted); font-size: .78rem; font-weight: 700; text-align: center; text-decoration: none; }
.ranking-tabs a:hover { color: var(--oto-text); }
.ranking-tabs a[aria-current="page"] { background: var(--oto-soft); color: #D5CBFF; box-shadow: inset 0 0 0 1px rgb(169 150 245 / 24%); }
.ranking-card { margin-top: 16px; padding: clamp(16px, 4vw, 22px); border: 1px solid var(--oto-border); border-radius: 20px; background: rgb(28 24 40 / 92%); box-shadow: 0 14px 38px rgb(0 0 0 / 16%); }
.ranking-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ranking-item { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--oto-border); }
.ranking-item:first-child { padding-top: 0; }
.ranking-item:last-child { padding-bottom: 0; border-bottom: 0; }
.ranking-number { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 9px; background: var(--oto-soft); color: #D5CBFF; font-size: .82rem; font-weight: 800; }
.ranking-item:nth-child(1) .ranking-number { background: #7156D9; color: white; }
.ranking-item:nth-child(2) .ranking-number { background: #51466D; color: white; }
.ranking-item:nth-child(3) .ranking-number { background: #594333; color: #FFD2A1; }
.ranking-artwork-link { display: block; flex: 0 0 auto; line-height: 0; }
.ranking-artwork { display: grid; width: 58px; height: 58px; flex: 0 0 58px; place-items: center; overflow: hidden; border: 1px solid var(--oto-border); border-radius: 12px; object-fit: cover; }
.ranking-artwork-placeholder { background: var(--oto-soft); color: #C7B9FF; font-size: 1.5rem; }
.ranking-song-info { min-width: 0; flex: 1; }
.ranking-song-title, .ranking-artist, .ranking-score { margin: 0; overflow-wrap: anywhere; }
.ranking-song-title { font-weight: 750; }
.ranking-song-title a { color: inherit; text-decoration: none; }
.ranking-song-title a:hover { color: #D5CBFF; text-decoration: underline; }
.ranking-artist, .ranking-score { margin-top: 3px; color: var(--oto-muted); font-size: .82rem; }
.ranking-score { color: #C7B9FF; font-size: .74rem; }
.ranking-message { margin: 0; padding: 14px 4px; color: var(--oto-muted); text-align: center; }
.show-more-button { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; padding: 9px 16px; border: 1px solid rgb(169 150 245 / 35%); border-radius: 13px; background: var(--oto-soft); color: #D5CBFF; font-weight: 700; cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.show-more-button::after { content: "⌄"; font-size: 1.05rem; line-height: 1; transition: transform .18s ease; }
.show-more-button:hover { border-color: #A996F5; background: #392D57; }
.show-more-button:active { transform: scale(.99); }
.show-more-button[aria-expanded="true"] { border-color: var(--oto-border); background: #211B30; color: var(--oto-muted); }
.show-more-button[aria-expanded="true"]::after { transform: rotate(180deg); }
.liked-song-list, .history-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.liked-song-item, .history-item { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--oto-border); }
.liked-song-item:first-child, .history-item:first-child { padding-top: 0; }
.liked-song-item:last-child, .history-item:last-child { padding-bottom: 0; border-bottom: 0; }
.liked-artwork { width: 58px; height: 58px; flex: 0 0 auto; border-radius: 12px; object-fit: cover; }
.song-detail-artwork-link { display: block; flex: 0 0 auto; line-height: 0; text-decoration: none; }
.song-detail-link { color: inherit; text-decoration: none; }
.song-detail-link:hover, .song-detail-link:focus-visible { color: #C7B9FF; text-decoration: underline; }
.liked-artwork-placeholder { display: grid; place-items: center; background: var(--oto-soft); color: #C7B9FF; font-size: 1.5rem; }
.liked-song-info, .history-item .song-details { min-width: 0; flex: 1; }
.liked-song-info .song-artist, .history-item .song-artist { font-size: .84rem; }
.history-date { display: block; margin-top: 5px; color: #938BA2; font-size: .76rem; }
.unlike-button { width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid rgb(255 143 157 / 24%); border-radius: 50%; background: rgb(129 39 57 / 20%); color: #FF91A2; font-size: 1.2rem; cursor: pointer; }
.unlike-button:disabled { opacity: .55; cursor: wait; }
.liked-empty, .history-empty { margin: 0; color: var(--oto-muted); }
.current-song-badge { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: var(--oto-soft); color: #C7B9FF; font-size: .72rem; }

.location-card p, .terms-card p, .share-song-card p { color: var(--oto-muted); line-height: 1.7; }
#location-message { min-height: 1.6em; margin: 12px 0 0; font-size: .9rem; }
.terms-body { padding: 15px; border: 1px solid var(--oto-border); border-radius: 14px; background: #17141F; }
.terms-body p { margin: 0; }

.terms-body { color: var(--oto-text); line-height: 1.8; }
.terms-body p, .terms-body li { color: var(--oto-muted); line-height: 1.8; }
.terms-body .terms-meta { margin: 0 0 12px; font-size: .88rem; }
.terms-body section + section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--oto-border); }
.terms-body section > h2 { margin: 0 0 8px; color: var(--oto-text); font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.5; }
.terms-body ol, .terms-body ul { margin: 8px 0 0; padding-left: 1.4rem; }
.terms-body li + li { margin-top: 5px; }
.terms-body address { margin-top: 8px; color: var(--oto-muted); font-style: normal; }
.terms-draft-note { margin: 0 0 12px; padding: 12px 14px; border: 1px solid #8A7444; border-radius: 12px; background: #241F16; color: #F0D9A6; line-height: 1.7; font-size: .9rem; }

.button-link { margin-top: 18px; }

.search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin: 18px 0; }
.search-form label { grid-column: 1 / -1; font-weight: 700; }
.search-form input[type="text"] { min-height: 48px; }
.search-form button, .song-item form button, .location-card button { min-height: 46px; padding: 8px 16px; border: 0; border-radius: 12px; background: var(--oto-purple); color: #fff; font-weight: 700; cursor: pointer; }
.search-form button:hover, .song-item form button:hover, .location-card button:hover { background: #8068E3; }
.result-count { color: var(--oto-muted); font-size: .86rem; text-align: center; }
.song-item { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--oto-border); }
.song-item > img, .song-item > .search-art-placeholder { grid-row: span 3; width: 82px; aspect-ratio: 1; border-radius: 13px; }
.song-item > img { object-fit: cover; }
.search-art-placeholder { display: grid; place-items: center; background: var(--oto-soft); color: #C7B9FF; font-size: 1.8rem; }
.song-item h3, .song-item > p { grid-column: 2; margin: 0; overflow-wrap: anywhere; }
.song-item h3 { font-size: 1rem; }
.song-item > p { color: var(--oto-muted); font-size: .86rem; }
.song-item audio, .song-item form { grid-column: 1 / -1; width: 100%; }
.song-item audio { min-height: 40px; accent-color: var(--oto-purple); }
.song-item form { margin: 2px 0 0; }
.song-item form button { width: 100%; }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.pagination a, .pagination strong { display: grid; min-width: 40px; min-height: 40px; place-items: center; padding: 7px 11px; border: 1px solid var(--oto-border); border-radius: 11px; color: var(--oto-text); text-decoration: none; }
.pagination strong { border-color: var(--oto-purple); background: var(--oto-purple); color: #fff; }
.pagination a:hover { border-color: var(--oto-purple); background: var(--oto-soft); }

.report-profile-button {
  display: flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 8px 15px;
  border: 1px solid rgb(255 143 157 / 38%);
  border-radius: 999px;
  background: #281923;
  color: #FF9BA8;
  font-size: .86rem;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 22px rgb(0 0 0 / 28%);
}
.profile-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 24px; }
.profile-actions .back-button { margin-top: 0; }
.report-profile-button:hover { border-color: var(--oto-danger); background: #38202C; }
.report-card, .report-complete-card {
  margin-top: 20px;
  padding: clamp(18px, 5vw, 24px);
  border: 1px solid var(--oto-border);
  border-radius: 20px;
  background: rgb(28 24 40 / 92%);
  box-shadow: 0 14px 38px rgb(0 0 0 / 16%);
}
.report-card h2, .report-complete-card h2 { margin: 0 0 8px; font-size: 1.08rem; }
.report-intro, .report-complete-card p { margin: 0 0 18px; color: var(--oto-muted); }
.report-reasons { display: grid; gap: 0; margin: 0; padding: 0; border: 0; }
.report-reason { display: flex; min-height: 54px; align-items: center; gap: 12px; border-bottom: 1px solid var(--oto-border); cursor: pointer; }
.report-reason input { width: 18px; height: 18px; accent-color: var(--oto-purple); }
.report-details-label { display: block; margin: 18px 0 8px; font-weight: 700; }
.report-card textarea { display: block; width: 100%; min-height: 104px; resize: vertical; padding: 11px 13px; border: 1px solid #433B55; border-radius: 12px; background: #15121D; color: var(--oto-text); font: inherit; }
.report-card textarea::placeholder { color: #827B90; }
.button-report { width: 100%; margin-top: 18px; border-color: rgb(255 143 157 / 35%); background: #8F354A; color: #fff; }
.button-report:hover { background: #A8445B; }
.report-complete-card { display: grid; justify-items: center; padding-block: 42px; text-align: center; }
.report-complete-icon { display: grid; width: 58px; height: 58px; margin-bottom: 16px; place-items: center; border-radius: 50%; background: rgb(149 215 179 / 14%); color: var(--oto-success); font-size: 1.7rem; font-weight: 800; }
.report-complete-card .button { width: 100%; margin-top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.ban-card, .ban-appeal-card {
  margin-top: 24px;
  padding: clamp(20px, 5vw, 28px);
  border: 1px solid var(--oto-border);
  border-radius: 20px;
  background: rgb(28 24 40 / 94%);
  box-shadow: 0 14px 38px rgb(0 0 0 / 18%);
}
.ban-card { display: grid; justify-items: center; text-align: center; }
.ban-symbol, .ban-success-symbol { display: grid; width: 58px; height: 58px; margin-bottom: 18px; place-items: center; border-radius: 50%; font-size: 1.8rem; font-weight: 800; }
.ban-symbol { background: rgb(255 143 157 / 12%); color: var(--oto-danger); }
.ban-success-symbol { background: rgb(149 215 179 / 14%); color: var(--oto-success); }
.ban-card h2 { margin: 0 0 22px; font-size: 1.1rem; }
.ban-reason-label { justify-self: start; margin: 0 0 7px; color: var(--oto-muted); font-size: .85rem; }
.ban-reason { width: 100%; margin: 0; padding: 13px; border: 1px solid var(--oto-border); border-radius: 12px; background: #15121D; text-align: left; overflow-wrap: anywhere; }
.ban-end { justify-self: start; margin: 12px 0 18px; color: var(--oto-muted); font-size: .85rem; }
.ban-card > .button { width: 100%; }
.ban-logout-form { margin-top: 14px; text-align: right; }
.ban-logout-form button { cursor: pointer; }
.ban-appeal-card { display: grid; gap: 12px; }
.ban-appeal-card > label { font-weight: 750; }
.ban-appeal-card textarea { width: 100%; min-height: 220px; resize: vertical; padding: 12px 14px; border: 1px solid #433B55; border-radius: 12px; background: #15121D; color: var(--oto-text); font: inherit; }
.ban-appeal-note { margin: 0; color: var(--oto-muted); font-size: .86rem; }
.ban-appeal-card .button { width: 100%; margin-top: 8px; }
.ban-complete-card { gap: 4px; padding-block: 44px; }
.ban-complete-card p { margin: 0; color: var(--oto-text); }
.ban-complete-card .button { margin-top: 18px; }

@media (max-width: 480px) {
  .page-shell { width: calc(100% - 24px); }
  .page-header { min-height: 66px; grid-template-columns: minmax(0, 1fr) auto 38px; gap: 7px; }
  .page-header h1 { font-size: 11px; }
  .brand { gap: 7px; font-size: 17px; }
  .brand::before { width: 30px; height: 30px; }
  .settings-link { width: 38px; height: 38px; }
  .song-row { gap: 11px; }
  .form-actions { flex-direction: column-reverse; }
  .search-form { grid-template-columns: 1fr; }
  .search-form label { grid-column: auto; }
  .song-item { grid-template-columns: 68px minmax(0, 1fr); gap: 7px 11px; }
  .song-item > img, .song-item > .search-art-placeholder { width: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* パスワード表示・非表示ボタン */
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}
.password-input-wrap input[type="password"],
.password-input-wrap input[type="text"] {
  width: 100%;
  padding-right: 48px !important;
}
.password-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #B9A7FF;
  cursor: pointer;
}
.password-toggle:hover { background: rgb(113 86 217 / 14%); }
.password-toggle:focus-visible { outline: 2px solid #B9A7FF; outline-offset: 1px; }
.password-toggle-icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.shop-wallet { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 20px; border: 1px solid rgb(169 150 245 / 24%); border-radius: 20px; background: linear-gradient(125deg, #392B63, #211B30 72%); }
.shop-wallet h2 { margin: 2px 0 4px; font-size: 1.12rem; }
.shop-wallet p { margin: 0; color: var(--oto-muted); font-size: .84rem; }
.shop-wallet .shop-eyebrow { color: #C7B9FF; font-size: .68rem; font-weight: 800; letter-spacing: .14em; }
.shop-ticket-count { display: flex; min-width: 84px; align-items: baseline; justify-content: center; gap: 5px; padding: 10px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 15px; background: rgb(16 14 22 / 35%); }
.shop-ticket-count span { align-self: center; font-size: 1.1rem; }
.shop-ticket-count strong { font-size: 1.5rem; }
.shop-ticket-count small { color: var(--oto-muted); }
.shop-search { display: flex; min-height: 48px; align-items: center; gap: 9px; margin-top: 18px; padding: 0 14px; border: 1px solid #433B55; border-radius: 13px; background: #15121D; color: var(--oto-muted); font-size: .9rem; }
.shop-search > span:first-child { color: #C7B9FF; font-size: 1.35rem; }
.shop-filter { margin-left: auto; padding-left: 12px; border-left: 1px solid var(--oto-border); font-size: .8rem; white-space: nowrap; }
.shop-demo-note { margin: 9px 2px 0; color: var(--oto-muted); font-size: .78rem; text-align: right; }
.shop-series { margin-top: 24px; }
.shop-series-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.shop-series-heading h2 { margin: 0; font-size: 1rem; }
.shop-series-heading > span { padding: 3px 9px; border: 1px solid rgb(169 150 245 / 22%); border-radius: 999px; color: #C7B9FF; font-size: .7rem; font-weight: 700; }
.shop-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shop-item { min-width: 0; padding: 12px; border: 1px solid var(--oto-border); border-radius: 17px; background: var(--oto-card); }
.shop-item-art { display: grid; min-height: 120px; place-items: center; border: 1px solid rgb(255 255 255 / 7%); border-radius: 12px; color: #F7F3FF; font-size: 3.2rem; text-shadow: 0 4px 18px rgb(0 0 0 / 25%); }
.shop-art-purple { background: radial-gradient(circle at 50% 35%, #8068E3, #392B63 68%, #221A35); }
.shop-art-pink { background: radial-gradient(circle at 50% 35%, #D778B7, #743D7D 65%, #2C1C3C); }
.shop-art-blue { background: radial-gradient(circle at 50% 35%, #6BACE0, #31527E 65%, #1B233A); }
.shop-art-gold { background: radial-gradient(circle at 50% 35%, #E9BD70, #86613D 65%, #342438); }
.shop-item h3 { margin: 11px 0 4px; font-size: .88rem; line-height: 1.45; }
.shop-item > p { min-height: 2.7em; margin: 0; color: var(--oto-muted); font-size: .75rem; line-height: 1.45; }
.shop-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 12px; font-size: .78rem; font-weight: 750; }
.shop-sample-tag { padding: 3px 7px; border-radius: 999px; background: #2B2240; color: #C7B9FF; font-size: .66rem; }
@media (max-width: 380px) {
  .shop-items { gap: 8px; }
  .shop-item { padding: 9px; }
  .shop-item-art { min-height: 100px; }
  .shop-wallet { padding: 16px; }
}
.shop-ticket-area { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.shop-ticket-add { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgb(199 185 255 / 35%); border-radius: 13px; background: var(--oto-purple); color: #fff; font-size: 1.55rem; font-weight: 600; line-height: 1; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.shop-ticket-add:hover { transform: translateY(-2px); background: #8068E3; }
.ticket-shop-intro { display: flex; align-items: center; gap: 15px; margin-top: 20px; padding: 20px; border: 1px solid rgb(169 150 245 / 24%); border-radius: 20px; background: linear-gradient(125deg, #392B63, #211B30 72%); }
.ticket-shop-icon { display: grid; width: 56px; height: 56px; flex: 0 0 auto; place-items: center; border-radius: 17px; background: rgb(255 255 255 / 8%); font-size: 1.7rem; }
.ticket-shop-intro p { margin: 0; color: #C7B9FF; font-size: .68rem; font-weight: 800; letter-spacing: .14em; }
.ticket-shop-intro h2 { margin: 2px 0 3px; font-size: 1.12rem; }
.ticket-shop-intro div > span { color: var(--oto-muted); font-size: .78rem; }
.ticket-pack-list { display: grid; gap: 11px; margin-top: 16px; }
.ticket-pack { display: flex; min-height: 84px; align-items: center; gap: 15px; padding: 13px 16px; border: 1px solid var(--oto-border); border-radius: 16px; background: var(--oto-card); }
.ticket-pack-quantity { display: flex; min-width: 90px; align-items: baseline; gap: 5px; }
.ticket-pack-quantity span { align-self: center; font-size: 1.15rem; }
.ticket-pack-quantity strong { font-size: 1.45rem; }
.ticket-pack-quantity small { color: var(--oto-muted); }
.ticket-pack-price { display: grid; gap: 1px; }
.ticket-pack-price strong { font-size: 1.12rem; }
.ticket-pack-price span { color: var(--oto-muted); font-size: .74rem; }
.ticket-pack-arrow { margin-left: auto; color: #C7B9FF; font-size: 1.6rem; }
@media (max-width: 380px) {
  .shop-ticket-area { gap: 6px; }
  .shop-ticket-add { width: 36px; height: 36px; }
  .shop-ticket-count { min-width: 74px; }
}
.vip-hero { position: relative; display: grid; min-height: 220px; align-items: end; overflow: hidden; margin-top: 20px; border: 1px solid rgb(169 150 245 / 24%); border-radius: 20px; background: linear-gradient(125deg, #392B63, #211B30 72%); }
.vip-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .52; }
.vip-hero-copy { position: relative; padding: 24px; text-shadow: 0 2px 12px #100E16; }
.vip-label { color: #D5C9FF; font-size: .7rem; font-weight: 800; letter-spacing: .15em; }
.vip-hero h2 { margin: 6px 0 3px; font-size: clamp(1.6rem, 7vw, 2.2rem); }
.vip-hero p { margin: 0; color: #E1DAF5; }
.vip-benefits, .vip-join-card { margin-top: 18px; padding: 20px; border: 1px solid var(--oto-border); border-radius: 18px; background: var(--oto-card); }
.vip-benefits h2 { margin: 0; font-size: 1.05rem; }
.vip-intro { margin: 6px 0 16px; color: var(--oto-muted); font-size: .88rem; }
.vip-benefit-list { display: grid; gap: 11px; }
.vip-benefit-list article { display: flex; align-items: flex-start; gap: 12px; padding: 13px; border: 1px solid var(--oto-border); border-radius: 14px; background: rgb(16 14 22 / 35%); }
.vip-benefit-list article > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: #302348; color: #C7B9FF; font-size: 1.2rem; }
.vip-benefit-list h3 { margin: 0 0 3px; font-size: .9rem; }
.vip-benefit-list p { margin: 0; color: var(--oto-muted); font-size: .8rem; line-height: 1.5; }
.vip-join-card { text-align: center; }
.vip-join-card > p:first-child { margin: 0 0 13px; font-weight: 700; }
.vip-join-card .button:disabled { opacity: .66; cursor: not-allowed; }
.vip-plan-note { margin: 11px 0 0; color: var(--oto-muted); font-size: .74rem; }
.vip-cancel-note { margin: 14px 4px; color: var(--oto-muted); font-size: .8rem; text-align: center; }
.vip-ad-link { display: block; border-radius: inherit; }
.vip-ad-link:focus-visible { outline-offset: 4px; }
/* VIP紹介バナーは元画像の4:1比率を保ち、文字の重ね合わせや切り抜きを防ぐ。 */
.vip-hero { display: block; min-height: 0; }
.vip-hero > img { position: static; display: block; width: 100%; height: auto; opacity: 1; object-fit: contain; }

/* 共通ヘッダー：ロゴとページ名を左、プレミアム設定と設定を右に配置 */
.page-header { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 12px; }
.header-identity { display: grid; min-width: 0; align-content: center; gap: 1px; }
.page-header h1 { overflow: hidden; color: var(--oto-muted); font-size: 11px; font-weight: 650; letter-spacing: .04em; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.premium-settings-link { display: grid; min-width: 70px; min-height: 52px; justify-items: center; align-content: center; gap: 2px; padding: 3px 5px; border-radius: 12px; color: #C7B9FF; font-size: 9px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; }
.premium-settings-link:hover { background: rgb(113 86 217 / 12%); }
.premium-settings-icon { color: #A996F5; font-size: 19px; line-height: 1; }
@media (max-width: 480px) {
  .page-header { min-height: 66px; gap: 6px; }
  .header-actions { gap: 4px; }
  .premium-settings-link { min-width: 62px; font-size: 8px; }
  .settings-link { width: 38px; height: 38px; }
  .page-header h1 { max-width: min(48vw, 180px); font-size: 10px; }
  .brand { gap: 7px; font-size: 17px; }
  .brand::before { width: 30px; height: 30px; }
}

.ranking-locked { display: grid; justify-items: center; margin-top: 20px; padding: 32px 22px; border: 1px solid rgb(169 150 245 / 22%); border-radius: 20px; background: linear-gradient(145deg, #211B30, #1C1828); text-align: center; }
.ranking-lock-icon { display: grid; width: 72px; height: 72px; place-items: center; border: 1px solid rgb(169 150 245 / 30%); border-radius: 50%; background: #2B2240; font-size: 2rem; }
.ranking-vip-label { margin: 17px 0 4px; color: #C7B9FF; font-size: .72rem; font-weight: 800; letter-spacing: .15em; }
.ranking-locked h2 { margin: 0; font-size: 1.15rem; }
.ranking-locked > p:not(.ranking-vip-label) { max-width: 340px; margin: 9px 0 18px; color: var(--oto-muted); font-size: .88rem; }
.ranking-locked .button { width: min(100%, 280px); }
.ranking-lock-error { color: var(--oto-danger) !important; }

.ranking-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ranking-tabs a { font-size: .72rem; line-height: 1.2; }
.ranking-tab-lock { font-size: .66rem; }
@media (max-width: 420px) {
  .ranking-tabs { gap: 2px; padding: 3px; }
  .ranking-tabs a { padding-inline: 2px; font-size: .64rem; }
}

.ranking-filter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; margin-top: 16px; padding: 16px; border: 1px solid var(--oto-border); border-radius: 16px; background: var(--oto-card); }
.ranking-filter label { grid-column: 1 / -1; font-size: .9rem; font-weight: 750; }
.ranking-filter select { min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid #433B55; border-radius: 11px; background: #15121D; color: var(--oto-text); }
.ranking-filter .button { min-width: 88px; min-height: 44px; }
@media (max-width: 380px) { .ranking-filter { grid-template-columns: 1fr; } .ranking-filter label { grid-column: auto; } }

.vip-active-label { margin: 0 0 9px; color: #C7B9FF; font-weight: 800; }
.vip-remaining-label { margin: 0; color: var(--oto-muted); font-size: .86rem; }
.vip-remaining { display: block; margin-top: 3px; color: var(--oto-text); font-size: clamp(1.45rem, 6vw, 1.9rem); }
.vip-expiry-date { margin: 8px 0 0; color: var(--oto-muted); font-size: .8rem; }
.vip-join-card form { margin: 0; }
