/* ========================================================
   ASUPAN VIRAL — STREAMING VIDEO PORTAL THEME
   Tailored for Fanspage Traffic & High-Conversion Content Locker
   ======================================================== */

:root {
    --bg-dark: #0a0b12;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary: #ff2b54;
    --primary-glow: rgba(255, 43, 84, 0.35);
    --accent-orange: #ff9900;
    --text-white: #ffffff;
    --text-muted: #9ca3af;
    --radius-card: 14px;
}

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

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 11, 18, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.nav-live-badge {
    background: linear-gradient(135deg, #ff2b54, #ff5e3a);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 3px 9px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: pulse-glow 2s infinite;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 43, 84, 0.4); }
    50% { box-shadow: 0 0 20px rgba(255, 43, 84, 0.8); }
}

/* HERO SEARCH BANNER */
.hero-banner {
    position: relative;
    background: linear-gradient(180deg, rgba(10, 11, 18, 0.75) 0%, rgba(10, 11, 18, 0.95) 75%, var(--bg-dark) 100%),
                url('/assets/asupanviral/bg.jpg') center top / cover no-repeat;
    padding: 48px 20px 36px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    max-width: 780px;
    margin: 0 auto;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--accent-orange);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(1.8rem, 4.5vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 12px;
}

.hero-title span {
    background: linear-gradient(135deg, #ff2b54, #ff9900);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-muted);
    font-size: clamp(0.92rem, 1.8vw, 1.05rem);
    margin-bottom: 24px;
}

/* SEARCH BOX */
.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto 16px;
}

.search-input {
    width: 100%;
    height: 52px;
    background: rgba(20, 22, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0 54px 0 22px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: rgba(26, 29, 45, 0.95);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #ff2b54, #ff5e3a);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.06);
}

/* QUICK TAGS */
.quick-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.tag-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-pill:hover, .tag-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

/* MAIN CONTENT CONTAINER */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

/* SOCIAL PROOF TICKER */
.social-proof-bar {
    background: linear-gradient(90deg, rgba(255, 43, 84, 0.12), rgba(255, 153, 0, 0.12));
    border: 1px solid rgba(255, 43, 84, 0.2);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    font-size: 0.88rem;
    font-weight: 600;
}

.spf-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ff9900;
}

.spf-right {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* CATEGORY TABS */
.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-btn:hover, .tab-btn.active {
    background: linear-gradient(135deg, #ff2b54, #ff5e3a);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

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

/* VIDEO CARD */
.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.video-card:hover {
    border-color: rgba(255, 43, 84, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    background: var(--bg-card-hover);
}

/* THUMBNAIL WRAPPER */
.card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111420;
    overflow: hidden;
}

.card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .card-thumb {
    transform: scale(1.05);
}

.thumb-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e1e2d, #12121a);
    color: #64748b;
    font-size: 2rem;
}

/* PLAY ICON OVERLAY */
.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: all 0.25s ease;
}

.video-card:hover .play-overlay {
    background: rgba(0, 0, 0, 0.15);
}

.play-circle {
    width: 44px;
    height: 44px;
    background: rgba(255, 43, 84, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    padding-left: 3px;
    box-shadow: 0 4px 16px rgba(255, 43, 84, 0.5);
    transition: transform 0.25s ease;
}

.video-card:hover .play-circle {
    transform: scale(1.15);
    background: #ff2b54;
}

/* BADGES */
.badge-quality {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(10, 11, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: 0.05em;
}

.badge-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
}

/* CARD INFO */
.card-info {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-teaser {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
}

.card-views {
    color: var(--accent-orange);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* LOAD MORE BUTTON */
.load-more-wrap {
    text-align: center;
    margin-top: 36px;
}

.btn-load-more {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-load-more:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 18px var(--primary-glow);
    transform: translateY(-2px);
}

/* FOOTER */
.site-footer {
    border-top: 1px solid var(--border-color);
    background: #07080d;
    padding: 40px 20px 30px;
    text-align: center;
    color: #64748b;
    font-size: 0.84rem;
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 12px;
    opacity: 0.8;
}

.footer-disclaimer {
    max-width: 600px;
    margin: 0 auto 16px;
    line-height: 1.5;
}

.footer-copy {
    color: #475569;
}

/* ========================================================
   FEATURED FAKE PLAYER & MAXIMIZED LIVE WIDGETS
   ======================================================== */

.featured-player-section {
    max-width: 900px;
    margin: 0 auto 36px;
    padding: 0 16px;
}

.featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.f-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 43, 84, 0.15);
    border: 1px solid rgba(255, 43, 84, 0.4);
    color: #ff476d;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.featured-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
    width: 100%;
}

.fake-player-wrapper {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 43, 84, 0.15);
    cursor: pointer;
    aspect-ratio: 16 / 9;
    user-select: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fake-player-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 43, 84, 0.25);
}

.fake-player-screen {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fake-player-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    transition: filter 0.3s ease;
}

.fake-player-wrapper:hover .fake-player-thumb {
    filter: brightness(0.95);
}

.player-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, transparent 35%, transparent 65%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
}

/* TOP STREAM BAR */
.player-top-bar {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
    font-size: 0.78rem;
    font-weight: 700;
}

.stream-quality {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4ade80;
}

.stream-viewers {
    background: rgba(255, 43, 84, 0.85);
    padding: 4px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    box-shadow: 0 2px 10px rgba(255, 43, 84, 0.4);
}

/* BIG PLAY PULSE */
.fake-play-btn-pulse {
    position: absolute;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
}

.play-icon-box {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #ff2b54, #ff5e3a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 0 25px rgba(255, 43, 84, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding-left: 4px;
}

.fake-player-wrapper:hover .play-icon-box {
    transform: scale(1.1);
}

.pulse-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255, 43, 84, 0.6);
    animation: ripple-anim 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.pulse-ring.ring-2 {
    animation-delay: 0.6s;
}

@keyframes ripple-anim {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.player-center-hint {
    position: absolute;
    bottom: 54px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.04em;
    z-index: 6;
}

/* BUFFERING SPINNER */
.fake-buffering {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
}

.spinner-circle {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top: 4px solid #ff2b54;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* BOTTOM CONTROLS BAR */
.fake-controls-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.9) 100%);
    z-index: 7;
}

.scrubber-track {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-bottom: 8px;
}

.scrubber-buffer {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
}

.scrubber-played {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: #ff2b54;
    border-radius: 4px;
}

.scrubber-handle {
    position: absolute;
    top: -4px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0,0,0,0.5);
    transform: translateX(-50%);
}

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e2e8f0;
    font-size: 0.82rem;
}

.ctrl-left, .ctrl-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ctrl-btn {
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.ctrl-btn:hover {
    opacity: 1;
}

.ctrl-time {
    font-size: 0.78rem;
    color: #cbd5e1;
    font-variant-numeric: tabular-nums;
}

.ctrl-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
}

/* LIVE ACTIVITY TOAST */
.live-activity-toast {
    position: fixed;
    bottom: 24px;
    left: 20px;
    z-index: 999;
    background: rgba(15, 17, 26, 0.92);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 43, 84, 0.3);
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 43, 84, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 380px;
    color: #fff;
    font-size: 0.82rem;
    line-height: 1.4;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease, visibility 0.4s ease;
    transform: translateY(150px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.live-activity-toast.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff2b54;
    flex-shrink: 0;
    animation: blink 0.8s infinite alternate;
}

/* AD BANNER ZONE */
.ad-banner-zone {
    width: 100%;
    max-width: 728px;
    margin: 20px auto;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

/* STICKY BOTTOM MOBILE BAR */
.sticky-mobile-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: linear-gradient(135deg, #181926, #0e1017);
    border-top: 1px solid rgba(255, 43, 84, 0.4);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.8);
    padding: 10px 16px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sticky-mobile-cta {
    flex: 1;
    background: linear-gradient(135deg, #ff2b54, #ff5e3a);
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
    text-align: center;
    padding: 10px 14px;
    border-radius: 8px;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(255, 43, 84, 0.4);
}

.sticky-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #94a3b8;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* RESPONSIVE */
@media (max-width: 640px) {
    .sticky-mobile-ad {
        display: flex;
    }
    .fake-player-wrapper {
        border-radius: 12px;
    }
    .featured-title {
        font-size: 0.98rem;
    }
    .play-icon-box {
        width: 54px;
        height: 54px;
        font-size: 1.2rem;
    }
    .pulse-ring {
        inset: -4px;
    }
    .player-center-hint {
        bottom: 42px;
        font-size: 0.72rem;
        padding: 4px 12px;
    }
    .live-activity-toast {
        left: 10px;
        right: 10px;
        bottom: 65px;
        max-width: none;
        font-size: 0.76rem;
    }
}

