/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #0d0d10;
  color: #e4e4e7;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header / Navbar */
.navbar {
  background-color: #070709;
  border-bottom: 1px solid #1a1a22;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
}

.navbar-container {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #ff8c00 0%, #ff5500 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 119, 0, 0.4);
}

.logo-text {
  color: #ffffff;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #1a1a20;
  border: 1px solid #2e2e3a;
  color: #d4d4d8;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-btn:hover {
  background-color: #262632;
  color: #ffffff;
  border-color: #3f3f50;
}

/* Main Layout */
.main-container {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px;
  flex: 1;
}

/* Video Player Wrapper */
.player-wrapper {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  background-color: #000000;
  margin-bottom: 16px;
}

/* Video Info Card */
.video-info-card {
  background-color: #1b1b22;
  border: 1px solid #272732;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1.3;
}

.video-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #9ca3af;
  font-size: 0.825rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #262633;
}

.channel-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff7700;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
}

.author-subscribers {
  color: #9ca3af;
  font-size: 0.8rem;
}

.follow-btn {
  background: linear-gradient(135deg, #ff8500 0%, #ff5500 100%);
  color: #ffffff;
  border: none;
  padding: 9px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(255, 119, 0, 0.3);
}

.follow-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 119, 0, 0.5);
  background: linear-gradient(135deg, #ff941a 0%, #ff661a 100%);
}

.follow-btn.following {
  background: #272732;
  color: #a1a1aa;
  box-shadow: none;
  border: 1px solid #3f3f50;
}

/* Comments Card */
.comments-card {
  background-color: #1b1b22;
  border: 1px solid #272732;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.comments-header {
  padding-bottom: 14px;
  border-bottom: 1px solid #262633;
}

.comments-header h2 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
}

.comments-list {
  display: flex;
  flex-direction: column;
}

.comment-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #242430;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-avatar-wrap {
  flex-shrink: 0;
}

.comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-fallback {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #ffffff;
}

.avatar-color-1 { background: linear-gradient(135deg, #4f46e5, #3b82f6); }
.avatar-color-2 { background: linear-gradient(135deg, #059669, #10b981); }
.avatar-color-3 { background: linear-gradient(135deg, #d97706, #f59e0b); }
.avatar-color-4 { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.avatar-color-5 { background: linear-gradient(135deg, #db2777, #ec4899); }
.avatar-color-6 { background: linear-gradient(135deg, #0284c7, #06b6d4); }

.comment-content {
  flex: 1;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.comment-author {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
}

.comment-time {
  color: #71717a;
  font-size: 0.775rem;
  font-weight: 400;
}

.comment-text {
  color: #d4d4d8;
  font-size: 0.875rem;
  line-height: 1.45;
}

/* Load More Button */
.load-more-container {
  padding-top: 14px;
}

.load-more-btn {
  width: 100%;
  background-color: #141418;
  border: 1px solid #2e2e3b;
  color: #e4e4e7;
  padding: 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.load-more-btn:hover {
  background-color: #242430;
  border-color: #3f3f52;
  color: #ffffff;
}

/* Footer */
.footer {
  text-align: center;
  padding: 32px 16px 40px;
  color: #71717a;
  font-size: 0.8rem;
  border-top: 1px solid #16161d;
  margin-top: 20px;
}

.footer p {
  margin-bottom: 6px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-links a {
  color: #71717a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #a1a1aa;
  text-decoration: underline;
}

.separator {
  color: #3f3f46;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .main-container {
    padding: 12px 10px;
  }

  .video-info-card, .comments-card {
    padding: 14px;
  }

  .video-title {
    font-size: 1.05rem;
  }

  .follow-btn {
    padding: 7px 16px;
    font-size: 0.8rem;
  }
}
