.vp-refresh-bg {
    background: radial-gradient(circle at 15% -5%, rgba(255, 70, 85, 0.16), transparent 36%), radial-gradient(circle at 85% 0%, rgba(92, 214, 255, 0.12), transparent 32%), linear-gradient(180deg, #0a0e13 0%, #070a0f 55%, #050608 100%);
}

.vp-shell {
    width: min(1200px, calc(100% - 2rem));
    margin-inline: auto;
}

.vp-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.04), rgba(255, 70, 85, 0.08));
}

.vp-hero::before {
    content: "";
    position: absolute;
    inset: -30% auto auto -10%;
    width: 340px;
    height: 340px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(255, 70, 85, 0.28) 0%, rgba(255, 70, 85, 0) 72%);
    pointer-events: none;
}

.vp-hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.25rem;
    align-items: center;
    padding: 2.5rem 2rem;
}

.vp-hero-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fca5a5;
    font-weight: 700;
}

.vp-hero-title {
    margin-top: 0.4rem;
    font-size: clamp(1.75rem, 4vw, 2.9rem);
    line-height: 1.1;
    font-family: Orbitron, sans-serif;
    font-weight: 800;
}

.vp-hero-copy {
    margin-top: 0.9rem;
    color: #d1d5db;
    max-width: 34rem;
}

.vp-hero-thumb {
    justify-self: end;
    width: 140px;
    height: 140px;
    border-radius: 20px;
    padding: 0.8rem;
    background: linear-gradient(180deg, rgba(12, 18, 27, 0.94), rgba(12, 18, 27, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
}

.vp-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin: 1rem auto 1.4rem;
}

.vp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 12, 18, 0.84);
    padding: 0.52rem 0.95rem;
    color: #f3f4f6;
    font-weight: 700;
    font-size: 0.84rem;
    transition: 0.2s ease;
}

.vp-back-link:hover {
    border-color: rgba(255, 70, 85, 0.65);
    color: #ff8a95;
}

.vp-count {
    border-radius: 9999px;
    padding: 0.46rem 0.9rem;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #9ca3af;
    background: rgba(8, 12, 18, 0.74);
}

.vp-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.95rem;
}

.vp-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 0.95rem;
    background: linear-gradient(170deg, rgba(15, 23, 34, 0.95), rgba(9, 14, 22, 0.82));
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.vp-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 70, 85, 0.65);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 70, 85, 0.26) inset;
}

.vp-item-head {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.vp-item-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
}

.vp-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vp-item-thumb--wide {
    flex-basis: 128px;
    width: 128px;
    height: 76px;
    padding: 0.35rem;
}

.vp-item-thumb--wide img {
    object-fit: cover;
    border-radius: 10px;
}

.vp-item-thumb--skin {
    flex-basis: 104px;
    width: 104px;
    height: 104px;
    padding: 0.35rem;
}

.vp-item-thumb--skin img {
    object-fit: contain;
}

.vp-item-title {
    font-size: 0.96rem;
    line-height: 1.3;
    font-weight: 700;
    color: #f8fafc;
}

.vp-item-desc {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #9ca3af;
}

.vp-pills {
    margin-top: 0.62rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.vp-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.2rem 0.48rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.05);
}

.vp-pill img {
    width: 13px;
    height: 13px;
    object-fit: contain;
}

.vp-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: end;
}

.vp-inline-form .vp-field {
    min-width: 150px;
}

.vp-inline-form label {
    display: block;
    font-size: 0.76rem;
    color: #9ca3af;
    margin-bottom: 0.24rem;
}

.vp-inline-form input,
.vp-inline-form select,
.vp-inline-form button {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.5rem 0.68rem;
    color: #f3f4f6;
    background: rgba(13, 18, 27, 0.92);
}

.vp-inline-form button {
    width: auto;
    font-weight: 700;
    border-color: rgba(255, 70, 85, 0.6);
    background: rgba(255, 70, 85, 0.16);
}

.vp-inline-form button:hover {
    background: rgba(255, 70, 85, 0.3);
}

.vp-pager {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.vp-pager nav {
    display: inline-flex;
    gap: 0.5rem;
}

.vp-page-link,
.vp-page-static {
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.84rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(10, 14, 21, 0.86);
}

.vp-page-link {
    color: #d1d5db;
}

.vp-page-link:hover {
    border-color: rgba(255, 70, 85, 0.6);
    color: #ffffff;
}

.vp-page-static {
    color: #6b7280;
}

.vp-page-current {
    color: #e5e7eb;
}

@media (min-width: 640px) {
    .vp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .vp-hero-layout {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .vp-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .vp-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.vp-category-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.95rem;
}

.vp-category-card {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(165deg, rgba(18, 25, 37, 0.95), rgba(9, 14, 21, 0.86));
    padding: 0.9rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.vp-category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 70, 85, 0.58);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

.vp-category-image {
    width: 78px;
    height: 78px;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.vp-category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vp-category-image--wide {
    width: 116px;
    height: 72px;
    padding: 0.35rem;
}

.vp-category-image--wide img {
    object-fit: cover;
    border-radius: 10px;
}

.vp-category-title {
    font-family: Orbitron, sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    color: #f9fafb;
}

.vp-category-desc {
    margin-top: 0.24rem;
    color: #cbd5e1;
    font-size: 0.82rem;
    line-height: 1.42;
}

.vp-category-tags {
    margin-top: 0.46rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.vp-category-tag {
    font-size: 0.68rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    padding: 0.18rem 0.44rem;
}

@media (min-width: 768px) {
    .vp-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .vp-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Image-first browsing mode */
.vp-item--media {
    padding: 0;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
}

.vp-item--media .vp-item-head {
    display: block;
    height: 100%;
}

.vp-item--media .vp-item-thumb {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: linear-gradient(170deg, rgba(20, 28, 40, 0.95), rgba(10, 15, 22, 0.92));
    padding: 0.4rem;
}

.vp-item--media .vp-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.vp-item--media .vp-item-head > div:last-child {
    display: none;
}

.vp-item--media::after {
    content: attr(data-title);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.6rem 0.72rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #f8fafc;
    background: linear-gradient(180deg, rgba(3, 6, 10, 0), rgba(3, 6, 10, 0.9));
    transform: translateY(100%);
    opacity: 0;
    transition: 0.22s ease;
    pointer-events: none;
}

.vp-item--media:hover::after,
.vp-item--media:focus-visible::after {
    transform: translateY(0);
    opacity: 1;
}

.vp-item--wide {
    aspect-ratio: 16 / 10;
}

.vp-item--wide .vp-item-thumb img {
    object-fit: cover;
}

.vp-item--skin .vp-item-thumb {
    padding: 0.55rem;
}

.vp-item--skin .vp-item-thumb img {
    transform: scale(1.12);
}

.vp-category-card--media {
    position: relative;
    padding: 0;
    min-height: 132px;
    overflow: hidden;
}

.vp-category-card--media .vp-category-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(170deg, rgba(20, 28, 40, 0.95), rgba(10, 15, 22, 0.92));
}

.vp-category-card--media .vp-category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vp-category-card--media .vp-category-image--wide img {
    object-fit: cover;
}

.vp-category-card--media > div:last-child {
    display: none;
}

.vp-category-card--media::after {
    content: attr(data-title);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.68rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #f8fafc;
    background: linear-gradient(180deg, rgba(3, 6, 10, 0), rgba(3, 6, 10, 0.9));
    transform: translateY(100%);
    opacity: 0;
    transition: 0.22s ease;
    pointer-events: none;
}

.vp-category-card--media:hover::after,
.vp-category-card--media:focus-visible::after {
    transform: translateY(0);
    opacity: 1;
}

.vp-item--title {
    aspect-ratio: 3 / 1;
    padding: 0;
    background: linear-gradient(140deg, rgba(25, 35, 50, 0.95), rgba(9, 14, 22, 0.88));
}

.vp-item--title > div {
    display: none;
}

.vp-item--title::before {
    content: "TITLE";
    position: absolute;
    top: 0.52rem;
    left: 0.58rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.46);
    font-weight: 700;
}

.vp-item--title::after {
    content: attr(data-title);
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.62rem 0.7rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: #f8fafc;
    background: linear-gradient(180deg, rgba(3, 6, 10, 0), rgba(3, 6, 10, 0.92));
    transform: translateY(100%);
    opacity: 0;
    transition: 0.22s ease;
}

.vp-item--title:hover::after,
.vp-item--title:focus-visible::after {
    transform: translateY(0);
    opacity: 1;
}

.vp-per-page-form {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.vp-per-page-form label {
    font-size: 0.76rem;
    color: #aeb7c4;
}

.vp-per-page-form select {
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 12, 18, 0.88);
    color: #eef2f7;
    padding: 0.35rem 0.5rem;
    font-size: 0.78rem;
}

.vp-infinite-sentinel {
    height: 1px;
}

.vp-infinite-sentinel.is-loading::before {
    content: "読み込み中...";
    display: block;
    margin: 1.2rem auto 0;
    width: max-content;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* --- Compact override (mobile-first) --- */
.vp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
}

.vp-item--media {
    border-radius: 12px;
}

.vp-item--media .vp-item-thumb {
    padding: 0.26rem;
}

.vp-item--media .vp-item-thumb img {
    border-radius: 8px;
}

.vp-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.52rem;
    grid-auto-rows: 1fr;
}

.vp-category-card--media {
    padding: 0.42rem;
    min-height: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.34rem;
}

.vp-category-card--media .vp-category-image {
    height: 70px;
    border-radius: 10px;
    padding: 0.2rem;
}

.vp-category-card--media .vp-category-image img {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vp-category-card--media > div:last-child {
    display: block;
}

.vp-category-card--media::after {
    content: none;
}

.vp-category-card--media .vp-category-title {
    font-size: 0.76rem;
    line-height: 1.25;
}

.vp-category-card--media .vp-category-desc {
    margin-top: 0.1rem;
    font-size: 0.64rem;
    line-height: 1.35;
    color: #a8b2c1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.vp-category-card--media .vp-category-tags {
    display: flex;
    margin-top: 0.18rem;
    gap: 0.22rem;
}

.vp-category-card--media .vp-category-tag {
    font-size: 0.58rem;
    line-height: 1;
    padding: 0.14rem 0.3rem;
    border-color: rgba(255, 255, 255, 0.22);
    color: #d9e2ef;
    background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 640px) {
    .vp-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.74rem;
    }

    .vp-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .vp-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.86rem;
    }

    .vp-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .vp-category-card--media .vp-category-image {
        height: 74px;
    }
}

@media (min-width: 1024px) {
    .vp-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .vp-category-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .vp-category-card--media .vp-category-image {
        height: 78px;
    }
}

@media (min-width: 1280px) {
    .vp-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}
