/* Video library archive and single pages */
.video-library-main {
    color: #42210b;
    background: #fbf9f4;
}

.video-library-container,
.video-single-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.video-library-hero {
    padding: 20px 0 54px;
    color: #ffffff;
    background: #53834f;
}

.video-library-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 48px;
    color: #ffffff;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 14px;
}

.video-library-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.video-library-title {
    max-width: 1100px;
    margin: 0 auto;
    color: #ffffff;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.45;
    text-align: center;
}

.video-library-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.video-library-dots span {
    width: 10px;
    height: 10px;
    background: #e6ae25;
    border-radius: 50%;
}

.video-library-content {
    padding: 68px 0 100px;
}

.video-library-intro {
    margin: 0 0 56px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 2;
    text-align: center;
}

.video-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 28px;
}

.video-card {
    overflow: hidden;
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(66, 33, 11, 0.14);
}

.video-card-inner {
    height: 100%;
}

.video-card-thumbnail {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: #e8e4dc;
}

.video-card-thumbnail img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card-placeholder {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(83, 131, 79, 0.18), rgba(230, 174, 37, 0.22)),
        #f2efe9;
}

.video-new-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 7px 12px;
    color: #ffffff;
    background: #ed1c24;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.video-member-only-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: #e09a2f;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(66, 33, 11, 0.18);
}

.video-card.is-member-only .video-new-badge {
    top: 10px;
    left: auto;
    right: 10px;
}

.video-member-only-lock {
    position: relative;
    width: 10px;
    height: 9px;
    border: 2px solid #ffffff;
    border-radius: 2px;
}

.video-member-only-lock::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    width: 6px;
    height: 6px;
    border: 2px solid #ffffff;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    transform: translateX(-50%);
}

.video-card-body {
    display: flex;
    min-height: 245px;
    padding: 22px 24px 26px;
    flex-direction: column;
    align-items: center;
}

.video-card-meta {
    display: flex;
    width: 100%;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #4d443e;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 12px;
}

.video-card-meta time,
.video-single-meta time {
    font-weight: 700;
}

.video-type-badge {
    display: inline-flex;
    min-width: 82px;
    min-height: 28px;
    padding: 4px 10px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 0px;
    font-size: 12px;
    font-weight: 700;
}

.video-type-badge.is-prefecture {
    background: #4c94bd;
}

.video-type-badge.is-seminar {
    background: #e6ae25;
}

.video-card-title {
    display: -webkit-box;
    min-height: 68px;
    margin: 18px 0 22px;
    overflow: hidden;
    color: #42210b;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.65;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.video-watch-button {
    display: inline-flex;
    min-height: 36px;
    padding: 8px 22px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #42210b;
    border-radius: 999px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-watch-button:hover {
    color: #ffffff;
    opacity: 0.85;
    transform: translateY(-2px);
}

.video-member-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 28px;
    color: #42210b;
    background: #e09a2f;
    border-radius: 999px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(224, 154, 47, 0.28);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-member-cta:hover {
    color: #42210b;
    opacity: 0.92;
    transform: translateY(-1px);
}

.video-member-cta-lock {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 12px;
    height: 16px;
}

.video-member-cta-lock::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 8px;
    height: 6px;
    border: 2px solid #42210b;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    transform: translateX(-50%);
    box-sizing: border-box;
}

.video-member-cta-lock::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 12px;
    height: 10px;
    border: 2px solid #42210b;
    border-radius: 2px;
    box-sizing: border-box;
}

.video-member-cta-note {
    margin: 10px 0 0;
    color: #7a7168;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

.video-library-empty,
.video-url-missing {
    padding: 60px 20px;
    text-align: center;
}

.video-single-hero .video-library-title {
    font-size: 36px;
    letter-spacing: 0.08em;
}

.video-single-content {
    padding: 70px 0 100px;
}

.video-single-container {
    max-width: 1000px;
}

.video-single-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 28px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 14px;
}

.video-embed {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000000;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(66, 33, 11, 0.18);
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-single-description {
    margin-top: 42px;
    padding: 36px 40px;
    background: #ffffff;
    border-radius: 14px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 16px;
    line-height: 1.9;
}

.video-single-gate {
    margin-top: 40px;
}

@media (max-width: 900px) {
    .video-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .video-library-container,
    .video-single-container {
        width: min(100% - 30px, 1200px);
    }

    .video-library-hero {
        padding: 15px 0 34px;
    }

    .video-library-breadcrumb {
        margin-bottom: 28px;
        font-size: 12px;
    }

    .video-library-title,
    .video-single-hero .video-library-title {
        font-size: 27px;
    }

    .video-library-content {
        padding: 44px 0 70px;
    }

    .video-library-intro {
        margin-bottom: 36px;
        font-size: 14px;
        line-height: 1.9;
    }

    .video-card-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .video-card-body {
        min-height: 220px;
    }

    .video-member-cta {
        width: 100%;
        font-size: 14px;
    }

    .video-single-content {
        padding: 45px 0 70px;
    }

    .video-single-description {
        margin-top: 28px;
        padding: 24px 20px;
        font-size: 15px;
    }
}
