:root {
  --deep-purple: #4B0082;
  --light-purple: #9370DB;
  --deep-gold: #D4AF37;
  --light-gold: #F0E68C;
  --deep-pink: #FF1493;
  --light-pink: #FFB6C1;
  --white: #FFFFFF;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.content-item {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  padding: 20px;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.author-info {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.author-name {
  margin: 0;
  font-size: 16px;
  color: var(--deep-purple);
}

.post-date {
  font-size: 12px;
  color: #777;
}

.content-type-badge {
  background-color: var(--light-purple);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.content-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--deep-purple);
}

.content-title a {
  color: inherit;
  text-decoration: none;
}

.content-title a:hover {
  color: var(--deep-pink);
}

.content-text {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.content-banner img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
}

.btn-purple {
  background-color: var(--deep-purple);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-purple:hover {
  background-color: var(--light-purple);
}

.content-footer {
  margin-top: 15px;
}

.content-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  color: #777;
  font-size: 14px;
}

.content-actions {
  display: flex;
  gap: 10px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  margin-bottom: 15px;
}

.btn-like, .btn-comment, .btn-share {
  flex: 1;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  color: #777;
  font-weight: 600;
}

.btn-like:hover, .btn-comment:hover, .btn-share:hover {
  background-color: #f0f0f0;
}

.btn-like.liked {
  color: var(--deep-purple);
}

.comments-section {
  margin-top: 15px;
}

.comment-form {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.comment-text {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: none;
  min-height: 60px;
}

.btn-submit-comment {
  background-color: var(--deep-purple);
  color: white;
  border: none;
  padding: 0 15px;
  border-radius: 4px;
  cursor: pointer;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.comment-item {
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.comment-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.comment-author {
  font-weight: 600;
  margin-right: 10px;
  color: var(--deep-purple);
}

.comment-date {
  font-size: 12px;
  color: #777;
}

.comment-text {
  font-size: 14px;
  margin-bottom: 5px;
  border: none;
  padding: 0;
  background: transparent;
}

.comment-actions {
  margin-top: 5px;
}

.btn-reply {
  background: none;
  border: none;
  color: #777;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

.btn-reply:hover {
  color: var(--deep-purple);
}

.loading-spinner {
  text-align: center;
  padding: 20px;
  display: none;
}

.no-more-content {
  text-align: center;
  padding: 20px;
  color: #777;
  display: none;
}

@media (max-width: 600px) {
  .container {
      padding: 10px;
  }
  
  .content-item {
      padding: 15px;
  }
  
  .content-title {
      font-size: 20px;
  }
  
  .content-actions {
      flex-direction: column;
      gap: 5px;
  }
}

.feed-item {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  padding: 20px;
}

.video-item {
  border-left: 4px solid var(--deep-pink);
}

.video-preview {
  position: relative;
  margin: 15px 0;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
}

.video-preview img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.video-preview:hover img {
  transform: scale(1.02);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(255, 20, 147, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.video-preview:hover .play-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.item-description {
  font-size: 15px;
  line-height: 1.5;
  color: #555;
  margin: 10px 0;
}

.producer-credit {
  font-size: 14px;
  color: #777;
  margin-top: 10px;
  line-height: 1.4;
}

/* Update existing styles to work with both content and video items */
.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.item-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--deep-purple);
}

.item-title a {
  color: inherit;
  text-decoration: none;
}

.item-title a:hover {
  color: var(--deep-pink);
}

.item-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  color: #777;
  font-size: 14px;
}

.item-actions {
  display: flex;
  gap: 10px;
  border-top: 1px solid #eee;
  padding: 10px 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .feed-item {
      padding: 15px;
  }
  
  .item-title {
      font-size: 20px;
  }
  
  .play-button {
      width: 50px;
      height: 50px;
      font-size: 20px;
  }
}

.comment-item {
  margin-bottom: 15px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.comment-item:hover {
  background-color: #f0f0f0;
}

.comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.comment-author {
  font-weight: 600;
  margin-right: 10px;
  color: var(--deep-purple);
}

.comment-date {
  font-size: 12px;
  color: #777;
}

.comment-text {
  margin: 5px 0 10px 42px;
  font-size: 14px;
  line-height: 1.4;
}

.comment-actions {
  margin-left: 42px;
}

.btn-reply {
  background: none;
  border: none;
  color: var(--deep-purple);
  font-size: 13px;
  cursor: pointer;
  padding: 2px 5px;
}

.btn-reply:hover {
  text-decoration: underline;
}

.comment-reply-form {
  margin-top: 10px;
  margin-left: 42px;
}

.comment-reply-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: vertical;
  min-height: 60px;
  margin-bottom: 5px;
}

.btn-submit-reply, .btn-cancel-reply {
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.btn-submit-reply {
  background-color: var(--deep-purple);
  color: white;
  margin-right: 5px;
}

.btn-submit-reply:hover {
  background-color: var(--light-purple);
}

.btn-cancel-reply {
  background-color: #ddd;
  color: #333;
}

.btn-cancel-reply:hover {
  background-color: #ccc;
}

/*UPDATE  */

.comments-section {
  margin-top: 15px;
  display: none;
}

.comment-form {
  margin-bottom: 20px;
}

.comment-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: vertical;
  min-height: 80px;
}

.btn-submit-comment {
  background-color: var(--deep-purple);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  margin-top: 5px;
  cursor: pointer;
}

.comments-list {
  margin-top: 15px;
}

.comment-item {
  margin-bottom: 15px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 10px;
}

.comment-author {
  font-weight: 600;
  margin-right: 10px;
  color: var(--deep-purple);
}

.comment-date {
  font-size: 12px;
  color: #777;
}

.comment-text {
  margin-left: 42px;
  margin-bottom: 10px;
}

.comment-actions {
  margin-left: 42px;
}

.btn-reply {
  background: none;
  border: none;
  color: var(--deep-purple);
  font-size: 13px;
  cursor: pointer;
  padding: 2px 5px;
}

.btn-reply:hover {
  text-decoration: underline;
}

.comment-reply-form {
  margin-top: 10px;
  margin-left: 30px;
}

.comment-replies {
  margin-left: 30px;
  border-left: 2px solid #eee;
  padding-left: 10px;
}

.no-comments {
  color: #777;
  font-style: italic;
  padding: 10px 0;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(75, 0, 130, 0.5);
  border-radius: 3px;
}

::-webkit-scrollbar {
  width: 6px; 
}
