/* ==========================================================================
   Baikoko 18+ VIP - Main & Video Player Stylesheet
   Mobile-First, Lightweight, High Performance CSS
   ========================================================================== */

:root {
    --bg-main: #0c0d14;
    --bg-card: #151722;
    --bg-card-hover: #1c1f2e;
    --primary: #e11d48;
    --primary-hover: #be123c;
    --primary-glow: rgba(225, 29, 72, 0.35);
    --wa-green: #25d366;
    --wa-green-hover: #1eb956;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #272a3b;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.video-header {
    background-color: rgba(12, 13, 20, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.video-header-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.badge-18 {
    background-color: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--primary-glow);
}

.site-title {
    color: #fff;
}

.header-right-btns {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-back-link,
.btn-chat-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #1e2235;
    color: #e2e8f0;
    padding: 0.45rem 0.85rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-chat-shortcut {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.btn-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, var(--primary), #be123c);
    color: #fff;
    padding: 0.45rem 0.95rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px var(--primary-glow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-header-cta:hover, .btn-header-cta:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--primary-glow);
}

/* ==========================================================================
   Home Page Layout & Teasers
   ========================================================================== */

.home-main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.25rem 1rem;
    flex: 1;
    width: 100%;
}

.hero-teaser-card {
    background: linear-gradient(135deg, #182b24 0%, #151722 100%);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.hero-badge {
    display: inline-block;
    background: rgba(37, 211, 102, 0.2);
    color: #25d366;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.hero-teaser-card h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
}

.hero-teaser-card p {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.45;
}

.btn-hero-chat {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--wa-green);
    color: #0b141a;
    font-weight: 800;
    padding: 0.75rem 1.4rem;
    border-radius: 50px;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    transition: all 0.2s ease;
}

.btn-hero-chat:hover, .btn-hero-chat:active {
    transform: scale(1.02);
    background: var(--wa-green-hover);
}

.feed-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.feed-header-row h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.count-pill {
    background: #1e2235;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.video-card:hover {
    transform: translateY(-3px);
    border-color: #3b425f;
}

.video-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    display: block;
    overflow: hidden;
}

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

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

.placeholder-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: #1a1c29;
}

.play-overlay-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.65);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    pointer-events: none;
}

.badge-preview-time {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.video-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

.video-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
}

.btn-watch-card {
    display: block;
    text-align: center;
    background: #202438;
    color: #fff;
    padding: 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.2s ease;
    margin-top: 0.25rem;
}

.btn-watch-card:hover {
    background: var(--primary);
}

.banner-cta-section {
    background: linear-gradient(135deg, #2b1118 0%, #151722 100%);
    border: 1px solid rgba(225, 29, 72, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

.banner-cta-inner h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
}

.banner-cta-inner p {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-big-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    box-shadow: 0 4px 18px var(--primary-glow);
    transition: transform 0.15s ease;
    width: 100%;
    max-width: 360px;
}

.btn-big-download:hover, .btn-big-download:active {
    transform: scale(1.02);
}

/* Floating WhatsApp Button */
.floating-wa-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--wa-green);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    z-index: 99;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.floating-wa-btn:active {
    transform: scale(0.95);
}

@media (max-width: 480px) {
    .floating-wa-label {
        display: none;
    }
    .floating-wa-btn {
        padding: 0.85rem;
        border-radius: 50%;
    }
}

/* ==========================================================================
   Video Player Page & 10s Preview Modal
   ========================================================================== */

.video-main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    flex: 1;
    width: 100%;
}

.player-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    aspect-ratio: 16/9;
}

.html5-video-player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
    transition: filter 0.3s ease;
}

/* Video blur state when preview ends */
.video-container.preview-ended .html5-video-player {
    filter: blur(12px) brightness(0.4);
    pointer-events: none;
}

/* Unmute Banner */
.unmute-banner {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: none;
}

.btn-unmute {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* 10-Second Preview Lock Modal Overlay */
.preview-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 11, 18, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 30;
    padding: 1rem;
    animation: fadeInModal 0.3s ease forwards;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.video-container.preview-ended .preview-modal-overlay {
    display: flex;
}

.preview-modal-box {
    background: linear-gradient(180deg, #1e202f 0%, #13141f 100%);
    border: 1px solid rgba(225, 29, 72, 0.4);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    text-align: center;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(225, 29, 72, 0.2);
}

.modal-icon-lock {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.75rem auto;
    background: rgba(225, 29, 72, 0.15);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(225, 29, 72, 0.3);
}

.preview-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.modal-description {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.45;
    margin-bottom: 1.25rem;
}

.modal-buttons-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn-action-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), #be123c);
    color: #fff;
    padding: 0.85rem 1.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: transform 0.15s ease;
}

.btn-action-download:hover, .btn-action-download:active {
    transform: scale(1.02);
}

.btn-action-back {
    background: #25283a;
    color: #94a3b8;
    padding: 0.65rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.2s ease;
}

.btn-action-back:hover {
    background: #31354d;
    color: #fff;
}

.modal-app-features {
    display: flex;
    justify-content: space-around;
    font-size: 0.72rem;
    color: #94a3b8;
    border-top: 1px solid #272a3b;
    padding-top: 0.75rem;
}

/* Video Information Card */
.video-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.video-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.tag-18-red {
    background: rgba(225, 29, 72, 0.2);
    color: #f43f5e;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(225, 29, 72, 0.3);
}

.tag-views, .tag-date {
    color: var(--text-muted);
}

.video-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
}

.video-desc {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.app-promo-box {
    background: linear-gradient(135deg, #1e202f 0%, #151722 100%);
    border: 1px dashed rgba(225, 29, 72, 0.4);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.promo-text h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.25rem;
}

.promo-text p {
    font-size: 0.8rem;
    color: #94a3b8;
}

.btn-promo-cta {
    display: block;
    text-align: center;
    background: var(--primary);
    color: #fff;
    padding: 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.share-actions-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn-share-copy, .btn-open-chat {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #1e2235;
    color: #e2e8f0;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    transition: background 0.2s ease;
}

.btn-share-copy:hover {
    background: #2a2f47;
}

.btn-open-chat {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.btn-open-chat:hover {
    background: rgba(37, 211, 102, 0.25);
}

/* ==========================================================================
   Not Found / Empty States & Footer
   ========================================================================== */

.not-found-card, .empty-feed-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin-top: 1.5rem;
}

.not-found-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.not-found-card h2 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.not-found-card p, .empty-feed-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.not-found-actions, .empty-feed-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-action-primary, .btn-action-secondary {
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.btn-action-primary {
    background: var(--wa-green);
    color: #0b141a;
}

.btn-action-secondary {
    background: #25283a;
    color: #fff;
}

/* Footer */
.site-footer, .video-footer {
    background: #090a0f;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-warning {
    color: #ef4444;
    font-size: 0.75rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-links a:hover {
    color: #fff;
}
