1120 lines
No EOL
21 KiB
CSS
1120 lines
No EOL
21 KiB
CSS
/* KV-Tube - YouTube Clone Design System */
|
|
|
|
/* ===== YouTube Dark Theme Colors ===== */
|
|
:root {
|
|
--yt-bg-primary: #0f0f0f;
|
|
--yt-bg-secondary: #272727;
|
|
--yt-bg-elevated: #212121;
|
|
--yt-bg-hover: #3f3f3f;
|
|
--yt-bg-active: #3ea6ff;
|
|
|
|
--yt-text-primary: #f1f1f1;
|
|
--yt-text-secondary: #aaaaaa;
|
|
--yt-text-disabled: #717171;
|
|
|
|
--yt-accent-red: #ff0000;
|
|
--yt-accent-blue: #3ea6ff;
|
|
|
|
--yt-border: rgba(255, 255, 255, 0.1);
|
|
--yt-divider: rgba(255, 255, 255, 0.2);
|
|
|
|
--yt-header-height: 56px;
|
|
--yt-sidebar-width: 240px;
|
|
--yt-sidebar-mini: 72px;
|
|
|
|
--yt-radius-sm: 4px;
|
|
--yt-radius-md: 8px;
|
|
--yt-radius-lg: 12px;
|
|
--yt-radius-xl: 16px;
|
|
--yt-radius-xl: 16px;
|
|
--yt-radius-pill: 9999px;
|
|
}
|
|
|
|
[data-theme="light"] {
|
|
--yt-bg-primary: #ffffff;
|
|
--yt-bg-secondary: #f2f2f2;
|
|
--yt-bg-elevated: #e5e5e5;
|
|
--yt-bg-hover: #e5e5e5;
|
|
|
|
--yt-text-primary: #0f0f0f;
|
|
--yt-text-secondary: #606060;
|
|
--yt-text-disabled: #909090;
|
|
|
|
--yt-border: rgba(0, 0, 0, 0.1);
|
|
--yt-divider: rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
/* ===== Reset & Base ===== */
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html {
|
|
font-size: 16px;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Roboto', 'Arial', sans-serif;
|
|
background-color: var(--yt-bg-primary);
|
|
color: var(--yt-text-primary);
|
|
line-height: 1.4;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
button {
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
border: none;
|
|
background: none;
|
|
}
|
|
|
|
/* Hide scrollbar globally but allow scroll */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--yt-bg-secondary);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--yt-bg-hover);
|
|
}
|
|
|
|
/* ===== App Layout ===== */
|
|
.app-wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* ===== Header (YouTube Style) ===== */
|
|
.yt-header {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: var(--yt-header-height);
|
|
background: var(--yt-bg-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 16px;
|
|
z-index: 1000;
|
|
border-bottom: 1px solid var(--yt-border);
|
|
}
|
|
|
|
.yt-header-start {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.yt-header-center {
|
|
flex: 1;
|
|
display: flex;
|
|
justify-content: center;
|
|
max-width: 728px;
|
|
margin: 0 40px;
|
|
}
|
|
|
|
.yt-header-end {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 200px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
/* Menu Button */
|
|
.yt-menu-btn {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--yt-text-primary);
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.yt-menu-btn:hover {
|
|
background: var(--yt-bg-hover);
|
|
}
|
|
|
|
/* Logo */
|
|
.yt-logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
color: var(--yt-text-primary);
|
|
}
|
|
|
|
.yt-logo-icon {
|
|
width: 90px;
|
|
height: 20px;
|
|
background: var(--yt-accent-red);
|
|
border-radius: var(--yt-radius-sm);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.5px;
|
|
}
|
|
|
|
/* Search Bar */
|
|
.yt-search-form {
|
|
display: flex;
|
|
flex: 1;
|
|
max-width: 600px;
|
|
}
|
|
|
|
.yt-search-input {
|
|
flex: 1;
|
|
height: 40px;
|
|
background: var(--yt-bg-primary);
|
|
border: 1px solid var(--yt-border);
|
|
border-right: none;
|
|
border-radius: 20px 0 0 20px;
|
|
padding: 0 16px;
|
|
font-size: 16px;
|
|
color: var(--yt-text-primary);
|
|
outline: none;
|
|
}
|
|
|
|
.yt-search-input:focus {
|
|
border-color: var(--yt-accent-blue);
|
|
}
|
|
|
|
.yt-search-input::placeholder {
|
|
color: var(--yt-text-disabled);
|
|
}
|
|
|
|
.yt-search-btn {
|
|
width: 64px;
|
|
height: 40px;
|
|
background: var(--yt-bg-secondary);
|
|
border: 1px solid var(--yt-border);
|
|
border-radius: 0 20px 20px 0;
|
|
color: var(--yt-text-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.yt-search-btn:hover {
|
|
background: var(--yt-bg-hover);
|
|
}
|
|
|
|
/* Header Icons */
|
|
.yt-icon-btn {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--yt-text-primary);
|
|
font-size: 20px;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.yt-icon-btn:hover {
|
|
background: var(--yt-bg-hover);
|
|
}
|
|
|
|
/* Avatar */
|
|
.yt-avatar {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
background: var(--yt-accent-blue);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.yt-signin-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
border: 1px solid var(--yt-border);
|
|
border-radius: var(--yt-radius-pill);
|
|
color: var(--yt-accent-blue);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.yt-signin-btn:hover {
|
|
background: rgba(62, 166, 255, 0.1);
|
|
}
|
|
|
|
/* ===== Sidebar (YouTube Style) ===== */
|
|
.yt-sidebar {
|
|
position: fixed;
|
|
top: var(--yt-header-height);
|
|
left: 0;
|
|
bottom: 0;
|
|
width: var(--yt-sidebar-width);
|
|
background: var(--yt-bg-primary);
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
padding: 12px 0;
|
|
z-index: 900;
|
|
transition: width 0.2s, transform 0.2s;
|
|
}
|
|
|
|
.yt-sidebar.collapsed {
|
|
width: var(--yt-sidebar-mini);
|
|
}
|
|
|
|
.yt-sidebar-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 24px;
|
|
padding: 10px 12px 10px 24px;
|
|
color: var(--yt-text-primary);
|
|
font-size: 14px;
|
|
border-radius: var(--yt-radius-lg);
|
|
margin: 0 12px;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.yt-sidebar-item:hover {
|
|
background: var(--yt-bg-hover);
|
|
}
|
|
|
|
.yt-sidebar-item.active {
|
|
background: var(--yt-bg-secondary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.yt-sidebar-item i {
|
|
font-size: 18px;
|
|
width: 22px;
|
|
text-align: center;
|
|
}
|
|
|
|
.yt-sidebar-item span {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.yt-sidebar.collapsed .yt-sidebar-item {
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
padding: 16px 0;
|
|
margin: 0;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.yt-sidebar.collapsed .yt-sidebar-item span {
|
|
font-size: 10px;
|
|
}
|
|
|
|
.yt-sidebar-divider {
|
|
height: 1px;
|
|
background: var(--yt-border);
|
|
margin: 12px 0;
|
|
}
|
|
|
|
.yt-sidebar-title {
|
|
padding: 8px 24px;
|
|
font-size: 14px;
|
|
color: var(--yt-text-secondary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* ===== Main Content ===== */
|
|
.yt-main {
|
|
margin-top: var(--yt-header-height);
|
|
margin-left: var(--yt-sidebar-width);
|
|
padding: 24px;
|
|
min-height: calc(100vh - var(--yt-header-height));
|
|
transition: margin-left 0.2s;
|
|
}
|
|
|
|
.yt-main.sidebar-collapsed {
|
|
margin-left: var(--yt-sidebar-mini);
|
|
}
|
|
|
|
/* ===== Category Pills ===== */
|
|
.yt-categories {
|
|
display: flex;
|
|
gap: 12px;
|
|
padding: 12px 0 24px;
|
|
overflow-x: auto;
|
|
scrollbar-width: none;
|
|
-ms-overflow-style: none;
|
|
}
|
|
|
|
.yt-categories::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.yt-category-pill {
|
|
padding: 8px 12px;
|
|
background: var(--yt-bg-secondary);
|
|
border-radius: var(--yt-radius-pill);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
color: var(--yt-text-primary);
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.yt-category-pill:hover {
|
|
background: var(--yt-bg-hover);
|
|
}
|
|
|
|
.yt-category-pill.active {
|
|
background: var(--yt-text-primary);
|
|
color: var(--yt-bg-primary);
|
|
}
|
|
|
|
/* ===== Video Grid ===== */
|
|
.yt-video-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
gap: 16px 16px;
|
|
}
|
|
|
|
/* ===== Video Card (YouTube Style) ===== */
|
|
.yt-video-card {
|
|
cursor: pointer;
|
|
border-radius: var(--yt-radius-lg);
|
|
overflow: hidden;
|
|
transition: transform 0.1s;
|
|
}
|
|
|
|
.yt-video-card:hover {
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
.yt-thumbnail-container {
|
|
position: relative;
|
|
width: 100%;
|
|
aspect-ratio: 16/9;
|
|
border-radius: var(--yt-radius-lg);
|
|
overflow: hidden;
|
|
background: var(--yt-bg-secondary);
|
|
}
|
|
|
|
.yt-thumbnail {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.yt-video-card:hover .yt-thumbnail {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.yt-duration {
|
|
position: absolute;
|
|
bottom: 4px;
|
|
right: 4px;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
color: white;
|
|
padding: 2px 4px;
|
|
border-radius: var(--yt-radius-sm);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.yt-video-details {
|
|
display: flex;
|
|
gap: 12px;
|
|
padding: 12px 0;
|
|
}
|
|
|
|
.yt-channel-avatar {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background: var(--yt-bg-secondary);
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 14px;
|
|
color: var(--yt-text-primary);
|
|
}
|
|
|
|
.yt-video-meta {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.yt-video-title {
|
|
font-size: 14px;
|
|
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;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.yt-channel-name {
|
|
font-size: 12px;
|
|
color: var(--yt-text-secondary);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.yt-channel-name:hover {
|
|
color: var(--yt-text-primary);
|
|
}
|
|
|
|
.yt-video-stats {
|
|
font-size: 12px;
|
|
color: var(--yt-text-secondary);
|
|
}
|
|
|
|
/* ===== Watch Page ===== */
|
|
.yt-watch-layout {
|
|
display: grid;
|
|
grid-template-columns: 1fr 400px;
|
|
gap: 24px;
|
|
max-width: 1800px;
|
|
}
|
|
|
|
.yt-player-section {
|
|
width: 100%;
|
|
}
|
|
|
|
.yt-player-container {
|
|
width: 100%;
|
|
aspect-ratio: 16/9;
|
|
background: #000;
|
|
border-radius: var(--yt-radius-lg);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.yt-video-info {
|
|
padding: 16px 0;
|
|
}
|
|
|
|
.yt-video-info h1 {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
line-height: 1.4;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.yt-video-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-top: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.yt-action-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 16px;
|
|
background: var(--yt-bg-secondary);
|
|
border-radius: var(--yt-radius-pill);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--yt-text-primary);
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.yt-action-btn:hover {
|
|
background: var(--yt-bg-hover);
|
|
}
|
|
|
|
.yt-channel-info {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px 0;
|
|
border-bottom: 1px solid var(--yt-border);
|
|
}
|
|
|
|
.yt-channel-details {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.yt-channel-avatar-lg {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background: var(--yt-bg-secondary);
|
|
}
|
|
|
|
.yt-subscribe-btn {
|
|
padding: 10px 16px;
|
|
background: var(--yt-text-primary);
|
|
color: var(--yt-bg-primary);
|
|
border-radius: var(--yt-radius-pill);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.yt-subscribe-btn:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.yt-description-box {
|
|
background: var(--yt-bg-secondary);
|
|
border-radius: var(--yt-radius-lg);
|
|
padding: 12px;
|
|
margin-top: 16px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.yt-description-box:hover {
|
|
background: var(--yt-bg-hover);
|
|
}
|
|
|
|
.yt-description-stats {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.yt-description-text {
|
|
font-size: 14px;
|
|
color: var(--yt-text-primary);
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 3;
|
|
line-clamp: 3;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Suggested Videos */
|
|
.yt-suggested {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.yt-suggested-card {
|
|
display: flex;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
border-radius: var(--yt-radius-md);
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.yt-suggested-card:hover {
|
|
background: var(--yt-bg-secondary);
|
|
}
|
|
|
|
.yt-suggested-thumb {
|
|
width: 168px;
|
|
aspect-ratio: 16/9;
|
|
border-radius: var(--yt-radius-md);
|
|
object-fit: cover;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.yt-suggested-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.yt-suggested-title {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
line-height: 1.3;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.yt-suggested-channel {
|
|
font-size: 12px;
|
|
color: var(--yt-text-secondary);
|
|
}
|
|
|
|
.yt-suggested-stats {
|
|
font-size: 12px;
|
|
color: var(--yt-text-secondary);
|
|
}
|
|
|
|
/* ===== Auth Pages ===== */
|
|
.yt-auth-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: calc(100vh - var(--yt-header-height) - 100px);
|
|
}
|
|
|
|
.yt-auth-card {
|
|
background: var(--yt-bg-secondary);
|
|
border-radius: var(--yt-radius-lg);
|
|
padding: 48px;
|
|
width: 100%;
|
|
max-width: 400px;
|
|
text-align: center;
|
|
}
|
|
|
|
.yt-auth-card h2 {
|
|
font-size: 24px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.yt-auth-card p {
|
|
color: var(--yt-text-secondary);
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.yt-form-group {
|
|
margin-bottom: 16px;
|
|
text-align: left;
|
|
}
|
|
|
|
.yt-form-group label {
|
|
display: block;
|
|
font-size: 14px;
|
|
margin-bottom: 8px;
|
|
color: var(--yt-text-secondary);
|
|
}
|
|
|
|
.yt-form-input {
|
|
width: 100%;
|
|
padding: 12px 16px;
|
|
background: var(--yt-bg-primary);
|
|
border: 1px solid var(--yt-border);
|
|
border-radius: var(--yt-radius-md);
|
|
font-size: 16px;
|
|
color: var(--yt-text-primary);
|
|
outline: none;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.yt-form-input:focus {
|
|
border-color: var(--yt-accent-blue);
|
|
}
|
|
|
|
.yt-btn-primary {
|
|
width: 100%;
|
|
padding: 12px 24px;
|
|
background: var(--yt-accent-blue);
|
|
color: var(--yt-bg-primary);
|
|
border-radius: var(--yt-radius-md);
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.yt-btn-primary:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
/* ===== Loader ===== */
|
|
/* ===== Loader (SOTA Quantum Style) ===== */
|
|
.yt-loader {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: 300px;
|
|
color: var(--yt-text-secondary);
|
|
background: transparent;
|
|
}
|
|
|
|
.yt-spinner {
|
|
position: relative;
|
|
width: 60px;
|
|
height: 60px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.yt-spinner-ring {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 50%;
|
|
border: 3px solid transparent;
|
|
border-top-color: var(--yt-accent-red);
|
|
animation: quantumSpin 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
|
|
}
|
|
|
|
.yt-spinner-ring:nth-child(1) {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-top-color: var(--yt-accent-red);
|
|
}
|
|
|
|
.yt-spinner-ring:nth-child(2) {
|
|
width: 40px;
|
|
height: 40px;
|
|
top: 10px;
|
|
left: 10px;
|
|
border-top-color: var(--yt-accent-blue);
|
|
animation-delay: 0.2s;
|
|
animation-direction: reverse;
|
|
}
|
|
|
|
.yt-spinner-ring:nth-child(3) {
|
|
width: 20px;
|
|
height: 20px;
|
|
top: 20px;
|
|
left: 20px;
|
|
border-top-color: #fff;
|
|
animation-delay: 0.4s;
|
|
}
|
|
|
|
.yt-spinner-glow {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
background: var(--yt-accent-red);
|
|
box-shadow: 0 0 20px 10px rgba(255, 0, 0, 0.3);
|
|
animation: pulse 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes quantumSpin {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
@keyframes pulse {
|
|
|
|
0%,
|
|
100% {
|
|
opacity: 0.5;
|
|
transform: translate(-50%, -50%) scale(1);
|
|
}
|
|
|
|
50% {
|
|
opacity: 1;
|
|
transform: translate(-50%, -50%) scale(2);
|
|
}
|
|
}
|
|
|
|
/* ===== Responsive ===== */
|
|
@media (max-width: 1200px) {
|
|
.yt-watch-layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.yt-suggested {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
}
|
|
|
|
.yt-suggested-card {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.yt-suggested-thumb {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.yt-sidebar {
|
|
transform: translateX(-100%);
|
|
}
|
|
|
|
.yt-sidebar.open {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.yt-main {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.yt-header-center {
|
|
display: none;
|
|
}
|
|
|
|
.yt-mobile-search {
|
|
display: flex;
|
|
}
|
|
|
|
.yt-signin-text {
|
|
display: none;
|
|
}
|
|
|
|
.yt-video-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 0;
|
|
}
|
|
|
|
.yt-video-card {
|
|
border-radius: 0;
|
|
padding: 12px;
|
|
}
|
|
|
|
.yt-thumbnail-container {
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.yt-main {
|
|
padding: 12px;
|
|
}
|
|
|
|
.yt-categories {
|
|
padding: 8px 0 16px;
|
|
gap: 8px;
|
|
}
|
|
|
|
.yt-category-pill {
|
|
padding: 6px 10px;
|
|
font-size: 13px;
|
|
}
|
|
}
|
|
|
|
/* Tablet */
|
|
@media (min-width: 769px) and (max-width: 1024px) {
|
|
.yt-video-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.yt-main {
|
|
padding: 16px;
|
|
}
|
|
}
|
|
|
|
/* Mobile Search Bar */
|
|
.yt-mobile-search {
|
|
display: none;
|
|
}
|
|
|
|
.yt-mobile-search-bar {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: var(--yt-header-height);
|
|
background: var(--yt-bg-primary);
|
|
display: none;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 0 12px;
|
|
z-index: 1100;
|
|
}
|
|
|
|
.yt-mobile-search-bar.active {
|
|
display: flex;
|
|
}
|
|
|
|
.yt-mobile-search-bar input {
|
|
flex: 1;
|
|
height: 40px;
|
|
background: var(--yt-bg-secondary);
|
|
border: none;
|
|
border-radius: 20px;
|
|
padding: 0 16px;
|
|
font-size: 16px;
|
|
color: var(--yt-text-primary);
|
|
outline: none;
|
|
}
|
|
|
|
.yt-back-btn {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--yt-text-primary);
|
|
}
|
|
|
|
/* Sidebar Overlay (Mobile) */
|
|
.yt-sidebar-overlay {
|
|
position: fixed;
|
|
top: var(--yt-header-height);
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
z-index: 899;
|
|
display: none;
|
|
}
|
|
|
|
.yt-sidebar-overlay.active {
|
|
display: block;
|
|
}
|
|
|
|
/* ===== Animations ===== */
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.yt-video-card {
|
|
animation: fadeIn 0.3s ease forwards;
|
|
}
|
|
|
|
/* Stagger animation for grid */
|
|
.yt-video-card:nth-child(1) {
|
|
animation-delay: 0.05s;
|
|
}
|
|
|
|
.yt-video-card:nth-child(2) {
|
|
animation-delay: 0.1s;
|
|
}
|
|
|
|
.yt-video-card:nth-child(3) {
|
|
animation-delay: 0.15s;
|
|
}
|
|
|
|
.yt-video-card:nth-child(4) {
|
|
animation-delay: 0.2s;
|
|
}
|
|
|
|
.yt-video-card:nth-child(5) {
|
|
animation-delay: 0.25s;
|
|
}
|
|
|
|
.yt-video-card:nth-child(6) {
|
|
animation-delay: 0.3s;
|
|
}
|
|
|
|
/* ===== Skeleton Loader (Shimmer) ===== */
|
|
.skeleton {
|
|
background: var(--yt-bg-secondary);
|
|
background: linear-gradient(90deg,
|
|
var(--yt-bg-secondary) 25%,
|
|
var(--yt-bg-hover) 50%,
|
|
var(--yt-bg-secondary) 75%);
|
|
background-size: 200% 100%;
|
|
animation: shimmer 1.5s infinite;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
@keyframes shimmer {
|
|
0% {
|
|
background-position: 200% 0;
|
|
}
|
|
|
|
100% {
|
|
background-position: -200% 0;
|
|
}
|
|
}
|
|
|
|
.skeleton-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.skeleton-thumb {
|
|
width: 100%;
|
|
aspect-ratio: 16/9;
|
|
border-radius: var(--yt-radius-lg);
|
|
}
|
|
|
|
.skeleton-details {
|
|
display: flex;
|
|
gap: 12px;
|
|
}
|
|
|
|
.skeleton-avatar {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.skeleton-text {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.skeleton-title {
|
|
height: 14px;
|
|
width: 90%;
|
|
}
|
|
|
|
.skeleton-meta {
|
|
height: 12px;
|
|
width: 60%;
|
|
}
|
|
|
|
/* Friendly Empty State */
|
|
.yt-empty-state {
|
|
grid-column: 1 / -1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 60px 20px;
|
|
text-align: center;
|
|
color: var(--yt-text-secondary);
|
|
}
|
|
|
|
.yt-empty-icon {
|
|
font-size: 48px;
|
|
margin-bottom: 24px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.yt-empty-title {
|
|
font-size: 18px;
|
|
font-weight: 500;
|
|
margin-bottom: 8px;
|
|
color: var(--yt-text-primary);
|
|
}
|
|
|
|
.yt-empty-desc {
|
|
font-size: 14px;
|
|
margin-bottom: 24px;
|
|
} |