/* ====== General & Toggle Buttons ====== */
.t10t-main-content {
  margin: 20px auto;
  max-width: 1200px;
  font-family: system-ui, Arial, sans-serif;
}
.t10t-main-content .view-toggle {
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}
.t10t-main-content .toggle-button {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #0073aa;
  border-radius: 8px;
  text-decoration: none;
  color: #0073aa;
  font-weight: bold;
  transition: all 0.3s ease;
}
.t10t-main-content .toggle-button.active,
.t10t-main-content .toggle-button:hover {
  background: #0073aa;
  color: #fff;
}

/* ====== Grid View ====== */
.t10t-main-content .video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  padding: 10px;
}
.t10t-main-content .video-grid-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.t10t-main-content .video-grid-item .grid-link-wrapper {
  text-decoration: none;
  display: block;
  position: relative;
}
.t10t-main-content .video-grid-item .grid-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
  background-color: #f0f0f0;
}
.t10t-main-content .video-grid-item img,
.t10t-main-content .video-grid-item .no-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t10t-main-content .video-grid-views {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
  z-index: 3;
}
.t10t-main-content .video-grid-author {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 20px 10px 10px 10px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.t10t-main-content .video-grid-item:hover .video-grid-author {
  opacity: 1;
}
.t10t-main-content .video-grid-author a.author-grid-link {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

/* ====== Feed / Scroll View ====== */
.t10t-main-content .video-feed {
  padding: 10px 0;
}
.t10t-main-content .video-feed-item {
  background: #fff;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e7e7e7;
  max-width: 420px;
  margin: 0 auto 40px auto;
}

/* --- Video Header (Author, Title, Follow Button) --- */
.t10t-main-content .video-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 15px;
}
.t10t-main-content .video-meta-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
  min-width: 0;
}
.t10t-main-content .author-name {
  font-size: 16px;
  color: #111;
  font-weight: 600;
  text-decoration: none;
}
.t10t-main-content .video-title {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t10t-main-content .video-header-actions {
  flex-shrink: 0;
}

/* --- Follow Button Styling --- */
.t10t-follow-button {
  font-size: 12px !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  font-weight: bold !important;
  border: 1px solid #0073aa !important;
  background: #0073aa !important;
  color: #fff !important;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.t10t-follow-button.following {
  background: #27ae60 !important;
  border-color: #27ae60 !important;
}
.t10t-follow-button.unfollow {
  background: transparent !important;
  border-color: #e74c3c !important;
  color: #e74c3c !important;
}

/* --- Video Player --- */
.t10t-main-content .video-player-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background-color: #000;
}
.t10t-main-content .video-player-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Interaction Icons (Footer) --- */
.t10t-main-content .video-footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}
.t10t-main-content .footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #555;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  font-size: 12px;
  font-family: inherit;
  transition: color 0.2s ease, transform 0.2s ease;
}
.t10t-main-content .footer-item:hover {
  color: #0073aa;
  transform: scale(1.05);
}
.t10t-main-content .footer-item i {
  font-size: 22px;
}
.t10t-main-content .like-btn.liked {
  color: #e74c3c;
}

/* ====== Comments Section ====== */
.t10t-main-content .t10t-comments-container {
  margin-top: 15px;
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
}
.t10t-main-content .t10t-comment {
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}
.t10t-main-content .t10t-comment:last-child {
  border-bottom: none;
}
.t10t-main-content .t10t-comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.t10t-main-content .t10t-comment-author {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}
.t10t-main-content .t10t-comment-time {
  font-size: 12px;
  color: #888;
}
.t10t-main-content .t10t-comment-body {
  font-size: 14px;
  color: #444;
  padding-left: 2px;
  margin-bottom: 8px;
}

/* --- Comment Action Icons --- */
.t10t-main-content .t10t-comment-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 2px;
}
.t10t-main-content .t10t-comment-action-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #666;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}
.t10t-main-content .t10t-comment-action-btn:hover {
  color: #0073aa;
}
.t10t-main-content .t10t-comment-action-btn i {
  font-size: 16px;
}
.t10t-main-content .like-comment-btn.liked {
  color: #e74c3c;
}
.t10t-main-content .delete-comment-btn:hover {
  color: #e74c3c;
}

/* --- Comment Form --- */
.t10t-main-content .t10t-comment-form {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.t10t-main-content .t10t-comment-form textarea {
  flex-grow: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 18px;
  resize: vertical;
  min-height: 36px;
  font-size: 14px;
  line-height: 1.4;
  overflow-y: hidden; /* Hide scrollbar initially */
}
.t10t-main-content .t10t-submit-comment {
  flex-shrink: 0;
  padding: 8px 15px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
  align-self: center;
}
.t10t-main-content .t10t-submit-comment:hover {
  background: #005f87;
}
.t10t-main-content .t10t-submit-comment:disabled {
  background: #a0a0a0;
  cursor: not-allowed;
}

/* ====== Load More Button ====== */
.t10t-main-content .load-more-wrapper {
  text-align: center;
  margin-top: 30px;
}
.t10t-main-content .load-more-button {
  padding: 12px 25px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 8px;
}

/* ====== Mobile Responsive ====== */
@media (max-width: 767px) {
  .t10t-main-content {
    padding: 0 10px;
  }
  .t10t-main-content .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .t10t-main-content .video-feed-item {
    max-width: 100%;
  }
}
/* ====== Final Additions for Comment Replies ====== */

/* Style for the reply form container */
.t10t-reply-form-container {
  margin-top: 10px;
  padding-left: 20px; /* Indent the reply form */
}

/* Style for the reply form itself */
.t10t-reply-form {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.t10t-reply-form textarea {
  flex-grow: 1;
  padding: 6px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  resize: vertical;
  min-height: 32px;
  font-size: 13px;
  line-height: 1.4;
}

.t10t-reply-form button {
  flex-shrink: 0;
  padding: 6px 12px;
  background: #555;
  color: #fff;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

/* Indentation for threaded comments (replies) */
.comment-list .children {
  list-style: none;
  margin: 0;
  padding-left: 25px; /* Indent replies */
  border-left: 2px solid #f0f0f0;
  margin-left: 5px;
}
