.episodes-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.episode-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}

.episode-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.episode-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.episode-info {
  padding: 1rem;
}

.episode-info h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.episode-info .author {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.episode-info .published-at {
  color: #888;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.episode-info .description {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.episode-info .actions {
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

.episode-info .actions a {
  color: #007bff;
  text-decoration: none;
  margin-right: 1rem;
}

.episode-info .actions a:hover {
  text-decoration: underline;
}

.new-episode-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.new-episode-button:hover {
  background-color: #0056b3;
}

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

@media (min-width: 768px) {
  .episode-detail {
    padding: 2rem;
  }
}

.episode-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .episode-header {
    flex-direction: row;
    gap: 2rem;
    margin-bottom: 2rem;
  }
}

.episode-cover {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .episode-cover {
    width: 300px;
    height: 300px;
    margin: 0;
  }
}

.episode-meta {
  flex: 1;
}

.episode-meta h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .episode-meta h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
}

.episode-content {
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .episode-content {
    margin-bottom: 2rem;
  }
}

.audio-player {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
}

.audio-player audio {
  width: 100%;
}

/* フォームのスタイル */
.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.field input[type="text"],
.field input[type="datetime-local"],
.field textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.field textarea {
  min-height: 150px;
}

.actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.actions a {
  color: #007bff;
  text-decoration: none;
}

.actions a:hover {
  text-decoration: underline;
}

.error-messages {
  color: #dc3545;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #dc3545;
  border-radius: 4px;
  background-color: #f8d7da;
}

.notice {
  color: #155724;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  background-color: #d4edda;
} 