@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Rubik:wght@400;600;800;900&display=swap');

:root {
    --bg: #0a0908;
    --panel: #17130f;
    --panel-2: #1f1a14;
    --red: #e8232f;
    --red-dark: #a4141d;
    --yellow: #ffc700;
    --ink: #050505;
    --text: #f2ece2;
    --muted: #b8ada0;
    --border: #050505;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg);
    background-image:
        radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.2px);
    background-size: 16px 16px;
    color: var(--text);
    font-family: 'Rubik', sans-serif;
    margin: 0;
}

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

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

.comic-display {
    font-family: 'Bangers', cursive;
    letter-spacing: 1px;
}

/* ============ HEADER ============ */
.site-header {
    background: var(--ink);
    border-bottom: 6px solid var(--red);
    padding: 14px 0;
    position: relative;
    z-index: 10;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
.site-logo {
    font-family: 'Bangers', cursive;
    font-size: 34px;
    color: var(--yellow) !important;
    text-shadow: 3px 3px 0 var(--red-dark);
    letter-spacing: 2px;
    transform: rotate(-2deg);
    display: inline-block;
}
.header-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.header-nav a {
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--text);
    padding: 8px 16px;
    background: var(--panel);
    border: 2px solid var(--red);
    border-radius: 20px;
    transition: all .15s;
}
.header-nav a:hover { background: var(--red); color: #fff; transform: translateY(-2px); }

/* ============ BADGES / COMIC BURST ============ */
.comic-badge {
    display: inline-block;
    font-family: 'Bangers', cursive;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--ink);
    background: var(--yellow);
    padding: 3px 10px 4px;
    border: 2px solid var(--ink);
    transform: rotate(-4deg);
    box-shadow: 2px 2px 0 var(--ink);
}
.comic-badge.red { background: var(--red); color: #fff; }

.vip-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    font-family: 'Bangers', cursive;
    font-size: 12px;
    color: var(--ink);
    background: var(--yellow);
    padding: 3px 10px;
    clip-path: polygon(6% 0, 100% 0, 94% 100%, 0% 100%);
    box-shadow: 2px 2px 0 rgba(0,0,0,.5);
}

/* ============ SECTION TITLES ============ */
.section-header { margin: 40px 0 18px; }
.section-title {
    font-family: 'Bangers', cursive;
    font-size: 26px;
    color: #fff;
    background: var(--red);
    display: inline-block;
    padding: 6px 22px;
    clip-path: polygon(2% 0, 100% 0, 98% 100%, 0% 100%);
    box-shadow: 4px 4px 0 var(--ink);
    transform: rotate(-1deg);
    letter-spacing: 1px;
}

/* ============ FILTER PILLS ============ */
.trend-pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 30px; }
.trend-pills a, .trend-pills span {
    font-family: 'Bangers', cursive;
    font-size: 14px;
    letter-spacing: .5px;
    padding: 6px 18px;
    background: var(--panel);
    border: 2px solid var(--muted);
    border-radius: 30px 30px 30px 4px;
    color: var(--text);
}
.trend-pills a.active, .trend-pills a:hover {
    background: var(--yellow);
    color: var(--ink);
    border-color: var(--ink);
}

/* ============ VIDEO GRID / CARDS ============ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 14px;
}
.video-card {
    position: relative;
    display: block;
    background: var(--panel);
    border: 2px solid var(--ink);
    box-shadow: 4px 4px 0 rgba(0,0,0,.6);
    transition: transform .18s, box-shadow .18s;
    overflow: hidden;
}
.video-card:hover {
    transform: translate(-2px, -2px) rotate(-1deg);
    box-shadow: 6px 6px 0 var(--red-dark);
}
.video-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #000; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-thumb .duration {
    position: absolute; bottom: 4px; right: 4px;
    background: var(--ink); color: var(--yellow);
    font-family: 'Bangers', cursive; font-size: 10px;
    padding: 1px 6px; border: 1px solid var(--yellow);
}
.video-thumb .play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--red); color: #fff;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--ink);
    opacity: 0; transition: opacity .15s;
    font-size: 12px;
}
.video-card:hover .play-btn { opacity: 1; }
.video-info { padding: 8px 9px; }
.video-title {
    font-weight: 700; font-size: 12px; text-transform: uppercase;
    color: var(--text); line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-meta { margin-top: 4px; font-size: 11px; color: var(--muted); display: flex; gap: 8px; }

/* ============ LAYOUT ============ */
.main-wrapper { display: flex; gap: 30px; margin-top: 30px; align-items: flex-start; }
.sidebar-left { width: 260px; flex-shrink: 0; }
.content-right { flex: 1; min-width: 0; }

/* Sidebar "top panels" numbered list */
.niche-list-vertical { display: flex; flex-direction: column; gap: 6px; }
.side-niche-link {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px;
    background: var(--panel);
    border: 2px solid transparent;
    border-radius: 4px;
    font-weight: 700; font-size: 13px; text-transform: uppercase;
    color: var(--text);
    transition: all .15s;
}
.side-niche-link:hover { border-color: var(--red); background: var(--panel-2); transform: translateX(3px); }
.side-niche-link .count {
    background: var(--yellow); color: var(--ink);
    font-family: 'Bangers', cursive; font-size: 11px;
    padding: 1px 8px; border-radius: 10px;
}

/* VIP promo box */
.vip-promo {
    margin-top: 20px;
    background: linear-gradient(160deg, var(--red) 0%, var(--red-dark) 100%);
    border: 3px solid var(--ink);
    box-shadow: 6px 6px 0 rgba(0,0,0,.6);
    padding: 20px 18px;
    text-align: center;
}
.vip-promo h3 {
    font-family: 'Bangers', cursive; font-size: 26px; color: var(--yellow);
    text-shadow: 2px 2px 0 var(--ink); margin: 0 0 10px;
    letter-spacing: 1px;
}
.vip-promo ul { list-style: none; padding: 0; margin: 0 0 16px; text-align: left; font-size: 13px; }
.vip-promo li { padding: 4px 0; font-weight: 600; }
.vip-promo li::before { content: '\2713  '; color: var(--yellow); font-weight: 900; }
.vip-promo .btn-vip {
    display: block; background: var(--yellow); color: var(--ink);
    font-family: 'Bangers', cursive; font-size: 16px; letter-spacing: 1px;
    padding: 10px; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}

/* Featured hero panel (home top) */
.hero-panel {
    position: relative;
    margin-top: 20px;
    border: 4px solid var(--ink);
    background: var(--panel);
    box-shadow: 8px 8px 0 var(--red-dark);
    overflow: hidden;
}
.hero-panel .hero-thumb { position: relative; aspect-ratio: 21/9; background: #000; }
.hero-panel .hero-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.hero-panel .hero-tag {
    position: absolute; top: 16px; left: 16px;
    font-family: 'Bangers', cursive; color: var(--yellow);
    background: var(--ink); padding: 4px 14px;
    border: 2px solid var(--yellow); font-size: 13px; letter-spacing: 1px;
}
.hero-panel .hero-info { padding: 18px 22px; }
.hero-panel .hero-title {
    font-family: 'Bangers', cursive; font-size: 30px; color: #fff;
    letter-spacing: 1px; margin: 0 0 8px;
}

/* ============ VIDEO VIEW PAGE ============ */
.view-page { display: flex; gap: 30px; align-items: flex-start; margin-top: 10px; }
.view-main { flex: 1; min-width: 0; }
.view-sidebar { width: 300px; flex-shrink: 0; }

.view-player-panel {
    position: relative;
    border: 4px solid var(--ink);
    background: #000;
    box-shadow: 8px 8px 0 var(--red-dark);
    margin-bottom: 20px;
}
.view-player { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.view-player iframe, .view-player embed { width: 100%; height: 100%; border: 0; display: block; }

.view-title {
    font-family: 'Bangers', cursive;
    font-size: 28px;
    color: #fff;
    letter-spacing: 1px;
    margin: 0 0 10px;
    line-height: 1.2;
}

.view-desc {
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    background: var(--panel);
    border-left: 4px solid var(--red);
    padding: 14px 16px;
}

.related-list { display: flex; flex-direction: column; gap: 12px; }
.related-item {
    display: flex; gap: 10px;
    background: var(--panel);
    border: 2px solid var(--ink);
    padding: 8px;
    transition: transform .15s, box-shadow .15s;
}
.related-item:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--red-dark); }
.related-thumb { width: 96px; height: 60px; flex-shrink: 0; background: #000; overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-info { min-width: 0; }
.related-title {
    font-size: 12px; font-weight: 700; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    line-height: 1.3;
}
.related-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }

@media (max-width: 900px) {
    .view-page { flex-direction: column; }
    .view-sidebar { width: 100%; }
}

/* ============ FOOTER ============ */
.site-footer { border-top: 6px solid var(--red); margin-top: 60px; background: var(--ink); }
.site-footer a:hover { color: var(--yellow); }

.banner-slots-container { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.banner-slot { background: var(--panel); border: 2px solid var(--ink); padding: 6px; }

@media (max-width: 900px) {
    .main-wrapper { flex-direction: column; }
    .sidebar-left { width: 100%; }
}
