body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    height: 56px;
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    overflow: hidden;
}
.header-left, .header-center, .header-right {
    display: flex;
    align-items: center;
    height: 100%;
    overflow: hidden;
}
.header-left, .header-right {
    flex-shrink: 0;
}

.header-center {
    flex-grow: 1;
    justify-content: center;
}

.menu-button, .create-button, .notifications-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
}
.menu-button:hover, .create-button:hover, .notifications-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}
.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-left: 8px;
}

.main-container {
    display: flex;
    margin-top: 56px; /* Space for fixed header */
}

.main-content-wrapper {
    flex-grow: 1;
    padding: 0 10px;
}

.content-container {
    max-width: 1284px;
    width: 100%;
    padding-right: calc(50% - 642px);
    padding-left: calc(50% - 642px);
}

.content-container.sidebar-open {
    padding-left: calc(50% - 522px);
    padding-right: calc(50% - 522px);
}

/* Channel section */
.channel-section {
    width: 100%;
}

.channel-banner {
    width: 100%;
    position: relative;
    padding-top: 25%;
}

.channel-banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.sidebar {
    position: fixed;
    left: -240px;
    top: 56px;
    bottom: 0;
    width: 240px;
    background-color: white;
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 999;
}
.sidebar.open {
    left: 0;
}
.sidebar-item {
    display: flex;
    align-items: center;
    padding: 10px 24px;
    cursor: pointer;
}
.sidebar-item:hover {
    background-color: #f2f2f2;
}
.sidebar-item svg {
    margin-right: 24px;
}
.content {
    margin-top: 56px;
    padding: 8px 24px 24px 24px;
    transition: margin-left 0.3s ease;
    background-color: white;
}
.content.sidebar-open {
    margin-left: 240px;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}
.video-item {
    cursor: pointer;
}
.thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background-color: #ddd;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}
.thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.6s ease;
}

.thumbnail .overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.thumbnail .overlay svg {
    display: none;
}

.thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.video-item .thumbnail::after,
.carousel-video-item .thumbnail::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 2;
}

.thumbnail .overlay .video-count {
    font-size: 12px;
    padding: 2px 4px;
}

.video-item:hover .thumbnail::before,
.video-item:hover .thumbnail::after,
.carousel-video-item:hover .thumbnail::before,
.carousel-video-item:hover .thumbnail::after {
    opacity: 1;
}

/* Ensure video length stays visible */
.thumbnail .overlay {
    z-index: 3;
}

.video-item .video-info {
    display: flex;
}

.video-info {
    display: flex;
    padding-top: 12px;
}
.channel-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.video-details {
    flex-grow: 1;
    min-width: 0; /* Allows text to wrap properly */
}

.video-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    max-height: 40px; /* 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0 0 4px 0;
}

p.channel-name, .video-stats, .watched-date {
    font-size: 12px;
    color: #606060;
    margin: 0;
    line-height: 18px;
}

.more-options {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.more-options svg {
    fill: #606060;
}

.video-item:hover .more-options {
    opacity: 1;
}

.video-channel {
    font-size: 14px;
    color: #606060;
}
.menu-button svg, .create-button svg, .notifications-button svg {
    width: 24px;
    height: 24px;
}
.overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    color: white;
    border-radius: 2px;
    font-size: 12px;

}
.overlay svg {
    fill: white;
}
.video-length {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 3px 4px;
    border-radius: 4px;
    font-size: 12px;
}
.youtube-logo-container {
    padding: 18px 14px 18px 16px;
    height: 20px;
}
.youtube-logo-container svg {
    display: block;
    height: 100%;
}
.youtube-logo-container svg svg {
    width: 100%;
    height: 100%;
}
.youtube-logo {
    height: 20px;
}

.channel-search-input {
    padding: 0 0 0 8px;
    border: none;
    outline: none;
    background: none;

}

.search-error {
    margin: 0;
    text-align: center;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 40px;
    margin: 0 40px;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}
.search-bar input {
    border: none;
    background: none;
    padding: 8px 16px;
    flex-grow: 1;
    font-size: 16px;
    outline: none; /* Added this line */
}
.search-bar button {
    background-color: #f8f8f8;
    border: none;
    border-left: 1px solid #ccc;
    cursor: pointer;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-bar button svg {
    width: 24px;
    height: 24px;
}
.search-bar:focus-within {
    border-color: #1c62b9;
    box-shadow: 0 0 0 1px #1c62b9;
}
.search-bar button:hover {
    background-color: #f0f0f0;
}


@media (max-width: 900px) and (min-width: 300px) {
    .header {
        padding: 0 1.77778vw; /* Scales from 16px to 5.3333px */
    }

    .youtube-logo-container {
        padding: 2vw 14px 2vw 16px;
        display: flex;
        align-items: center;
    }

    .search-bar {
        margin: 0 1.77778vw; /* Reduce margin as screen size decreases */
    }

    .search-bar input {
        padding: 0.88889vw 1.77778vw; /* Scales from 8px 16px to 2.6667px 5.3333px */
    }

    .search-bar button {
        padding: 0.88889vw 0.66667vw; /* Scales from 8px 24px to 2.6667px 8px */
    }

}

/* Static sizes for viewport width <= 300px */
@media (max-width: 300px) {
    .header {
        padding: 0 5.3333px;
    }

    .search-bar {
        margin: 0 4px;
    }

    .search-bar input {
        font-size: 5.3333px;
        padding: 2.6667px 5.3333px;
    }

    .search-bar button {
        padding: 2.6667px 8px;
        min-width: 21.3333px;
    }
}

.channel-info {
    display: flex;
    align-items: flex-start;
    padding: 16px 24px;
    position: relative;
    align-items: center;
}

.channel-profile-pic {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    flex-shrink: 0;
}

.channel-details {
    margin-left: 16px;
    flex-grow: 1;
}

h1.channel-name {
    font-size: 36px;
    margin-bottom: 12px;
    margin-top: 0;
}

.channel-meta {
    display: flex;
    align-items: center;
    margin-top: 4px;
    font-size: 14px;
    color: #606060;
}

.channel-meta .separator {
    margin: 0 8px;
}

.channel-description {
    margin-top: 12px;
    font-size: 14px;
    color: #606060;
}

.channel-description .more-button {
    background: none;
    border: none;
    color: #065fd4;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

.subscribe-btn {
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    margin-top: 12PX;
    font-weight: 500;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: opacity 0.2s;
}

.subscribe-btn.unsubscribed {
    background-color: black;
    color: white;
}

.subscribe-btn.subscribed {
    color: black;
    padding: 7px 16px;
}

.subscribe-btn:hover {
    opacity: 0.9;
}

.subscribe-btn:active {
    opacity: 0.8;
}

.subscribe-btn svg {
    width: 20px;
    height: 20px;
    display: none;
}

.subscribe-btn.subscribed svg {
    display: inline;
}

.subscribe-dropdown {
    position: absolute;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.1);
    display: none;
}

.subscribe-dropdown a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: black;
    white-space: nowrap;
}
.unsubscribe-option {
    border-top-right-radius: 8px;
    border-top-left-radius: 8px;
}
.real-subscribe-option {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.subscribe-dropdown a:hover {
    background-color: #f2f2f2;
}

.hidden {
    display: none;
}

.channel-tabs {
    display: flex;
    align-items: center;
    margin-top: 16px;
    padding: 0 24px;
    border-bottom: 1px solid #e0e0e0;
}

.tab {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #606060;
    display: flex;
}

.tab svg {
    display: inherit;
}

.tab.active {
    color: #000;
    border-bottom: 2px solid #000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Adjust main content when channel header is present */
.content {
    margin-top: 0;
}

/* Sorting Buttons Styles */

.sorting-buttons {
    display: flex;
    margin: 8px 0 16px 0;
}

.sort-button {
    background-color: #f1f1f1;
    border: none;
    padding: 8px 16px;
    margin-right: 8px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sort-button.active {
    background-color: #030303; /* Black background when active */
    color: white;
}

.sort-button.active:hover {
    background-color: #202020; /* Slightly lighter black on hover when active */
}

.sort-button:hover {
    background-color: #e1e1e1;
}

/* Search Results Styles */

.search-results {
    display: flex;
    flex-direction: column;
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
}

.search-result-item:hover {
    background-color: #f9f9f9;
}

.search-result-thumbnail {
    width: 246px;
    margin-right: 16px;
    flex-shrink: 0;
    position: relative;
}

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

.search-result-details {
    flex-grow: 1;
    overflow: hidden;
}


.title-and-options {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.search-result-title {
    font-size: 18px;
    font-weight: bold;
    color: #0f0f0f;
    margin: 0;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-title .highlight {
    background-color: yellow;
}

.search-result-meta {
    font-size: 12px;
    color: #606060;
    margin: 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-description {
    font-size: 12px;
    color: #606060;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
}

.highlight {
    background-color: yellow;
}

.carousel-container {
    position: relative;
    margin: 20px 0;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    padding: 0;
    list-style: none;
    margin: 0;
}

.carousel-video-item {
    flex: 0 0 auto;
    width: 269px;
    padding-right: 4px;
}

.carousel-video-item.large {
    width: 354px;
}

.carousel-video-item.small {
    width: 210px;
}

.carousel-button {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 4px rgba(0,0,0,.3), 0 0 4px rgba(0,0,0,.2);
    color: #030303;
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.carousel-button.prev {
    left: -16px;
}

.carousel-button.next {
    right: -16px;
}

.folder-background {
    position: absolute;
    top: -4px;
    width: calc(100% - 16px);
    height: 100%; left: 8px;
    right: 8px;
    border-radius: 8px;
    margin-top: -2px;
    border-top: 1px solid #fff;
}

.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.playlists-title {
    font-size: 16px;
}

.playlist-item {
    cursor: pointer;
}

.thumbnail-container {
    position: relative;
}

.thumbnail img {
    width: 100%;
    display: block;
}

.playlist-info {
    margin-top: 12px;
}

.playlist-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    max-height: 40px; /* 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
}

.full-playlist {
    font-size: 12.5px;
    margin: 6px 0;
    color: #606060;
}

.full-playlist:hover {
    color: #f0f0f0;
}


.view-full-playlist {
    color: #065fd4;
    text-decoration: none;
}

.playlists-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

/* Style the sort button */
.playlists-sort {
    position: relative;
}

.playlist-item .thumbnail {
    border-top: 1px solid #fff;
}


.playlist-item .thumbnail::after {
    content: 'Play All';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-60%, -50%);
    color: white;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 2;
    display: flex;
    align-items: center;
}

.playlist-item .thumbnail::after::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    margin-left: 8px;
}

.playlist-item.hover .thumbnail::before,
.playlist-item.hover .thumbnail::after {
    opacity: 1;
}

.playlist-item.hover .thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.playlist-item.hover .thumbnail::after {
    content: '▶ PLAY ALL';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 18px;
}

.playlists-sort .sort-button {
    background-color: white;
    color: black;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.playlists-sort .sort-button:hover {
    background-color: white; /* No hover effect */
}

.playlists-sort .sort-button:active {
    background-color: #f0f0f0; /* Active effect (background becomes grey) */
}

/* Rotate arrow when dropdown is open */
.playlists-sort .sort-button svg {
    transition: transform 0.3s;
}

.playlists-sort .sort-button.open svg {
    transform: rotate(180deg);
}

/* Add these styles to your CSS */
/* Dropdown styles */
.sort-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.1);
    display: none;
    z-index: 10;
}

.sort-dropdown .dropdown-option {
    padding: 12px 16px;
    cursor: pointer;
    color: black;
    white-space: nowrap;
}

.sort-dropdown .dropdown-option:hover {
    background-color: #f2f2f2;
}

/* Round corners of first and last options */
.sort-dropdown .dropdown-option:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.sort-dropdown .dropdown-option:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

@media (max-width: 1523px) {
    .content-container.sidebar-open::before {
        content: '';
        position: fixed;
        top: 56px; /* Height of the header */
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
}


.more-options-popup {
    position: absolute;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1000;
    width: 200px;
}

.more-options-popup .option {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #030303;
    display: flex;
    gap: 6px;
    align-items: center;
}

.more-options-popup .option:hover {
    background-color: #f2f2f2;
}

/* Styles for the download popup */
.download-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-popup {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    padding: 10px 10px 10px 24px;
    box-sizing: border-box;
    position: relative;
}

.popup-header {
    text-align: center;
}

.popup-logo {
    width: 80px;
    height: auto;
}

.popup-title {
    font-size: 20px;
    color: #030303;
}

.popup-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
    color: #030303;
}

.quality-options {
    margin-bottom: 24px;
}

.quality-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.quality-option input[type="radio"] {
    margin: 0 12px 2px 0;
}

.quality-option span {
    font-size: 14px;
    color: #606060;
}

.popup-terms {
    font-size: 14px;
    color: #606060;
    margin-bottom: 24px;
}

.popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.popup-button {
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
}

.popup-button.not-now-button {
    background-color: white;
    color: #065fd4;
}

.popup-button.not-now-button:hover {
    background-color: #def1ff;
}

.popup-button.not-now-button:active {
    background-color: #aabdcb;
}

.premium-button {
    background-color: #065fd4;
    color: white;
}

.popup-button.premium-button:hover {
    background-color: #054a9f;
}

.popup-button.premium-button:active {
    background-color: #054a9fce;
}

.download-popup,
.more-options-popup {
    z-index: 1000;
}



.about-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-popup {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    padding: 24px;
    box-sizing: border-box;
    position: relative;
}

.popup-content {
    max-height: 80vh;
    overflow-y: auto;
}


.channel-description-text {
    font-size: 14px;
    color: #030303;
    margin-bottom: 40px;
}

.channel-details-list {
    margin-top: 16px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.detail-item svg {
    margin-right: 12px;
    flex-shrink: 0;
}

.detail-item a, .detail-item span {
    font-size: 14px;
    color: #606060;
}

.popup-content .popup-actions {
    justify-content: flex-start;
    margin-top: 24px;
}

.popup-content .popup-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f1f1f1;
    color: #030303;
}

.popup-button:hover {
    background-color: #e1e1e1;
}

.popup-button svg {
    width: 20px;
    height: 20px;
}

.youtube-logo-container svg, .profile-pic {
    cursor: pointer;
}

.sidebar-item .count {
    font-size: 12px;
    color: #aaa;
    margin-left: 4px;
}
.empty-state {
    text-align: center;
    padding: 40px 0;
    color: #606060;
}
.empty-state p {
    font-size: 16px;
}

.close-about {
    cursor: pointer;
}


/* Save to Playlist Popup Styles */
.save-playlist-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-playlist-popup {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    position: relative;
}

.save-playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.save-playlist-title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.close-save-playlist {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-save-playlist:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.save-playlist-content {
    max-height: 320px;
    overflow-y: auto;
    padding: 8px 0;
}

.playlists-checkbox-container {
    padding: 0 8px;
}

.playlist-checkbox-item {
    padding: 0 16px;
    cursor: pointer;
}

.playlist-checkbox-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.playlist-checkbox-label {
    display: flex;
    align-items: center;
    padding: 14px 0;
    cursor: pointer;
    font-size: 14px;
}

.playlist-checkbox {
    margin-right: 16px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.create-playlist-option {
    margin-top: 8px;
    padding: 0 24px 8px;
    border-top: 1px solid #e5e5e5;
}

.create-playlist-button {
    display: flex;
    align-items: center;
    gap: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px 0;
    width: 100%;
    text-align: left;
    font-size: 14px;
    color: #030303;
}

.create-playlist-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.save-playlist-actions {
    display: flex;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
}

.save-playlist-done-button {
    background: none;
    border: none;
    color: #065fd4;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 2px;
    cursor: pointer;
}

.save-playlist-done-button:hover {
    background-color: rgba(6, 95, 212, 0.1);
}

/* Create New Playlist Dialog Styles */
.create-playlist-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    z-index: 1001;
}

.create-playlist-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.create-playlist-dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.close-dialog-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-dialog-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.create-playlist-dialog-content {
    padding: 24px;
}

.playlist-name-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.playlist-name-input:focus {
    border-color: #065fd4;
    outline: none;
}

.privacy-selector {
    margin-bottom: 16px;
}

.privacy-dropdown {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

.create-playlist-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
}

.cancel-create-button, .confirm-create-button {
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.cancel-create-button {
    background-color: transparent;
    color: #606060;
}

.cancel-create-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.confirm-create-button {
    background-color: #065fd4;
    color: white;
}

.confirm-create-button:hover:not([disabled]) {
    background-color: #0552bc;
}

.confirm-create-button[disabled] {
    background-color: rgba(6, 95, 212, 0.5);
    cursor: not-allowed;
}


/* Add this to your CSS */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: red;
    transform: scaleX(0);
    transform-origin: left;
    z-index: 4;
  }
  
  .video-item.watched .progress-bar,
  .carousel-video-item.watched .progress-bar,
  .search-result-item.watched .progress-bar {
    transform: scaleX(1);
  }
  
  /* Increase thickness on hover */
  .video-item.watched:hover .progress-bar,
  .carousel-video-item.watched:hover .progress-bar,
  .search-result-item.watched:hover .progress-bar {
    height: 6px;
  }