:root {
    --bg-main: #0f0f11;
    --bg-header: #1a1a1f;
    --bg-card: #1e1e24;
    --accent: #ff4500; /* Typical accent color for this layout */
    --text-primary: #ffffff;
    --text-secondary: #9aa0a6;
    --border-color: #2b2b36;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--text-primary);
}

/* Header */
.top-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent);
}

.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    display: flex;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    background-color: var(--bg-main);
    color: white;
    outline: none;
}

.search-btn {
    padding: 10px 20px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
}

.user-actions {
    display: flex;
    gap: 15px;
}

.btn-login, .btn-signup {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

.btn-login {
    background: transparent;
    color: white;
}

.btn-signup {
    background-color: var(--accent);
    color: white;
}

/* Secondary Nav */
.sub-nav {
    background-color: var(--bg-card);
    padding: 10px 20px;
    display: flex;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    white-space: nowrap;
}

.sub-nav a {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.sub-nav a:hover, .sub-nav a.active {
    color: var(--accent);
}

/* Main Content */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.section-title {
    font-size: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent);
    padding-left: 10px;
}

/* Grid Layout */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Video Card */
.video-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

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

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

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

.hd-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--accent);
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

.video-title {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.video-card:hover .video-title {
    color: var(--accent);
}

.video-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

.uploader {
    color: var(--text-secondary);
    text-decoration: none;
}

.uploader:hover {
    text-decoration: underline;
    color: var(--text-primary);
}

/* Footer */
footer {
    background-color: var(--bg-header);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    text-align: center;
    margin-top: 50px;
}

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.copyright {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .search-container {
        display: none;
    }
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }
    .video-title {
        font-size: 13px;
    }
}
