/* Music page specific styles */

.music-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.music-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e0e0e0;
}

.music-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #000000;
}

/* Admin Navigation */
.admin-nav {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.admin-nav-title {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-nav-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.admin-link {
  background: #007bff;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.admin-link:hover {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
  color: white;
  text-decoration: none;
}

.music-intro {
  margin-bottom: 3rem;
  text-align: center;
}

.music-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555555;
  max-width: 800px;
  margin: 0 auto;
}

.video-gallery {
  margin-bottom: 3rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.video-item {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
}

.video-section {
  margin-bottom: 1rem;
}

.video-header {
  text-align: center;
  margin-bottom: 0.8rem;
}

.video-counter {
  background: #e8f4f8;
  color: #2c5aa0;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  display: inline-block;
  margin-bottom: 0.5rem;
  border: 1px solid #b8d4e3;
}

.video-title {
  color: #000000;
  font-size: 1.3rem;
  margin-bottom: 0;
  font-weight: bold;
  text-align: center;
}

.video-container {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
}

.video-info {
  padding: 0;
}

/* Video Thumbnail Overlay */
.video-thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 60px; /* Leave space for video controls - same as pause overlay */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.video-container:hover .video-thumbnail-overlay {
  opacity: 1;
}

.overlay-content {
  padding: 1rem;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.overlay-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.overlay-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

.overlay-duration,
.overlay-instruments {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
}

.play-button-overlay:hover {
  background: rgba(255, 255, 255, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
  font-size: 1.5rem;
  color: #333;
  margin-left: 3px; /* Slight visual adjustment for play triangle */
}

/* Video Pause Overlay */
.video-pause-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 60px; /* Leave more space for video controls */
  background: rgba(0, 0, 0, 0.3);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 15;
  cursor: pointer;
}

.video-pause-overlay.show {
  display: flex;
}

/* Show video controls when hovering over pause overlay */
.video-pause-overlay:hover ~ video {
  cursor: default;
}

.video-pause-overlay:hover ~ video::-webkit-media-controls {
  opacity: 1 !important;
}

.video-pause-overlay:hover ~ video::-webkit-media-controls-panel {
  opacity: 1 !important;
}

.pause-button {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  pointer-events: auto; /* Ensure button is clickable */
}

.pause-button:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.pause-icon {
  font-size: 1.8rem;
  color: #333;
  line-height: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-description {
  color: #555555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.video-meta-footer {
  background: #f0f0f0;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid #e0e0e0;
}

.date-info {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.recorded-date,
.published-date {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.duration-info {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}

.play-count-info {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}

.date-label,
.duration-label,
.play-count-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
}

.date-value,
.video-duration {
  font-size: 0.85rem;
  color: #666;
  background: #ffffff;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-weight: 500;
  border: 1px solid #ddd;
}

.video-instruments {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.video-container {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
}

.video-info {
  padding: 0;
}

.instrument-tag {
  font-size: 0.75rem;
  background: #000000;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-weight: 500;
}

.video-description {
  color: #555555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.video-actions {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.btn-comment,
.btn-collaborate,
.btn-donate {
  padding: 0.5rem 1rem;
  border: 2px solid #000000;
  background: transparent;
  color: #000000;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-donate {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.btn-comment:hover {
  background: #000000;
  color: white;
}

.btn-collaborate {
  border-color: #007bff;
  color: #007bff;
}

.btn-collaborate:hover {
  background: #007bff;
  color: white;
}

.btn-donate:hover {
  background: #ff6b6b;
  color: white;
}

.comments-section {
  border-top: 2px solid #e0e0e0;
  padding-top: 1rem;
  margin-top: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #e9ecef;
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #dee2e6;
}

.comments-header h4 {
  color: #000000;
  font-size: 1.1rem;
  margin: 0;
}

.comment-count {
  font-size: 0.9rem;
  color: #666;
  font-weight: normal;
}

.comment-form {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.add-comment-section {
  margin: 1.5rem 0;
  text-align: center;
  padding: 0.5rem 0;
}

.btn-write-comment {
  background: #28a745;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-write-comment:hover {
  background: #218838;
}

.comment-form-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-cancel-comment {
  background: #6c757d;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-cancel-comment:hover {
  background: #545b62;
}

.comment-notice {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 5px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #856404;
  text-align: center;
}

.author-input {
  padding: 0.8rem;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.author-input:focus {
  outline: none;
  border-color: #007bff;
}

.comment-input {
  padding: 0.8rem;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.comment-input:focus {
  outline: none;
  border-color: #007bff;
}

.comment-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  resize: vertical;
  box-sizing: border-box;
}

.comment-form textarea:focus {
  outline: none;
  border-color: #000000;
}

.submit-comment {
  align-self: flex-start;
  padding: 0.8rem 1.5rem;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-comment:hover:not(:disabled) {
  background: #0056b3;
}

.submit-comment:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-item {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  transition: box-shadow 0.3s ease;
}

.comment-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.comment-author {
  font-weight: 600;
  color: #000000;
}

.comment-date {
  font-size: 0.8rem;
  color: #666;
}

.pending-badge {
  background: #ffc107;
  color: #000;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.comment-text {
  color: #333;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.no-comments {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 2rem;
  background: white;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.loading-comments {
  text-align: center;
  color: #666;
  padding: 1rem;
  font-style: italic;
}

.sample-comment {
  background: #f8f8f8;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #000000;
}

.sample-comment strong {
  color: #000000;
  font-size: 0.9rem;
}

.comment-date {
  color: #666;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.sample-comment p {
  margin: 0.5rem 0 0 0;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.4;
}

.music-journey-section {
  background: #f5f5f5;
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid #e0e0e0;
  margin-bottom: 2rem;
}

.music-journey-section h2 {
  color: #000000;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
  border-bottom: 2px solid #000000;
  padding-bottom: 0.5rem;
}

.instruments-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.instrument-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  border: 2px solid #000000;
  text-align: center;
}

.instrument-card h4 {
  color: #000000;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  font-weight: bold;
}

.instrument-card p {
  color: #555555;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
}

.call-to-music {
  background: linear-gradient(135deg, #f8f8f8, #e8e8e8);
  border: 2px solid #000000;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
}

.call-to-music h2 {
  color: #000000;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.call-to-music p {
  color: #555555;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.call-to-music p:last-child {
  margin-bottom: 0;
}

/* Music page mobile styles */
@media (max-width: 768px) {
  .music-header h1 {
    font-size: 2rem;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .video-item {
    padding: 1rem;
  }
  
  .video-meta-footer {
    padding: 0.8rem;
  }
  
  .date-info {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .video-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .btn-comment,
  .btn-collaborate {
    width: 100%;
    text-align: center;
  }
  
  .instruments-showcase {
    grid-template-columns: 1fr;
  }
  
  .music-journey-section {
    padding: 1.5rem;
  }
  
  .call-to-music {
    padding: 1.5rem;
  }
  
  .call-to-music h2 {
    font-size: 1.5rem;
  }
}
