:root {
    --primary-color: #e22262;
    --secondary-color: #282828;
    --accent-color: #606060;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --background-dark: #181818;
    --background-light: #212121;
    --info-bar-color: rgba(0, 0, 0, 0.7);
    --details-color-in-playlist: #705c5c;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: var(--background-dark);
    color: var(--text-primary);
    padding: 10px;
    height: 100vh;
}

.container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
    flex-direction: column;
    height: 100%;
}

.player-section {
    width: 100%;
    flex-grow: 1;
}



.playlist-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 85vh !important;
    /* width: 450px; */
    padding: 0px 20px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    margin-bottom: 15px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    background: var(--background-light);
    padding: 15px;
    border-radius: 8px;
}

.video-info h1 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.4;
}

.info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--accent-color);
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    background: var(--info-bar-color);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 10px;
    color: rgb(73, 73, 82);
}

.info-item i {
    margin-right: 5px;
    font-size: 11px;
}

.description {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.playlist-controls {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.playlist-dropdown {
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--background-light);
    color: var(--text-primary);
    border: 1px solid var(--accent-color);
    font-size: 14px;
    flex-grow: 1;
    min-width: 200px;
    cursor: pointer;
}

.playlist-stats-container {
    width: 100%;
    display: flex;
    /* justify-content: flex-end; */
    margin-top: 0px;
}

.playlist-stats {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    /* background: var(--background-light); */
    background: #fff;
    color: #40bb50;
    padding: 5px 10px;
    border-radius: 6px;
    width: 100px;
    text-align: center;
    font-weight: bold;
}

.search-container {
    position: relative;
    flex-grow: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    border-radius: 6px;
    background: var(--background-light);
    color: var(--text-primary);
    border: 1px solid var(--accent-color);
    font-size: 14px;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 14px;
}

.search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    display: none;
}

.search-clear:hover {
    color: var(--text-primary);
}

.playlist-items {
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
    padding-right: 5px;
    flex-grow: 1;
}

.playlist-items::-webkit-scrollbar {
    width: 4px;
}

.playlist-items::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 2px;
}

.playlist-item {
    display: flex;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    padding: 8px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: var(--background-light);
    position: relative;
    align-items: center;
}

.playlist-item:hover {
    background: #2c2c2c;
}

.playlist-item.active {
    background: #3a3a3a;
    border-left: 3px solid var(--primary-color);
}

.playlist-item .video-number {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    color: var(--text-primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    margin-right: 6px;
}

.playlist-item.active .video-number {
    background: var(--primary-color);
    color: white;
}

.thumbnail {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 56px;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
}

.details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding-right: 5px;
}

.details h3 {
    font-size: 12px;
    margin-bottom: 4px;
    display: -webkit-box;
    --webkit-line-clamp: 2;
    --webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

.details p {
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.now-playing {
    color: var(--primary-color);
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.now-playing i {
    margin-right: 3px;
}

.loading-playlist, .error-message, .no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin: 20px 0;
}

.loading-playlist i, .error-message i, .no-results i {
    margin-right: 8px;
    font-size: 16px;
}

.error-message {
    color: #ff6b6b;
}

.no-results {
    color: var(--text-secondary);
    font-style: italic;
}

.details .author {
    display: flex;
    align-items: center;
    font-size: 10px;
    color: var(--details-color-in-playlist);
    margin-bottom: 2px;
}

.details .source {
    display: flex;
    align-items: center;
    font-size: 10px;
    color: var(--details-color-in-playlist);
    margin-bottom: 4px;
}



.details .author i,
.details .source i {
    margin-right: 4px;
    font-size: 9px;
}

@media (min-width: 768px) {
    .container {
        flex-direction: row;
        padding: 15px !important;
        height: calc(100vh - 0px);
    }
    
    .player-section {
        flex: 7;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .playlist-section {
        flex: 3;
        height: 100%;
    }
    
    .video-info h1 {
        font-size: 20px;
    }
    
    .controls-left {
        width: auto;
        flex-grow: 1;
    }
    
    .playlist-dropdown {
        min-width: 200px;
        max-width: 300px;
    }
    
    .search-container {
        min-width: 200px;
        max-width: 300px;
    }
    
    .playlist-stats-container {
        width: auto;
        order: 3;
        flex-basis: 100%;
        margin-top: 8px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1900px;
        padding: 20px;
        gap: 10px;
    }

    .video-info h1 {
        font-size: 22px;
    }

    .playlist-dropdown {
        min-width: 250px;
    }
    
    .search-container {
        min-width: 250px;
    }
}

@media (min-width: 1400px) {
    .playlist-dropdown {
        min-width: 300px;
    }
    
    .search-container {
        min-width: 300px;
    }
}


#video-title {
    font-size: 16px !important;
    font-weight: bold;
    color: #3fa6ff;
    text-shadow: 0px 2px 2px #fff;
}





.my_menu_1{
    width: 100%;
    height: 30px;
    background: red !important;
    padding: 10px;
    color: #40bb50;

}





/* Header Styles */
.site-header {
    background-color: var(--background-light);
    padding: 5px 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
    font-weight: bold;
}

/* Navigation Styles */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.nav-list li a {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.2s;
    border-radius: 4px;
}

.nav-list li a:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-list li.active a {
    color: var(--primary-color);
    /* font-weight: 500; */
}

.nav-list li a i {
    margin-right: 8px;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 5px 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 60px);
        background-color: var(--background-light);
        flex-direction: column;
        gap: 0;
        transition: right 0.3s ease;
        padding-top: 15px;
        box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-list li {
        width: 100%;
    }
    
    .nav-list li a {
        padding: 12px 20px;
        border-radius: 0;
    }
    
    .hamburger-btn {
        display: block;
    }
}







/* Enhanced Header Styles */
.site-header {
    background-color: var(--background-light);
    padding: 5px 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.1); */
    /* box-shadow: 0px 0px 5px #fff; */
    padding: 5px 10px;
    border-radius: 5px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    box-shadow: 0px 0px 5px #fff;
    padding: 5px 10px;
    border-radius: 10px 0px 10px 0px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
    font-weight: bold;
}

/* Navigation Styles */
.main-nav {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.nav-list.nav-right {
    margin-left: auto;
}

.nav-list.nav-left {
    margin-right: auto;
}

.nav-list li {
    position: relative;
}

.nav-list li a {
    display: flex;
    align-items: center;
    /* color: var(--text-primary); */
    color: #3fa6ff;
    text-decoration: none;
    padding: 2px 10px;
    font-size: 12px;
    transition: all 0.2s;
    border-radius: 4px;
    gap: 5px;
    background: #4d4646;

}

.nav-list li a:hover {
    background-color: rgba(255,255,255,0.1);
    /* color: #ff6b6b; */
}

.has-dropdown > a::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 10px;
    margin-left: 1px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--background-light);
    min-width: 200px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    list-style: none;
    padding: 5px 0;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li a {
    padding: 8px 15px;
    white-space: nowrap;
    color: #ececec !important;
    /* background-color: yellow; */
    margin-top: 2px;
}
.dropdown-menu li a:hover {
    /* color: var(--text-primary); */
    font-size: 15px;
    color: #fc8642 !important;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 5px 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 60px);
        background-color: var(--background-light);
        flex-direction: column;
        gap: 0;
        transition: right 0.3s ease;
        padding-top: 15px;
        box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-list li {
        width: 100%;
    }
    
    .nav-list li a {
        padding: 12px 20px;
        border-radius: 0;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
        padding-left: 20px;
    }
    
    .has-dropdown:hover .dropdown-menu,
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .hamburger-btn {
        display: block;
    }
}



/* Ensure dropdown menus are visible when active */
.has-dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        padding-left: 20px;
    }
    
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
}