/* YouTube Dark Mode Pixel-to-Pixel Replica Design System */
:root {
    --yt-spec-base-background: #0f0f0f;
    --yt-spec-static-brand-red: #ff0000;
    --yt-spec-text-primary: #f1f1f1;
    --yt-spec-text-secondary: #aaaaaa;
    --yt-spec-touch-response: rgba(255, 255, 255, 0.1);
    --yt-spec-badge-chip-background: rgba(255, 255, 255, 0.1);
    --yt-spec-button-chip-background-hover: rgba(255, 255, 255, 0.2);
    --yt-spec-menu-background: #282828;
    --yt-spec-sidebar-width: 240px;
}

body {
    background-color: var(--yt-spec-base-background) !important;
    color: var(--yt-spec-text-primary) !important;
    font-family: "Roboto", "Arial", sans-serif !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Header Navbar */
.yt-header {
    height: 56px;
    background-color: #0f0f0f;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.yt-logo-badge {
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.yt-logo-badge span {
    background: #ff0000;
    color: #fff;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 900;
    text-transform: uppercase;
}

/* Search Bar */
.yt-search-container {
    display: flex;
    align-items: center;
    max-width: 640px;
    width: 100%;
}

.yt-search-input-group {
    display: flex;
    width: 100%;
    border: 1px solid #303030;
    border-radius: 40px 0 0 40px;
    background: #121212;
    padding: 0 16px;
    height: 40px;
    align-items: center;
}

.yt-search-input-group input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    outline: none;
    font-size: 16px;
}

.yt-search-btn {
    border: 1px solid #303030;
    border-left: none;
    border-radius: 0 40px 40px 0;
    background: #222222;
    color: #f1f1f1;
    width: 64px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.yt-search-btn:hover {
    background: #272727;
}

.yt-mic-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #222222;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    color: #fff;
    cursor: pointer;
}

.yt-mic-btn:hover {
    background: #383838;
}

/* Category Filter Chip Bar */
.yt-chip-bar {
    position: fixed;
    top: 56px;
    left: var(--yt-spec-sidebar-width);
    right: 0;
    height: 56px;
    background: #0f0f0f;
    z-index: 900;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.yt-chip {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f1f1;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.yt-chip.active {
    background: #f1f1f1;
    color: #0f0f0f;
}

.yt-chip:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
}

/* Left Sidebar Drawer */
.yt-sidebar {
    width: var(--yt-spec-sidebar-width);
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    background: #0f0f0f;
    padding: 12px;
    overflow-y: auto;
    z-index: 950;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.yt-sidebar-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #f1f1f1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 2px;
}

.yt-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.yt-sidebar-item.active {
    background: rgba(255, 255, 255, 0.15);
    font-weight: 500;
}

.yt-sidebar-item i {
    font-size: 20px;
    width: 24px;
    text-center;
}

.yt-sidebar-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #f1f1f1;
    padding: 12px 12px 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.yt-unread-dot {
    width: 6px;
    height: 6px;
    background-color: #3ea6ff;
    border-radius: 50%;
    margin-left: auto;
}

/* Main Content Area */
.yt-main-viewport {
    margin-top: 112px;
    margin-left: var(--yt-spec-sidebar-width);
    padding: 24px;
    min-height: calc(100vh - 112px);
}

/* Video Grid Card 1:1 Replica */
.yt-video-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin-bottom: 16px;
}

.yt-thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

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

.yt-duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: "Roboto", sans-serif;
}

.yt-video-meta {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.yt-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.yt-video-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.yt-video-title {
    color: #f1f1f1;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    max-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 4px 0;
}

.yt-creator-name {
    color: #aaaaaa;
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.yt-creator-name:hover {
    color: #fff;
}

.yt-video-stats {
    color: #aaaaaa;
    font-size: 14px;
    margin: 0;
}

.yt-action-menu {
    color: #aaaaaa;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.yt-action-menu:hover {
    color: #fff;
}
