.ypp,
.ypp * {
    box-sizing: border-box;
}

.ypp {
    font-family: 'Meiryo', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
    max-width: 100%;
    margin: 1rem 0 1.5rem;
    background: #fff;
    border: 1px solid #d0d0d0;
    line-height: 1.4;
    color: #1a1a1a;
}

.ypp .ypp-header {
    background: #4a4a4a !important;
    color: #fff !important;
    font-size: 1rem;
    font-weight: bold;
    padding: 10px 14px;
    line-height: 1.2;
    margin: 0;
}

.ypp .ypp-tabs {
    display: flex !important;
    flex-wrap: nowrap;
    background: #ececec;
    border-bottom: 1px solid #d0d0d0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ypp .ypp-tab {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0;
    padding: 9px 6px !important;
    background: transparent !important;
    border: 0 !important;
    border-right: 1px solid #d0d0d0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    cursor: pointer;
    font-family: inherit !important;
    font-size: 0.9rem !important;
    color: #555 !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
    text-align: center;
    text-decoration: none !important;
    text-transform: none !important;
    transition: background 0.12s, color 0.12s;
    margin: 0 !important;
    height: auto !important;
    letter-spacing: normal;
}

.ypp .ypp-tab:last-child {
    border-right: 0 !important;
}

.ypp .ypp-tab:hover,
.ypp .ypp-tab:focus {
    background: #f5f5f5 !important;
    color: #222 !important;
    outline: none;
}

.ypp .ypp-tab.is-active {
    background: #fff !important;
    color: #c0392b !important;
    box-shadow: inset 0 -3px 0 #c0392b !important;
}

.ypp .ypp-pane {
    margin: 0;
    padding: 0;
    background: #fff;
}

.ypp .ypp-pane[hidden] {
    display: none !important;
}

.ypp .ypp-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px;
    background: transparent;
}

.ypp .ypp-list > .ypp-item,
.ypp .ypp-item {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    text-indent: 0 !important;
}

.ypp .ypp-list > .ypp-item::before,
.ypp .ypp-list > .ypp-item::marker {
    content: none !important;
    display: none !important;
}

.ypp .ypp-card {
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ypp .ypp-card:hover,
.ypp .ypp-card:focus {
    text-decoration: none !important;
    color: inherit !important;
    outline: none;
}

.ypp .ypp-card:hover .ypp-thumb {
    opacity: 0.9;
}

.ypp .ypp-card:hover .ypp-card-title {
    color: #c0392b !important;
}

.ypp .ypp-thumb-wrap {
    position: relative !important;
    display: block;
    width: 100% !important;
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

@supports not (aspect-ratio: 16 / 9) {
    .ypp .ypp-thumb-wrap {
        height: 0;
        padding-top: 56.25%;
    }
    .ypp .ypp-thumb,
    .ypp .ypp-thumb-fallback {
        position: absolute;
        top: 0;
        left: 0;
    }
}

.ypp .ypp-thumb {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: opacity 0.15s;
    background: #1a1a1a;
}

.ypp .ypp-thumb-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a, #4a4a4a);
}

.ypp .ypp-badge {
    position: absolute !important;
    top: 6px !important;
    right: 8px !important;
    color: #fff !important;
    font-size: 1.05rem !important;
    font-weight: bold !important;
    line-height: 1.1 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.95),
        -1px 1px 2px rgba(0, 0, 0, 0.95),
        1px -1px 2px rgba(0, 0, 0, 0.95),
        -1px -1px 2px rgba(0, 0, 0, 0.95),
        0 0 6px rgba(0, 0, 0, 0.6) !important;
    z-index: 2;
}

.ypp .ypp-card-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
    font-weight: bold !important;
    color: #1a1a1a;
    padding: 6px 4px 0 !important;
    margin: 0 !important;
    background: transparent !important;
    text-decoration: none !important;
    transition: color 0.12s;
}

.ypp .ypp-empty {
    color: #888;
    font-size: 0.9rem;
    padding: 1.2rem;
    text-align: center;
    margin: 0;
    background: transparent;
}

@media (max-width: 480px) {
    .ypp .ypp-header {
        font-size: 0.95rem;
        padding: 9px 12px;
    }
    .ypp .ypp-tab {
        font-size: 0.85rem !important;
        padding: 8px 4px !important;
    }
    .ypp .ypp-badge {
        font-size: 0.95rem !important;
        top: 5px !important;
        right: 6px !important;
    }
    .ypp .ypp-card-title {
        font-size: 0.9rem !important;
    }
}
