:root {
  --yt-bg: #ffffff;
  --yt-panel: #ffffff;
  --yt-hover: #f2f2f2;
  --yt-active: #e5e5e5;
  --yt-border: #e5e5e5;
  --yt-text-primary: #0f0f0f;
  --yt-text-secondary: #606060;
  --yt-red: #ff0000;
  --yt-blue: #065fd4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: var(--yt-bg);
  color: var(--yt-text-primary);
  height: 100vh;
  overflow: hidden;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.header {
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  min-height: 80px;
  position: sticky;
  top: 0;
  background-color: var(--yt-bg);
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.yt-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--yt-text-primary);
  letter-spacing: -0.5px;
}

.main-content {
  display: flex;
  flex-direction: row;
  flex: 1;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.video-player-section {
  flex: 1;
  height: 100%;
  background: #000;
  min-width: 0;
}

.player-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

.player-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  z-index: 10;
}


.playlist-sidebar {
  width: 400px;
  display: flex;
  flex-direction: column;
  background: var(--yt-panel);
  border-left: 1px solid var(--yt-border);
  height: 100%;
  flex-shrink: 0;
}

.playlist {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbar */
.playlist::-webkit-scrollbar {
  width: 8px;
}

.playlist::-webkit-scrollbar-track {
  background: transparent;
}

.playlist::-webkit-scrollbar-thumb {
  background: #717171;
  border-radius: 4px;
}

.playlist::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

.video-card {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  background: var(--yt-panel);
}

.video-card:hover {
  background: var(--yt-hover);
}

.video-card.active {
  background: var(--yt-active);
}

.thumbnail-wrapper {
  position: relative;
  width: 100px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.start-time-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 0.75rem;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 500;
}

.video-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 2px;
}

.video-title {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--yt-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-channel {
  font-size: 0.75rem;
  color: var(--yt-text-secondary);
  margin-top: 4px;
}

@media (max-width: 1024px) {
  .main-content {
    flex-direction: column;
  }
  .playlist-sidebar {
    width: 100%;
  }
}
