/* ボタン（角丸5pxで統一） */
button,
.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  padding: var(--button-padding);
  min-height: var(--button-min-height);
  border: none;
  border-radius: var(--radius-button); /* 5pxで統一 */
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

button:disabled,
.btn:disabled,
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* プライマリボタン */
.btn-primary {
  background: var(--hphb-gradient);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* セカンダリボタン */
.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--bg-tertiary);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--bg-tertiary);
  border-color: var(--text-secondary);
}

/* アウトラインボタン */
.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-secondary);
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--bg-secondary);
  border-color: var(--text-primary);
}

/* テキストボタン */
.btn-text {
  background-color: transparent;
  color: var(--text-secondary);
  padding: var(--spacing-sm);
  min-height: auto;
}

.btn-text:hover:not(:disabled) {
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}

/* アイコンボタン */
.btn-icon {
  width: var(--button-min-height);
  height: var(--button-min-height);
  padding: 0;
  border-radius: var(--radius-button);
  background-color: transparent;
  color: var(--text-secondary);
}

.btn-icon:hover:not(:disabled) {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.btn-icon i {
  font-size: inherit;
  color: inherit;
}

/* ボタンサイズ */
.btn-sm {
  padding: var(--button-padding-sm);
  font-size: var(--font-size-sm);
  min-height: 36px;
}

.btn-lg {
  padding: var(--button-padding-lg);
  font-size: var(--font-size-lg);
  min-height: 52px;
}

/* カード */
.card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  box-shadow: var(--shadow-sm);
}

.card-lg {
  padding: var(--card-padding-lg);
}

.card-header {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--bg-tertiary);
}

.card-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-xs);
}

.card-body {
  margin-bottom: var(--spacing-md);
}

.card-footer {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--bg-tertiary);
}

/* アバター */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar-sm {
  width: 32px;
  height: 32px;
}

.avatar-md {
  width: 48px;
  height: 48px;
}

.avatar-lg {
  width: 64px;
  height: 64px;
}

.avatar-xl {
  width: 96px;
  height: 96px;
}

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

/* バッジ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--radius-button);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.badge-primary {
  background: var(--hphb-gradient);
  color: var(--text-primary);
}

.badge-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
}

/* HPHBバッジ */
.badge-hphb {
  background: var(--hphb-gradient);
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
  padding: 6px 12px;
}

/* 入力グループ */
.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.input-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
}

.input-field {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius-button);
  color: var(--text-primary);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.input-field:focus {
  outline: none;
  border-color: var(--hphb-primary);
  background-color: var(--bg-tertiary);
}

.input-field::placeholder {
  color: var(--text-tertiary);
}

/* トグルスイッチ */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-tertiary);
  transition: var(--transition-base);
  border-radius: 24px;
}

.toggle-switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-primary);
  transition: var(--transition-base);
  border-radius: 50%;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-switch-slider {
  background: var(--hphb-gradient);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-switch-slider:before {
  transform: translateX(24px);
}

.toggle-switch input[type="checkbox"]:disabled + .toggle-switch-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 検索バー */
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius-button);
  transition: border-color var(--transition-fast);
}

.search-bar:focus-within {
  border-color: var(--hphb-primary);
}

.search-input {
  flex: 1;
  border: none;
  background-color: transparent;
  color: var(--text-primary);
  font-size: var(--font-size-base);
  padding: 0;
}

.search-input:focus {
  outline: none;
}

.search-icon {
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon i {
  font-size: inherit;
  color: inherit;
}

/* ナビゲーション */
.nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-link {
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-button);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}

/* ヘッダー */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: var(--bg-secondary);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-tertiary);
  padding: var(--spacing-md) 0;
  transition: margin-left var(--transition-base);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.header-logo {
  display: flex;
  align-items: center;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  background: var(--hphb-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-logo img {
  height: 32px; /* アバター（avatar-sm）と同じ高さ */
  width: auto;
  display: block;
}

.header-logo img.logo-mobile {
  display: none;
}

@media (min-width: 1024px) {
  .header {
    margin-left: 240px;
  }
  
  .header.sidebar-collapsed {
    margin-left: 64px;
  }
}

@media (max-width: 1023px) {
  .header {
    margin-left: 0 !important;
  }
}

@media (max-width: 767px) {
  .header-logo img.logo-desktop {
    display: none;
  }
  
  .header-logo img.logo-mobile {
    display: block;
    height: 32px; /* アバター（avatar-sm）と同じ高さに統一 */
  }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.header-notification {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-button);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  text-decoration: none;
  font-size: var(--font-size-lg);
}

.header-notification:hover {
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}

.header-globe {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-button);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  text-decoration: none;
  font-size: var(--font-size-lg);
}

.header-globe:hover {
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}

/* 為替レート・CAアドレス帯 */
.exchange-rate-banner {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--bg-tertiary);
  padding: var(--spacing-sm) 0;
  font-size: var(--font-size-sm);
  transition: margin-left var(--transition-base);
}

.exchange-rate-banner .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

@media (min-width: 1024px) {
  .exchange-rate-banner {
    margin-left: 240px;
  }
  
  .exchange-rate-banner.sidebar-collapsed {
    margin-left: 64px;
  }
}

@media (max-width: 1023px) {
  .exchange-rate-banner {
    margin-left: 0 !important;
  }
}

@media (max-width: 767px) {
  .exchange-rate-banner {
    padding: var(--spacing-xs) 0;
    font-size: var(--font-size-xs);
  }
  
  .exchange-rate-banner .container {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }
}

/* 言語選択モーダル */
.language-selector-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md);
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.language-selector-item:hover {
  background-color: var(--bg-tertiary);
}

.language-selector-item.selected {
  background-color: rgba(79, 172, 254, 0.1);
  color: var(--hphb-primary);
}

.language-selector-item-name {
  font-weight: var(--font-weight-medium);
}

.language-selector-item-check {
  color: var(--hphb-primary);
  display: none;
}

.language-selector-item.selected .language-selector-item-check {
  display: block;
}

/* 通知アイテム */
.notification-item {
  padding: 16px;
  border-bottom: 1px solid var(--bg-tertiary);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.notification-item:hover {
  background-color: var(--bg-secondary);
}

/* ページタイトル帯 */
.page-title-banner {
  position: relative;
  padding: 34px 0 22px 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
  margin-bottom: 0;
  transition: margin-left var(--transition-base);
}

.page-title-banner .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-title-banner h1 {
  margin-bottom: 0;
  font-size: var(--font-size-xxl);
  color: var(--text-primary);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #667eea 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: var(--font-weight-bold);
  text-shadow: 
    0 0 10px rgba(102, 126, 234, 0.5),
    0 0 20px rgba(118, 75, 162, 0.5),
    0 0 30px rgba(240, 147, 251, 0.3);
  animation: cosmicGradient 8s ease infinite, cosmicShimmer 3s ease-in-out infinite;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-md);
}

.page-title-banner h1 i {
  font-size: inherit;
}

@media (min-width: 1024px) {
  .page-title-banner {
    margin-left: 240px;
  }
  
  .page-title-banner.sidebar-collapsed {
    margin-left: 64px;
  }
}

@media (max-width: 1023px) {
  .page-title-banner {
    margin-left: 0 !important;
  }
}

@media (max-width: 767px) {
  .page-title-banner {
    padding: 22px 0 17px 0;
  }
  
  .page-title-banner h1 {
    font-size: var(--font-size-xl);
  }
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: var(--spacing-sm);
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }
  
  .header-nav {
    display: none;
  }
}

/* フッター */
.footer {
  background-color: var(--bg-secondary);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xxl);
  border-top: 1px solid var(--bg-tertiary);
  transition: margin-left var(--transition-base);
}

@media (min-width: 1024px) {
  .footer {
    margin-left: 240px; /* Sidebar width */
  }
  
  .footer.sidebar-collapsed {
    margin-left: 64px; /* Collapsed sidebar width */
  }
}

@media (max-width: 1023px) {
  .footer {
    margin-left: 0 !important;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 48px;
  align-items: start;
}

.footer-grid > div {
  min-width: 0;
  width: 100%;
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* フッターナビゲーション（モバイル表示のみ） */
.footer-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--bg-tertiary);
  padding: var(--spacing-sm) 0;
  z-index: var(--z-fixed);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
}

.footer-nav-list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-item {
  flex: 1;
  display: flex;
  justify-content: center;
}

.footer-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xs) var(--spacing-sm);
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-size: var(--font-size-xs);
  gap: 4px;
  width: 100%;
  min-height: 56px;
}

.footer-nav-link i {
  font-size: 20px;
  margin-bottom: 2px;
}

.footer-nav-link:hover,
.footer-nav-link.active {
  color: var(--hphb-primary);
}

.footer-nav-text {
  font-size: 10px;
  font-weight: var(--font-weight-medium);
}

@media (max-width: 767px) {
  .footer-nav {
    display: block;
  }
  
  /* フッターナビ分のパディングを追加 */
  body {
    padding-bottom: 72px;
  }
  
  .main-content {
    padding-bottom: var(--spacing-lg);
  }
  
  /* messages.htmlなど、固定高さのページの調整 */
  .main-content[style*="height"] {
    height: calc(100vh - 73px - 72px) !important;
  }
}

/* ローディング */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--bg-tertiary);
  border-top-color: var(--hphb-primary);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* メディアカード（楽曲/アルバムカード） */
.media-card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
}

.media-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.media-card-link:hover {
  text-decoration: none;
}

.media-card-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background-color: var(--bg-tertiary);
}

.media-card-body {
  padding: var(--spacing-md);
  text-align: center;
}

.media-card-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-card-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* プレイリストカード */
.playlist-card {
  position: relative;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
}

.playlist-card-header {
  position: relative;
  padding-bottom: 100%;
  background-color: var(--bg-tertiary);
}

.playlist-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-card-body {
  padding: var(--spacing-md);
}

.playlist-card-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-xs);
}

.playlist-card-meta {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* コラボプレイリストメンバー表示 */
.collab-members {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.collab-member-avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-secondary);
  margin-left: -8px;
}

.collab-member-avatar:first-child {
  margin-left: 0;
}

/* コラボプレイリストメンバーアイテム */
.collab-member-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-card);
}

.collab-member-item .member-info {
  flex: 1;
  min-width: 0;
}

.collab-member-item .member-name {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 役割バッジ */
.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--radius-button);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
}

.role-badge.owner {
  background-color: var(--hphb-primary);
  color: var(--text-primary);
}

.role-badge.editor {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.role-badge.viewer {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--bg-tertiary);
}

/* PCサイドバー */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 240px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--bg-tertiary);
  transition: transform var(--transition-base), width var(--transition-base);
  z-index: var(--z-fixed);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar.collapsed {
  width: 64px;
}

.sidebar-logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 73px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--bg-tertiary);
  z-index: 1;
}

.sidebar-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sidebar-logo .logo-expanded {
  display: block;
}

.sidebar-logo .logo-collapsed {
  display: none;
}

.sidebar.collapsed .sidebar-logo .logo-expanded {
  display: none;
}

.sidebar.collapsed .sidebar-logo .logo-collapsed {
  display: block;
}

.sidebar-content {
  padding: var(--spacing-lg);
  padding-top: calc(73px + var(--spacing-lg)); /* ヘッダーの高さ分のスペースを追加 */
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu-item {
  margin-bottom: var(--spacing-xs);
}

.sidebar-menu-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-secondary);
  border-radius: var(--radius-button);
  transition: background-color var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
  justify-content: flex-start;
}

.sidebar.collapsed .sidebar-menu-link {
  justify-content: center;
  padding: var(--spacing-sm);
}

.sidebar-menu-link:hover,
.sidebar-menu-link.active {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.sidebar-menu-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.sidebar-menu-icon i {
  font-size: inherit;
  color: inherit;
}

.sidebar-menu-text {
  white-space: nowrap;
  opacity: 1;
  transition: opacity var(--transition-base);
}

.sidebar.collapsed .sidebar-menu-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.sidebar-toggle {
  position: absolute;
  bottom: var(--spacing-md);
  right: var(--spacing-md);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--radius-button);
  transition: background-color var(--transition-fast), color var(--transition-fast), right var(--transition-base), left var(--transition-base), transform var(--transition-base);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.sidebar-toggle:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.sidebar-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-base);
}

.sidebar.collapsed .sidebar-toggle {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

.sidebar.collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}

/* サイドバーアコーディオン */
.sidebar-accordion-item {
  margin-bottom: var(--spacing-xs);
}

.sidebar-accordion-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  border-radius: var(--radius-button);
  transition: background-color var(--transition-fast), color var(--transition-fast);
  cursor: pointer;
  text-align: left;
  font-size: inherit;
  font-family: inherit;
}

.sidebar-accordion-header:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.sidebar-accordion-header .accordion-chevron {
  margin-left: auto;
  transition: transform var(--transition-base);
  font-size: 12px;
  flex-shrink: 0;
}

.sidebar-accordion-item.active .sidebar-accordion-header .accordion-chevron {
  transform: rotate(180deg);
}

.sidebar-accordion-content {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.sidebar-accordion-item.active .sidebar-accordion-content {
  max-height: 1000px; /* 十分に大きい値 */
  padding-left: var(--spacing-lg);
  padding-top: var(--spacing-xs);
}

.sidebar.collapsed .sidebar-accordion-header .accordion-chevron {
  display: none;
}

.sidebar.collapsed .sidebar-accordion-content {
  display: none;
}

/* メインコンテンツエリアの調整 */
.main-content {
  transition: margin-left var(--transition-base);
}

.main-content .container {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .main-content {
    margin-left: 240px;
  }
  
  .main-content.sidebar-collapsed {
    margin-left: 64px;
  }
}

@media (max-width: 1023px) {
  .sidebar {
    display: none;
  }
  
  .main-content {
    margin-left: 0 !important;
  }
}

/* モーダル */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: var(--z-modal-backdrop);
}

.modal-content {
  position: relative;
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  padding: var(--spacing-xl);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: var(--z-modal);
  box-shadow: var(--shadow-lg);
}

/* ユーザーメニューモーダルのbackdropを非表示 */
#user-menu-modal .modal-backdrop {
  display: none;
}

/* 出金方法選択カード */
.withdraw-method-selector input[type="radio"]:checked + .card,
.withdraw-method-selector [data-method].selected {
  border-color: var(--hphb-primary) !important;
  background: rgba(79, 172, 254, 0.1) !important;
}

/* エラーメッセージ */
.error-message {
  display: none;
  color: var(--hphb-primary);
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-xs);
}

.input-field.error {
  border-color: var(--hphb-primary);
}

/* デイリーチャレンジ左右分割レイアウト */
.daily-challenge-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

@media (max-width: 767px) {
  .daily-challenge-split {
    grid-template-columns: 1fr;
  }
}

.daily-challenge-left,
.daily-challenge-right {
  min-height: 200px;
}

/* 毎日ログインチャレンジ スタンプカレンダー */
.daily-challenge-calendar {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  padding-bottom: var(--spacing-xs);
}

.daily-challenge-calendar::-webkit-scrollbar {
  height: 4px;
}

.daily-challenge-calendar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.daily-challenge-calendar::-webkit-scrollbar-thumb {
  background: var(--hphb-primary);
  border-radius: 2px;
}

.daily-challenge-day {
  flex: 0 0 auto;
  min-width: 80px;
}

.daily-challenge-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-button);
  background: rgba(0, 0, 0, 0.2);
  transition: all var(--transition-base);
  min-height: 100px;
  position: relative;
}

.daily-challenge-stamp.clickable {
  border-color: var(--hphb-primary);
  background: rgba(79, 172, 254, 0.1);
  cursor: pointer;
}

.daily-challenge-stamp.clickable:hover {
  border-color: var(--hphb-secondary);
  background: rgba(79, 172, 254, 0.2);
  transform: scale(1.05);
}

.daily-challenge-stamp.active {
  border-color: var(--hphb-primary);
  background: rgba(79, 172, 254, 0.15);
}

.daily-challenge-stamp.active i {
  font-size: 32px;
  color: var(--hphb-primary);
  margin-bottom: var(--spacing-xs);
  animation: stampPulse 0.6s ease-out;
}

@keyframes stampPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.stamp-day-label {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
  font-weight: var(--font-weight-medium);
}

.daily-challenge-stamp.active .stamp-day-label {
  color: var(--text-primary);
}

.stamp-reward {
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
}

@media (max-width: 767px) {
  .daily-challenge-day {
    min-width: 70px;
  }
  
  .daily-challenge-stamp {
    min-height: 90px;
    padding: var(--spacing-sm);
  }
  
  .stamp-day-label {
    font-size: 10px;
  }
  
  .stamp-reward {
    font-size: var(--font-size-xs);
  }
  
  .daily-challenge-stamp.active i {
    font-size: 24px;
  }
}

/* シェアボタン */
.share-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius-button);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.share-button:hover {
  background-color: var(--bg-tertiary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.share-button i {
  font-size: var(--font-size-base);
}

/* LINE */
.share-line {
  border-color: #06C755;
  color: #06C755;
}

.share-line:hover {
  background-color: rgba(6, 199, 85, 0.1);
  border-color: #06C755;
}

/* X (Twitter) */
.share-x {
  border-color: #ffffff;
  color: #ffffff;
}

.share-x:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* Threads */
.share-threads {
  border-color: #ffffff;
  color: #ffffff;
}

.share-threads:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* Telegram */
.share-telegram {
  border-color: #0088cc;
  color: #0088cc;
}

.share-telegram:hover {
  background-color: rgba(0, 136, 204, 0.1);
  border-color: #0088cc;
}

/* URLをコピー */
.share-copy {
  border-color: var(--hphb-primary);
  color: var(--hphb-primary);
}

.share-copy:hover {
  background-color: rgba(79, 172, 254, 0.1);
  border-color: var(--hphb-primary);
}

@media (max-width: 767px) {
  .share-button {
    flex: 1;
    min-width: calc(50% - 6px);
    justify-content: center;
  }
}

/* リールグリッド */
.reels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

@media (min-width: 768px) {
  .reels-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (min-width: 1024px) {
  .reels-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* MVグリッド */
.mvs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
  align-items: stretch;
}

.mvs-grid .media-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mvs-grid .media-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.mvs-grid .media-card > div:first-child {
  flex-shrink: 0;
}

.mvs-grid .media-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

@media (min-width: 768px) {
  .mvs-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (min-width: 1024px) {
  .mvs-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.reel-item {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.reel-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* NFTグリッド */
.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

@media (min-width: 768px) {
  .nft-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (min-width: 1024px) {
  .nft-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* NFTカード画像の価格バッジ用 */
.nft-grid .media-card-image {
  position: relative;
}

/* 運営管理ページ用スタイル */
.admin-section {
  margin-bottom: 48px;
}

/* Analytics Period Button Styles */
.analytics-period-btn {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--bg-tertiary);
  padding: 8px 16px;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: all 0.2s;
}

.analytics-period-btn:hover {
  background: var(--bg-tertiary);
}

.analytics-period-btn.active {
  background: #4facfe;
  color: white;
  border-color: #4facfe;
}

.ad-tab-content {
  display: none;
}

/* 広告枠管理タブはデフォルトで表示 */
#ad-slots-tab {
  display: block;
}

.admin-table-container {
  overflow-x: auto;
  margin-top: 24px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.admin-table thead {
  background-color: var(--bg-tertiary);
}

.admin-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  border-bottom: 2px solid var(--bg-tertiary);
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-tertiary);
  color: var(--text-secondary);
}

.admin-table tbody tr:hover {
  background-color: var(--bg-tertiary);
}

.admin-table .btn-sm {
  padding: 4px 12px;
  font-size: var(--font-size-xs);
  margin-right: 8px;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--radius-button);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

/* 通知管理タブ */
.notification-tab-content {
  display: block;
}

.notification-tab.active {
  border-bottom: 2px solid #4facfe !important;
}

/* ジャンル・タグ管理タブ */
.genre-tag-tab-content {
  display: block;
}

.genre-tag-tab.active {
  border-bottom: 2px solid #4facfe !important;
}

/* プロフィールカバー画像 */
.profile-cover {
  position: relative;
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.profile-cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

@media (max-width: 767px) {
  .profile-cover {
    height: 150px;
  }
}

/* 宇宙風テキスト装飾 */
.cosmic-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #667eea 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: var(--font-weight-bold);
  text-shadow: 
    0 0 10px rgba(102, 126, 234, 0.5),
    0 0 20px rgba(118, 75, 162, 0.5),
    0 0 30px rgba(240, 147, 251, 0.3);
  animation: cosmicGradient 8s ease infinite, cosmicShimmer 3s ease-in-out infinite;
  position: relative;
  display: inline-block;
}

@keyframes cosmicGradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* マルチステップフォーム */
.multi-step-form {
  width: 100%;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  position: relative;
  padding: 0 20px;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--bg-tertiary);
  z-index: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 8px;
  transition: all var(--transition-base);
}

.step-number.active {
  background: var(--hphb-gradient);
  color: var(--text-primary);
  box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.2);
}

.step-number.completed {
  background: var(--hphb-primary);
  color: var(--text-primary);
}

.step-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  text-align: center;
}

.step-number.active ~ .step-label {
  color: var(--text-primary);
}

.step-content {
  display: none;
}

.step-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ファイルアップロードエリア */
.file-upload-area {
  border: 2px dashed var(--bg-tertiary);
  border-radius: var(--radius-card);
  padding: 48px 24px;
  text-align: center;
  background: var(--bg-primary);
  transition: all var(--transition-base);
  cursor: pointer;
}

.file-upload-area:hover {
  border-color: var(--hphb-primary);
  background: rgba(79, 172, 254, 0.05);
}

.file-upload-content {
  pointer-events: none;
}

.upload-preview {
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  border: 1px solid var(--bg-tertiary);
}

@media (max-width: 767px) {
  .step-indicator {
    padding: 0 10px;
  }

  .step-indicator::before {
    left: 30px;
    right: 30px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: var(--font-size-sm);
  }

  .step-label {
    font-size: 11px;
  }

  .file-upload-area {
    padding: 32px 16px;
  }
}

/* MVアップロード関連 */
.mv-upload-section {
  margin-top: 24px;
  padding-top: 24px;
}

.source-selector {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.source-selector label {
  transition: border-color var(--transition-fast);
}

.source-selector label:has(input:checked) {
  border-color: var(--hphb-primary) !important;
  background: rgba(79, 172, 254, 0.05);
}

.source-input-section {
  margin-bottom: 24px;
}

.video-preview {
  margin-top: 24px;
}

.youtube-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--bg-primary);
}

.youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.track-mv-source-section {
  margin-bottom: 16px;
}

@keyframes cosmicShimmer {
  0%, 100% {
    filter: brightness(1);
    text-shadow: 
      0 0 10px rgba(102, 126, 234, 0.5),
      0 0 20px rgba(118, 75, 162, 0.5),
      0 0 30px rgba(240, 147, 251, 0.3);
  }
  50% {
    filter: brightness(1.2);
    text-shadow: 
      0 0 15px rgba(102, 126, 234, 0.8),
      0 0 25px rgba(118, 75, 162, 0.8),
      0 0 35px rgba(240, 147, 251, 0.5),
      0 0 45px rgba(79, 172, 254, 0.3);
  }
}

/* 宇宙風進捗バー */
.cosmic-progress-container {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  height: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cosmic-progress-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 25%,
    rgba(240, 147, 251, 0.1) 50%,
    rgba(79, 172, 254, 0.1) 75%,
    rgba(102, 126, 234, 0.1) 100%
  );
  background-size: 200% 100%;
  animation: cosmicProgressShine 3s ease-in-out infinite;
  border-radius: inherit;
}

.cosmic-progress-fill {
  position: relative;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, 
    #667eea 0%,
    #764ba2 25%,
    #f093fb 50%,
    #4facfe 75%,
    #667eea 100%
  );
  background-size: 200% 100%;
  animation: cosmicProgressGradient 3s ease infinite;
  box-shadow: 
    0 0 10px rgba(102, 126, 234, 0.6),
    0 0 20px rgba(118, 75, 162, 0.4),
    0 0 30px rgba(240, 147, 251, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.cosmic-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: cosmicProgressShimmer 2s ease-in-out infinite;
  border-radius: inherit;
}

@keyframes cosmicProgressGradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes cosmicProgressShine {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes cosmicProgressShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(200%);
  }
}

/* メッセージ関連スタイル */
.messages-container {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 0;
  height: 100%;
}

.messages-list {
  background: var(--bg-secondary);
  border-right: 1px solid var(--bg-tertiary);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.conversation-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  border-bottom: 1px solid var(--bg-tertiary);
  position: relative;
}

.conversation-item:hover {
  background-color: var(--bg-tertiary);
}

.conversation-item.active {
  background-color: rgba(79, 172, 254, 0.1);
  border-left: 3px solid var(--hphb-primary);
}

.conversation-item-content {
  flex: 1;
  min-width: 0;
}

.conversation-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.conversation-item-name {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-item-time {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  white-space: nowrap;
  margin-right: 30px; /* 未読バッジのスペースを確保 */
}

.conversation-item-preview {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unread-badge {
  position: absolute;
  top: 12px;
  right: 16px;
  background: var(--hphb-primary);
  color: var(--text-primary);
  border-radius: 50%;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.chat-area {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-primary);
}

.chat-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--bg-tertiary);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  gap: 16px;
}

.messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: var(--radius-button);
  word-wrap: break-word;
  position: relative;
}

.message-sent {
  align-self: flex-end;
  background: var(--hphb-gradient);
  color: var(--text-primary);
  border-bottom-right-radius: 4px;
}

.message-received {
  align-self: flex-start;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.message-time {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  margin-top: 4px;
}

.message-sent .message-time {
  color: rgba(255, 255, 255, 0.8);
}

.read-status {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.message-input-area {
  padding: 16px 24px;
  border-top: 1px solid var(--bg-tertiary);
  background: var(--bg-secondary);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  border-radius: var(--radius-button);
  transition: background-color var(--transition-fast);
}

.search-result-item:hover {
  background-color: var(--bg-tertiary);
}

/* モバイル表示対応 */
@media (max-width: 767px) {
  .messages-container {
    grid-template-columns: 1fr;
  }
  
  .messages-list.mobile-hidden {
    display: none;
  }
  
  .chat-area.mobile-hidden {
    display: none;
  }
  
  .conversation-item {
    padding: 16px;
  }
  
  .message-bubble {
    max-width: 85%;
  }
}

/* アルバムスライダー */
.album-slider {
  position: relative;
  overflow: hidden;
  margin: 0 -8px;
  padding: 0 8px;
}

.album-slider-container {
  display: flex;
  gap: var(--spacing-md);
  transition: transform var(--transition-base);
  will-change: transform;
}

.album-slider-item {
  flex: 0 0 calc(50% - 8px); /* モバイル: 2列 */
  min-width: 0;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .album-slider-item {
    flex: 0 0 calc(33.333% - 11px); /* タブレット: 3列 */
  }
}

@media (min-width: 1024px) {
  .album-slider-item {
    flex: 0 0 calc(20% - 12px); /* PC: 5列 */
  }
}

.album-slider-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.album-slider-button {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 1;
}

.album-slider-button:hover:not(:disabled) {
  background: var(--bg-tertiary);
  border-color: var(--text-secondary);
}

.album-slider-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* トラックインタラクション */
.like-button {
  transition: all var(--transition-base);
}

.like-button.liked i,
.like-button.liked {
  color: #ff6b9d;
}

.like-animate {
  animation: likePulse 0.6s ease-out;
}

@keyframes likePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

.track-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  justify-content: center;
}

.track-actions .btn-icon {
  font-size: 16px;
  padding: 6px 8px;
  min-height: auto;
}

.track-actions .like-button {
  display: flex;
  align-items: center;
  gap: 4px;
}

.track-actions .play-count,
.track-actions .like-count {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: var(--font-weight-normal);
}

.player-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* 詳細検索モーダル */
#advanced-search-modal .modal-content {
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
}

select[multiple] {
  min-height: 120px;
  padding: var(--spacing-sm);
}

select[multiple] option {
  padding: var(--spacing-xs);
  cursor: pointer;
}

@media (max-width: 768px) {
  #advanced-search-modal .modal-content {
    max-width: 95vw;
  }
}

/* ギフト種類選択 */
.gift-type-option {
  transition: all var(--transition-fast);
}

.gift-type-option:hover {
  border-color: var(--hphb-primary) !important;
  background: rgba(79, 172, 254, 0.05) !important;
}

.gift-type-option:has(input[type="radio"]:checked) {
  border-color: var(--hphb-primary) !important;
  background: rgba(79, 172, 254, 0.05) !important;
}

/* 詳細検索モーダル */
#advanced-search-modal .modal-content {
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
}

/* 複数選択のselect */
select[multiple] {
  font-family: var(--font-family);
  padding: var(--spacing-sm);
}

select[multiple] option {
  padding: var(--spacing-xs);
}

