@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* =========================================================
 * SoftX Custom YouTube Feed — Pure White / Premium theme
 * ========================================================= */

.cyf-wrapper {
    --cyf-red: #FF0033;
    --cyf-red-light: #FF4D70;
    --cyf-dark: #0F1115;
    --cyf-gray: #64748B;
    --cyf-gray-light: #94A3B8;
    --cyf-border: #F1F5F9;
    --cyf-radius-lg: 2rem;
    --cyf-radius-md: 1.5rem;
    --cyf-radius-sm: 1.2rem;
    --cyf-shadow-premium: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
    --cyf-shadow-premium-hover: 0 20px 40px -8px rgba(0, 0, 0, 0.12);
    --cyf-shadow-glow-red: 0 8px 25px -5px rgba(255, 0, 51, 0.4);

    margin: 0 auto;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    display: flow-root;
    clear: both;
    float: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-font-smoothing: antialiased;
}

.cyf-wrapper::before,
.cyf-wrapper::after {
    content: "";
    display: table;
}
.cyf-wrapper * { box-sizing: border-box; }
.cyf-wrapper ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Header ---------- */

.cyf-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background:
        radial-gradient(at 4% 12%, rgba(255, 77, 112, 0.16) 0, transparent 55%),
        radial-gradient(at 96% 8%, rgba(139, 92, 246, 0.14) 0, transparent 55%),
        radial-gradient(at 100% 100%, rgba(56, 189, 248, 0.14) 0, transparent 55%),
        radial-gradient(at 0% 100%, rgba(250, 204, 21, 0.14) 0, transparent 55%),
        #ffffff;
    border: 1px solid var(--cyf-border);
    box-shadow: var(--cyf-shadow-premium);
    border-radius: 20px;
    padding: 16px 24px;
    margin-bottom: 20px;
}

.cyf-header-left {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    flex: 1 1 260px;
}

.cyf-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.cyf-avatar-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 3px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    overflow: hidden;
}

.cyf-wrapper img.cyf-channel-logo {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block;
    margin: 0 !important;
    border: 0 !important;
}

.cyf-avatar-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cyf-red);
    color: #fff;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(255,0,51,0.4);
}
.cyf-wrapper .cyf-avatar-badge svg {
    display: inline-block !important;
    fill: currentColor !important;
    width: 11px !important;
    height: 11px !important;
}

.cyf-channel-info {
    min-width: 0;
}

.cyf-channel-tag {
    display: inline-block;
    background: #ffffff;
    border: 1px solid #FFE1E6;
    color: var(--cyf-red);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 4px;
}

.cyf-channel-info h2 {
    margin: 0 0 4px 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--cyf-dark);
    line-height: 1.2;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cyf-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12.5px;
    color: var(--cyf-gray);
    font-weight: 600;
}

.cyf-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.cyf-wrapper .cyf-stat svg {
    display: inline-block !important;
    color: var(--cyf-gray-light);
    flex-shrink: 0;
}

.cyf-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
}

.cyf-sub-btn {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, var(--cyf-red) 0%, var(--cyf-red-light) 100%);
    color: #fff !important;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    font-size: 13.5px;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    box-shadow: var(--cyf-shadow-glow-red);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}
.cyf-sub-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px rgba(255,0,51,0.5);
}
.cyf-sub-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: left 0.7s ease;
}
.cyf-sub-btn:hover::after { left: 150%; }

.cyf-sub-icon {
    background: rgba(255,255,255,0.22);
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cyf-wrapper .cyf-sub-icon svg {
    display: inline-block !important;
    fill: #fff !important;
    width: 12px !important;
    height: 12px !important;
}

/* ---------- "Watch & Explore" heading ---------- */

.cyf-shorts-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 2px 14px;
}
.cyf-wrapper .cyf-shorts-heading svg {
    display: inline-block !important;
    color: var(--cyf-red);
    fill: currentColor !important;
    flex-shrink: 0;
}
.cyf-shorts-heading h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--cyf-dark);
    letter-spacing: -0.2px;
}

/* ---------- Carousel ---------- */

.cyf-carousel-wrapper {
    position: relative;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.cyf-video-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    padding: 4px 4px 22px;
    margin: -4px -4px -4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}
.cyf-video-track::-webkit-scrollbar { display: none; }

.cyf-chunk {
    display: contents;
}
.cyf-chunk.cyf-chunk-hidden {
    display: none;
}

.cyf-video-item {
    flex: 0 0 calc((100% - 14px * 5.5) / 6.5);
    scroll-snap-align: start;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.cyf-video-item.cyf-reveal-in {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .cyf-video-item,
    .cyf-thumb-wrapper.cyf-skeleton,
    .cyf-wrapper .cyf-video-item .cyf-thumb-wrapper img.cyf-thumb,
    .cyf-modal-content {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .cyf-card-inner { transition: none !important; }
}

/* ---------- Card ---------- */

.cyf-card-inner {
    background: #ffffff;
    border: 1px solid var(--cyf-border);
    border-radius: var(--cyf-radius-md);
    padding: 8px;
    height: 100%;
    box-shadow: var(--cyf-shadow-premium);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
    .cyf-video-item:hover .cyf-card-inner {
        box-shadow: none;
        border-color: var(--cyf-red);
    }
}
.cyf-video-item.cyf-touched .cyf-card-inner {
    box-shadow: none;
    border-color: var(--cyf-red);
}

.cyf-thumb-wrapper {
    position: relative !important;
    display: block;
    width: 100%;
    height: 0 !important;
    padding: 0 0 177.78% 0 !important;
    border-radius: var(--cyf-radius-sm);
    overflow: hidden;
    background: #F1F5F9;
    transition: transform 0.5s ease;
}

.cyf-thumb-wrapper.cyf-skeleton {
    background: linear-gradient(100deg, #F1F5F9 8%, #E2E8F0 18%, #F1F5F9 33%);
    background-size: 200% 100%;
    animation: cyf-shimmer 1.6s ease-in-out infinite;
}
.cyf-thumb-wrapper.cyf-skeleton .cyf-thumb {
    opacity: 0 !important;
}
@keyframes cyf-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.cyf-wrapper .cyf-video-item .cyf-thumb-wrapper img.cyf-thumb {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    opacity: 1;
    transition: opacity 0.45s ease, transform 0.6s ease;
}

@media (hover: hover) and (pointer: fine) {
    .cyf-video-item:hover .cyf-thumb {
        transform: scale(1.05);
    }
}

.cyf-thumb-wrapper::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
    .cyf-video-item:hover .cyf-thumb-wrapper::after { opacity: 1; }
}
.cyf-video-item.cyf-touched .cyf-thumb-wrapper::after { opacity: 1; }

.cyf-card-top {
    position: absolute;
    top: 9px; left: 9px;
    z-index: 2;
}

.cyf-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.95);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--cyf-dark);
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 5px 9px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.cyf-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--cyf-red);
    animation: cyf-pulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes cyf-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.75); }
}

.cyf-play-overlay {
    position: absolute; inset: 0;
    z-index: 2;
    display: flex; align-items: center; justify-content: center;
}

.cyf-play-icon {
    width: 46px; height: 46px;
    background: rgba(255,255,255,0.25);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transform: scale(0.92);
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .cyf-video-item:hover .cyf-play-icon {
        transform: scale(1.08);
        background: rgba(255, 0, 51, 0.92);
        border-color: var(--cyf-red);
        box-shadow: 0 10px 24px -5px rgba(255, 0, 51, 0.5);
    }
}
.cyf-video-item.cyf-touched .cyf-play-icon {
    transform: scale(1.08);
    background: rgba(255, 0, 51, 0.92);
    border-color: var(--cyf-red);
    box-shadow: 0 10px 24px -5px rgba(255, 0, 51, 0.5);
}

.cyf-wrapper .cyf-play-icon svg {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    fill: #ffffff !important;
    stroke: none !important;
}

/* ---------- Card content (below thumbnail) ---------- */

.cyf-card-content {
    padding: 10px 4px 4px;
}

.cyf-video-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--cyf-dark) !important;
    margin: 0 0 8px 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cyf-video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--cyf-gray-light);
}
.cyf-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cyf-wrapper .cyf-meta-item svg {
    display: inline-block !important;
    flex-shrink: 0;
}

/* ---------- Nav buttons ---------- */

.cyf-wrapper .cyf-nav-btn {
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    position: absolute !important;
    top: calc(41% - 12px);
    transform: translateY(-50%);
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    aspect-ratio: 1 / 1;
    border-radius: 50% !important;
    border: 1px solid var(--cyf-border) !important;
    background: #ffffff !important;
    background-clip: padding-box !important;
    color: var(--cyf-dark);
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    display: flex !important;
    flex-shrink: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    outline: none;
    box-shadow: 0 10px 24px rgba(0,0,0,0.1);
    z-index: 5;
    overflow: hidden;
    transition: opacity 0.3s ease, background 0.25s ease, transform 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
    .cyf-wrapper .cyf-nav-btn { opacity: 0; }
}
@media (hover: hover) and (pointer: fine) {
    .cyf-wrapper:hover .cyf-nav-btn,
    .cyf-carousel-wrapper:hover .cyf-nav-btn {
        opacity: 1;
    }
}
.cyf-nav-btn:hover {
    background: #f8fafc !important;
    transform: translateY(-50%) scale(1.08);
}
.cyf-nav-prev { left: -4px; }
.cyf-nav-next { right: -4px; }

/* Mobile / touch: skip the hover system entirely, arrows are always visible */
@media (hover: none), (pointer: coarse) {
    .cyf-wrapper .cyf-nav-btn,
    .cyf-carousel-wrapper .cyf-nav-btn {
        opacity: 1 !important;
    }
}

.cyf-wrapper .cyf-nav-btn svg {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 16px !important;
    height: 16px !important;
    fill: none !important;
    stroke: var(--cyf-dark) !important;
    stroke-width: 2.5px !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
}

/* ---------- Video modal (playback) ---------- */

.cyf-modal {
    display: none;
    position: fixed;
    z-index: 2147483647 !important;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(6,6,10,0.92);
    align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
}

.cyf-modal-content {
    background: #0c0c10;
    width: auto;
    max-width: min(92vw, 480px);
    max-height: 94vh;
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 30px 90px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04), 0 0 120px rgba(255,0,51,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.94) translateY(10px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, width 0.25s ease, height 0.25s ease;
}

.cyf-modal.cyf-modal-open .cyf-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.cyf-modal.cyf-mobile-fullscreen {
    padding: 0;
    background-color: #000;
    align-items: stretch;
    justify-content: stretch;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.cyf-modal.cyf-mobile-fullscreen .cyf-modal-content {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: 100vw;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: #000;
}

.cyf-modal.cyf-mobile-fullscreen .cyf-modal-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 6;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0) 100%);
    border-bottom: none;
    padding: max(18px, env(safe-area-inset-top)) 14px 34px;
}

.cyf-modal.cyf-mobile-fullscreen .cyf-modal-draghandle {
    display: block;
}

.cyf-modal.cyf-mobile-fullscreen .cyf-modal-title {
    font-size: 13.5px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    margin-top: 4px;
}

.cyf-modal.cyf-mobile-fullscreen .cyf-close-modal {
    margin-top: 4px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    background: rgba(20,20,24,0.55) !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.cyf-modal.cyf-mobile-fullscreen .cyf-video-container {
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    aspect-ratio: unset;
}

.cyf-modal.cyf-mobile-fullscreen .cyf-modal-content.cyf-dragging {
    transition: none !important;
}

.cyf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: linear-gradient(180deg, #141419 0%, #0c0c10 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
    flex-shrink: 0;
    touch-action: none;
}

.cyf-modal-draghandle {
    display: none;
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 38px; height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,0.35);
}

.cyf-modal-title {
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -0.1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.cyf-close-modal {
    flex-shrink: 0;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    background: rgba(255,255,255,0.08) !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff;
    cursor: pointer;
    outline: none;
    box-sizing: border-box !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}
.cyf-close-modal:hover {
    background: var(--cyf-red) !important;
    border-color: var(--cyf-red) !important;
    transform: rotate(90deg) !important;
}
.cyf-wrapper .cyf-close-modal svg,
body .cyf-close-modal svg {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: #ffffff !important;
    stroke-width: 2.5px !important;
    overflow: visible !important;
}

.cyf-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    background: #000;
    flex: 1 1 auto;
    min-height: 0;
}
.cyf-video-container iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    border: 0;
    transition: width 0.2s ease, height 0.2s ease, top 0.2s ease, left 0.2s ease;
}

.cyf-video-loader {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    z-index: 1;
    background: radial-gradient(circle at center, #17171d 0%, #000 100%);
}
.cyf-video-loader span {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: var(--cyf-red);
    animation: cyf-spin 0.85s linear infinite;
}
@keyframes cyf-spin {
    to { transform: rotate(360deg); }
}

/* ---------- RESPONSIVE DESIGN ---------- */

@media (min-width: 1600px) {
    .cyf-video-item { flex: 0 0 calc((100% - 16px * 6.5) / 7.5); }
    .cyf-video-track { gap: 16px; }
}

@media (max-width: 1300px) {
    .cyf-video-item { flex: 0 0 calc((100% - 14px * 4.5) / 5.5); }
}

@media (max-width: 1024px) {
    .cyf-video-track { gap: 14px; }
    .cyf-video-item { flex: 0 0 calc((100% - 14px * 3.5) / 4.5); }
    .cyf-header { padding: 14px 18px; }
}

@media (max-width: 820px) {
    .cyf-video-track { gap: 12px; }
    .cyf-video-item { flex: 0 0 calc((100% - 12px * 2.5) / 3.5); }
}

@media (max-width: 768px) {
    .cyf-header { padding: 14px 16px; margin-bottom: 12px; flex-wrap: nowrap; }
    .cyf-header-left { flex: 1 1 auto; min-width: 0; gap: 12px; }
    .cyf-sub-btn { padding: 8px 14px; font-size: 11.5px; gap: 6px; }
    .cyf-sub-icon { width: 20px; height: 20px; }
    .cyf-channel-info h2 { font-size: 17px; }
    .cyf-shorts-heading { margin: 2px 2px 8px; }
    .cyf-video-track { gap: 10px; padding: 2px 2px 14px; margin: -2px -2px -2px; }
    .cyf-video-item { flex: 0 0 calc((100% - 10px * 1.3) / 2.3); }
    .cyf-card-content { padding: 8px 4px 2px; }
    .cyf-video-title { margin-bottom: 5px; }
    .cyf-wrapper .cyf-nav-btn { width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; max-width: 44px !important; max-height: 44px !important; box-shadow: 0 6px 16px rgba(0,0,0,0.14); }
    .cyf-wrapper .cyf-nav-btn svg { width: 18px !important; height: 18px !important; }
    .cyf-nav-prev { left: 2px; }
    .cyf-nav-next { right: 2px; }
}

@media (max-width: 480px) {
    .cyf-header { padding: 12px 14px; margin-bottom: 10px; gap: 10px; }
    .cyf-header-left { gap: 10px; }
    .cyf-sub-btn { padding: 7px 11px; font-size: 10.5px; gap: 5px; }
    .cyf-sub-icon { width: 18px; height: 18px; }
    .cyf-shorts-heading { margin: 0 2px 6px; }
    .cyf-play-icon { width: 42px; height: 42px; }
    .cyf-wrapper .cyf-play-icon svg { width: 18px !important; height: 18px !important; }
    .cyf-video-title { font-size: 12px; }
    .cyf-video-meta { font-size: 9.5px; }
    .cyf-modal { padding: 0; align-items: center; }
    .cyf-modal-content {
        width: auto; max-width: 100vw; max-height: 100vh; max-height: 100dvh;
        border-radius: 0; display: flex; flex-direction: column;
    }
    .cyf-modal-title { font-size: 13px; }
    .cyf-close-modal { width: 36px !important; height: 36px !important; min-width: 36px !important; min-height: 36px !important; }
    .cyf-avatar-ring { width: 54px; height: 54px; }
    .cyf-wrapper .cyf-nav-btn { width: 40px !important; height: 40px !important; min-width: 40px !important; min-height: 40px !important; max-width: 40px !important; max-height: 40px !important; }
    .cyf-wrapper .cyf-nav-btn svg { width: 17px !important; height: 17px !important; }
}

@media (max-width: 380px) {
    .cyf-video-track { gap: 9px; padding: 2px 2px 12px; }
    .cyf-video-item { flex: 0 0 calc((100% - 9px * 1.3) / 2.3); }
    .cyf-video-title { font-size: 11.5px; }
    .cyf-video-meta { font-size: 9px; }
    .cyf-play-icon { width: 40px; height: 40px; }
    .cyf-header { padding: 10px 12px; margin-bottom: 8px; gap: 8px; }
    .cyf-avatar-ring { width: 46px; height: 46px; }
    .cyf-channel-info h2 { font-size: 15px; }
    .cyf-sub-btn { padding: 6px 9px; font-size: 9.5px; }
    .cyf-sub-btn span:last-child { display: none; }
}
