/*
Theme Name: CumComing Pro V3
Author: AI Developer
Description: Pixel-perfect replica based on user references.
Version: 3.0
*/

:root {
    --bg-body: #0e1013;
    --bg-header: #0e1013; /* Dark Header */
    --bg-sub-header: #111316;
    --bg-card: #16181c;
    --primary-red: #a60012;
    --text-main: #ffffff;
    --text-muted: #8a8a8a;
    --border-color: #222;
    --grid-cols-desktop: 5; 
    --container-max-width: 1400px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    padding-top: 100px; /* Adjusted for Header + Subheader */
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }

/* --- HEADER FIX (Ref 1) --- */
header.main-header {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 60px;
    background: #4a0008; /* Dark Red tint background based on Ref 1 or pure dark */
    background: linear-gradient(to bottom, #1a0204, #000); /* Dark gradient */
    border-bottom: 1px solid #333;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; z-index: 1000;
}

.logo { font-size: 26px; font-weight: 900; color: var(--primary-red); text-transform: uppercase; letter-spacing: -1px; display:flex; align-items:center; }
.logo span { color: #fff; }

/* Search Bar: White input, Red button inside */
.search-bar { flex-grow: 1; max-width: 600px; margin: 0 30px; display: flex; position: relative; }
.search-bar input { 
    width: 100%; height: 36px; padding: 0 10px; 
    border: none; border-radius: 4px; 
    outline: none; background: #fff; color: #000;
}
.search-bar button { 
    position: absolute; right: 0; top: 0; height: 36px; 
    background: var(--primary-red); border: none; 
    color: white; padding: 0 15px; 
    border-radius: 0 4px 4px 0; cursor: pointer; 
}

.header-right { display: flex; gap: 10px; align-items: center; }

.btn { padding: 6px 14px; border-radius: 4px; font-weight: bold; font-size: 12px; cursor: pointer; border: none; display: inline-block; text-align: center; }
.btn-dark { background: #1f2125; color: #ccc; border: 1px solid #333; }
.btn-dark:hover { background: #333; color: #fff; }
.btn-red { background: var(--primary-red); color: #fff; }
.btn-red:hover { background: #c90016; }

/* SUB HEADER (Home Breadcrumb) */
.sub-header {
    position: fixed; top: 60px; left: 0; width: 100%; height: 40px;
    background: var(--bg-sub-header);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; z-index: 999;
    border-bottom: 1px solid #222;
}
.breadcrumb-home { font-weight: bold; font-size: 13px; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.breadcrumb-home i { color: var(--primary-red); }

/* --- GRID LAYOUT --- */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 20px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols-desktop), 1fr);
    gap: 15px;
    margin-bottom: 40px;
}
@media (max-width: 1024px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .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%; background: #000; border-radius: 6px; overflow: hidden; }
.thumbnail-wrap img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.video-card:hover .thumbnail-wrap img { transform: scale(1.05); }
.duration { position: absolute; bottom: 5px; right: 5px; background: rgba(0,0,0,0.8); color: #fff; padding: 2px 5px; font-size: 10px; border-radius: 3px; }

.video-meta { padding: 8px 0; }
.video-title { font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; color: #eee; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.uploader { font-size: 11px; color: #888; display: flex; align-items: center; gap: 4px; }
.verified-icon { color: #3498db; font-size: 10px; }

/* --- SINGLE PAGE FIX (Ref 5) --- */
.single-container { max-width: var(--container-max-width); margin: 0 auto; padding: 20px; }
.single-title { font-size: 18px; font-weight: 700; margin-bottom: 15px; color: #fff; text-transform: uppercase; }

.video-player-box { width: 100%; background: #000; position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-player-box iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Action Bar Red */
.action-bar {
    background: var(--primary-red);
    height: 45px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 15px; 
    margin-bottom: 15px;
}
.ab-left { display: flex; gap: 15px; font-weight: bold; font-size: 13px; align-items: center; }
.ab-center { font-weight: 900; text-transform: uppercase; font-size: 14px; letter-spacing: 0.5px; }
.ab-right { display: flex; gap: 15px; font-size: 14px; }
.ab-btn { background:none; border:none; color:fff; cursor:pointer; display:flex; gap:5px; align-items:center;}

/* Tags */
.tags-row { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 30px; }
.tag-item { background: #222; color: #aaa; font-size: 11px; padding: 4px 10px; border-radius: 12px; border: 1px solid #333; }
.tag-item:hover { background: #333; color: #fff; }

/* --- FOOTER FIX (Ref 3) --- */
footer { background: #080808; margin-top: 50px; }
.footer-top { padding: 30px 20px; text-align: center; }

/* Creator Circles */
.creators-wrap { 
    display: flex; justify-content: center; gap: 15px; margin: 20px 0; 
    flex-wrap: wrap;
}
.creator-bubble { display: flex; flex-direction: column; align-items: center; width: 70px; }
.creator-bubble img { 
    width: 60px; height: 60px; border-radius: 50%; 
    border: 2px solid #fff; object-fit: cover; margin-bottom: 5px; 
}
.creator-bubble span { font-size: 11px; color: #3498db; display: flex; align-items: center; gap: 2px; }

/* Trends Pills */
.trends-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.trend-pill { background: #1a1a1a; color: #ccc; padding: 6px 12px; border-radius: 4px; font-size: 11px; border: 1px solid #333; }
.trend-pill:hover { background: #333; color: #fff; }

/* Bottom Red Block */
.footer-bottom { 
    background: #7a000d; /* Dark Red Block */
    padding: 30px 20px; 
    text-align: center;
}
.footer-bottom .logo { justify-content: center; margin-bottom: 15px; font-size: 30px; }
.footer-links a { color: #fff; font-weight: bold; margin: 0 10px; font-size: 12px; text-transform: uppercase; }
.rta-logo { background: #fff; color: #000; font-weight: 900; padding: 2px 5px; margin-left: 10px; font-size: 12px; }

/* --- 404 PAGE --- */
.error-page-header { padding: 40px 20px; text-align: left; }
.error-title { font-size: 24px; font-weight: bold; color: #fff; text-transform: uppercase; margin-bottom: 20px; }
.error-section-title { font-size: 16px; color: #fff; text-transform: uppercase; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }

/* --- CREATORS PAGE --- */
.creators-grid-page { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 20px; padding: 20px 0; }
.creator-card-page { background: #1a1a1a; padding: 20px; border-radius: 8px; text-align: center; border: 1px solid #333; }
.creator-card-page img { width: 80px; height: 80px; border-radius: 50%; margin-bottom: 10px; object-fit: cover; }
.creator-card-page h3 { font-size: 14px; margin-bottom: 5px; color: #fff; }

/* Modal Styles from V2 */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); }
.modal-content { background-color: #111; margin: 10% auto; padding: 30px; border: 1px solid #333; width: 100%; max-width: 400px; border-radius: 8px; position: relative; }
.close-modal { color: #aaa; float: right; font-size: 28px; cursor: pointer; }
.form-input { width: 100%; padding: 12px; margin: 8px 0; border:none; border-radius: 4px; }
.submit-btn { width: 100%; background: var(--primary-red); color: white; padding: 12px; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; }