/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

:root {
    --navbar-scale: 1; 
}

@media (max-width: 1200px) {
	.pcb-navbar {
        zoom: var(--navbar-scale);
	}
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
    /* position: sticky;
    top: 0;
    z-index: 100; */
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: #2E7D32; /* Green color */
    font-size: 24px;
}

.logo h1 {
    font-size: 20px;
    color: #2E7D32;
}

.search-bar {
    position: relative;
    width: 40%;
}

.search-bar input {
    width: 100%;
    padding: 8px 15px 8px 35px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
}

.search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.user-icon i {
    font-size: 24px;
    color: #2E7D32;
    cursor: pointer;
}

/* Main Content Styles */
main {
    padding: 20px 0;
}

.content-wrapper {
    display: flex;
    gap: 20px;
}

.main-video {
    flex: 2;
}

.video-container {
    width: 100%;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    aspect-ratio: 16 / 9;
}

.video-container video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.video-info h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.video-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.video-meta span {
    margin-right: 8px;
}

.video-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.video-actions button {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
}

.video-actions button:hover {
    color: #2E7D32;
}

.video-actions button i {
    font-size: 16px;
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.channel-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.channel-info h3 {
    font-size: 16px;
}

.channel-info p {
    font-size: 13px;
    color: #666;
}

.subscribe-btn {
    margin-left: auto;
    background-color: #2E7D32;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.subscribe-btn:hover {
    background-color: #1B5E20;
}

.video-description {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.video-description h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.video-description p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    background-color: #e8f5e9;
    color: #2E7D32;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
}

/* Sidebar Styles */
.sidebar {
    flex: 1;
}

.sidebar h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2E7D32;
}

.sidebar-video {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    padding: 5px;
    border-radius: 8px;
}

.sidebar-video:hover {
    background-color: #f0f9f0;
}

.thumbnail-container {
    position: relative;
    width: 160px;
    height: 90px;
    flex-shrink: 0;
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.hover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: none;
}

.sidebar-video:hover .hover-video {
    display: block;
}

.sidebar-video:hover .thumbnail {
    display: none;
}

.duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 3px;
}

.video-details h4 {
    font-size: 14px;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-details p {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* Footer Styles */
footer {
    background-color: white;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #eee;
}

.footer-content {
    text-align: center;
}

.footer-content .logo {
    justify-content: center;
    margin-bottom: 15px;
}

.footer-content .logo h2 {
    font-size: 18px;
}

.links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.links a:hover {
    color: #2E7D32;
}

.footer-content p {
    color: #888;
    font-size: 13px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .search-bar {
        width: 50%;
    }
    
    .thumbnail-container {
        width: 120px;
        height: 68px;
    }
    
    .video-container {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 480px) {
    header .container {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .video-actions {
        flex-wrap: wrap;
    }
}
