* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: Arial, sans-serif; background-color: #f5f5f5; color: #333; width: 400px; max-height: 600px; overflow-y: auto; } #app { padding: 16px; } header { margin-bottom: 16px; text-align: center; display: flex; align-items: center; justify-content: center; position: relative; } h1 { font-size: 20px; color: #333; } h2 { font-size: 16px; margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid #ddd; } .playlist-name-clickable { cursor: pointer; color: #4285f4; transition: color 0.2s ease; } .playlist-name-clickable:hover { color: #3367d6; text-decoration: underline; } .playlist { background: #fff; border-radius: 8px; padding: 12px; margin-bottom: 16px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .video-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #eee; } .video-item:last-child { border-bottom: none; } .video-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } a.video-title { text-decoration: none; color: #333; } .video-actions { display: flex; gap: 8px; } button { padding: 4px 8px; border: none; border-radius: 4px; cursor: pointer; font-size: 12px; } button:hover { opacity: 0.9; } .empty-playlist { padding: 8px 0; color: #888; font-style: italic; font-size: 14px; } .current-video { background-color: #e3f2fd; border-left: 3px solid #4285f4; padding-left: 8px; font-weight: bold; } .done-video { color: #999; opacity: 0.6; } .done-video .video-title { text-decoration: line-through; } /* Truncated videos indicator */ .truncated-videos { padding: 8px 0 12px 8px; margin-bottom: 12px; border-bottom: 1px solid #eee; cursor: pointer; color: #888; font-style: italic; font-size: 14px; transition: color 0.2s ease, background-color 0.2s ease; } .truncated-videos:hover { color: #4285f4; background-color: #f8f9fa; } /* More menu styles */ .more-menu-container { position: relative; } .more-btn { background-color: #666; color: white; font-size: 14px; padding: 4px 8px; border-radius: 4px; font-weight: bold; } .more-menu { position: absolute; right: 0; top: 100%; background: white; border: 1px solid #ddd; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); z-index: 1000; min-width: 100px; margin-top: 4px; } .menu-item { display: block; width: 100%; padding: 8px 12px; border: none; background: none; text-align: left; cursor: pointer; font-size: 12px; border-radius: 0; } .menu-item:hover { background-color: #f5f5f5; } .remove-item { color: #f44336; } .remove-item:hover { background-color: #ffeaea; } /* Back button styles */ .back-btn { background-color: #4285f4; color: white; padding: 8px 12px; border-radius: 4px; font-size: 14px; margin-bottom: 8px; } .back-btn:hover { background-color: #3367d6; } /* Arrow back button styles */ .back-btn-arrow { position: absolute; left: 0; background: none; border: none; font-size: 20px; color: #4285f4; cursor: pointer; padding: 8px 12px; border-radius: 50%; transition: background-color 0.2s ease, color 0.2s ease; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; } .back-btn-arrow:hover { background-color: #e8f0fe; color: #3367d6; } /* History view styles */ .history-container { background: #fff; border-radius: 8px; padding: 12px; margin-bottom: 16px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); min-height: 200px; } .history-list { display: flex; flex-direction: column; gap: 16px; } .history-item { border-bottom: 1px solid #eee; padding-bottom: 12px; } .history-item:last-child { border-bottom: none; padding-bottom: 0; } .history-video-info { margin-bottom: 8px; } .history-video-title { display: block; font-weight: bold; color: #333; text-decoration: none; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .history-video-title:hover { color: #4285f4; } .history-video-id { font-size: 12px; color: #4285f4; font-family: monospace; text-decoration: none; cursor: pointer; transition: color 0.2s ease; } .history-video-id:hover { color: #3367d6; text-decoration: underline; } .history-tags { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; } .tag-chip { font-size: 10px; padding: 2px 8px; border: 1px solid #ddd; border-radius: 12px; background-color: #f8f9fa; color: #666; cursor: pointer; transition: all 0.2s ease; } .tag-chip:hover { background-color: #e8f0fe; border-color: #4285f4; color: #4285f4; } .tag-chip.active { background-color: #4285f4; border-color: #4285f4; color: white; } .tag-chip.active:hover { background-color: #3367d6; border-color: #3367d6; } .history-events { display: flex; flex-direction: column; gap: 4px; margin-left: 12px; } .history-event { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #555; } .event-action { font-weight: bold; min-width: 60px; } .event-position { color: #666; font-family: monospace; min-width: 70px; } .event-timestamp { color: #888; font-size: 11px; margin-left: auto; } .empty-history { text-align: center; padding: 40px 0; color: #888; font-style: italic; } /* History button styles */ .history-btn { background-color: #34a853; color: white; padding: 8px 12px; border-radius: 4px; font-size: 14px; } .history-btn:hover { background-color: #2d7d3a; } /* Playlist view styles */ .playlist-view-container { background: #fff; border-radius: 8px; padding: 12px; margin-bottom: 16px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); min-height: 200px; } .playlist-full-view { display: flex; flex-direction: column; gap: 0; } .playlist-full-view .video-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #eee; } .playlist-full-view .video-item:last-child { border-bottom: none; }