* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0f0f0f;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px;
    background-color: #000000;
    color: #ffffff;
    height: 56px;
    position: fixed;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #303030;
}

.red {
    font-size: 1.5rem;
    color: red;
}

.leftHeader {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.leftHeader i {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.leftHeader i:hover {
    background-color: #383838;
}

.middleHeader {
    display: flex;
    align-items: center;
    position: relative;
}

.rightHeader {
    display: flex;
    align-items: center;
    gap: 25px;
}

.search-bar {
    width: 500px;
    height: 40px;
    border-radius: 20px 0 0 20px;
    border: none;
    padding: 10px;
    background-color: #000000;
    border: 1px solid #303030;
    color: #ffffff;
    outline: none;
}

.search-bar:focus {
    border: 1px solid #145bdf;
}

.search-icon {
    color: #ffffff;
    background-color: #222222;
    border: 1px solid #303030;
    border-radius: 0 20px 20px 0;
    padding: 10px;
    height: 40px;
    width: 40px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.search-icon:hover {
    transform: scale(1.1);
}

.microphone {
    color: #ffffff;
    background-color: #222222;
    border: 1px solid #303030;
    border-radius: 20px;
    height: 40px;
    width: 40px;
    cursor: pointer;
    margin-left: 10px;
}

.microphone-icon {
    position: relative;
    right: -13px;
    top: 10px;
    transition: transform 0.2s ease-in-out;
}

.microphone-icon:hover {
    transform: scale(1.2);
}

.create {
    background-color: #222222;
    border: 1px solid #303030;
    border-radius: 20px;
    padding: 10px;
    height: 40px;
    width: 90px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #ffffff;
}

.create:hover {
    transform: scale(1.1);
}

.notification {
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
    border-radius: 20px;
    transition: background-color 0.2s;
}

.notification:hover {
    background-color: #383838;
    transform: scale(1.1);
}

.notification > span {
    position: relative;
    top: -5px;
    right: -1px;
}

.account {
    background-color: #222222;
    border: 1px solid #303030;
    border-radius: 20px;
    padding: 10px;
    height: 40px;
    width: 40px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

.account:hover {
    transform: scale(1.1);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    width: 240px;
    height: calc(100vh - 56px);
    background-color: #000000;
    z-index: 1;
    overflow-y: auto;
    border-right: 1px solid #303030;
    scrollbar-width: none;
}

.sidebar-section {
    padding: 12px 0;
    border-bottom: 1px solid #303030;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 24px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #ffffff;
}

.sidebar-item:hover {
    background-color: #383838;
}

.sidebar-item i {
    width: 20px;
    text-align: center;
}

/* Developer Section in Sidebar */
.developer-section {
    margin-top: auto;
    border-top: 1px solid #383838;
    padding-top: 20px;
}

.developer-section .sidebar-item {
    font-size: 12px;
    color: #aaaaaa;
    padding: 8px 24px;
}

.developer-section .sidebar-item i {
    color: #ff0000;
    font-size: 14px;
}

/* Main Content Styles */
.main-content {
    margin-top: 56px;
    margin-left: 240px;
    padding: 20px;
}

.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 100%;
}

.box {
    flex: 1 1 calc(25% - 15px);
    min-width: 280px;
    background-color: #000000;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.box:hover {
    transform: translateY(-2px);
}

.box-content {
    padding: 12px;
}

.box-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #333333;
    border-radius: 8px;
    margin-bottom: 12px;
}

.box-content h2 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #ffffff;
}

.box-content p {
    font-size: 12px;
    color: #aaaaaa;
    margin: 0;
}

/* Footer Styles */
.footer {
    background-color: #0f0f0f;
    border-top: 1px solid #383838;
    padding: 40px 0;
    margin-top: 40px;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.footer .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.footer .logo:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.footer .logo i {
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.footer .logo:hover i {
    transform: scale(1.1);
}

.footer .developer-info {
    text-align: left;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .developer-info p {
    margin: 8px 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.footer .developer-info a {
    color: #3ea6ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer .developer-info a:hover {
    color: #65b8ff;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .box {
        flex: 1 1 calc(33.333% - 15px);
    }
}

@media (max-width: 900px) {
    .box {
        flex: 1 1 calc(50% - 15px);
    }
}

@media only screen and (max-width: 768px) {
    .search-bar {
        width: 300px;
    }
    
    .box {
        flex: 1 1 calc(50% - 15px);
    }
    
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
    }
    
    .header-logo span {
        display: none;
    }
    
    /* Footer responsive */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer .developer-info {
        text-align: center;
    }

    .main-developer-info {
        margin-top: 30px;
        padding: 15px;
    }
}

@media only screen and (max-width: 480px) {
    .search-bar {
        width: 200px;
    }
    
    .box {
        flex: 1 1 calc(100% - 15px);
    }
    
    .main-content {
        margin-left: 0;
        padding: 10px;
    }
    
    .sidebar {
        display: none;
    }
    
    .header-logo span {
        display: none;
    }
    
    .rightHeader {
        display: none;
    }
    
    .middleHeader {
        width: 100%;
    }
    
    /* Footer responsive */
    .footer {
        padding: 20px 0;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer .developer-info p {
        font-size: 14px;
    }
    
    .main-developer-info .developer-info p {
        font-size: 12px;
    }
}

@media only screen and (max-width: 375px) {
    .leftHeader > i {
        display: none;
    }
    
    .leftHeader > .header-logo {
        margin-left: -20px;
    }
    
    .middleHeader .microphone {
        display: none;
    }
    
    .search-bar {
        width: 90%;
    }
    
    .footer .developer-info p {
        font-size: 13px;
    }
}