/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;
  height: 100vh;
  overflow: hidden;
  background: #f5f5f5;
}

/* Map Styles */
#map-container {
  height: 100vh;
  width: 100vw;
  position: relative;
}

#map {
  height: 100vh;
  width: 100vw;
  z-index: 1;
}

/* Bottom Sheet Styles */
.bottom-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 480px;
  max-width: 100vw;
  max-height: 70vh;
  background: white;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transform: translateX(-50%) translateY(0);
  transition: transform 0.3s ease, max-height 0.3s ease;
  z-index: 1000;
  overflow: hidden;
  touch-action: none;
}

.bottom-sheet.minimized {
  transform: translateX(-50%) translateY(calc(100% - 60px));
}

.bottom-sheet.expanded {
  max-height: 90vh;
}

.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 12px auto;
  cursor: grab;
  user-select: none;
  transition: background-color 0.2s ease;
}

.bottom-sheet-handle:hover {
  background: #bbb;
}

.bottom-sheet-content {
  padding: 0 20px 20px 20px;
  overflow-y: auto;
  max-height: calc(70vh - 60px);
}

.bottom-sheet.expanded .bottom-sheet-content {
  max-height: calc(90vh - 60px);
}

/* User Welcome */
.user-welcome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.logout-button {
  margin-left: auto;
  padding: 6px 12px;
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

/* Login Prompt */
.login-prompt {
  text-align: center;
  padding: 40px 20px;
}

.login-prompt h2 {
  font-size: 2em;
  margin-bottom: 10px;
  color: #1db954;
}

.login-prompt p {
  color: #666;
  margin-bottom: 30px;
}

.login-button {
  display: inline-block;
  padding: 12px 24px;
  background: #1db954;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: background 0.2s;
}

.login-button:hover {
  background: #1ed760;
}

/* Post Form */
.post-form {
  margin-bottom: 20px;
}

.post-form h3 {
  margin-bottom: 16px;
  color: #333;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #555;
}

.form-group button {
  padding: 10px 16px;
  background: #1db954;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.form-group button:hover {
  background: #1ed760;
}

.selected-track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8f8f8;
  border-radius: 8px;
}

.album-cover-small {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  object-fit: cover;
}

textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: #1db954;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
}

button[type="submit"]:hover {
  background: #1ed760;
}

/* Music Post Styles */
.music-post {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
}

.music-post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.user-info h4 {
  margin: 0;
  color: #333;
}

.user-name-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.user-name-link:hover {
  color: #1db954;
}

.user-name-link:hover h4 {
  color: #1db954;
}

.post-time {
  font-size: 12px;
  color: #999;
}

.music-info {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.album-cover {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
}

.track-details h3 {
  margin: 0 0 4px 0;
  color: #333;
  font-size: 16px;
}

.track-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.track-link:hover {
  color: #1db954; /* Spotify Green */
}

.track-link:hover h3 {
  color: #1db954;
}

.track-details p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.album-name {
  font-style: italic;
  opacity: 0.8;
}

.post-comment {
  margin: 12px 0;
  color: #444;
  line-height: 1.4;
}

.post-location {
  color: #666;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Posts List */
#nearbyPosts h3 {
  margin-bottom: 16px;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

#postsList:empty:before {
  content: "この付近にはまだ投稿がありません";
  display: block;
  text-align: center;
  color: #999;
  padding: 40px 20px;
  font-style: italic;
}

/* Loading States */
.loading {
  text-align: center;
  padding: 20px;
  color: #999;
}

.loading:after {
  content: "...";
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%,
  20% {
    content: "";
  }
  40% {
    content: ".";
  }
  60% {
    content: "..";
  }
  80%,
  100% {
    content: "...";
  }
}

/* Responsive */
@media (max-width: 768px) {
  .bottom-sheet {
    width: 100vw;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }

  .bottom-sheet.minimized {
    transform: translateX(-50%) translateY(calc(100% - 50px));
  }

  .bottom-sheet.expanded {
    max-height: 95vh;
  }

  .bottom-sheet.expanded .bottom-sheet-content {
    max-height: calc(95vh - 60px);
  }

  .bottom-sheet-content {
    padding: 0 16px 20px 16px;
  }

  .music-post {
    padding: 12px;
  }

  .music-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .album-cover {
    width: 80px;
    height: 80px;
  }

  .selected-track {
    gap: 10px;
  }

  .album-cover-small {
    width: 48px;
    height: 48px;
  }

  .location-option {
    padding: 10px;
  }

  .location-option input[type="radio"] {
    margin-right: 8px;
  }
}

/* Location Selection Styles */
.location-option {
  display: flex;
  align-items: center;
  padding: 12px;
  margin: 8px 0;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.location-option:hover {
  background: #f5f5f5;
  border-color: #1db954;
}

.location-option.selected {
  background: #e8f5e8;
  border-color: #1db954;
}

.location-option input[type="radio"] {
  margin-right: 12px;
  width: auto;
}

.location-info {
  flex: 1;
}

.location-name {
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
}

.location-address {
  color: #666;
  font-size: 13px;
}

.location-distance {
  color: #999;
  font-size: 12px;
  font-style: italic;
}

.loading-locations {
  text-align: center;
  padding: 20px;
  color: #666;
}

.no-locations {
  text-align: center;
  padding: 20px;
  color: #999;
}

#submitButton:disabled {
  background: #ccc !important;
  cursor: not-allowed;
}

/* SpeedDial */
.speed-dial {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1001;
}

.speed-dial-main {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1db954;
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.speed-dial-main:hover {
  background: #1aa34a;
  transform: scale(1.1);
}

.speed-dial-main.active {
  transform: rotate(45deg);
}

.speed-dial-actions {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.speed-dial-actions.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.speed-dial-action {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2c5aa0;
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.speed-dial-action:hover {
  background: #1e3f73;
  transform: scale(1.1);
}

/* SpeedDial モバイル対応 */
@media (max-width: 768px) {
  .speed-dial {
    bottom: 16px;
    right: 16px;
  }

  .speed-dial-main {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .speed-dial-action {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .speed-dial-actions {
    bottom: 66px;
  }
}

/* Music Marker Styles */
.custom-music-marker {
  background: transparent !important;
  border: none !important;
}

.music-marker {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 3px solid white;
}

.album-artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.music-marker-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #1db954;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Music Popup Styles */
.music-popup {
  min-width: 280px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.popup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.popup-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.popup-user-info {
  flex: 1;
}

.popup-user-info strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.popup-time {
  font-size: 12px;
  color: #666;
}

.popup-music {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.popup-album-cover {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.popup-track-info {
  flex: 1;
  min-width: 0;
}

.popup-track-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popup-track-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
  display: block;
}

.popup-track-link:hover {
  color: #1db954; /* Spotify Green */
}

.popup-track-link:hover .popup-track-name {
  color: #1db954;
}

.popup-artist-name {
  color: #666;
  font-size: 13px;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popup-album-name {
  color: #999;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popup-comment {
  background: #f8f9fa;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 8px;
  border-left: 3px solid #1db954;
}

.popup-location {
  color: #666;
  font-size: 12px;
  text-align: center;
  padding: 4px 0;
}

/* Leaflet ポップアップのカスタマイズ */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-popup-content {
  margin: 16px !important;
  line-height: 1.4 !important;
}

/* ページヘッダー */
#footprints-app,
#profile-app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-header {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid #eee;
  padding: 16px 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.back-button {
  color: #666;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.back-button:hover {
  background-color: #f0f0f0;
}

.page-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

/* ページコンテンツ */
.page-content {
  padding: 20px;
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  /* スムーズなスクロール */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* カスタムスクロールバー（WebKit系ブラウザ） */
.page-content::-webkit-scrollbar {
  width: 8px;
}

.page-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.page-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.page-content::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* 足跡ページのスタイル */
.no-footprints {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.no-footprints h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.primary-button {
  display: inline-block;
  background: #1db954;
  color: white;
  padding: 12px 24px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
  transition: background-color 0.2s;
}

.primary-button:hover {
  background: #1ed760;
}

.month-group {
  margin-bottom: 40px;
}

.month-header {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 2px solid #1db954;
  padding-bottom: 8px;
}

.footprints-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
}

.footprint-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.footprint-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.footprint-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 12px;
}

.footprint-music {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.footprint-album-cover {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.footprint-track-info {
  flex: 1;
  min-width: 0;
}

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

.footprint-track-link:hover .footprint-track-name {
  color: #1db954;
}

.footprint-track-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footprint-artist-name {
  color: #666;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footprint-location {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.footprint-comment {
  font-size: 14px;
  color: #444;
  line-height: 1.4;
  background: #f8f8f8;
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 8px;
}

/* プロフィールページのスタイル */
.profile-header {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  padding: 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #1db954;
}

.profile-info {
  flex: 1;
}

.profile-name-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.profile-name {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.profile-link-button {
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  color: #666;
}

.profile-link-button:hover {
  background: #e0e0e0;
  color: #333;
  transform: scale(1.1);
}

.profile-link-button:active {
  transform: scale(0.95);
}

.profile-badge {
  background: #1db954;
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
}

.profile-stats {
  display: flex;
  gap: 32px;
  margin-top: 16px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #1db954;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.profile-actions {
  margin-bottom: 32px;
}

.profile-button {
  display: inline-block;
  background: #f0f0f0;
  color: #333;
  padding: 12px 20px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s;
}

.profile-button:hover {
  background: #e0e0e0;
}

/* タイムライン */
.footprints-section h3 {
  font-size: 20px;
  margin-bottom: 24px;
  color: #333;
}

.footprints-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.timeline-date {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  min-width: 80px;
}

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

.timeline-music {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.timeline-album-cover {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
}

.timeline-track-info {
  flex: 1;
  min-width: 0;
}

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

.timeline-track-link:hover .timeline-track-name {
  color: #1db954;
}

.timeline-track-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-artist-name {
  color: #666;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-location {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

.timeline-comment {
  font-size: 13px;
  color: #444;
  line-height: 1.4;
  background: #f8f8f8;
  padding: 6px 10px;
  border-radius: 6px;
}

.load-more {
  text-align: center;
  margin-top: 24px;
}

.load-more-button {
  background: #f0f0f0;
  color: #333;
  border: none;
  padding: 12px 24px;
  border-radius: 24px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.load-more-button:hover {
  background: #e0e0e0;
}

/* モバイル対応 */
@media (max-width: 768px) {
  #footprints-app,
  #profile-app {
    height: 100vh;
    height: 100dvh; /* モバイルブラウザでの高さを正確に */
  }

  .page-header {
    padding: 12px 16px;
  }

  .page-content {
    padding: 16px;
    /* スクロール改善 */
    -webkit-overflow-scrolling: touch;
  }

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

  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
  }

  .profile-name-container {
    justify-content: center;
  }

  .profile-name {
    font-size: 24px;
  }

  .profile-link-button {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .profile-stats {
    justify-content: center;
  }

  /* 詳細ページのモバイル対応 */
  .detail-card {
    padding: 16px;
  }

  .detail-album-cover {
    width: 120px;
    height: 120px;
  }

  .detail-music-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .detail-actions {
    flex-direction: column;
    gap: 12px;
  }

  .detail-action-btn {
    width: 100%;
  }

  .timeline-item {
    flex-direction: column;
    gap: 8px;
  }

  .timeline-date {
    min-width: auto;
  }
}

/* 詳細ページのスタイル */
.detail-card {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 24px;
  overflow: hidden;
}

.detail-user-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.detail-user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #1db954;
}

.detail-user-info h3 {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 700;
}

.detail-user-name-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.detail-user-name-link:hover {
  color: #1db954;
}

.my-post-badge {
  background: #1db954;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.detail-timestamp {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
}

.detail-date,
.detail-time {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.detail-music-section,
.detail-location-section,
.detail-comment-section {
  margin-bottom: 24px;
}

.detail-music-section h4,
.detail-location-section h4,
.detail-comment-section h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.detail-music-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border: 1px solid #dee2e6;
}

.detail-album-cover {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.detail-track-info {
  flex: 1;
  min-width: 0;
}

.detail-spotify-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.detail-spotify-link:hover .detail-track-name {
  color: #1db954;
}

.detail-track-name {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 700;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-artist-name {
  margin: 0 0 6px 0;
  font-size: 16px;
  color: #666;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-album-name {
  margin: 0;
  font-size: 14px;
  color: #999;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-location-card {
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #dee2e6;
}

.detail-location-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.detail-coordinates {
  font-size: 13px;
  color: #666;
  font-family: "Monaco", "Menlo", monospace;
}

.detail-comment-card {
  padding: 16px;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.detail-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.detail-action-btn {
  flex: 1;
  padding: 14px 20px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.detail-action-btn:hover {
  background: #e9ecef;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-error {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.detail-error h3 {
  margin-bottom: 16px;
  font-size: 20px;
  color: #333;
}

.detail-error p {
  margin-bottom: 24px;
  line-height: 1.6;
}

.error-action-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #1db954;
  color: white;
  text-decoration: none;
  border-radius: 24px;
  font-weight: 600;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.error-action-btn:hover {
  background: #1ed760;
}
