/*
Theme Name: CumComing Clone
Author: AI Developer
Description: Custom theme based on visual reference. Dark mode, 5-column grid.
Version: 1.0
*/

:root {
    --bg-body: #0e1013;
    --bg-header: #0e1013; /* Hitam pekat */
    --bg-card: #16181c;
    --primary-red: #a60012; /* Merah sesuai tombol login/trending */
    --text-main: #ffffff;
    --text-muted: #8a8a8a;
    --border-color: #222;
}

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

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif; /* Asumsi font dari gambar */
    font-size: 14px;
    padding-top: 70px; /* Space untuk fixed header */
}

a { text-decoration: none; color: inherit; }

/* HEADER */
header.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--bg-header);
    border-bottom: 2px solid var(--primary-red); /* Garis merah di bawah header */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: -1px;
}
.logo span { color: #fff; }

.search-bar {
    flex-grow: 1;
    max-width: 600px;
    margin: 0 20px;
    display: flex;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.search-bar button {
    background: var(--primary-red);
    border: none;
    color: white;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

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

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

.btn-dark { background: #222; color: #fff; border: 1px solid #333; }
.btn-red { background: var(--primary-red); color: #fff; }

/* CONTAINER & GRID */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.video-grid {
    display: grid;
    /* Grid 5 Kolom Sesuai Gambar Referensi Desktop */
    grid-template-columns: repeat(5, 1fr); 
    gap: 15px;
    margin-bottom: 40px;
}

@media (max-width: 1200px) { .video-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .video-grid { grid-template-columns: repeat(1, 1fr); } }

/* VIDEO CARD */
.video-card {
    background: transparent;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.thumbnail-wrap {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #222;
    border-radius: 6px;
    overflow: hidden;
}

.thumbnail-wrap img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

.duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 2px 4px;
    font-size: 11px;
    border-radius: 2px;
}

.video-meta { padding: 8px 0; }

.video-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #ddd;
}

.uploader {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.verified-icon { color: #3498db; font-size: 10px; }

/* SINGLE PAGE STYLES */
.single-container { max-width: 1400px; margin: 0 auto; padding: 20px; }

.single-title { font-size: 22px; margin-bottom: 10px; text-transform: uppercase; }

.author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.author-avatar { width: 30px; height: 30px; border-radius: 50%; background: #333; }

.video-player-box {
    width: 100%;
    background: #000;
    aspect-ratio: 16/9;
    margin-bottom: 0; /* Action bar nempel */
}

.action-bar {
    background: var(--primary-red);
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-radius: 0 0 4px 4px;
}

.action-stats { display: flex; gap: 20px; font-weight: bold; }

.tags-container { margin: 20px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
    background: #252525;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    color: #aaa;
    border: 1px solid #333;
}

/* FOOTER */
footer {
    background: #050505;
    padding: 40px 20px;
    text-align: center;
    margin-top: 50px;
    border-top: 50px solid var(--primary-red); /* Bagian merah tebal di footer sesuai gambar */
}

.creators-section { padding: 20px 0; display: flex; justify-content: center; gap: 15px; }
.creator-circle { width: 60px; height: 60px; border-radius: 50%; background: #333; border: 2px solid #fff; }

.footer-links { margin-top: 20px; }
.footer-links a { margin: 0 10px; color: #fff; font-weight: bold; font-size: 12px; }