* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0b0e14;
    color: #f1f5f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    padding-bottom: 65px; /* মোবাইল স্টিকি ফুটার ব্যানারের জন্য জায়গা */
}

a {
    text-decoration: none;
    color: inherit;
}

/* নেভিগেশন হেডার */
.navbar {
    background: #131822;
    border-bottom: 1px solid #1e293b;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ef4444;
    letter-spacing: 0.5px;
}

.brand span {
    color: #ffffff;
}

/* অ্যাড কন্টেইনারসমূহ */
.ad-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
    overflow: hidden;
    text-align: center;
}

.sticky-top-ad {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #0b0e14;
    padding: 4px 0;
    border-bottom: 1px solid #1e293b;
}

.sticky-bottom-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: #0b0e14;
    padding: 4px 0;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-sticky-btn {
    position: absolute;
    right: 6px;
    top: -18px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    padding: 2px 6px;
    cursor: pointer;
}

/* মেইন ও ডেস্কটপ সাইডবার লেআউট */
.page-wrapper {
    max-width: 1260px;
    margin: 0 auto;
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.sidebar-ad {
    display: none;
}

.main-content {
    width: 100%;
    max-width: 760px;
}

@media (min-width: 1120px) {
    body {
        padding-bottom: 20px;
    }
    .sidebar-ad {
        display: block;
        width: 160px;
        flex-shrink: 0;
        position: sticky;
        top: 20px;
        height: fit-content;
    }
}

/* ভিডিও টাইটেল ও মেটা */
.video-header {
    margin: 10px 0;
}

.video-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: #94a3b8;
}

.badge-live {
    background: #ef4444;
    color: #fff;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.72rem;
}

/* কাস্টম ভিডিও প্লেয়ার কন্টেইনার */
.player-wrapper {
    position: relative;
    width: 100%;
    background: #000000;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.video-aspect {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.video-aspect video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* প্লেয়ার লক ওভারলে */
.lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 13, 22, 0.86);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    z-index: 30;
    text-align: center;
}

.lock-overlay.hidden {
    display: none;
}

.overlay-ad-slot {
    margin-bottom: 10px;
    max-width: 100%;
}

.lock-status-text {
    font-size: 0.85rem;
    color: #facc15;
    font-weight: 600;
    margin-bottom: 8px;
}

.unlock-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
    animation: pulseBtn 1.5s infinite;
}

@keyframes pulseBtn {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* কাস্টম কন্ট্রোল বার */
.custom-controls {
    background: #131822;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #1e293b;
}

.ctrl-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 6px;
}

.progress-container {
    flex: 1;
    height: 8px;
    background: #334155;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #ef4444;
    transition: width 0.1s linear;
}

.time-display {
    font-size: 0.75rem;
    color: #cbd5e1;
    font-variant-numeric: tabular-nums;
}

/* অ্যাকশন বাটন (Smartlink CTA) */
.cta-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 14px 0;
}

@media (min-width: 600px) {
    .cta-group {
        grid-template-columns: 1fr 1fr;
    }
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    text-align: center;
    transition: opacity 0.2s;
}

.cta-btn:hover {
    opacity: 0.9;
}

.cta-primary {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.cta-secondary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

/* রিলেটেড ভাইরাল ভিডিও গ্রিড */
.section-heading {
    font-size: 1rem;
    font-weight: 700;
    margin: 18px 0 10px;
    padding-left: 8px;
    border-left: 4px solid #ef4444;
    color: #f8fafc;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

.video-card {
    background: #131822;
    border: 1px solid #1e293b;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #1e293b;
}

.card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 3px;
}

.card-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 3px;
}

.card-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.card-body {
    padding: 8px;
}

.card-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #f1f5f9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.card-views {
    font-size: 0.72rem;
    color: #94a3b8;
}