/* ── Player Layout ── */

.player-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.m2f-player-wrap {
    flex: 1 1 auto;
    min-width: 0;
    padding: 4px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    box-sizing: border-box;
}

.m2f-player-frame {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

/* ── Hero Carousel — หน้าแรก (yt-av-hero) ────────────────────────── */

.yt-av-hero {
    position: relative;
    isolation: isolate;
    min-height: 380px;
    margin: 18px 32px 22px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: var(--bg-elevated);
}

.yt-av-hero__track,
.yt-av-hero__slide {
    min-height: inherit;
}

.yt-av-hero__slide {
    position: absolute;
    inset: 0;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.yt-av-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.yt-av-hero__panel {
    position: relative;
    min-height: inherit;
}

.yt-av-hero__panel--text {
    display: flex;
    align-items: center;
    width: 54%;
    padding: 36px 44px;
    background: #0F0F0F;
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, calc(100% - 120px) 100%, 0 100%);
    position: relative;
    overflow: hidden;
}

.yt-av-hero__bg-blur {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.12;
    filter: blur(12px);
    transform: scale(1.2);
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.yt-av-hero__video.is-active ~ .yt-av-hero__bg-blur,
.yt-av-hero__slide:has(.yt-av-hero__video.is-active) .yt-av-hero__bg-blur {
    opacity: 0.05;
}

.yt-av-hero__panel--image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 58%;
    overflow: hidden;
    z-index: 1;
}

.yt-av-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.yt-av-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0;
    filter: blur(2px);
    transform: scale(1.2);
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.yt-av-hero__video.is-active {
    opacity: 0.35;
}

.yt-av-hero__content {
    position: relative;
    z-index: 2;
    width: min(480px, 100%);
}

.yt-av-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 4px 10px;
    border: 1px solid var(--white-18);
    border-radius: 4px;
    color: var(--text-primary);
    background: var(--bg-surface-3);
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.yt-av-hero__badge:hover {
    color: var(--text-primary);
    background: var(--primary);
    border-color: var(--primary);
}

.yt-av-hero__title {
    max-width: 480px;
    margin: 0 0 14px;
    color: var(--text-primary);
    font-size: clamp(1.4rem, 2.6vw, 2.2rem);
    font-weight: 700;
    line-height: 1.18;
}

.yt-av-hero__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.yt-av-hero__title a:hover { color: var(--primary); }

.yt-av-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.yt-av-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    color: var(--text-muted);
    background: var(--bg-body);
    font-size: 0.76rem;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.yt-av-hero__meta-item:hover {
    color: var(--text-primary);
    border-color: var(--white-18);
}

.yt-av-hero__meta-item--static {
    cursor: default;
}

.yt-av-hero__meta-item--static:hover {
    color: var(--text-muted);
    border-color: var(--border-soft);
}

.yt-av-hero__meta i { color: var(--text-muted); }

.yt-av-hero__excerpt {
    display: -webkit-box;
    max-width: 460px;
    margin: 0 0 18px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.yt-av-hero__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    color: #fff;
    background: var(--primary);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.yt-av-hero__button:hover {
    color: #fff;
    background: var(--primary);
}

.yt-av-hero__arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    background: rgba(15, 15, 15, 0.7);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 0.15s ease, background 0.15s ease;
}

.yt-av-hero:hover .yt-av-hero__arrow,
.yt-av-hero:focus-within .yt-av-hero__arrow { opacity: 1; }

.yt-av-hero__arrow:hover { background: var(--bg-surface-3); }

.yt-av-hero__arrow--prev { left: 14px; }

.yt-av-hero__arrow--next { right: 14px; }

.yt-av-hero__dots {
    position: absolute;
    right: 36px;
    bottom: 18px;
    z-index: 4;
    display: flex;
    gap: 6px;
}

.yt-av-hero__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.yt-av-hero__dot.is-active {
    width: 22px;
    border-radius: 999px;
    background: var(--text-primary);
}

@media (max-width: 768px) {
    .yt-av-hero { min-height: 340px; margin: 12px 16px 18px; }
    .yt-av-hero__slide {
        flex-direction: column;
        align-items: flex-end;
        padding: 22px 18px 28px;
    }
    .yt-av-hero__panel--text {
        width: 100%;
        padding: 0;
        background: transparent;
        clip-path: none;
        z-index: 2;
    }
    .yt-av-hero__panel--image {
        position: absolute;
        inset: 0;
        width: 100%;
        z-index: 1;
    }
    .yt-av-hero__panel--image::after {
        content: '';
        position: absolute;
        inset: 0;
        background:
            linear-gradient(0deg, rgba(15,15,15,0.96) 0%, rgba(15,15,15,0.7) 45%, transparent 75%),
            linear-gradient(90deg, rgba(15,15,15,0.5) 0%, transparent 50%);
    }
    .yt-av-hero__content {
        width: 100%;
        padding: 0;
    }
    .yt-av-hero__title { font-size: clamp(1.3rem, 5vw, 1.9rem); }
    .yt-av-hero__excerpt { font-size: 0.82rem; -webkit-line-clamp: 3; line-clamp: 3; }
    .yt-av-hero__arrow { opacity: 1; width: 32px; height: 32px; }
    .yt-av-hero__arrow--prev { left: 8px; }
    .yt-av-hero__arrow--next { right: 8px; }
    .yt-av-hero__dots { right: 18px; bottom: 14px; }
}

/* ════════════════════════════════════════════════════════════════════
 * M2F Hero Banner — 3 รูป layout (อิงจาก avmissx design)
 * Desktop: รูปใหญ่ซ้าย (2fr) + 2 รูปซ้อนขวา (1fr)
 * Mobile:  รูปใหญ่บน + 2 รูปเรียงคู่ล่าง
 * ════════════════════════════════════════════════════════════════════ */

.hero-banner {
    display: grid;
    gap: 3px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-soft);
    background: var(--bg-elevated);
    margin: 18px 32px 22px;
}

/* ── Featured: รูปใหญ่ซ้าย — สัดส่วน 3:2 ── */
.hero-featured {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: var(--bg-elevated);
}

.hero-featured-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

.hero-featured-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.hero-featured-video.is-active {
    opacity: 1;
}

.hero-featured-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 15, 15, 0.96) 0%, rgba(15, 15, 15, 0.5) 68%, transparent 100%),
        linear-gradient(0deg, rgba(15, 15, 15, 0.98), transparent 72%);
}

.hero-featured-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-width: 88%;
    padding: 20px;
}

.hero-featured-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.hero-featured-eyebrow i {
    font-size: 14px;
}

.hero-featured-title {
    margin: 0 0 12px;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero-featured-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.hero-featured-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ── Buttons ── */
.hero-banner .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.hero-banner .btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 30%, transparent);
}

.hero-banner .btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.hero-banner .btn-hero-outline {
    background: rgba(15, 15, 15, 0.5);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-banner .btn-hero-outline:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-banner .btn-hero-outline i {
    font-size: 13px;
}

/* ── Side: 2 รูปขวา ── */
.hero-side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    padding: 12px;
}

.hero-side-card {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: var(--radius-md);
    display: block;
    text-decoration: none;
}

.hero-side-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.hero-side-card:hover img {
    transform: scale(1.05);
}

.hero-side-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.2) 50%, transparent);
    transition: background 0.2s ease;
}

.hero-side-card:hover .hero-side-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.35) 60%, transparent);
}

.hero-side-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    z-index: 2;
}

.hero-side-title {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* ── Desktop (≥768px): 2fr 1fr, side เรียงแนวตั้ง ── */
@media (min-width: 768px) {
    .hero-banner {
        grid-template-columns: 2fr 1fr;
    }

    .hero-featured-content {
        max-width: 76%;
        padding: 28px;
    }

    .hero-featured-title {
        font-size: 2.25rem;
    }

    .hero-side {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 1px;
        padding: 0;
        border-left: 1px solid var(--border-soft);
    }

    .hero-side-card {
        border-radius: 0;
        aspect-ratio: auto;
        height: 100%;
    }
}

/* ── Large desktop (≥1024px) ── */
@media (min-width: 1024px) {
    .hero-featured-content {
        padding: 36px;
    }

    .hero-featured-title {
        font-size: 2.6rem;
    }

    .hero-side-title {
        font-size: 14px;
    }
}

/* ── Mobile (≤767px): รูปใหญ่บน + 2 รูปเรียงคู่ล่าง ── */
@media (max-width: 767px) {
    .hero-banner {
        margin: 12px 16px 18px;
    }

    .hero-featured-title {
        font-size: 1.45rem;
    }

    /* มือถือ: side ไม่มี padding/gap — ให้รูปเต็มขอบ */
    .hero-side {
        padding: 0;
        gap: 3px;
    }

    .hero-side-card {
        border-radius: 0;
    }
}

/* ── Small mobile (≤480px) ── */
@media (max-width: 480px) {
    .hero-featured-title {
        font-size: 1.25rem;
    }

    .hero-featured-content {
        padding: 16px;
    }

    .hero-side-title {
        font-size: 12px;
    }
}

/* ════════════════════════════════════════════════════════════════════
 * Favorites — ปุ่มหัวใจ + หน้า favorites
 * ════════════════════════════════════════════════════════════════════ */

/* ── Badge นับใน header ── */
.header-fav-btn {
    position: relative;
}

.header-fav-count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── ปุ่มหัวใจในการ์ดหนัง ── */
.m2f-fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
}

.m2f-fav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.m2f-fav-btn.is-fav {
    background: var(--primary);
    color: #fff;
}

.m2f-fav-btn.is-fav i {
    color: #fff;
}

.m2f-fav-btn.m2f-fav-pulse {
    animation: m2fFavPulse 0.3s ease;
}

@keyframes m2fFavPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ── หน้า Favorites ── */
.yt-favorites-page .yt-content-inner {
    padding: 18px 32px 22px;
    max-width: 1840px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ในหน้า favorites section อยู่ใน content-inner ที่มี padding แล้ว — ไม่ต้องมี padding ซ้อน */
.yt-favorites-page .related-movies.section-2026 {
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .yt-favorites-page .yt-content-inner {
        padding: 12px 16px 18px;
    }
}

.m2f-fav-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    text-align: center;
}

.m2f-fav-empty i {
    font-size: 4rem;
    color: var(--text-muted);
    opacity: 0.4;
}

.m2f-fav-empty h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.m2f-fav-empty p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.m2f-fav-actions {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.m2f-fav-actions .btn {
    color: var(--text-secondary);
}

.m2f-fav-actions .btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* ── Home SEO Header (yt-home-header) ─────────────────────────── */

.yt-home-header {
    padding: 28px 32px 8px;
}

.yt-home-header > div {
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 28px 28px 26px;
    position: relative;
    overflow: hidden;
}

.yt-home-header h1 {
    color: var(--text-primary);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    text-align: center;
}

.yt-home-header p:last-child {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
    max-width: auto;
}

@media (max-width: 768px) {
    .yt-home-header {
        padding: 18px 16px 6px;
    }
    .yt-home-header > div {
        border-radius: 14px;
        padding: 18px;
    }
}

/* ── View All Button ──────────────────────────────────────────── */

.yt-view-all {
    display: flex;
    justify-content: center;
    padding: 0 32px 40px;
}

.yt-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.yt-view-all-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

.yt-view-all-btn .fa-chevron-right {
    font-size: 0.75rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .yt-view-all {
        padding: 0 16px 32px;
    }
    .yt-view-all-btn {
        padding: 10px 22px;
        font-size: 0.85rem;
    }
}

/* ── Footer SEO Section (yt-home-footer-seo) ──────────────────── */

.yt-home-footer-seo > div {
    padding: 32px 32px 30px;
}

.yt-home-footer-seo h2 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.3;
}

.yt-home-footer-seo h3 {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 20px 0 8px;
    line-height: 1.3;
}

.yt-home-footer-seo p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.75;
    margin: 0;
}

@media (max-width: 768px) {
    .yt-home-footer-seo > div {
        padding: 20px 18px;
    }
    .yt-home-footer-seo h2 {
        font-size: 1rem;
    }
    .yt-home-footer-seo h3 {
        font-size: 0.9rem;
        margin: 16px 0 6px;
    }
    .yt-home-footer-seo p {
        font-size: 0.82rem;
    }
}

/* ── Footer ───────────────────────────────────────────────────── */

.site-footer-2026 {
    margin-top: 0;
    margin-left: var(--sidebar-w);
    margin-right: var(--sidebar-w);
    background: var(--bg-body);
    border-top: 1px solid var(--border-soft);
    transition: margin-left 0.2s ease, margin-right 0.2s ease;
    position: relative;
    overflow: hidden;
}

.site-footer-2026::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--primary) 50%,
            transparent 100%);
    opacity: 0.6;
}

.yt-sidebar.is-collapsed ~ * .site-footer-2026,
.yt-sidebar.is-collapsed ~ main#main-content.yt-content ~ * .site-footer-2026 {
    margin-left: var(--sidebar-collapsed);
}

body.has-right-sidebar .site-footer-2026 {
    margin-right: var(--sidebar-w);
}

@media (max-width: 1300px) {
    .site-footer-2026,
    body.has-right-sidebar .site-footer-2026 {
        margin-right: 0;
    }
}

.site-footer-2026 .container {
    max-width: 100%;
    padding: 0 24px;
}

/* ── Footer SEO Block ─────────────────────────────────────────── */

.footer-seo-block {
    padding: 24px 0 16px;
    border-top: 1px solid var(--border-soft);
    margin: 24px 0 0;
    width: 100%;
    box-sizing: border-box;
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
    text-align: left;
    position: relative;
}

.footer-seo-block .container {
    max-width: 1840px;
    padding: 0 24px;
    margin: 0 auto;
    box-sizing: border-box;
}

.footer-seo-block h1,
.footer-seo-block h2,
.footer-seo-block h3,
.footer-seo-block h4,
.footer-seo-block h5,
.footer-seo-block h6 {
    color: var(--text-primary);
    font-weight: 500;
    margin: 0 0 12px;
    line-height: 1.4;
}

.footer-seo-block h1 {
    font-size: var(--font-size-3xl);
    background: none;
    -webkit-text-fill-color: var(--text-primary);
}

.footer-seo-block h2 {
    font-size: 1rem;
}

.footer-seo-block h3 {
    font-size: var(--font-size-xl);
}

.footer-seo-block div {
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
    text-align: left;
}

.footer-seo-block p {
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
    margin: 0 0 12px;
}

.footer-seo-block strong,
.footer-seo-block b {
    color: var(--text-primary);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

.footer-seo-block a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 1px;
    transition: all 0.15s;
}

.footer-seo-block a:hover {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.footer-seo-block ul,
.footer-seo-block ol {
    padding-left: 24px;
    margin: 8px 0 16px;
    text-align: left;
    column-count: 2;
    column-gap: 40px;
}

.footer-seo-block li {
    margin-bottom: 8px;
}

.footer-seo-block ul li::marker {
    color: var(--primary);
    font-size: 1.2em;
}

.footer-seo-block hr {
    border: none;
    border-top: 1px solid var(--border-soft);
    margin: 16px 0;
}

.footer-seo-block .grid-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 40px;
    margin: 0;
    text-align: left;
}

.footer-seo-block .grid-layout h3 {
    margin-bottom: 8px;
}

.footer-seo-block .grid-layout ul {
    padding-left: 20px;
    margin: 0;
}

.footer-seo-block .grid-layout li p {
    margin: 0;
    text-align: left;
}

.footer-seo-block table {
    width: 100%;
    margin: 0 0 16px;
    border-collapse: collapse;
    font-size: 0.8125rem;
    text-align: left;
}

.footer-seo-block th,
.footer-seo-block td {
    border: 1px solid var(--border-soft);
    padding: 8px 12px;
}

.footer-seo-block th {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-weight: 600;
}

.footer-seo-block blockquote {
    margin: 0 0 16px;
    padding: 10px 16px;
    border-left: 3px solid var(--primary);
    background: rgba(255, 255, 255, 0.03);
    text-align: left;
    color: var(--text-muted);
    border-radius: 0 6px 6px 0;
}

.footer-faq-heading {
    margin: 16px 0 8px;
}

.footer-faq-list {
    margin: 0;
    text-align: left;
}

.footer-seo-block .footer-faq-item {
    border-bottom: 1px solid var(--border-soft);
}

.footer-seo-block .footer-faq-item p {
    padding: 0 0 10px 20px;
    text-align: left;
    margin-bottom: 8px;
}

.footer-seo-block details {
    margin: 0;
    text-align: left;
}

.footer-seo-block details summary {
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 600;
    padding: 8px 0;
    list-style: none;
}

.footer-seo-block details summary::before {
    content: '+';
    display: inline-block;
    width: 20px;
    color: var(--primary);
    font-weight: 700;
}

.footer-seo-block details[open] summary::before {
    content: '−';
}

.footer-seo-block details h3 {
    margin: 12px 0 4px;
    font-size: 0.875rem;
}

.footer-seo-block details p {
    text-align: left;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .footer-seo-block {
        font-size: 0.75rem;
        padding: 16px 0 12px;
    }
    .footer-seo-block .container {
        padding: 0 16px;
    }
    .footer-seo-block h1 {
        font-size: var(--font-size-xl);
    }
    .footer-seo-block h2 {
        font-size: 0.875rem;
    }
    .footer-seo-block h3 {
        font-size: var(--font-size-base);
    }
    .footer-seo-block .grid-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .footer-seo-block ul,
    .footer-seo-block ol {
        column-count: 1;
    }
}

/* ── Footer Grid ──────────────────────────────────────────────── */

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-soft);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.footer-col:hover {
    transform: none;
}

.footer-col.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-soft);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul a {
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 400;
    padding: 2px 0;
    transition: color 0.15s;
}

.footer-col ul a:hover {
    color: var(--text-primary);
}

.footer-col ul a i {
    color: var(--text-muted);
}

.footer-col ul a:hover i {
    color: var(--text-primary);
}

.footer-links-columns {
    display: flex;
    gap: 20px;
}

.footer-links-columns ul {
    flex: 1;
}

/* ── Footer Bottom ────────────────────────────────────────────── */

.footer-bottom {
    background: var(--bg-body);
    border-top: none;
    padding: 16px 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    position: relative;
}

.footer-bottom a {
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.footer-bottom-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 20px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: center;
}

.footer-bottom-flex span {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-bottom-flex a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-bottom-flex a:hover {
    color: var(--text-primary);
}

.footer-bottom-flex i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-widget .site-info-grid,
.footer-widget .info-grid {
    gap: 8px;
}

@media (max-width: 768px) {
    .site-footer-2026 {
        margin-left: 0;
    }
    .footer-bottom-flex {
        flex-direction: column;
        gap: 8px;
    }
}

/* ══════════════════════════════════════════════════════════════
   Front Page Premium UI — scoped เฉพาะหน้าแรก (.yt-home)
   โทนเดิม: dark #0F0F0F + red #FF0000
   ══════════════════════════════════════════════════════════════ */

/* ── Hero: กรอบหรู + เส้น accent แดงด้านบน ───────────────────── */

.yt-home .yt-av-hero {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, #161616, var(--bg-body));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.yt-home .yt-av-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 8%; right: 8%;
    height: 2px;
    z-index: 5;
    background: linear-gradient(90deg, transparent, var(--primary) 45%, var(--primary) 55%, transparent);
    opacity: 0.85;
    pointer-events: none;
}

.yt-home .yt-av-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 8%; right: 8%;
    height: 2px;
    z-index: 5;
    background: linear-gradient(90deg, transparent, var(--primary) 45%, var(--primary) 55%, transparent);
    opacity: 0.85;
    pointer-events: none;
}

.yt-home .yt-av-hero__panel--text {
    background: radial-gradient(130% 150% at 0% 0%, #1b1b1b 0%, var(--bg-body) 62%);
}

.yt-home .yt-av-hero__panel--text::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 140px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 18%, transparent));
    pointer-events: none;
    z-index: 1;
}

/* ── Hero: badge แดง glass + ไฟกะพริบ ────────────────────────── */

.yt-home .yt-av-hero__badge {
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--primary) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary) 42%, transparent);
    color: var(--red-100);
    backdrop-filter: blur(6px);
    letter-spacing: 0.02em;
}

.yt-home .yt-av-hero__badge i {
    color: var(--primary);
    animation: ytHomePulse 1.6s ease-in-out infinite;
}

.yt-home .yt-av-hero__badge:hover {
    color: #fff;
    background: var(--gradient-primary);
    border-color: transparent;
}

.yt-home .yt-av-hero__badge:hover i {
    color: #fff;
    animation: none;
}

/* ── Hero: meta chips แบบ pill glass ─────────────────────────── */

.yt-home .yt-av-hero__meta-item {
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
}

.yt-home .yt-av-hero__meta-item:hover {
    color: var(--text-primary);
    border-color: color-mix(in srgb, var(--primary) 45%, transparent);
    background: color-mix(in srgb, var(--primary) 14%, transparent);
}

/* ── Hero: ปุ่ม gradient + shine sweep ───────────────────────── */

.yt-home .yt-av-hero__button {
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yt-home .yt-av-hero__button::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 45%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.yt-home .yt-av-hero__button:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px var(--red-shadow);
}

.yt-home .yt-av-hero__button:hover::after { left: 130%; }

/* ── Hero: ลูกศร glass + dots แดงเรือง ───────────────────────── */

.yt-home .yt-av-hero__arrow {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 15, 15, 0.55);
    backdrop-filter: blur(8px);
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.yt-home .yt-av-hero__arrow:hover {
    background: var(--primary);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
}

.yt-home .yt-av-hero__dot {
    transition: all 0.25s ease;
}

.yt-home .yt-av-hero__dot.is-active {
    background: var(--primary);
    box-shadow: 0 0 12px var(--red-shadow);
}

/* ── Hero: content เด้งขึ้นทีละชิ้นตอนเปลี่ยนสไลด์ ───────────── */

.yt-home .yt-av-hero__slide.is-active .yt-av-hero__content > * {
    animation: ytHomeFadeUp 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.yt-home .yt-av-hero__slide.is-active .yt-av-hero__content > *:nth-child(2) { animation-delay: 0.07s; }
.yt-home .yt-av-hero__slide.is-active .yt-av-hero__content > *:nth-child(3) { animation-delay: 0.14s; }
.yt-home .yt-av-hero__slide.is-active .yt-av-hero__content > *:nth-child(4) { animation-delay: 0.21s; }
.yt-home .yt-av-hero__slide.is-active .yt-av-hero__content > *:nth-child(5) { animation-delay: 0.28s; }

/* ── Chips: แถบ glass + active แดง gradient ──────────────────── */

.yt-home .yt-chips-wrap {
    background: rgba(15, 15, 15, 0.82);
    backdrop-filter: blur(16px) saturate(1.4);
    border-bottom-color: transparent;
}

.yt-home .yt-chips-wrap::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 45%, transparent), transparent);
    pointer-events: none;
}

.yt-home .yt-chip {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.yt-home .yt-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: color-mix(in srgb, var(--primary) 50%, transparent);
    transform: translateY(-1px);
}

.yt-home .yt-chip.is-active {
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    border-color: transparent;
    box-shadow: 0 6px 16px var(--red-shadow);
}

/* ── Grid cards: hover ยกการ์ด + ซูมรูป + ปุ่ม play กลางรูป ──── */
/* Global — ใช้ทุกหน้าที่มี movie-card (หน้าแรก, archive, taxonomy, search, related) */

.movie-poster {
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.movie-poster:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--primary) 35%, transparent);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

.movie-image img {
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
}

.movie-poster:hover .movie-image img {
    transform: scale(1.06);
}

.movie-image::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, transparent 40%, rgba(0, 0, 0, 0.38) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.movie-poster:hover .movie-image::before { opacity: 1; }

.movie-image::after {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%; left: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    padding-left: 4px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary) 92%, #000);
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 10px 24px var(--red-shadow);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

.movie-poster:hover .movie-image::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-poster:hover .movie-title a { color: var(--red-100); }

/* ── Grid: การ์ดไล่เด้งขึ้นตอนโหลด / filter ──────────────────── */

.yt-grid .movie-poster,
.movie-grid-container .movie-poster {
    animation: ytHomeCardIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.yt-grid .movie-poster:nth-child(2),
.movie-grid-container .movie-poster:nth-child(2) { animation-delay: 0.03s; }
.yt-grid .movie-poster:nth-child(3),
.movie-grid-container .movie-poster:nth-child(3) { animation-delay: 0.06s; }
.yt-grid .movie-poster:nth-child(4),
.movie-grid-container .movie-poster:nth-child(4) { animation-delay: 0.09s; }
.yt-grid .movie-poster:nth-child(5),
.movie-grid-container .movie-poster:nth-child(5) { animation-delay: 0.12s; }
.yt-grid .movie-poster:nth-child(6),
.movie-grid-container .movie-poster:nth-child(6) { animation-delay: 0.15s; }
.yt-grid .movie-poster:nth-child(7),
.movie-grid-container .movie-poster:nth-child(7) { animation-delay: 0.18s; }
.yt-grid .movie-poster:nth-child(8),
.movie-grid-container .movie-poster:nth-child(8) { animation-delay: 0.21s; }
.yt-grid .movie-poster:nth-child(9),
.movie-grid-container .movie-poster:nth-child(9) { animation-delay: 0.24s; }
.yt-grid .movie-poster:nth-child(10),
.movie-grid-container .movie-poster:nth-child(10) { animation-delay: 0.27s; }

/* ── Home SEO header: glass card + orb แดง + หัวข้อ gradient ─── */

.yt-home .yt-home-header > div {
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.yt-home .yt-home-header > div::after {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 60%, transparent), transparent);
    pointer-events: none;
}

.yt-home .yt-home-header h1 {
    color: var(--text-primary);
    background: linear-gradient(90deg, #fff 55%, var(--red-100));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── View all: ปุ่ม pill แดง gradient + shine ────────────────── */

.yt-home .yt-view-all-btn {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.yt-home .yt-view-all-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 45%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.yt-home .yt-view-all-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px var(--red-shadow);
}

.yt-home .yt-view-all-btn:hover::after { left: 130%; }

.yt-home .yt-view-all-btn .fa-chevron-right {
    opacity: 0.9;
    transition: transform 0.2s ease;
}

.yt-home .yt-view-all-btn:hover .fa-chevron-right { transform: translateX(4px); }

/* ── Keyframes ────────────────────────────────────────────────── */

@keyframes ytHomePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.8; }
}

@keyframes ytHomeFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ytHomeCardIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Mobile: hero panel ใส (override radial background) ───────── */

@media (max-width: 768px) {
    .yt-home .yt-av-hero__panel--text {
        background: linear-gradient(to top, rgba(15, 15, 15, 0.92) 0%, rgba(15, 15, 15, 0.6) 50%, transparent 100%);
    }
    .yt-home .yt-av-hero__panel--text::after {
        display: none;
    }
    .yt-home .yt-av-hero {
        border-radius: 14px;
    }
}

/* ── Reduced motion ───────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .yt-home .yt-av-hero__badge i,
    .yt-home .yt-av-hero__slide.is-active .yt-av-hero__content > *,
    .yt-grid .movie-poster,
    .movie-grid-container .movie-poster {
        animation: none;
    }
    .movie-image img,
    .movie-poster,
    .yt-home .yt-chip {
        transition: none;
    }
}

/* ══════════════════════════════════════════════════════════════
   Site-wide Premium UI — ทุกหน้า (header, sidebar, archive,
   taxonomy, search, single video, footer, buttons)
   โทนเดิม: dark #0F0F0F + red #FF0000
   ══════════════════════════════════════════════════════════════ */

/* ── Header: โลโก้ + search glass glow + ปุ่ม ─────────────────── */

.site-header-2026 {
    background: linear-gradient(180deg, #131313, var(--bg-body));
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand-logo-img,
.brand-fallback {
    filter: drop-shadow(0 0 0 transparent);
    transition: filter 0.25s ease;
}

.brand-logo:hover .brand-logo-img,
.brand-logo:hover .brand-fallback {
    filter: none;
}

.smart-search-form {
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(8px);
}

.smart-search-btn {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.smart-search-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 45%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.smart-search-btn:hover::after { left: 130%; }

.header-btn:hover {
    background: color-mix(in srgb, var(--primary) 16%, transparent);
    color: var(--red-100);
}

.main-nav-list > li > a.active,
.main-nav-list > li > a[aria-current="page"] {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px var(--red-shadow);
}

/* ── Sidebar: nav item accent bar + active glow ──────────────── */

.yt-nav-item {
    position: relative;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.yt-nav-item:hover {
    background: rgba(255, 255, 255, 0.055);
    padding-left: 16px;
}

.yt-nav-item.is-active {
    background: color-mix(in srgb, var(--primary) 15%, transparent);
    color: #fff;
    font-weight: 600;
}

.yt-nav-item.is-active::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--primary);
    box-shadow: 0 0 10px var(--red-shadow);
}

.yt-nav-item.is-active i { color: var(--primary); }

.yt-nav-item.is-active .yt-nav-label {
    color: var(--primary);
}

/* ── Buttons: gradient shine sweep ทั่วเว็บ ───────────────────── */

.btn-primary {
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 45%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px var(--red-shadow);
}

.btn-primary:hover::after { left: 130%; }

/* ── Archive / Taxonomy / Search: glass head + orb แดง ───────── */

.page-archive-head {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.page-archive-head::after {
    content: '';
    position: absolute;
    top: 0; left: 6%; right: 6%;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 55%, transparent), transparent);
    pointer-events: none;
}

.page-archive-count {
    background: color-mix(in srgb, var(--primary) 14%, transparent);
    border-color: color-mix(in srgb, var(--primary) 40%, transparent);
    color: var(--red-100);
}

/* ── Pagination: pill แดง gradient เมื่อ active ──────────────── */

.pagination a,
.pagination span,
.pagination-wrapper .page-numbers {
    transition: all 0.2s ease;
}

.pagination a:hover,
.pagination .current,
.pagination-wrapper .page-numbers:hover,
.pagination-wrapper .page-numbers.current {
    background: var(--gradient-primary) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 6px 16px var(--red-shadow);
    transform: translateY(-1px);
}

/* ── No results: glass card + ไอคอนเรืองแดง ──────────────────── */

.no-results,
.no-results-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.search-no-results-icon {
    color: var(--red-100);
    opacity: 0.85;
    text-shadow: 0 0 24px var(--red-shadow);
}

/* ── Single Video: hero card + poster + info panel + play btn ── */

.movie-watch-page .watch-hero {
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.movie-watch-page .watch-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 6%; right: 6%;
    height: 2px;
    z-index: 3;
    background: linear-gradient(90deg, transparent, var(--primary) 45%, var(--primary) 55%, transparent);
    opacity: 0.85;
    pointer-events: none;
}

.movie-watch-page .watch-poster,
.movie-watch-page .watch-poster-vertical-right {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-watch-page .watch-poster:hover,
.movie-watch-page .watch-poster-vertical-right:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
}

.movie-watch-page .watch-info-cat {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    border-color: color-mix(in srgb, var(--primary) 35%, transparent);
    transition: all 0.2s ease;
}

.movie-watch-page .watch-info-cat:hover {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
}

.movie-watch-page .watch-info-link {
    transition: color 0.2s ease;
}

.movie-watch-page .watch-info-link:hover {
    color: var(--red-100) !important;
    background: transparent !important;
}

.movie-watch-page .watch-actions .btn-primary {
    font-size: 0.95rem;
    padding: 12px 30px;
}

/* ── ปุ่ม favorite ใน Quick View modal + หน้า single ── */
.m2f-qv-info .watch-actions,
.movie-watch-page .watch-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.m2f-fav-btn-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    padding: 10px 22px;
    font-weight: 600;
    font-size: var(--font-size-xs);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

/* ในหน้า single ให้ขนาดเท่า .btn-primary ของหน้า single */
.movie-watch-page .watch-actions .m2f-fav-btn-modal {
    font-size: 0.95rem;
    padding: 12px 30px;
}

.m2f-fav-btn-modal:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.m2f-fav-btn-modal.is-fav {
    color: var(--white) !important;
    border-color: var(--primary) !important;
    background: var(--gradient-primary) !important;
}

.m2f-fav-btn-modal.is-fav i {
    color: var(--white);
}

/* ── Footer: hover accent สำหรับลิงก์ ─────────────────────────── */

.footer-col ul a:hover {
    color: var(--red-100);
}

.footer-col ul a:hover i {
    color: var(--primary);
}

.footer-bottom-flex a:hover {
    color: var(--red-100);
}


