:root {
  --wf-bg: #0f0f0f;
  --wf-bg-secondary: #1f1f1f;
  --wf-text: #ffffff;
  --wf-text-secondary: #aaaaaa;
  --wf-accent: #cc0000;
  --wf-border: #333333;
  --wf-radius: 12px;
  --wf-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--wf-font);
  background-color: var(--wf-bg);
  color: var(--wf-text);
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background-color: var(--wf-bg-secondary);
  border-bottom: 1px solid var(--wf-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--wf-text);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--wf-accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-bar {
  display: flex;
  max-width: 600px;
  width: 100%;
  margin: 0 16px;
}

.search-input {
  flex: 1;
  background: #121212;
  border: 1px solid var(--wf-border);
  border-radius: 20px 0 0 20px;
  padding: 10px 16px;
  color: var(--wf-text);
  outline: none;
}

.search-btn {
  background: var(--wf-border);
  border: 1px solid var(--wf-border);
  border-left: none;
  border-radius: 0 20px 20px 0;
  padding: 0 20px;
  cursor: pointer;
  color: var(--wf-text-secondary);
}

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

.avatar {
  width: 32px;
  height: 32px;
  background-color: var(--wf-accent);
  border-radius: 50%;
}

/* Layout */
.main-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 24px;
  padding: 24px;
  max-width: 1600px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .main-container {
    grid-template-columns: 1fr;
  }
}

/* Video Player */
.video-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-player-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: black;
  border-radius: var(--wf-radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 30%);
}

.play-button {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.play-button:hover {
  transform: scale(1.1);
  background: var(--wf-accent);
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 18px solid white;
  margin-left: 4px;
}

.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  position: relative;
}

.progress-fill {
  width: 35%;
  height: 100%;
  background: var(--wf-accent);
  border-radius: 2px;
}

.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}

/* Video Info */
.video-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--wf-border);
  padding-bottom: 16px;
}

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

.channel-avatar {
  width: 40px;
  height: 40px;
  background-color: #333;
  border-radius: 50%;
}

.channel-text h3 {
  margin: 0;
  font-size: 16px;
}

.channel-text p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--wf-text-secondary);
}

.subscribe-btn {
  background-color: var(--wf-text);
  color: var(--wf-bg);
  border: none;
  padding: 10px 16px;
  border-radius: 18px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 24px;
}

.video-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  background: var(--wf-bg-secondary);
  border: none;
  color: var(--wf-text);
  padding: 8px 16px;
  border-radius: 18px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-btn:hover {
  background: #333;
}

/* Comments */
.comments-section {
  margin-top: 24px;
}

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

.comment-input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--wf-border);
  padding: 8px 0;
  color: var(--wf-text);
  outline: none;
}

.comment-input:focus {
  border-bottom-color: var(--wf-text);
}

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

.comment-avatar {
  width: 40px;
  height: 40px;
  background-color: var(--wf-bg-secondary);
  border-radius: 50%;
  flex-shrink: 0;
}

.comment-body h4 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
}

.comment-date {
  font-weight: 400;
  color: var(--wf-text-secondary);
  margin-left: 4px;
}

.comment-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-card-sm {
  display: flex;
  gap: 8px;
  cursor: pointer;
}

.video-card-sm:hover .thumb-sm {
  transform: scale(1.02);
}

.thumb-sm-container {
  width: 168px;
  height: 94px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.thumb-sm {
  width: 100%;
  height: 100%;
  background-color: var(--wf-bg-secondary);
  transition: transform 0.2s;
}

.duration-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,0.8);
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.details-sm {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.title-sm {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2;
}

.meta-sm {
  font-size: 12px;
  color: var(--wf-text-secondary);
  margin: 0;
}

/* Utilities */
.btn {
  font-family: inherit;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #222, #333);
}

.download-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #4A90E2;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  z-index: 10;
  border: 1px solid rgba(255,255,255,0.2);
}

.download-badge span {
  font-family: sans-serif;
}
