/* 埋め込みコンテナのスタイル */
.embed-container {
  position: relative;
  width: 100%;
  margin: 0.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.embed-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* YouTube埋め込み */
.embed-youtube {
  aspect-ratio: 16/9;
}

/* SoundCloud埋め込み */
.embed-soundcloud {
  aspect-ratio: 16/9;
  min-height: 166px;
}

/* Vimeo埋め込み */
.embed-vimeo {
  aspect-ratio: 16/9;
}

/* Spotify埋め込み */
.embed-spotify {
  aspect-ratio: 12/5;
  min-height: 152px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .embed-container {
    margin: 0.5rem 0;
  }
  
  .embed-soundcloud {
    min-height: 120px;
  }
  
  .embed-spotify {
    min-height: 120px;
  }
}

/* モーダル内での埋め込み */
.modal .embed-container {
  max-width: 100%;
  margin: 0.5rem auto;
}

.modal .twitter-tweet {
  margin: 0.5rem auto !important;
}

/* 外部リンクスタイル */
.external-link {
  text-align: center;
  margin-top: 1rem;
}

.external-link a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.external-link a:hover {
  text-decoration: underline;
}

/* ワーク詳細ページのスタイル */
.work-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.work-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.work-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  color: #333;
}

.work-date {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.work-tags {
  margin-top: 1rem;
}

.work-tags .tag {
  display: inline-block;
  background: #f0f0f0;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  color: #555;
}

.work-content {
  line-height: 1.6;
}

.work-embed {
  margin: 2rem 0;
}

/* ソーシャルメディア埋め込み */
.twitter-tweet {
  margin: 1rem auto !important;
  max-width: 100% !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

.twitter-tweet:not(.twitter-tweet-rendered) {
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

.twitter-tweet a {
  color: #1da1f2;
  text-decoration: none;
}

.instagram-media {
  margin: 1rem auto !important;
  max-width: 100% !important;
}

/* カスタム埋め込み記法用のスタイル */
.modal-content-text [data-embed-url] {
  margin: 1rem 0;
}