@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

*{
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
    font-family: 'ubuntu', 'sans-serif';
}
a{
    text-decoration: none;
    color:black;

}
img, video{
    object-fit: cover;
}
body{
    display: flex;
    padding: 20px;
    height: 100vh;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}
.left-section{
    height:100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
    position: fixed;
    top:0;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease-out;
    background-color: var(--bg-primary);
    border-right: 2px solid var(--border-color);
}
.left-section .logo{
display: flex;
align-items: center;
gap: 8px;
}
.left-section .logo img{
    width: 38px;
}
.left-section .logo a{
    font-weight: 500;
    color:
}
.left-section .sidebar{
    display: flex;
    flex-direction: column;
    gap:16px;
}
.left-section .sidebar .item,
.left-section  .sign-out{
display: flex;
align-items: center;
gap: 10px;
cursor: pointer;
transition: transform 0.3s ease;
}
.left-section .sidebar .item i,
.left-section  .sign-out i{
font-size:  20px;
padding:10px;
border-radius: 12px;
transition: all 0.4s ease;
}
.left-section .sidebar .item h3,
.left-section  .sign-out h3{
font-size: 14px;
font-weight: 500;
transition: all 0.4s ease;
}
.left-section .sidebar .item:active i{
    background-color: #fed24d;
}
.left-section .sidebar .item.active i{
    background-color: #fed24d;
}
.left-section .sidebar .item.active h3{
    color:#ffb700;
}
.main{
    flex: 5;
    margin-left: 180px;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}
.main .header{
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-right: 2px solid var(--border-color);
    background-color: var(--header-bg);
}
.main .header .search{
width:85%;
display: flex;
align-items: center;
background-color: var(--search-bg);
border-radius: 12px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.main .header .search input{
    border:none;
    padding:10px 0;
    width: 100%;
    background:transparent;
    transition: transform 0.3s ease;
    color: var(--text-primary);
}
.main .header .search input::placeholder {
    color: var(--text-secondary);
}
.main .header .search button{
    border:none;
    padding: 10px;
    background: none;
    font-size:18px;
    cursor: pointer;
}
.main .header > i{
    background: #15333a;
    color:#fff;
    padding:8px;  
    border-radius: 50%;
    cursor: pointer;
}

.main .separator{
    padding: 26px 20px;
}
.main .separator .categories{
    margin-top: 14px;
    display: flex;
    gap: 10px;
}
.main .separator .categories a{
    padding: 8px 12px;
    background-color: var(--search-bg);
    font-size: 14px;
    border-radius: 14px;
    transition: all 0.3s ease;
    color: var(--text-primary);
}
.main .separator .categories a.active,
.main .separator .categories a:hover{
    background-color: var(--accent-color);
    color: var(--text-primary);
}
.main .vidoe-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 10px 20px 20px;
}

.main .vidoe-items .item {
    background: rgba(26, 26, 26, 0.92);
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    border-radius: 18px;
    padding-bottom: 10px;
    overflow: hidden;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.main .vidoe-items .item .like{
    position: absolute;
    right: 20px;
    top: 10px;
    background: rgba(255,255,255,0.6);
    padding: 8px 8px 5px;
    font-size: 24px;
    border-radius: 50%;
    z-index:10;
    cursor: pointer;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    /* width: 25px; */
}
.main .vidoe-items .item .like:hover,
.right-section .weekly .item> i:hover{
color: #f86161;
}
.main .vidoe-items .item .thumbnail {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    position: relative;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main .vidoe-items .item .thumbnail img,
.main .vidoe-items .item .thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.main .vidoe-items .item .details {
    padding: 16px 14px 0 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.main .vidoe-items .item .details .info{
display: flex;
margin-top: 8px;
gap: 20px;
color: var(--text-secondary);
}
.main .vidoe-items .item .details .info .location,
.main .vidoe-items .item .details .info .rate{
    display: flex;
    gap:2px
}
.main .vidoe-items .item .details .info .location i,
.main .vidoe-items .item .details .info .rate i{
    font-size: 18px;
    color:#555;
}
.main .vidoe-items .item .details .info .rate i,
.right-section .player .content .info .rate i{
    color:#f3d076;
}
.right-section{
    flex:2;
    animation: fadeIn 0.5s ease-out 0.2s backwards;
    background-color: #1a1a1a !important;
}
.right-section .profile{
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}
.right-section .profile .info{
    display: flex;
    align-items: center;
    gap:6px;
}
.right-section .profile .info > i{
    font-size: 20px;

}
.right-section .profile .info h5{
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}
.right-section .profile .user{
    display: flex;
    align-items: center;
    gap: 14px;
}
.right-section .profile .user i{
    font-size: 22px;
    border: 1px solid #e5e5e5;
    padding: 6px;
    border-radius: 50%;
    cursor: pointer;
}

.right-section .profile .user img{
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;

}
.right-section > h3{
    margin-top: 30px;
    font-weight: 500;
    color: var(--text-primary);
}
.right-section .playlist{
    margin-top: 20px;
    position: relative;
    transition: box-shadow 0.3s;
}
.right-section .playlist:hover {
    box-shadow: 0 0 8px 0 #fed24d, 0 1px 8px 0 #fed24d;
}
.right-section .playlist > video{
    width: 100%;
    height: 250px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}
.right-section .playlist > video:hover{
    box-shadow: none;
}
.right-section .playlist .other {
    width: 86%;
    position: absolute;
    bottom: 14px;
    left: 7%;
    padding: 8px;
    background-color: rgba(255,255,255,0.4);
    backdrop-filter: blur(2px);
    border-radius: 14px;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 10px 10x rgba(0, 0, 0, 0.3);
}
.right-section .playlist .other img{
    width: 22%;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
}
.right-section .player{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--card-bg);
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 20px;
    box-shadow: 0 10px 10px var(--card-shadow);
}
.right-section .player >i{
    background: #fed24d;
    padding: 10px 4px;
    border-radius: 20px;
    cursor: pointer;

}
.right-section .player .content{
    display: flex;
    align-items: center;
    gap: 10px;
}
.right-section .player .content img{
    width: 70px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
}
.right-section .player .content .info> h5{
    color: var(--text-primary);
    font-weight: 500;

}
.right-section .player .content .info .rate,
.right-section .weekly  .item .content .info  .view{
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}
.right-section .player .content .info .rate h5{
    font-weight: 500;
    color:#fff;
    font-size:12px;
}
.right-section .player .content .desc{
    display: none;
    margin: 0 20px 0 10px;
}
.right-section .player .content .desc p{
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.1rem;
    border-left: 1px solid #e5e5e5;
    padding-left: 10px;
    padding-left: 10px;
}
.right-section .weekly{
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    gap: 6px;
}
.right-section .weekly .item{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    background-color: var(--card-bg);
}
.right-section .weekly .item:hover{
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateX(5px);
}
.right-section .weekly .item > i{
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}
.right-section .weekly .item .content{
    display: flex;
    align-items: center;
    gap: 16px;
}
.right-section .weekly  .item .content img{
    width: 100px;
    height: 66px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);

}
.right-section .weekly  .item .content .info .view h5,
.right-section .weekly  .item .content .info .view i{
    font-weight: 500;
    color: var(--text-secondary);
}

/* Key Animations */
@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Hover Effects */
.left-section .sidebar .item:hover {
    transform: translateX(5px);
}

.main .vidoe-items .item:hover {
    transform: translateY(-5px);
}

.main .banner .share i:hover {
    transform: rotate(360deg);
}

.right-section .weekly .item:hover {
    transform: translateX(5px);
}

/* Interactive Elements */
.main .header .search:focus-within {
    transform: scale(1.02);
    box-shadow: 0 0 0 2px #fed24d;
}

.main .header .search input:focus {
    transform: translateX(5px);
}

/* Video Loading Animation */
.main .vidoe-items .item video,
.right-section .playlist > video {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

/* Active Item Animation */
.left-section .sidebar .item.active {
    animation: pulse 2s infinite;
}

/* Responsive adjustments for video grid */
@media screen and (max-width: 1200px) {
    .main .vidoe-items {
        grid-template-columns: repeat(2, 1fr);
    }
    .right-section {
        width: 100%;
        min-width: 0;
        max-width: 100vw;
    }
}

@media screen and (max-width: 900px) {
    body {
        flex-direction: column;
        padding: 0;
        height: auto;
    }
    .left-section {
        position: static !important;
        width: 100% !important;
        min-width: 0;
        max-width: 100vw;
        z-index: 10;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 0 0 8px 0;
        background: #222;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border-radius: 0 0 18px 18px;
        margin-bottom: 12px;
    }
    .left-section .logo a,
    .left-section .sidebar .item h3,
    .left-section .sign-out h3 {
        display: none;
    }
    .left-section .sidebar {
        flex-direction: row;
        gap: 18px;
        justify-content: center;
        width: 100%;
    }
    .left-section .sidebar .item,
    .left-section .sign-out {
        justify-content: center;
        padding: 0 4px;
    }
    .main {
        margin-left: 0 !important;
        width: 100%;
        padding: 16px 0 0 0;
    }
    .hero-section {
        margin-top: 12px;
    }
    .right-section {
        width: 100%;
        margin-top: 20px;
        border-radius: 20px;
        min-width: 0;
        max-width: 100vw;
    }
    .main .vidoe-items {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 600px) {
    .main {
        padding: 8px 0 0 0;
    }
    .hero-section {
        margin-top: 8px;
    }
    .right-section {
        padding: 10px 5px;
        border-radius: 12px;
    }
}

/* Hero Section Styles */
.hero-section {
    width: 100%;
    margin: 20px 0;
    padding: 0 20px;
}

.hero-video {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-video .video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: center;
    padding: 40px;
}

.hero-video .video-info {
    color: #fff;
    max-width: 600px;
}

.hero-video .video-info h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-video .video-info p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-video .video-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.hero-video .video-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-video .play-btn {
    background: #fed24d;
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-video .play-btn:hover {
    transform: scale(1.05);
    background: #ffb700;
}

.hero-video .play-btn i {
    font-size: 1.3rem;
}

/* Responsive styles for hero section */
@media screen and (max-width: 768px) {
    .hero-video {
        height: 400px;
    }

    .hero-video .video-info h2 {
        font-size: 2rem;
    }

    .hero-video .video-info p {
        font-size: 1rem;
    }

    .hero-video .video-stats {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media screen and (max-width: 480px) {
    .hero-video {
        height: 300px;
    }

    .hero-video .video-info h2 {
        font-size: 1.5rem;
    }

    .hero-video .video-overlay {
        padding: 20px;
    }
}

/* Theme Variables */
:root {
    /* Light Theme (Default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #000000;
    --text-secondary: #666666;
    --accent-color: #fed24d;
    --accent-hover: #ffb700;
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --header-bg: #ffffff;
    --search-bg: #e8f3f8;
    --border-color: #e5e5e5;
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-color: #fed24d;
    --accent-hover: #ffb700;
    --card-bg: #2d2d2d;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --header-bg: #1a1a1a;
    --search-bg: #2d2d2d;
    --border-color: #404040;
}

/* Apply Theme Variables */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--bg-secondary);
}

.theme-toggle i {
    font-size: 20px;
}

/* Theme Icons */
.light-icon {
    display: none;
}

.dark-icon {
    display: block;
}

[data-theme="dark"] .light-icon {
    display: block;
}

[data-theme="dark"] .dark-icon {
    display: none;
}

/* Update existing styles to use theme variables */
.main .header {
    background-color: var(--header-bg);
    border-right: 2px solid var(--border-color);
}

.main .header .search {
    background-color: var(--search-bg);
}

.main .header .search input {
    color: var(--text-primary);
    background-color: transparent;
}

.main .header .search input::placeholder {
    color: var(--text-secondary);
}

.main .separator .categories a {
    background-color: var(--search-bg);
    color: var(--text-primary);
}

.main .separator .categories a.active,
.main .separator .categories a:hover {
    background-color: var(--accent-color);
    color: var(--text-primary);
}

.main .vidoe-items .item {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px var(--card-shadow);
}

.main .vidoe-items .item .details h3 {
    color: var(--text-primary);
}

.main .vidoe-items .item .details .info {
    color: var(--text-secondary);
}

.right-section {
    background-color: var(--bg-secondary);
}

.right-section .profile .info h5 {
    color: var(--text-primary);
}

.right-section > h3 {
    color: var(--text-primary);
}

.right-section .player {
    background-color: var(--card-bg);
    box-shadow: 0 10px 10px var(--card-shadow);
}

.right-section .player .content .info h5 {
    color: var(--text-primary);
}

.right-section .player .content .desc p {
    color: var(--text-secondary);
}

.right-section .weekly .item {
    background-color: var(--card-bg);
}

.right-section .weekly .item .content h4 {
    color: var(--text-primary);
}

.right-section .weekly .item .content .view h5 {
    color: var(--text-secondary);
}
