/* 마이센터 — video feed (TikTok-style) */

/* Full-screen vertical snap container */
.mc-vf-container {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    background: #000;
    scrollbar-width: none;
    touch-action: pan-y;
}
.mc-vf-container::-webkit-scrollbar { display: none; }

/* Each video item fills viewport */
.mc-vf-item {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* dynamic viewport on mobile */
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Player area */
.mc-vf-player,
.mc-vf-player video,
.mc-vf-player iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 0;
}
.mc-vf-embed,
.mc-vf-embed iframe,
.mc-vf-embed video {
    width: 100%;
    height: 100%;
}
.mc-vf-player .nv-player-wrap,
.mc-vf-player .video-js {
    height: 100% !important;
    width: 100% !important;
}

/* Lazy placeholder */
.mc-vf-lazy-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #111;
}

/* Overlay (bottom gradient) */
.mc-vf-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 64px; /* leave room for side actions */
    padding: 20px 16px 40px;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    color: #fff;
    pointer-events: none;
}
.mc-vf-overlay a,
.mc-vf-overlay button { pointer-events: auto; }

/* Owner row */
.mc-vf-owner {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    margin-bottom: 10px;
}
.mc-vf-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.6);
    object-fit: cover;
    flex-shrink: 0;
}
.mc-vf-owner-name {
    font-weight: 600;
    font-size: 15px;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

/* Description */
.mc-vf-desc {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Side action buttons */
.mc-vf-actions {
    position: absolute;
    right: 12px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mc-vf-topbar {
    align-items: center;
    display: flex;
    gap: 8px;
    left: 50%;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    transform: translateX(-50%);
    z-index: 100000;
}
.mc-vf-topbar a {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    color: rgba(255,255,255,.82);
    font-size: 12px;
    font-weight: 800;
    min-width: 54px;
    padding: 8px 12px;
    text-align: center;
    text-decoration: none;
}
.mc-vf-topbar a.active {
    background: #fff;
    color: #111;
}

.mc-vf-swipe-hint {
    align-items: center;
    animation: mc-vf-hint 1.8s ease-in-out infinite;
    background: rgba(0,0,0,.46);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: #fff;
    display: flex;
    gap: 9px;
    left: 50%;
    padding: 8px 12px;
    pointer-events: none;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 62px);
    transform: translateX(-50%);
    z-index: 100000;
}
.mc-vf-swipe-hint b {
    font-size: 12px;
    letter-spacing: 0;
}
.mc-vf-swipe-hint span {
    font-size: 16px;
    font-weight: 900;
}
.mc-vf-container.mc-vf-touched .mc-vf-swipe-hint {
    opacity: 0;
    transition: opacity .25s ease;
}
@keyframes mc-vf-hint {
    0%, 100% { transform: translateX(-50%); }
    50% { transform: translateX(-50%) translateY(8px); }
}

.mc-vf-like,
.mc-vf-share {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    text-shadow: 0 1px 3px rgba(0,0,0,.6);
    padding: 0;
    line-height: 1;
}
.mc-vf-like-icon {
    font-size: 28px;
    line-height: 1;
    transition: color .2s, transform .15s;
}
.mc-vf-like.liked .mc-vf-like-icon {
    color: var(--mc-primary, #f1404b);
    transform: scale(1.2);
}
.mc-vf-share svg { filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }

/* Empty state */
.mc-vf-empty {
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: #fff;
    gap: 16px;
    text-align: center;
    padding: 20px;
}

/* No-player fallback */
.mc-vf-no-player {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255,255,255,.5);
    font-size: 14px;
}

.mc-vf-sentinel {
    display: block;
    width: 100%;
    height: 1px;
}

html.mc-shorts-mode,
body.mc-shorts-mode,
body:has(#mc-video-feed) {
    overflow: hidden !important;
    padding-bottom: 0 !important;
}
body.mc-shorts-mode footer,
body.mc-shorts-mode .footer,
body.mc-shorts-mode #footer,
body.mc-shorts-mode .footer-tools,
body.mc-shorts-mode .fixed-bottom,
body.mc-shorts-mode .mc-floating-action-bar,
body.mc-shorts-mode .mobile-nav,
body.mc-shorts-mode .mobile-menu,
body.mc-shorts-mode .bottom-nav,
body.mc-shorts-mode .bottom-bar,
body.mc-shorts-mode .tabbar,
body.mc-shorts-mode .go-up,
body.mc-shorts-mode .float-menu,
body.mc-shorts-mode .fab,
body:has(#mc-video-feed) footer,
body:has(#mc-video-feed) .footer,
body:has(#mc-video-feed) #footer,
body:has(#mc-video-feed) .footer-tools,
body:has(#mc-video-feed) .fixed-bottom,
body:has(#mc-video-feed) .mc-floating-action-bar,
body:has(#mc-video-feed) .mobile-nav,
body:has(#mc-video-feed) .mobile-menu,
body:has(#mc-video-feed) .bottom-nav,
body:has(#mc-video-feed) .bottom-bar,
body:has(#mc-video-feed) .tabbar,
body:has(#mc-video-feed) .go-up,
body:has(#mc-video-feed) .float-menu,
body:has(#mc-video-feed) .fab {
    display: none !important;
}
