/* =====================================================
   Custom Overrides - Red "เร่าร้อน" Theme
   ===================================================== */

/* ---- Video Card: Red glow on hover (no transform — transform breaks play overlay position) ---- */
.video-card:hover {
    box-shadow: 0 12px 32px rgba(229,57,53,0.35), 0 4px 12px rgba(0,0,0,0.3) !important;
    border-top: 3px solid #E53935 !important;
}

/* ---- Cancel image zoom on hover — zoom creates stacking context that shifts play overlay ---- */
.video-card:hover .video-image {
    transform: none !important;
}

/* ---- Video thumbnail: containing block for play overlay ---- */
.video-thumbnail {
    position: relative !important;
    overflow: hidden !important;
}

/* ---- Play overlay: 54px circle centered with negative margin ---- */
.play-overlay {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 54px !important;
    height: 54px !important;
    margin-top: -27px !important;
    margin-left: -27px !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: hidden !important;
    opacity: 1 !important;
    background: rgba(229,57,53,0.85) !important;
    border-radius: 50% !important;
    border: 3px solid rgba(255,255,255,0.9) !important;
    box-shadow: 0 0 20px rgba(229,57,53,0.6) !important;
    backdrop-filter: none !important;
    transition: none !important;
    pointer-events: none !important;
    z-index: 10 !important;
}

.video-card:hover .play-overlay {
    visibility: visible !important;
}

/* ---- Play icon: SVG inside the circle ---- */
.play-icon {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    color: #fff !important;
    margin-left: 2px !important;
    transform: none !important;
    filter: none !important;
}

/* ---- Video title hover: red accent ---- */
.video-title a:hover {
    color: #E53935 !important;
    text-shadow: 0 0 8px rgba(229,57,53,0.3) !important;
}

/* ---- Section headers: red left-border accent ---- */
.section-header,
.bys-section-header {
    border-left: 4px solid #E53935 !important;
    padding-left: 12px !important;
}

.section-title,
.bys-section-title {
    color: #FF7373 !important;
    text-shadow: 0 2px 8px rgba(183,28,28,0.4) !important;
}

/* ---- Header gradient: deep red → dark ---- */
.bys-header {
    background: linear-gradient(135deg, #8B0000 0%, #B71C1C 40%, #1e1e1e 100%) !important;
    box-shadow: 0 4px 20px rgba(183,28,28,0.5) !important;
}

/* ---- Search button: red ---- */
.bys-search-button {
    background: linear-gradient(135deg, #E53935 0%, #B71C1C 100%) !important;
}

.bys-search-button:hover {
    background: linear-gradient(135deg, #FF5252 0%, #E53935 100%) !important;
    box-shadow: 0 4px 12px rgba(229,57,53,0.5) !important;
}

/* ---- Primary buttons: red gradient ---- */
.bys-btn,
.bys-btn.primary {
    background: linear-gradient(135deg, #FF7373 0%, #E53935 50%, #FF7373 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(229,57,53,0.35) !important;
}

.bys-btn:hover,
.bys-btn.primary:hover {
    background: linear-gradient(135deg, #B71C1C 0%, #E53935 50%, #FF7373 100%) !important;
    box-shadow: 0 6px 20px rgba(229,57,53,0.55) !important;
    color: #fff !important;
}

/* ---- Secondary buttons: dark with red border ---- */
.bys-btn.secondary {
    border-color: #E53935 !important;
    color: #FF7373 !important;
}

.bys-btn.secondary:hover {
    border-color: #FF7373 !important;
    color: #FF7373 !important;
    box-shadow: 0 0 12px rgba(229,57,53,0.3) !important;
}

/* ---- HR dividers: red glow ---- */
hr {
    background: linear-gradient(90deg, transparent, #E53935, transparent) !important;
    height: 2px !important;
    border: none !important;
    opacity: 0.6 !important;
}

/* ---- Category badge: deep red ---- */
.category-badge {
    background: linear-gradient(135deg, #E53935, #B71C1C) !important;
    box-shadow: 0 2px 8px rgba(183,28,28,0.4) !important;
}

/* ---- Related / Popular section borders: red ---- */
.bys-related-section,
.bys-popular-section {
    border-color: #E5393570 !important;
    box-shadow: inset 0 0 40px rgba(229,57,53,0.05) !important;
}

/* ---- Pagination: red accent ---- */
.pagination-previous:hover,
.pagination-next:hover,
.pagination-link:hover,
.is-currentx.is-color-me {
    color: #E53935 !important;
    border-color: #E53935 !important;
}

/* ---- Widget header: red left indicator ---- */
.widget-header {
    border-left: 4px solid #E53935 !important;
}

/* ---- Tab nav: red ---- */
.tabs a {
    background-color: #8B0000 !important;
    transition: background 0.2s ease !important;
}

.tabs a:hover,
.tabs li.is-active a {
    background-color: #E53935 !important;
}

/* ---- Strong text: vivid red ---- */
strong {
    color: #E53935 !important;
}

/* ---- Dark mode: keep red accent ---- */
@media (prefers-color-scheme: dark) {
    .video-title a:hover {
        color: #FF7373 !important;
        text-shadow: 0 0 10px rgba(229,57,53,0.4) !important;
    }

    .video-tags .tag:hover {
        background: #E53935 !important;
        color: #fff !important;
    }
}

/* ---- Ambient red glow on header logo hover ---- */
.bys-site-logo img:hover {
    filter: drop-shadow(0 0 12px rgba(229,57,53,0.6)) !important;
}

/* ---- Copyright / footer site URL: red link ---- */
.site-url-link,
#copyright a {
    color: #E53935 !important;
    text-decoration: none !important;
}

.site-url-link:hover,
#copyright a:hover {
    color: #B71C1C !important;
    text-decoration: underline !important;
}

/* ---- "New" / trending pulse animation ---- */
@keyframes redPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229,57,53,0.6); }
    50%       { box-shadow: 0 0 0 8px rgba(229,57,53,0); }
}

.bys-btn.pulse {
    animation: redPulse 2s ease-in-out infinite !important;
}
