.favorite-wrap{max-width:1200px;margin:30px auto;padding:0 10px;box-sizing:border-box;overflow:hidden;}
.favorite-head{margin-bottom:20px;}
.favorite-head h2{font-size:26px;font-weight:900;margin:0 0 6px;color:#222;}
.favorite-head p{font-size:13px;color:#888;margin:0;}
.favorite-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;width:100%;box-sizing:border-box;}
.favorite-card{position:relative;background:#fff;border:1px solid #e5e5e5;border-radius:14px;padding:22px 18px 20px;min-height:330px;text-align:center;box-sizing:border-box;min-width:0;overflow:hidden;}
.favorite-card-rank{position:absolute;left:18px;top:18px;font-size:26px;font-weight:900;color:#ff1d1d;}
.favorite-remove{position:absolute;right:14px;top:12px;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;width:auto!important;height:auto!important;line-height:1!important;font-size:26px;color:#ffcc00;cursor:pointer;}
.favorite-thumb{width:96px;height:96px;border-radius:50%;object-fit:cover;border:3px solid #ff1d1d;padding:3px;background:#fff;box-sizing:border-box;margin:26px auto 16px;}
.favorite-title{display:block;color:#222;font-size:16px;font-weight:900;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:8px;}
.favorite-cate{color:#555;font-size:13px;font-weight:700;margin-bottom:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.favorite-line{border-top:1px solid #eee;padding-top:14px;margin-top:14px;width:100%;overflow:hidden;}
.favorite-stat{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:7px 0;font-size:13px;color:#222;width:100%;min-width:0;}
.favorite-stat em{flex:0 0 auto;display:flex;align-items:center;gap:4px;font-style:normal;font-weight:700;white-space:nowrap;}
.favorite-stat span{flex:1;min-width:0;text-align:right;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.favorite-empty{grid-column:1/-1;background:#fff;border:1px solid #eee;border-radius:14px;padding:40px;text-align:center;color:#777;}
.mobile-num{display:none;}
/* =========================================
   Áñ°ÜÃ£±â ÃÖ½Å¿µ»ó
========================================= */

.favorite-video-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:14px;
    width:100%;
    box-sizing:border-box;
}

.favorite-video-card{
    min-width:0;
    padding:12px;
    overflow:hidden;
    box-sizing:border-box;
    border:1px solid #e5e5e5;
    border-radius:14px;
    background:#fff;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.favorite-video-card:hover{
    border-color:#222;
    box-shadow:0 5px 18px rgba(0,0,0,.08);
    transform:translateY(-2px);
}

/* ½æ³×ÀÏ */
.favorite-video-player{
    position:relative;
    width:100%;
    margin-bottom:10px;
    overflow:hidden;
    border-radius:10px;
    aspect-ratio:16 / 9;
    background:#111;
    cursor:pointer;
}

.favorite-video-thumb,
.favorite-video-player iframe{
    display:block;
    width:100%;
    height:100%;
    border:0;
    object-fit:cover;
}

/* Àç»ý ¹öÆ° */
.favorite-video-play{
    position:absolute;
    top:50%;
    left:50%;
    width:42px;
    height:42px;
    border-radius:50%;
    background:rgba(255,29,29,.92);
    box-shadow:0 4px 12px rgba(0,0,0,.25);
    transform:translate(-50%, -50%);
}

.favorite-video-play::before{
    content:"";
    position:absolute;
    top:11px;
    left:16px;
    border-top:10px solid transparent;
    border-bottom:10px solid transparent;
    border-left:15px solid #fff;
}

/* Á¦¸ñ */
.favorite-video-title{
    display:block;
    margin-bottom:8px;
    overflow:hidden;
    color:#222;
    font-size:13px;
    font-weight:900;
    line-height:1.4;
    text-decoration:none;
    text-overflow:ellipsis;
    white-space:nowrap;
}

/* Ã¤³Î */
.favorite-video-channel{
    display:flex;
    align-items:center;
    gap:7px;
    min-width:0;
    margin-bottom:9px;
    color:#777;
    font-size:12px;
    font-weight:700;
    text-decoration:none;
}

.favorite-video-channel img{
    flex:0 0 auto;
    width:24px;
    height:24px;
    border-radius:50%;
    object-fit:cover;
}

.favorite-video-channel span{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

/* Á¶È¸¼ö¡¤¾÷·ÎµåÀÏ */
.favorite-video-info{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding-top:9px;
    border-top:1px solid #eee;
    color:#777;
    font-size:11px;
}

.favorite-video-info > span{
    display:flex;
    align-items:center;
    gap:4px;
    white-space:nowrap;
}

.favorite-video-info i{
    font-size:13px;
}

@media(max-width:900px){

    .favorite-video-grid{
        grid-template-columns:1fr;
        gap:12px;
    }

    .favorite-video-card:hover{
        transform:none;
        box-shadow:none;
    }

    .favorite-video-title{
        font-size:12px;
    }
}
/* =========================================
   Áñ°ÜÃ£±â ÃÖ½Å¼îÃ÷
========================================= */

.favorite-shorts-grid{
    display:grid;
    grid-template-columns:repeat(5, minmax(0, 1fr));
    gap:12px;
    width:100%;
    box-sizing:border-box;
}

.favorite-short-card{
    min-width:0;
    padding:10px;
    overflow:hidden;
    box-sizing:border-box;
    border:1px solid #e5e5e5;
    border-radius:14px;
    background:#fff;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.favorite-short-card:hover{
    border-color:#222;
    box-shadow:0 5px 18px rgba(0,0,0,.08);
    transform:translateY(-2px);
}

.favorite-short-player{
    position:relative;
    width:100%;
    margin-bottom:9px;
    overflow:hidden;
    border-radius:10px;
    aspect-ratio:9 / 16;
    background:#111;
    cursor:pointer;
}

.favorite-short-thumb,
.favorite-short-player iframe{
    display:block;
    width:100%;
    height:100%;
    border:0;
    object-fit:cover;
}

.favorite-short-thumb{
    transform:scale(1.04);
    transition:transform .25s ease;
}

.favorite-short-card:hover .favorite-short-thumb{
    transform:scale(1.09);
}

.favorite-short-play{
    position:absolute;
    top:50%;
    left:50%;
    width:40px;
    height:40px;
    border-radius:50%;
    background:rgba(255,29,29,.92);
    box-shadow:0 4px 12px rgba(0,0,0,.25);
    transform:translate(-50%, -50%);
}

.favorite-short-play::before{
    content:"";
    position:absolute;
    top:10px;
    left:15px;
    border-top:10px solid transparent;
    border-bottom:10px solid transparent;
    border-left:14px solid #fff;
}

.favorite-short-title{
    display:block;
    margin-bottom:7px;
    overflow:hidden;
    color:#222;
    font-size:12px;
    font-weight:900;
    line-height:1.4;
    text-decoration:none;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.favorite-short-channel{
    display:flex;
    align-items:center;
    gap:6px;
    min-width:0;
    margin-bottom:8px;
    color:#777;
    font-size:11px;
    font-weight:700;
    text-decoration:none;
}

.favorite-short-channel img{
    flex:0 0 auto;
    width:22px;
    height:22px;
    border-radius:50%;
    object-fit:cover;
}

.favorite-short-channel span{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.favorite-short-info{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding-top:8px;
    border-top:1px solid #eee;
    color:#777;
    font-size:10px;
}

.favorite-short-info > span{
    display:flex;
    align-items:center;
    gap:3px;
    white-space:nowrap;
}

@media(max-width:900px){

    .favorite-shorts-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:10px;
    }

    .favorite-short-card:hover{
        transform:none;
        box-shadow:none;
    }

    .favorite-short-thumb,
    .favorite-short-card:hover .favorite-short-thumb{
        transform:scale(1.04);
    }
}
.favorite-video-player iframe,
.favorite-short-player iframe{
    display:block;
    width:100%;
    height:100%;
    border:0;
}
/* =========================================
   Áñ°ÜÃ£±â AJAX ¸ñ·Ï ¹Ù±ù ¿µ¿ª
========================================= */

.favorite-content{
    width:100%;
    min-width:0;
    box-sizing:border-box;
}

/* ¿µ»ó¡¤¼îÃ÷ AJAX ³»ºÎ grid Æø º¸Á¤ */
.favorite-content > .favorite-video-grid,
.favorite-content > .favorite-shorts-grid{
    width:100%;
    min-width:0;
}

/* =========================================
   Áñ°ÜÃ£±â ¼îÃ÷ ÀüÃ¼È­¸é ºä¾î
========================================= */

.favorite-shorts-viewer{
    position:fixed;
    inset:0;
    z-index:2147483000;
    display:none;
    align-items:center;
    justify-content:center;
    background:#000;
}

.favorite-shorts-viewer.open{
    display:flex;
}

.favorite-shorts-stage{
    position:relative;
    width:min(430px, 100vw);
    height:100dvh;
    max-height:100dvh;
    overflow:hidden;
    background:#000;
}

#favoriteShortsPlayer,
#favoriteShortsPlayer iframe{
    display:block;
    width:100%;
    height:100%;
    border:0;
    background:#000;
}

.favorite-shorts-close{
    position:fixed;
    top:16px;
    left:16px;
    z-index:2147483002;
    display:flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    margin:0;
    padding:0;
    border:0 !important;
    border-radius:50%;
    background:rgba(0,0,0,.65) !important;
    color:#fff;
    font-size:34px;
    line-height:1;
    cursor:pointer;
}

.favorite-shorts-move{
    position:fixed;
    top:50%;
    z-index:2147483002;
    width:46px;
    height:46px;
    margin:0;
    padding:0;
    border:0 !important;
    border-radius:50%;
    background:rgba(255,255,255,.18) !important;
    color:#fff;
    font-size:34px;
    line-height:42px;
    transform:translateY(-50%);
    cursor:pointer;
}

.favorite-shorts-prev{
    left:calc(50% - 275px);
}

.favorite-shorts-next{
    right:calc(50% - 275px);
}

body.favorite-shorts-open{
    overflow:hidden !important;
}

/* ¼îÃ÷ Ä«µå ºñÀ² */
.favorite-short-player{
    aspect-ratio:9 / 16;
    background:#000;
}

@media(max-width:900px){

    .favorite-shorts-stage{
        width:100vw;
        height:100dvh;
    }

    .favorite-shorts-move{
        top:auto;
        bottom:22px;
        transform:none;
    }

    .favorite-shorts-prev{
        left:20px;
    }

    .favorite-shorts-next{
        right:20px;
    }
}
.favorite-video-youtube-host,
.favorite-video-youtube-host iframe{
    display:block;
    width:100%;
    height:100%;
    border:0;
}
.favorite-shorts-viewer{
    overscroll-behavior:none;
    touch-action:pan-y;
}

.favorite-shorts-stage{
    overscroll-behavior:none;
}
.favorite-shorts-stage,
#favoriteShortsPlayer{
    position:relative;
}

.favorite-shorts-youtube-host,
.favorite-shorts-youtube-host iframe{
    display:block;
    width:100%;
    height:100%;
    border:0;
    background:#000;
}

.favorite-shorts-swipe-layer{
    position:absolute;
    inset:0;
    z-index:20;
    background:transparent;
    cursor:grab;
    touch-action:none;
    user-select:none;
    -webkit-user-select:none;
}

.favorite-shorts-swipe-layer:active{
    cursor:grabbing;
}
/* =========================================
   Áñ°ÜÃ£±â ¼îÃ÷ ÀüÃ¼È­¸é ºä¾î
========================================= */

body.favorite-shorts-open{
    overflow:hidden !important;
}

/* ÀüÃ¼ °ËÀº ¹è°æ */
.favorite-shorts-viewer{
    position:fixed;
    inset:0;
    z-index:2147483000;

    display:none;
    align-items:center;
    justify-content:center;

    width:100%;
    height:100dvh;

    background:rgba(0,0,0,.96);
    overflow:hidden;
}

.favorite-shorts-viewer.open{
    display:flex;
}

/* °¡¿îµ¥ ¼îÃ÷ È­¸é */
.favorite-shorts-stage{
    position:relative;
    width:min(430px, 100vw);
    height:100dvh;
    max-height:100dvh;

    overflow:hidden;
    background:#000;
    box-shadow:0 0 35px rgba(0,0,0,.7);
}

/* ÇÃ·¹ÀÌ¾î */
#favoriteShortsPlayer{
    position:relative;
    width:100%;
    height:100%;
    background:#000;
}

.favorite-shorts-youtube-host,
.favorite-shorts-youtube-host iframe{
    display:block;
    width:100%;
    height:100%;
    border:0;
    background:#000;
}

/* ½º¿ÍÀÌÇÁ °¨Áö Åõ¸í¸· */
.favorite-shorts-swipe-layer{
    position:absolute;
    inset:0;
    z-index:10;

    background:transparent;
    cursor:grab;

    touch-action:none;
    user-select:none;
    -webkit-user-select:none;
}

.favorite-shorts-swipe-layer:active{
    cursor:grabbing;
}

/* ´Ý±â ¹öÆ° */
.favorite-shorts-close{
    position:fixed;
    top:16px;
    left:16px;
    z-index:2147483010;

    display:flex;
    align-items:center;
    justify-content:center;

    width:44px;
    height:44px;
    margin:0;
    padding:0;

    border:0 !important;
    border-radius:50%;

    background:rgba(0,0,0,.65) !important;
    color:#fff;

    font-size:34px;
    line-height:1;
    cursor:pointer;
}

/* ÀÌÀü¡¤´ÙÀ½ ¹öÆ° */
.favorite-shorts-move{
    position:fixed;
    top:50%;
    z-index:2147483010;

    display:flex;
    align-items:center;
    justify-content:center;

    width:46px;
    height:46px;
    margin:0;
    padding:0;

    border:0 !important;
    border-radius:50%;

    background:rgba(255,255,255,.16) !important;
    color:#fff;

    font-size:34px;
    line-height:1;
    transform:translateY(-50%);
    cursor:pointer;

    transition:
        background .18s ease,
        transform .18s ease;
}

.favorite-shorts-move:hover{
    background:rgba(255,29,29,.9) !important;
    transform:translateY(-50%) scale(1.06);
}

.favorite-shorts-prev{
    left:calc(50% - 285px);
}

.favorite-shorts-next{
    right:calc(50% - 285px);
}

/* ¸ð¹ÙÀÏ */
@media(max-width:900px){

    .favorite-shorts-viewer{
        background:#000;
    }

    .favorite-shorts-stage{
        width:100vw;
        height:100dvh;
        max-height:100dvh;
        box-shadow:none;
    }

    .favorite-shorts-close{
        top:12px;
        left:12px;
    }

    .favorite-shorts-move{
        top:auto;
        bottom:22px;
        transform:none;
    }

    .favorite-shorts-move:hover{
        transform:none;
    }

    .favorite-shorts-prev{
        left:18px;
    }

    .favorite-shorts-next{
        right:18px;
    }
}
@media(max-width:900px){.favorite-wrap{margin:15px auto;padding:0 10px;}.favorite-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}.favorite-card{min-height:285px;padding:20px 12px 16px;}.favorite-card-rank{left:14px;top:14px;font-size:24px;}.favorite-remove{right:12px;top:10px;font-size:24px;}.favorite-thumb{width:78px;height:78px;margin:24px auto 12px;}.favorite-title{font-size:14px;}.favorite-cate{font-size:12px;}.favorite-stat{font-size:12px;gap:6px;}.pc-num{display:none;}.mobile-num{display:inline;}}