/* Member Page Styles */

.brand-link {
  text-decoration: none;
  color: inherit;
}

/* Premium enhancements */
.member-page {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.member-page {
  min-height: 100vh;
  padding: 80px clamp(24px, 4vw, 60px) 40px;
}

.member-header {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  position: fixed;
  top: 4px;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(200%);
  padding: 8px 0;
  border: 1px solid rgba(255, 184, 77, 0.15);
  box-shadow:
  0 1px 3px rgba(0, 0, 0, 0.02),
  0 8px 24px rgba(0, 0, 0, 0.04),
  0 0 40px rgba(255, 184, 77, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 60px;
}

.member-header-image-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  z-index: -1;
}

.member-header-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.member-header h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin: 0 0 4px;
  background: linear-gradient(135deg, #ffb84d 0%, #ff9f66 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-shadow: 0 0 60px rgba(255, 184, 77, 0.3);
}

.member-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.1em;
}

.member-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  margin-bottom: 60px;
}

/* Sidebar */
.member-sidebar {
  position: fixed;
  top: 70px;
  left: clamp(24px, calc(50% - 300px), 24px);
  width: clamp(320px, 34vw, 420px);
  height: auto;
  z-index: 18;
}

.member-main {
  margin-left: calc(clamp(320px, 34vw, 420px) + 24px);
  max-width: clamp(320px, 34vw, 420px);
  margin-top: 0;
}

.illustration-container {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.costume-nav {
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 16px;
  width: auto;
  min-width: 120px;
}

.costume-nav h4 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.costume-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.costume-nav li a {
  display: block;
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.costume-nav li a:hover {
  background: rgba(255, 184, 77, 0.1);
  color: var(--accent);
}

.illustration-box {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #faf9f8 100%);
  border: 1px solid rgba(255, 184, 77, 0.08);
  border-radius: var(--radius-md);
  overflow: visible;
  width: 100%;
  min-height: 360px;
  padding: 24px;
  max-width: 1680px;
  z-index: 8;
}

.standing-illustration {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 55vh;
  object-fit: contain;
  object-position: top center;
  display: block;
}

.standing-illustration-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.voice-play-btn {
  position: absolute;
  bottom: 8px;
  right: 0px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb84d, #ff8b61);
  color: #08101f;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(255, 184, 77, 0.35);
  z-index: 10;
}

.voice-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 22px rgba(255, 184, 77, 0.45);
}

.voice-play-btn:active {
  transform: scale(0.95);
}

/* Main Content */
.member-main {
  margin-left: calc(clamp(320px, 34vw, 420px) + 24px);
  max-width: clamp(320px, 34vw, 420px);
  margin-top: 0;
  padding-top: 100px !important;
}

/* Ensure profile section starts below header */
#profile {
  margin-top: 120px !important;
  position: relative !important;
}

.member-section {
  background: #ffffff;
  border: 1px solid rgba(255, 184, 77, 0.08);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.member-section:hover {
  box-shadow:
    var(--shadow),
    0 0 40px rgba(255, 184, 77, 0.08);
  transform: translateY(-2px);
}

/* Ensure profile section starts below header */
#profile {
  margin-top: 120px !important;
  position: relative !important;
}

.member-section:hover {
  box-shadow:
    var(--shadow),
    0 0 40px rgba(255, 184, 77, 0.08);
  transform: translateY(-2px);
}

.member-section:first-of-type {
  margin-top: 0;
}

.member-section h2 {
  margin: 0 0 24px;
  font-size: 1.5rem;
  color: var(--text);
}

.member-section h3 {
  margin: 24px 0 12px;
  font-size: 1.1rem;
  color: var(--accent);
}

.member-section p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.member-section p:last-child {
  margin-bottom: 0;
}

/* Info Grid */
.member-info-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px 24px;
  margin: 0;
  padding: 0;
}

.member-info-grid dt {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}

.member-info-grid dd {
  margin: 0;
  color: var(--text);
}

.color-swatch {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-right: 8px;
  vertical-align: middle;
}

/* Lists */
.term-list,
.video-list,
.qa-section {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.term-list li,
.video-list li {
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}

.term-list li::before,
.video-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.term-list strong {
  color: var(--text);
}

.video-list a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.video-list a:hover {
  color: #ffb84d;
  text-decoration: underline;
}

/* Creator Info */
.creator-info {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px 24px;
  margin: 0;
  padding: 0;
}

.creator-info dt {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}

.creator-info dd {
  margin: 0;
  color: var(--text);
}

/* Community Info */
.community-info {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px 24px;
  margin: 0;
  padding: 0;
}

.community-info dt {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}

.community-info dd {
  margin: 0;
  color: var(--text);
}

/* Schedule Info */
.schedule-info {
  color: var(--muted);
  line-height: 1.8;
}

.schedule-info p {
  margin: 0 0 8px;
}

.schedule-info p:last-child {
  margin-bottom: 0;
}

/* Announcement Box */
.announcement-box {
  background: rgba(255, 184, 77, 0.1);
  border-left: 4px solid var(--accent);
  padding: 16px;
  border-radius: 8px;
}

.announcement-box p {
  margin: 0 0 8px;
  color: var(--text);
}

.announcement-box p:last-child {
  margin-bottom: 0;
}

/* Links Grid */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  background: rgba(255, 184, 77, 0.1);
  border: 1px solid rgba(255, 184, 77, 0.2);
  border-radius: 12px;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.link-card:hover {
  background: rgba(255, 184, 77, 0.2);
  transform: translateY(-2px);
}

.link-card i {
  font-size: 1.5rem;
}

/* Message Box */
.message-box {
  margin: 0;
  padding: 24px;
  background: rgba(255, 184, 77, 0.08);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  color: var(--text);
  font-style: italic;
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Q&A Section */
.qa-section details {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
}

.qa-section details summary {
  padding: 16px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  user-select: none;
  display: flex;
  align-items: center;
  transition: background 0.2s ease;
}

.qa-section details summary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.qa-section details summary::marker {
  color: var(--accent);
}

.qa-section details[open] > summary {
  background: rgba(255, 184, 77, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.qa-section details p {
  padding: 0 16px 16px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* SNS Links */
.sns-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.sns-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 184, 77, 0.1);
  border: 1px solid rgba(255, 184, 77, 0.3);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sns-icon:hover {
  transform: translateY(-2px);
}

/* Platform-specific colors */
.sns-icon.youtube {
  background: rgba(255, 0, 0, 0.1);
  border-color: rgba(255, 0, 0, 0.3);
  color: #ff0000;
}
.sns-icon.youtube:hover {
  background: rgba(255, 0, 0, 0.2);
}

.sns-icon.twitch {
  background: rgba(145, 70, 255, 0.1);
  border-color: rgba(145, 70, 255, 0.3);
  color: #9146ff;
}
.sns-icon.twitch:hover {
  background: rgba(145, 70, 255, 0.2);
}

.sns-icon.niconico {
  background: rgba(3, 195, 252, 0.1);
  border-color: rgba(3, 195, 252, 0.3);
  color: #03c7fc;
}
.sns-icon.niconico:hover {
  background: rgba(3, 195, 252, 0.2);
}

.sns-icon.x {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.3);
  color: #000000;
}
.sns-icon.x:hover {
  background: rgba(0, 0, 0, 0.2);
}

.sns-icon.instagram {
  background: linear-gradient(135deg, rgba(241, 68, 156, 0.15) 0%, rgba(245, 108, 76, 0.15) 50%, rgba(252, 176, 71, 0.15) 100%);
  border-color: rgba(241, 68, 156, 0.3);
  color: #e1306c;
}
.sns-icon.instagram:hover {
  background: linear-gradient(135deg, rgba(241, 68, 156, 0.25) 0%, rgba(245, 108, 76, 0.25) 50%, rgba(252, 176, 71, 0.25) 100%);
}

.sns-icon.facebook {
  background: rgba(24, 119, 242, 0.1);
  border-color: rgba(24, 119, 242, 0.3);
  color: #1877f2;
}
.sns-icon.facebook:hover {
  background: rgba(24, 119, 242, 0.2);
}

.sns-icon.tiktok {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.3);
  color: #000000;
}
.sns-icon.tiktok:hover {
  background: rgba(0, 0, 0, 0.2);
}

.sns-icon.discord {
  background: rgba(88, 101, 242, 0.1);
  border-color: rgba(88, 101, 242, 0.3);
  color: #5865f2;
}
.sns-icon.discord:hover {
  background: rgba(88, 101, 242, 0.2);
}

.sns-icon.note {
  background: rgba(47, 182, 109, 0.1);
  border-color: rgba(47, 182, 109, 0.3);
  color: #2fb66d;
}
.sns-icon.note:hover {
  background: rgba(47, 182, 109, 0.2);
}

.sns-icon.pixiv {
  background: rgba(0, 168, 119, 0.1);
  border-color: rgba(0, 168, 119, 0.3);
  color: #00a877;
}
.sns-icon.pixiv:hover {
  background: rgba(0, 168, 119, 0.2);
}

.sns-icon.booth {
  background: rgba(255, 102, 0, 0.1);
  border-color: rgba(255, 102, 0, 0.3);
  color: #ff6600;
}
.sns-icon.booth:hover {
  background: rgba(255, 102, 0, 0.2);
}

.sns-icon.spotify {
  background: rgba(30, 215, 97, 0.1);
  border-color: rgba(30, 215, 97, 0.3);
  color: #1ed761;
}
.sns-icon.spotify:hover {
  background: rgba(30, 215, 97, 0.2);
}

.sns-icon.apple {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.3);
  color: #000000;
}
.sns-icon.apple:hover {
  background: rgba(0, 0, 0, 0.2);
}

.sns-icon.amazon {
  background: rgba(255, 153, 0, 0.1);
  border-color: rgba(255, 153, 0, 0.3);
  color: #ff9900;
}
.sns-icon.amazon:hover {
  background: rgba(255, 153, 0, 0.2);
}

.sns-icon.marshmallow {
  background: rgba(255, 183, 178, 0.15);
  border-color: rgba(255, 183, 178, 0.4);
  color: #ff6b9d;
}
.sns-icon.marshmallow:hover {
  background: rgba(255, 183, 178, 0.25);
}

.sns-icon.litlink {
  background: rgba(76, 180, 226, 0.1);
  border-color: rgba(76, 180, 226, 0.3);
  color: #4cb4e2;
}
.sns-icon.litlink:hover {
  background: rgba(76, 180, 226, 0.2);
}

.sns-icon.other {
  background: rgba(255, 184, 77, 0.1);
  border-color: rgba(255, 184, 77, 0.3);
  color: var(--accent);
}
.sns-icon.other:hover {
  background: rgba(255, 184, 77, 0.2);
}

/* Member Navigation */
.member-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 40px;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(24px, 4vw, 60px);
  pointer-events: none;
  z-index: 15;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(255, 184, 77, 0.1);
  border: 1px solid rgba(255, 184, 77, 0.3);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
  pointer-events: all;
}

.nav-button:hover {
  background: rgba(255, 184, 77, 0.2);
  transform: translateX(4px);
}

.nav-button.prev-member {
transform: none;
}

.nav-button.prev-member:hover {
transform: translateX(-4px);
}

/* Footer */
.site-footer {
  padding: 24px clamp(24px, 4vw, 60px);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 900px) {
  .member-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .member-sidebar {
    position: static;
    width: 100%;
  }

  .member-main {
    margin-left: 0;
  }

  .illustration-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .costume-nav {
    order: auto;
  }

  .illustration-box {
    order: auto;
  }
}

@media (max-width: 600px) {
  .member-header h1 {
    font-size: 2rem;
  }

  .member-section {
    padding: 20px;
  }

  .member-info-grid,
  .creator-info,
  .community-info {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .member-info-grid dt,
  .creator-info dt,
  .community-info dt {
    font-weight: 600;
    margin-top: 12px;
  }

  .illustration-container {
    grid-template-columns: 1fr;
  }

  .costume-nav {
    order: auto;
  }

  .illustration-box {
    order: auto;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }

  .sns-links {
    justify-content: center;
  }
}

/* Favorite Button */
.favorite-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--muted);
  font-size: 1.7rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.favorite-btn:hover {
  background: rgba(255, 68, 102, 0.15);
  border-color: rgba(255, 68, 102, 0.3);
  color: #ff4466;
}

.favorite-btn.active {
  background: rgba(255, 68, 102, 0.2);
  border-color: rgba(255, 68, 102, 0.5);
  color: #ff4466;
}

.favorite-btn i {
  font-size: 2rem;
  transition: all 0.3s ease;
}

.favorite-btn.active i {
  color: #ff4466;
}

/* Policy Pages */
.policy-page {
  min-height: 100vh;
  padding: calc(var(--site-header-height) + 40px) clamp(24px, 4vw, 60px) 60px;
  max-width: 900px;
  margin: 0 auto;
}

.policy-header {
  margin-bottom: 40px;
  text-align: center;
}

.policy-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 10px;
  background: linear-gradient(135deg, #ffb84d, #ff8b61);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.policy-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 10px;
}

.last-updated {
  font-size: 0.85rem;
  color: var(--muted);
}

.policy-content {
  display: grid;
  gap: 24px;
}

.policy-section {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 24px;
}

.policy-section h2 {
  margin: 0 0 16px;
  font-size: 1.3rem;
  color: var(--accent);
}

.policy-section h3 {
  margin: 16px 0 10px;
  font-size: 1.1rem;
  color: var(--text);
}

.policy-section p {
  color: var(--muted);
  line-height: 1.8;
}

.policy-section ul {
  color: var(--muted);
  line-height: 1.8;
  padding-left: 20px;
}

.policy-section li {
  margin-bottom: 8px;
}

.policy-section .contact-info {
  margin-top: 16px;
  padding: 16px;
  background: rgba(255, 184, 77, 0.1);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
}

.policy-section .contact-info p {
  margin: 4px 0;
  color: var(--text);
}

.policy-section.note {
  background: rgba(159, 87, 255, 0.1);
  border-color: rgba(159, 87, 255, 0.3);
}

@media (max-width: 600px) {
  .policy-page {
    padding: calc(var(--site-header-height) + 20px) 16px 40px;
  }

  .policy-section {
    padding: 16px;
  }
}

/* Member navigation - prev/next links */
.member-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding: 20px 0;
}

.member-nav .nav-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 184, 77, 0.1);
  border: 2px solid rgba(255, 184, 77, 0.3);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 150px;
  justify-content: center;
}

.member-nav .nav-button:hover {
  background: rgba(255, 184, 77, 0.2);
  border-color: rgba(255, 184, 77, 0.5);
  transform: translateY(-2px);
}

.member-nav .nav-button i {
  font-size: 0.9rem;
}

.member-nav .prev-member {
  order: 1;
}

.member-nav .next-member {
  order: 3;
}

.member-nav .self-member {
  order: 2;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .member-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .member-nav .nav-button {
    width: 100%;
    justify-content: center;
  }

  .member-nav .prev-member {
    order: 1;
  }

  .member-nav .next-member {
    order: 2;
  }

  .member-nav .self-member {
    order: 3;
  }
}
