/**
 * SC-SNS Public Styles
 * Extracted from production theme for consistency
 */

/* ========================================
   SECTION TITLES
   ======================================== */
.section_title .sect_hd1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.15em;
    line-height: 1;
    text-align: left;
    color: #AAAAAA;
}

.section_title .sect_hd2 {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.02em;
    line-height: 30px;
    text-align: left;
    color: #1f2b22;
    word-break: keep-all;
    margin-top: 10px;
}

@media screen and (max-width: 767px) {
    .section_title .sect_hd1 {
        font-size: 12px;
        margin-bottom: 0;
    }
    .section_title .sect_hd2 {
        font-size: 16px;
        line-height: 1;
    }
}

/* ========================================
   ARCHIVE GRID LAYOUT (video-post style)
   ======================================== */
.video-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 75px;
}

@media screen and (max-width: 767px) {
    .video-flex {
        justify-content: space-between;
        gap: 0;
    }
}

.video-card {
    max-width: 260px;
    width: 100%;
    height: 513px;
    row-gap: 30px;
}

@media screen and (max-width: 767px) {
    .video-card {
        max-width: inherit;
        width: calc(94% / 2);
        height: 415px;
        row-gap: 0;
    }
}

.video-card a {
    width: 100%;
    height: 380px;
    display: block;
}

@media screen and (max-width: 767px) {
    .video-card a {
        height: 260px;
    }
}

.video-card img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    height: 100%;
}

.video-card a img:hover {
    animation: gelatineStrong 0.7s ease;
}

@keyframes gelatineStrong {
    0% { transform: scale(1, 1); }
    15% { transform: scale(0.8, 1.2); }
    30% { transform: scale(1.2, 0.8); }
    45% { transform: scale(0.9, 1.1); }
    60% { transform: scale(1.1, 0.9); }
    75% { transform: scale(0.95, 1.05); }
    100% { transform: scale(1, 1); }
}

.video-card-meta {
    margin-top: 15px;
}

@media screen and (max-width: 767px) {
    .video-card-meta {
        margin-top: 10px;
    }
}

.video-card-title {
    max-width: 204px;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 21px;
    letter-spacing: 0.03em;
    color: #000000;
    margin-bottom: 9px;
}

@media screen and (max-width: 767px) {
    .video-card-title {
        max-width: inherit;
        font-size: 14px;
        line-height: 18px;
    }
}

.video-card-date {
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.05em;
    color: #000000;
}

.video-card-views {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.09em;
    color: #585858;
}

@media screen and (max-width: 767px) {
    .video-card-date,
    .video-card-views {
        font-size: 12px;
    }
}

/* ========================================
   HOMEPAGE SLIDER LAYOUT (shorts-slider)
   ======================================== */
.new-youtube-shorts {
    padding: 41px 0 85px;
}

@media screen and (max-width: 767px) {
    .new-youtube-shorts {
        padding: 0;
    }
}

.shorts-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.shorts-slider .short-item {
    width: 208px !important;
    max-width: 208px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

@media screen and (max-width: 767px) {
    .shorts-slider .short-item {
        max-width: 155px;
        width: 155px !important;
        padding: 0;
    }
}

.short-item a {
    max-width: 228px;
    height: 321px;
    width: 100%;
    display: block;
}

@media screen and (max-width: 767px) {
    .short-item a {
        max-width: 155px;
        height: 232px;
    }
}

.short-item a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.short-item a img:hover {
    animation: gelatineMultidirectional 0.7s ease;
}

@keyframes gelatineMultidirectional {
    0% { transform: scale(1, 1) rotate(0deg); }
    10% { transform: scale(0.9, 1.15) rotate(-1deg); }
    20% { transform: scale(1.15, 0.9) rotate(1deg); }
    30% { transform: scale(0.95, 1.1) skew(2deg, -1deg); }
    40% { transform: scale(1.1, 0.95) skew(-2deg, 1deg); }
    50% { transform: scale(0.98, 1.05) rotate(-0.5deg); }
    60% { transform: scale(1.05, 0.98) rotate(0.5deg); }
    70% { transform: scale(0.99, 1.02) skew(1deg, -0.5deg); }
    80% { transform: scale(1.02, 0.99) skew(-1deg, 0.5deg); }
    100% { transform: scale(1, 1) rotate(0deg); }
}

.short-meta {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
}

@media screen and (max-width: 767px) {
    .short-meta {
        margin-top: 3px;
    }
}

.short-title {
    font-weight: 500;
    margin-bottom: 9px;
    height: 65px;
    overflow: hidden;
    font-size: 16px;
}

@media screen and (max-width: 767px) {
    .short-title {
        font-size: 15px;
        margin-bottom: 6px;
        height: 64px;
    }
}

.short-date {
    font-size: 14px;
    margin-bottom: 9px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

@media screen and (max-width: 767px) {
    .short-date {
        font-size: 12px;
        margin-bottom: 3px;
    }
}

.short-views {
    color: #777;
    font-size: 14px;
    font-weight: 400;
}

@media screen and (max-width: 767px) {
    .short-views {
        font-size: 12px;
    }
}

/* ========================================
   TOP VIDEO RANKING LAYOUT
   ======================================== */
.top-youtube-shorts {
    padding: 60px 0;
}

.top-shorts-wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.top-short-item {
    max-width: 208px;
    width: 100%;
    position: relative;
}

@media screen and (max-width: 767px) {
    .top-short-item {
        width: 155px;
        max-width: 100%;
        flex: 0 0 150px;
        scroll-snap-align: start;
    }
}

.top-short-item::before {
    position: absolute;
    content: "";
    background: url(../../img/top/top-video-bubble.svg) no-repeat;
    background-size: 100%;
    width: 72px;
    height: 48px;
    top: -2.2vh;
    right: -2.1vw;
    z-index: 9;
}

@media screen and (max-width: 767px) {
    .top-short-item::before {
        width: 50px;
        height: 35px;
        top: -14px;
        right: -20px;
    }
}

.top-short-item a {
    max-width: 100%;
    height: 309px;
    display: block;
}

@media screen and (max-width: 767px) {
    .top-short-item a {
        max-width: 155px;
        width: 100%;
        height: 232px;
    }
}

.top-short-item a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.top-short-item img {
    width: 100%;
    border-radius: 8px;
}

.top-short-item .short-meta {
    font-size: 13px;
    margin-top: 12px;
}

@media screen and (max-width: 767px) {
    .top-short-item .short-meta {
        margin-top: 0;
    }
}

/* Ranking Badges */
.rank-1::after,
.rank-2::after,
.rank-3::after,
.rank-4::after,
.rank-5::after {
    position: absolute;
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 21px;
    letter-spacing: 0.09em;
    color: #FFFFFF;
    transform: rotate(12.08deg);
    top: -1.7vh;
    right: -0.4vw;
    z-index: 9;
}

.rank-1::after { content: "1"; }
.rank-2::after { content: "2"; }
.rank-3::after { content: "3"; }
.rank-4::after { content: "4"; }
.rank-5::after { content: "5"; }

@media screen and (max-width: 767px) {
    .rank-1::after,
    .rank-2::after,
    .rank-3::after,
    .rank-4::after,
    .rank-5::after {
        top: -10px;
        right: 2px;
        font-size: 12px;
    }
}

/* ========================================
   CATEGORY NAVIGATION
   ======================================== */
.menu_wrapper .local_nav {
    position: relative;
    width: 100%;
    border-bottom: 1px solid #DDDDDD;
    margin-bottom: 93px;
}

.menu_wrapper .local_nav .subcategory_nav {
    position: relative;
    margin: 0 auto;
    max-width: 1600px;
    text-align: center;
    display: flex;
    width: 90%;
    gap: 51px;
    margin-top: 117px;
}

@media screen and (max-width: 767px) {
    .menu_wrapper .local_nav .subcategory_nav {
        margin-top: 0;
    }
}

.menu_wrapper .local_nav .subcategory_nav li {
    display: inline-block;
}

.menu_wrapper .local_nav .subcategory_nav li a {
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    color: #787878;
    padding-bottom: 39px;
    text-decoration: none;
}

.all_cats.current-cat,
.cat-item.current-cat {
    border-bottom: 1px solid black;
}

.current-cat a {
    color: #000000 !important;
}

@media screen and (min-width: 1024px) {
    .menu_wrapper .local_nav .subcategory_nav li:hover a {
        color: #18213F;
    }
}

@media screen and (max-width: 1024px) {
    .menu_wrapper .local_nav .subcategory_nav {
        width: 100%;
        gap: 30px;
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .menu_wrapper .local_nav {
        position: relative;
        width: 100%;
        margin-bottom: 60px;
    }
    
    .menu_wrapper .local_nav .subcategory_nav {
        position: relative;
        margin: 0 auto;
        width: 100%;
        text-align: center;
        font-size: 0;
        gap: 0;
    }
    
    .menu_wrapper .local_nav .subcategory_nav li {
        margin-bottom: 0px;
        background: #eee;
        border-bottom: 2px solid #ddd;
        font-size: 0;
        width: 50%;
        float: left;
        box-sizing: border-box;
        padding: 10px 2px 10px;
    }
    
    .menu_wrapper .local_nav .subcategory_nav li.current-cat {
        border-bottom: 2px solid #002688;
    }
    
    .menu_wrapper .local_nav .subcategory_nav li a {
        text-decoration: none;
        display: block;
        font-size: 10px;
        color: #000;
        padding: 12px 0px 10px;
    }
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
    display: flex;
    margin: 50px auto 80px;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-numbers {
    font-weight: bold;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 0 0.8rem;
    width: 50px;
    height: 50px;
    font-size: 18px;
    text-align: center;
    color: #fff;
    background: #8fc652;
    text-decoration: none;
    transition: ease 0.25s all;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(143, 149, 164, 0.59);
}

.page-numbers.current {
    color: #fff;
}

.page-numbers:hover {
    opacity: 0.4;
}

@media screen and (max-width: 767px) {
    .page-numbers {
        margin: 0 10px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .pagination {
        display: flex;
        gap: 0 !important;
    }
}

/* ========================================
   NO VIDEOS MESSAGE
   ======================================== */
.no-videos {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #666;
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */
@media screen and (max-width: 767px) {
    .shorts-slider {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .shorts-slider::-webkit-scrollbar {
        display: none;
    }
}
