/* Neon Portfolio / Vlog Grid Style - Jet Black with Purple/Cyan Accent */
:root {
    --bg-dark: #000000;
    --bg-card: #0c0c0e;
    --text-main: #ffffff;
    --text-meta: #a1a1aa;
    --neon-purple: #bf5af2;
    --neon-cyan: #0a84ff;
    --border-zinc: #27272a;
    --border-neon: rgba(191, 90, 242, 0.2);
    --border-neon-hover: rgba(10, 132, 255, 0.6);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    font-size: 14px;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--neon-cyan);
}

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

/* Header with Neon Border */
header {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-zinc);
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
}

header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    z-index: 101;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.neon-logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 30%, var(--neon-purple) 70%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 15px rgba(191,90,242,0.3);
}

.search-box {
    flex: 1;
    max-width: 400px;
    min-width: 250px;
}

.search-form {
    display: flex;
    width: 100%;
}

.search-input {
    flex: 1;
    background-color: #121214;
    border: 1px solid var(--border-zinc);
    border-right: none;
    border-radius: 20px 0 0 20px;
    padding: 10px 16px;
    color: #fff;
    outline: none;
    font-size: 13px;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: var(--neon-purple);
    box-shadow: 0 0 10px rgba(191,90,242,0.2);
}

.search-btn {
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    color: #fff;
    border: none;
    border-radius: 0 20px 20px 0;
    padding: 10px 22px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: opacity 0.2s;
}

.search-btn:hover {
    opacity: 0.9;
}

.nav-row {
    padding: 12px 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    touch-action: pan-x;
}

.nav-row::-webkit-scrollbar {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-links a {
    color: var(--text-meta);
    font-weight: 700;
    font-size: 14px;
    position: relative;
    padding: 4px 0;
}

.nav-links a.active {
    color: #fff;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: var(--neon-purple);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--neon-purple);
}

/* Portfolio Vlog Grid Layout */
.grid-section-title {
    font-size: 18px;
    font-weight: 800;
    margin: 25px 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 10px rgba(10,132,255,0.2);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.vlog-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-zinc);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.vlog-item:hover {
    transform: translateY(-4px);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 25px rgba(10,132,255,0.15);
}

.vlog-poster-wrap {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    background-color: #050506;
}

.vlog-poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.vlog-item:hover .vlog-poster-wrap img {
    transform: scale(1.05);
}

.vlog-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(12, 12, 14, 0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 2;
}

.vlog-badge.neon-glow {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
}

.vlog-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
    box-shadow: 0 0 15px var(--neon-cyan);
    z-index: 3;
}

.vlog-play-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 4px;
}

.vlog-item:hover .vlog-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.vlog-desc {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vlog-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vlog-meta {
    font-size: 11px;
    color: var(--text-meta);
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 10px;
}

/* Play Page layout */
.main-wrapper {
    display: flex;
    gap: 30px;
    margin: 30px auto;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.play-neon-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-zinc);
    border-radius: 16px;
    padding: 24px;
}

.play-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #fff, var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.play-meta-row {
    font-size: 12px;
    color: var(--text-meta);
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.player-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: visible;
    border: 1px solid var(--border-zinc);
    margin-bottom: 25px;
}

.vlog-text-content {
    margin-top: 25px;
    border-top: 1px solid var(--border-zinc);
    padding-top: 20px;
}

.neon-section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--neon-cyan);
    margin-bottom: 15px;
}

.neon-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    font-size: 13px;
    color: var(--text-meta);
}

.neon-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    border-top: 1px dashed rgba(255,255,255,0.08);
    padding-top: 15px;
}

.btn-neon-pill {
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-neon-pill:hover {
    transform: translateY(-1px);
    color: #fff;
}

/* Sidebar Widgets */
.sidebar-widget {
    background-color: var(--bg-card);
    border: 1px solid var(--border-zinc);
    border-radius: 16px;
    padding: 20px;
}

.widget-title {
    font-size: 15px;
    font-weight: 800;
    border-left: 3px solid var(--neon-purple);
    padding-left: 10px;
    margin-bottom: 20px;
}

.hot-neon-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hot-neon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.hot-neon-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hot-neon-rank {
    font-size: 18px;
    font-weight: 900;
    color: var(--neon-purple);
    font-style: italic;
    width: 25px;
}

.hot-neon-info {
    flex: 1;
    min-width: 0;
}

.hot-neon-title {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin-bottom: 2px;
}

.hot-neon-meta {
    font-size: 10px;
    color: var(--text-meta);
}

.neon-tag-btn {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--border-zinc);
    color: var(--text-meta);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    transition: all 0.3s;
}

.neon-tag-btn:hover {
    color: #fff;
    border-color: var(--neon-cyan);
    background-color: rgba(10,132,255,0.1);
}

/* Footer & SEO cloud */
footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-zinc);
    padding: 40px 0;
    color: var(--text-meta);
    text-align: center;
    font-size: 12px;
    margin-top: 60px;
}

.footer-hot-links {
    text-align: left;
    margin-bottom: 30px;
}

.footer-hot-links h4 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 12px;
    font-weight: bold;
}

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

.footer-hot-item {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--border-zinc);
    color: var(--text-meta);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-meta);
    margin: 0 10px;
}

.footer-links a:hover {
    color: var(--neon-cyan);
}

/* Pager */
.neon-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
}

.neon-pager a, .neon-pager span {
    background-color: var(--bg-card);
    border: 1px solid var(--border-zinc);
    color: var(--text-meta);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.neon-pager a:hover {
    border-color: var(--neon-cyan);
    color: #fff;
}

.neon-pager span.current {
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    color: #fff;
    border: none;
}

/* Floating Ads */
.floating-ad { position: fixed; top: 50%; transform: translateY(-50%); width: 130px; z-index: 999999; }

.floating-ad-left {
    left: 15px;
}

.floating-ad-right {
    right: 15px;
}

.bottom-floating-ad {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 728px;
    background: #000;
    border: 2px solid var(--neon-purple);
    border-bottom: none;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 0 25px rgba(191,90,242,0.4);
    border-radius: 12px 12px 0 0;
}

.bottom-floating-ad img {
    max-width: 100%;
    height: auto;
    max-height: 90px;
    display: block;
    margin: 0 auto;
}

.bottom-floating-ad-close {
    position: absolute;
    top: -12px;
    right: 10px;
    background: var(--neon-purple);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    cursor: pointer;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Ad pre-roll count down */
.ad-preroll-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.ad-preroll-overlay a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.ad-preroll-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ad-preroll-timer {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid var(--neon-purple);
    pointer-events: none;
    box-shadow: 0 0 8px var(--neon-purple);
}

.ad-preroll-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--neon-cyan);
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    pointer-events: none;
    box-shadow: 0 0 8px var(--neon-cyan);
}

/* Responsive */
@media (max-width: 992px) {
    .main-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .floating-ad { position: fixed; top: 50%; transform: translateY(-50%); width: 130px; z-index: 999999; }
}

@media screen and (max-width: 768px) {
    .floating-ad {
        display: block !important;
        width: 80px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 999999 !important;
    }
}






/* GLOBAL FLOATING ADS FIX */
.floating-ad-container {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%) !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    transition: top 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
}
.floating-ad-container-left {
    left: 10px !important;
    right: auto !important;
}
.floating-ad-container-right {
    right: 10px !important;
    left: auto !important;
}

/* Hide standalone ads to prevent FOUC (Flash of Unstyled Content) layout shift */
.floating-ad, .floating-ad-esi {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Reveal and format them correctly once JS wraps them in the container */
.floating-ad-container .floating-ad, 
.floating-ad-container .floating-ad-esi {
    position: relative !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 140px !important;
    display: block !important;
    margin: 0 !important;
}

.floating-ad img, .floating-ad-esi img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    display: block !important;
    margin: 0 !important;
}
@media screen and (max-width: 768px) {
    .floating-ad-container .floating-ad, 
    .floating-ad-container .floating-ad-esi {
        width: 110px !important;
    }
}

