diff --git a/src/youtube-overrides.css b/src/youtube-overrides.css index 98c47ae..322d2e3 100644 --- a/src/youtube-overrides.css +++ b/src/youtube-overrides.css @@ -1,38 +1,38 @@ /* Author: fruit.com.cn */ :root { - --bg: #fff; - --surface: #fff; - --line: #e5e5e5; - --text: #0f0f0f; - --muted: #606060; - --accent: #ff0033; + --bg: #0f0f0f; + --surface: #181818; + --line: #303030; + --text: #f1f1f1; + --muted: #aaa; + --accent: #ff4b3e; --sidebar: 240px; } body { background: var(--bg); color: var(--text); font-family: Arial, Helvetica, sans-serif; } -.topbar { height: 56px; gap: 16px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: none; } +.topbar { height: 56px; gap: 16px; padding: 0 20px; background: #0f0f0ff2; border-bottom: 1px solid #222; box-shadow: none; } .topbar-menu { color: var(--text); } -.topbar-menu:hover, .voice-search:hover, .notification-button:hover { background: #f2f2f2; } +.topbar-menu:hover, .voice-search:hover, .notification-button:hover { background: #272727; } .brand { min-width: 138px; height: 40px; } .brand img { width: 104px; height: 38px; object-fit: contain; } .search-form { height: 40px; max-width: 640px; flex: 1; margin: 0 0 0 clamp(18px, 7vw, 110px); border-radius: 22px; } -.search-form input { height: 40px; border-color: #c6c6c6; background: #fff; color: var(--text); } -.search-form button { height: 40px; background: #f8f8f8; color: var(--text); border-color: #c6c6c6; } +.search-form input { height: 40px; border-color: #3b3b3b; background: #121212; color: var(--text); } +.search-form button { height: 40px; background: #282828; color: var(--text); border-color: #3b3b3b; } .voice-search { flex: none; width: 40px; height: 40px; border-radius: 50%; color: var(--text); } .top-actions { gap: 14px; margin-left: auto; color: var(--text); } -.create-button { display: flex; align-items: center; gap: 6px; border: 0; border-radius: 22px; padding: 9px 14px; background: #f2f2f2; color: var(--text); font-weight: 600; cursor: pointer; } -.create-button:hover { background: #e5e5e5; } +.create-button { display: flex; align-items: center; gap: 6px; border: 0; border-radius: 22px; padding: 9px 14px; background: #272727; color: var(--text); font-weight: 600; cursor: pointer; } +.create-button:hover { background: #343434; } .notification-button { width: 40px; height: 40px; border-radius: 50%; } -.language-trigger { border-color: #d6d6d6; background: #fff; color: var(--text); } +.language-trigger { border-color: #363636; background: #1d1d1d; color: #ddd; } .profile-chip { background: #065fd4; color: #fff; } -.sidebar { top: 56px; width: var(--sidebar); padding: 12px; background: #fff; border: 0; box-shadow: none; color: var(--text); } +.sidebar { top: 56px; width: var(--sidebar); padding: 12px; background: var(--bg); border: 0; box-shadow: none; color: var(--text); } .sidebar.closed { width: 72px; padding: 12px 8px; } -.sidebar nav a, .genre-link { min-height: 40px; padding: 9px 12px; border-radius: 10px; color: var(--text); gap: 22px; } -.sidebar nav a:hover, .genre-link:hover, .sidebar nav a.active { background: #f2f2f2; color: var(--text); } +.sidebar nav a, .genre-link { min-height: 40px; padding: 9px 12px; border-radius: 10px; color: #ccc; gap: 22px; } +.sidebar nav a:hover, .genre-link:hover, .sidebar nav a.active { background: #272727; color: #fff; } .sidebar-group { display: grid; gap: 2px; } .sidebar-group-title { display: flex; align-items: center; gap: 7px; padding: 12px 12px 6px; font-size: 16px; font-weight: 700; } -.sidebar-group-title svg { color: var(--muted); } +.sidebar-group-title svg { color: #999; } .sidebar small { display: none; } .sidebar.closed .sidebar-group-title, .sidebar.closed .sidebar-label { display: none; } .sidebar.closed nav a, .sidebar.closed .genre-link { justify-content: center; gap: 0; } @@ -43,34 +43,34 @@ body { background: var(--bg); color: var(--text); font-family: Arial, Helvetica, .content-wide { padding-left: 96px; } .youtube-home-header { display: none; } .youtube-home-feed, .youtube-shorts-shelf { margin-bottom: 40px; } -.youtube-category-bar { position: sticky; top: 56px; z-index: 2; display: flex; gap: 12px; overflow-x: auto; padding: 12px 0; background: #fff; scrollbar-width: none; } +.youtube-category-bar { position: sticky; top: 56px; z-index: 2; display: flex; gap: 12px; overflow-x: auto; padding: 12px 0; background: var(--bg); scrollbar-width: none; } .youtube-category-bar::-webkit-scrollbar { display: none; } -.youtube-category-chip { flex: none; border: 0; border-radius: 8px; padding: 9px 14px; background: #f2f2f2; color: var(--text); white-space: nowrap; cursor: pointer; font-size: 14px; } -.youtube-category-chip:hover { background: #e5e5e5; } -.youtube-category-chip.active { background: var(--text); color: #fff; } +.youtube-category-chip { flex: none; border: 0; border-radius: 8px; padding: 9px 14px; background: #2b2b2b; color: #fff; white-space: nowrap; cursor: pointer; font-size: 14px; } +.youtube-category-chip:hover { background: #343434; } +.youtube-category-chip.active { background: #fff; color: #111; } .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 16px; } .media-card { min-width: 0; } -.media-thumb { border-radius: 10px; background: #f2f2f2; } +.media-thumb { border-radius: 10px; background: #222; } .media-thumb img { display: block; } .media-meta { align-items: flex-start; gap: 12px; padding-top: 12px; } -.channel-avatar { width: 36px; height: 36px; background: #e5e5e5; color: var(--text); } +.channel-avatar { width: 36px; height: 36px; background: #734c67; color: #fff; } .media-copy { min-width: 0; flex: 1; } -.media-title { display: -webkit-box; overflow: hidden; color: var(--text); font-size: 16px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; } -.media-meta small { color: var(--muted); font-size: 13px; line-height: 1.5; } -.media-more { flex: none; border: 0; background: transparent; color: var(--text); padding: 4px; cursor: pointer; } +.media-title { display: -webkit-box; overflow: hidden; color: #fff; font-size: 16px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; } +.media-meta small { color: #999; font-size: 13px; line-height: 1.5; } +.media-more { flex: none; border: 0; background: transparent; color: #fff; padding: 4px; cursor: pointer; } .youtube-shorts-shelf { padding: 20px 0 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } .youtube-shelf-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; } -.youtube-shelf-heading h2 { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--text); font-size: 24px; } -.youtube-shelf-heading button { border: 0; background: transparent; color: #065fd4; font-weight: 600; cursor: pointer; } +.youtube-shelf-heading h2 { display: flex; align-items: center; gap: 9px; margin: 0; color: #fff; font-size: 24px; } +.youtube-shelf-heading button { border: 0; background: transparent; color: #ff8a82; font-weight: 600; cursor: pointer; } .shorts-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 13px; } .shorts-row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } .shorts-row .media-thumb { aspect-ratio: 9 / 16; border-radius: 10px; } .shorts-row .media-meta { display: none; } .short-media-title { display: -webkit-box; overflow: hidden; margin-top: 9px; color: var(--text); font-size: 14px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; } -.language-menu { background: #fff; border-color: var(--line); box-shadow: 0 8px 24px #0002; } -.language-menu button { color: var(--text); } -.language-menu button:hover, .language-menu button.selected { background: #f2f2f2; color: var(--text); } +.language-menu { background: #222; border-color: #3b3b3b; box-shadow: 0 18px 45px #0009; } +.language-menu button { color: #ddd; } +.language-menu button:hover, .language-menu button.selected { background: #343434; color: #fff; } @media (min-width: 1500px) { .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } } @media (max-width: 1100px) and (min-width: 761px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shorts-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } } @@ -98,9 +98,9 @@ body { background: var(--bg); color: var(--text); font-family: Arial, Helvetica, .shorts-row .media-card { flex: 0 0 150px; } .shorts-row .media-thumb { aspect-ratio: 9 / 16; } .youtube-home-feed-secondary { margin-top: 0; } - .bottom-nav { height: 64px; background: #fff; border-top: 1px solid var(--line); } - .bottom-nav a { color: var(--muted); } - .bottom-nav a.active { color: var(--text); } + .bottom-nav { height: 64px; background: #151515; border-top: 1px solid #292929; } + .bottom-nav a { color: #aaa; } + .bottom-nav a.active { color: #fff; } .sidebar { display: none; top: 56px; bottom: 64px; width: 246px; padding: 16px 12px; box-shadow: 16px 0 30px #0008; } .sidebar.open { display: block; } .sidebar.closed { display: none; }