:root {
  --yt-red: #ff0000;
  --bg-color: #f9f9f9;
  --sidebar-bg: #ffffff;
  --text-color: #030303;
  --secondary-text: #606060;
  --border-color: #e5e5e5;
  --blue-text: #065fd4;
  --hover-bg: #f2f2f2;
  --sidebar-width: 240px;
  --sidebar-collapsed-width: 72px;
  --header-height: 56px;
  --dark-bg: #0f0f0f;
  --dark-surface: #212121;
  --primary-button-bg: #f0f0f0;
  --primary-button-hover: #e5e5e5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: 14px;
  line-height: 1.4;
  min-height: 100vh;
}

.app-container {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--sidebar-bg);
  overflow-y: auto;
  overflow-x: hidden;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10;
  transition: width 0.2s ease, transform 0.2s ease;
  border-right: 1px solid var(--border-color);
  padding-top: var(--header-height);
}

.sidebar-collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar-section {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-section:last-child {
  border-bottom: none;
}

.sidebar-section h3 {
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary-text);
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 8px 24px;
  cursor: pointer;
  color: var(--text-color);
  transition: background-color 0.1s;
}

.sidebar-item:hover {
  background-color: var(--hover-bg);
}

.sidebar-item.active {
  background-color: var(--hover-bg);
  font-weight: 500;
}

.sidebar-item i {
  margin-right: 24px;
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.sidebar-collapsed .sidebar-item span,
.sidebar-collapsed .sidebar-section h3 {
  display: none;
}

.sidebar-collapsed .sidebar-item {
  justify-content: center;
  padding: 16px 0;
}

.sidebar-collapsed .sidebar-item i {
  margin-right: 0;
}

.sidebar-footer {
  padding: 16px 24px;
  color: var(--secondary-text);
  font-size: 12px;
}

.channel-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 24px;
  background-color: #ddd;
  background-size: cover;
  background-position: center;
}

.ai-channel {
  background-color: #a142f4;
}

.tech-channel {
  background-color: #4285f4;
}

.gaming-channel {
  background-color: #ea4335;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  height: 100vh;
  overflow-y: auto;
  transition: margin-left 0.2s ease;
}

.sidebar-collapsed + .main-content {
  margin-left: var(--sidebar-collapsed-width);
}

.main-header {
  height: var(--header-height);
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--border-color);
}

.header-left {
  display: flex;
  align-items: center;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  margin-right: 24px;
  color: var(--text-color);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
}

.logo i {
  color: var(--yt-red);
  font-size: 28px;
  margin-right: 8px;
}

.search-bar {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 640px;
  margin: 0 40px;
}

.search-bar input {
  flex: 1;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border-color);
  border-radius: 20px 0 0 20px;
  font-size: 16px;
  outline: none;
}

.search-bar input:focus {
  border-color: #1c62b9;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.search-btn {
  height: 40px;
  width: 64px;
  background-color: var(--primary-button-bg);
  border: 1px solid var(--border-color);
  border-left: none;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
}

.voice-search-btn {
  height: 40px;
  width: 40px;
  background-color: var(--primary-button-bg);
  border: none;
  border-radius: 50%;
  margin-left: 8px;
  cursor: pointer;
}

.header-right {
  display: flex;
  align-items: center;
}

.icon-btn {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: 50%;
  margin-left: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background-color: var(--hover-bg);
}

.icon-btn i {
  font-size: 18px;
}

.user-profile {
  margin-left: 16px;
  cursor: pointer;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #065fd4;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.content-container {
  padding: 24px 24px 0;
  max-width: 1800px;
  margin: 0 auto;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.chips-row {
  display: flex;
  gap: 12px;
  padding: 0 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 24px;
  -ms-overflow-style: none;
}

.chips-row::-webkit-scrollbar {
  display: none;
}

.chip {
  padding: 8px 12px;
  background-color: var(--primary-button-bg);
  border-radius: 16px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s;
}

.chip:hover {
  background-color: var(--primary-button-hover);
}

.chip.active {
  background-color: var(--text-color);
  color: white;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.section-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
}

.video-card {
  cursor: pointer;
  transition: transform 0.2s;
}

.video-card:hover {
  transform: translateY(-2px);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  border-radius: 12px;
  overflow: hidden;
  background-color: #e5e5e5;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 3px 4px;
  border-radius: 4px;
  font-size: 12px;
}

.video-card-info {
  display: flex;
  padding-top: 12px;
}

.video-channel-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 12px;
  background-color: #ddd;
  flex-shrink: 0;
}

.video-details {
  flex: 1;
}

.video-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.4;
  max-height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.channel-name {
  font-size: 14px;
  color: var(--secondary-text);
  margin-bottom: 4px;
}

.video-meta {
  font-size: 12px;
  color: var(--secondary-text);
}

.initial-state,
.loading-grid,
.loading-shorts,
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
  text-align: center;
  gap: 16px;
}

.initial-state i,
.loading-grid i,
.loading-shorts i,
.loading-state i {
  color: var(--yt-red);
  margin-bottom: 16px;
}

.generate-btn {
  background-color: var(--yt-red);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.generate-btn:hover {
  background-color: #cc0000;
}

.video-player {
  max-width: 1280px;
  margin: 0 auto;
}

.thumbnail {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background-size: cover;
  background-position: center;
  cursor: not-allowed;
  transition: filter 0.3s;
  border-radius: 12px;
  overflow: hidden;
}

.thumbnail:hover {
  filter: brightness(0.9);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: white;
  opacity: 0.9;
  background-color: rgba(0, 0, 0, 0.6);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.video-info {
  padding: 16px 0;
}

.title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.4;
}

.meta {
  color: var(--secondary-text);
  font-size: 14px;
  margin-bottom: 12px;
}

.channel {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 12px;
  background-size: cover;
  background-position: center;
}

.channel-info {
  flex: 1;
}

.channel-name {
  font-weight: 500;
  margin-bottom: 4px;
}

.subscriber-count {
  color: var(--secondary-text);
  font-size: 13px;
}

.video-actions {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background-color: var(--primary-button-bg);
  border: none;
  border-radius: 18px;
  cursor: pointer;
  transition: background-color 0.2s;
  gap: 8px;
}

.action-btn:hover {
  background-color: var(--primary-button-hover);
}

.like-btn, .dislike-btn {
  position: relative;
}

.like-btn::after {
  content: '';
  position: absolute;
  right: 0;
  height: 60%;
  width: 1px;
  background-color: var(--border-color);
}

.description-container {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.description-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.description-stats {
  font-weight: 500;
}

.description-expand {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-weight: 500;
}

.description {
  color: var(--text-color);
  white-space: pre-line;
  max-height: 80px;
  overflow: hidden;
  transition: max-height 0.3s;
}

.description.expanded {
  max-height: 1000px;
}

.advanced-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.stat-item {
  background: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.stat-label {
  color: var(--secondary-text);
  font-size: 13px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-subtext {
  font-size: 12px;
  color: var(--secondary-text);
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  margin-top: 8px;
}

.stat-trend.positive {
  color: #00a152;
}

.stat-trend.negative {
  color: #d32f2f;
}

.traffic-sources {
  grid-column: 1 / -1;
}

.traffic-breakdown {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 12px;
}

.traffic-bar {
  height: 100%;
  transition: width 0.3s ease;
}

.traffic-bar:nth-child(1) { background: #4285f4; }
.traffic-bar:nth-child(2) { background: #ea4335; }
.traffic-bar:nth-child(3) { background: #fbbc05; }
.traffic-bar:nth-child(4) { background: #34a853; }

.comments-section {
  padding: 16px 0;
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.comments-header h3 {
  font-size: 16px;
  font-weight: 500;
}

.comments-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-color);
}

.add-comment {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.add-comment input {
  flex: 1;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.add-comment input:focus {
  border-color: var(--blue-text);
}

.comment {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ddd;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: baseline;
  margin-bottom: 4px;
}

.comment-author {
  font-weight: 500;
  margin-right: 8px;
}

.comment-timestamp {
  color: var(--secondary-text);
  font-size: 12px;
}

.comment-text {
  margin-bottom: 8px;
  line-height: 1.4;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.like-button, .dislike-button {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--secondary-text);
}

.like-button:hover, .dislike-button:hover {
  color: var(--text-color);
}

.reply-button, .ai-reply-button {
  background: none;
  border: none;
  color: var(--secondary-text);
  cursor: pointer;
  transition: color 0.2s;
}

.reply-button:hover {
  color: var(--text-color);
}

.ai-reply-button {
  color: var(--blue-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-reply-button:hover {
  color: #0b57d0;
}

.replies {
  margin-top: 16px;
  padding-left: 16px;
  border-left: 2px solid var(--border-color);
}

.reply-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.reply-input input {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  outline: none;
}

.reply-input button {
  background-color: var(--yt-red);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.shorts-container {
  padding-bottom: 40px;
}

.shorts-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.short-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  padding-top: 177.78%; /* 9:16 aspect ratio */
  background-color: #e5e5e5;
  cursor: pointer;
}

.short-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.short-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.short-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: white;
}

.short-title {
  font-weight: 500;
  margin-bottom: 16px;
  font-size: 14px;
}

.short-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  right: 16px;
  bottom: 16px;
  gap: 16px;
}

.short-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}

.short-action i {
  font-size: 20px;
}

.short-channel {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.short-channel .channel-icon {
  width: 32px;
  height: 32px;
  margin-right: 8px;
}

.short-channel .channel-name {
  color: white;
  font-weight: 500;
  margin-right: 8px;
}

.subscribe-btn {
  background-color: white;
  color: black;
  border: none;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.ai-badge {
  background-color: var(--blue-text);
  color: white;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 11px;
  margin-left: 8px;
}

.ai-reply {
  background-color: #f0f7ff;
  border-left: 3px solid var(--blue-text);
  padding: 12px;
  border-radius: 0 4px 4px 0;
  transition: transform 0.2s;
}

.ownership-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: fadeInOut 5s ease-in-out forwards;
  max-width: 300px;
  text-align: center;
}

.generated-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.loading-steps {
  margin-top: 20px;
  text-align: left;
  max-width: 300px;
}

.loading-steps .step {
  padding: 8px 0;
  color: var(--secondary-text);
  font-size: 14px;
  position: relative;
  padding-left: 20px;
}

.loading-steps .step.active {
  color: var(--yt-red);
  font-weight: 500;
}

.loading-steps .step.completed {
  color: #00a152;
}

.loading-steps .step.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--yt-red);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.loading-steps .step.completed::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #00a152;
  font-weight: bold;
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translateY(-50%) scale(1.2);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  90% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 100;
  }
  
  .sidebar.visible {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .search-bar {
    margin: 0 16px;
  }

  .videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .content-container {
    padding: 16px 16px 0;
  }
  
  .search-bar {
    max-width: none;
    margin: 0 8px;
  }
  
  .videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  
  .header-right .icon-btn:not(.notifications-btn) {
    display: none;
  }
  
  .advanced-stats {
    grid-template-columns: 1fr;
  }
  
  .video-actions {
    justify-content: space-between;
  }
  
  .action-btn {
    padding: 8px 12px;
  }
  
  .action-btn span {
    display: none;
  }
  
  .like-btn span {
    display: inline;
  }
}

@media (max-width: 480px) {
  .logo span {
    display: none;
  }
  
  .search-bar input {
    display: none;
  }
  
  .search-bar {
    justify-content: flex-end;
  }
  
  .search-btn {
    border-radius: 50%;
    width: 40px;
  }
  
  .videos-grid {
    grid-template-columns: 1fr;
  }
  
  .shorts-content {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

.youtuber-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.youtuber-search {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  align-items: center;
}

.youtuber-search input {
  flex: 1;
  max-width: 400px;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.youtuber-search input:focus {
  border-color: var(--blue-text);
  box-shadow: 0 0 0 2px rgba(6, 95, 212, 0.1);
}

.youtuber-profile {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.youtuber-header {
  position: relative;
}

.youtuber-banner {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--border-color);
}

.youtuber-info {
  display: flex;
  padding: 24px;
  gap: 24px;
  align-items: flex-start;
}

.youtuber-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 4px solid white;
  margin-top: -60px;
  background-color: var(--border-color);
  flex-shrink: 0;
}

.youtuber-details {
  flex: 1;
}

.youtuber-name {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verification-badge {
  font-size: 20px;
  margin-left: 8px;
}

.verification-badge.pre-verified {
  color: #888;
}

.verification-badge.verified {
  color: var(--blue-text);
}

.verification-badge.super-verified {
  color: #ff0000;
}

.verification-badge.ultra-verified {
  background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  background-size: 400%;
  animation: rainbow 2s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.verification-badge.legendary-verified {
  background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
  background-size: 400%;
  animation: golden 3s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes rainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes golden {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.05); filter: brightness(1.2); }
}

.youtuber-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--secondary-text);
}

.youtuber-description {
  margin-bottom: 8px;
  line-height: 1.5;
}

.youtuber-joined {
  color: var(--secondary-text);
  font-size: 13px;
}

.youtuber-videos {
  padding: 24px;
  border-top: 1px solid var(--border-color);
}

.youtuber-videos h3 {
  margin-bottom: 16px;
  font-size: 18px;
}

.youtuber-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.mini-video-card {
  cursor: pointer;
  transition: transform 0.2s;
}

.mini-video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mini-video-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--border-color);
}

.mini-video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-video-info {
  padding-top: 8px;
}

.mini-video-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.3;
  max-height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-video-meta {
  font-size: 12px;
  color: var(--secondary-text);
}

.shorts-comments-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.shorts-comments-modal {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  animation: slideUp 0.2s ease;
}

.shorts-comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.shorts-comments-header h3 {
  font-size: 18px;
  font-weight: 500;
}

.close-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--secondary-text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background-color: var(--hover-bg);
}

.shorts-comments-container {
  max-height: 60vh;
  overflow-y: auto;
  padding: 16px 20px;
}

.shorts-comment {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.shorts-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--border-color);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.shorts-comment-content {
  flex: 1;
}

.shorts-comment-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.shorts-comment-author {
  font-weight: 500;
  font-size: 13px;
}

.shorts-comment-timestamp {
  font-size: 12px;
  color: var(--secondary-text);
}

.shorts-comment-text {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.shorts-comment-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.shorts-like-btn, .shorts-dislike-btn, .shorts-reply-btn {
  background: none;
  border: none;
  color: var(--secondary-text);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.shorts-like-btn:hover, .shorts-dislike-btn:hover, .shorts-reply-btn:hover {
  background-color: var(--hover-bg);
}

.loading-comments {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px;
  gap: 12px;
  color: var(--secondary-text);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
  .youtuber-info {
    flex-direction: column;
    text-align: center;
  }
  
  .youtuber-avatar {
    align-self: center;
    margin-top: -60px;
  }
  
  .youtuber-videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .shorts-comments-modal {
    width: 95%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .youtuber-search {
    flex-direction: column;
  }
  
  .youtuber-search input {
    max-width: none;
  }
  
  .youtuber-stats {
    flex-direction: column;
    gap: 4px;
  }
}

.tube-poop-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;
  min-height: 80vh;
}

.tube-poop-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  transition: opacity 0.5s ease;
}

.intro-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.intro-logo img {
  width: 200px;
  height: 200px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: logoFloat 3s ease-in-out;
}

.intro-title {
  font-size: 48px;
  font-weight: bold;
  color: #8b4513;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin: 0;
}

.intro-tagline {
  font-size: 18px;
  color: #666;
  font-style: italic;
  margin: 0;
}

@keyframes logoFloat {
  0% { transform: scale(0.8) translateY(20px); opacity: 0; }
  50% { transform: scale(1.1) translateY(-10px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.tube-poop-forum {
  transition: opacity 0.5s ease;
}

.forum-header {
  text-align: center;
  margin-bottom: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #8b4513, #a0522d);
  color: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.forum-header h2 {
  margin: 0 0 8px 0;
  font-size: 28px;
}

.forum-subtitle {
  margin: 0;
  opacity: 0.9;
  font-size: 16px;
}

.forum-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.create-post-section {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 2px solid #8b4513;
}

.create-post-section h3 {
  margin: 0 0 16px 0;
  color: #8b4513;
}

.create-post-section input,
.create-post-section textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  margin-bottom: 12px;
  font-family: inherit;
  resize: vertical;
}

.create-post-section textarea {
  min-height: 100px;
}

.create-post-btn {
  background: #8b4513;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

.create-post-btn:hover {
  background: #a0522d;
}

.forum-posts {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 8px;
}

.forum-post {
  background: white;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.forum-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  border-color: #8b4513;
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.post-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-user .user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #8b4513;
  background-size: cover;
  background-position: center;
}

.username {
  font-weight: bold;
  color: #8b4513;
}

.post-time {
  font-size: 12px;
  color: #666;
}

.post-votes {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upvote-btn, .downvote-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.upvote-btn:hover {
  background: #ff4500;
  color: white;
  border-color: #ff4500;
}

.downvote-btn:hover {
  background: #9494ff;
  color: white;
  border-color: #9494ff;
}

.post-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0 0 8px 0;
}

.post-body {
  line-height: 1.6;
  color: #555;
  margin-bottom: 16px;
}

.post-actions {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.reply-btn, .share-btn, .report-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.reply-btn:hover {
  color: #8b4513;
}

.share-btn:hover {
  color: #4285f4;
}

.report-btn:hover {
  color: #ea4335;
}

.post-replies {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid #eee;
}

.reply-input {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.reply-input textarea {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: vertical;
  min-height: 60px;
}

.reply-input button {
  background: #8b4513;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.post-reply {
  background: #f9f9f9;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.reply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.reply-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reply-user .user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #666;
}

.reply-time {
  font-size: 11px;
  color: #999;
}

.reply-upvote {
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 12px;
}

.reply-content {
  color: #555;
  line-height: 1.4;
}

.chat-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 2px solid #8b4513;
  height: fit-content;
  max-height: 600px;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 16px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #8b4513;
  color: white;
  border-radius: 10px 10px 0 0;
}

.chat-header h3 {
  margin: 0;
  font-size: 16px;
}

.online-count {
  font-size: 12px;
  opacity: 0.9;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  max-height: 400px;
  min-height: 300px;
}

.chat-message {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.message-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #8b4513;
  flex-shrink: 0;
}

.message-content {
  flex: 1;
}

.message-header {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 2px;
}

.message-username {
  font-weight: bold;
  font-size: 12px;
  color: #8b4513;
}

.message-time {
  font-size: 10px;
  color: #999;
}

.message-text {
  font-size: 13px;
  line-height: 1.4;
  color: #333;
}

.chat-input {
  padding: 12px;
  border-top: 1px solid #ddd;
  display: flex;
  gap: 8px;
}

.chat-input input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.chat-input button {
  background: #8b4513;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.loading-posts {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px;
  gap: 16px;
  color: #8b4513;
}

.success-message {
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@media (max-width: 768px) {
  .forum-content {
    grid-template-columns: 1fr;
  }
  
  .intro-title {
    font-size: 32px;
  }
  
  .intro-logo img {
    width: 150px;
    height: 150px;
  }
  
  .chat-section {
    margin-top: 24px;
  }
  
  .post-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .post-votes {
    flex-direction: row;
  }
}