@charset "UTF-8";

/*
 * sites/vtubers/css/streams.css
 * 新Top (/) と Genre Page (/category/{genre}) 専用 (Test Release)。
 * 既存ページのスタイルへ影響しないよう、すべて vs- 接頭辞のクラスに限定する。
 */

.vs-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 16px 3rem;
}

.vs-main h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    text-align: left;
}

/* ---- page info ---- */
.vs-page-info {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
}

.vs-last-updated {
    text-align: right;
    font-size: 0.9rem;
    color: #475569;
    min-height: 1.4em;
}

.vs-page-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0.5rem 0;
}

.vs-test-notice {
    font-size: 1.15rem;
    font-weight: 700;
    color: #4338ca;
    margin: 0.25rem 0 1rem;
}

.vs-page-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.vs-old-top-link {
    font-size: 0.95rem;
    color: #475569;
}

.vs-feedback-button {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: #4f46e5;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.vs-feedback-button:hover,
.vs-feedback-button:focus {
    background: #4338ca;
    color: #fff;
}

/* ---- sections ---- */
.vs-list-section,
.vs-featured,
.vs-genre-nav,
.vs-feedback-cta {
    margin-bottom: 2.5rem;
}

.vs-section-sub {
    color: #64748b;
    margin: -0.5rem 0 0.75rem;
}

.vs-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.vs-controls input[type="search"] {
    flex: 1 1 260px;
    min-width: 0;
    padding: 0.45rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.vs-controls select {
    padding: 0.4rem 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.vs-state {
    margin: 0.5rem 0 1rem;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
}

.vs-state[hidden] {
    display: none;
}

.vs-state--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.vs-state--partial {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* ---- featured debut ---- */
.vs-featured {
    padding: 1.25rem 1rem 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 50%, #eef2ff 100%);
    border: 2px solid #f9a8d4;
}

.vs-featured > h2 {
    text-align: center;
}

.vs-featured__group {
    margin-top: 1.25rem;
}

.vs-featured__heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.vs-featured__group--large .vs-featured__heading {
    color: #dc2626;
}

.vs-featured__group--medium .vs-featured__heading {
    color: #2563eb;
}

.vs-featured__group--normal .vs-featured__heading {
    color: #6b7280;
}

.vs-featured__date {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    margin: 0.75rem 0 0.5rem;
}

/* ---- grid & card ---- */
.vs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.vs-grid--large {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.vs-grid--medium {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.vs-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.vs-card--large {
    border: 2px solid #ef4444;
}

.vs-card__thumb {
    display: block;
    aspect-ratio: 16 / 9;
    background: #e2e8f0;
    text-decoration: none;
}

.vs-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vs-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #64748b;
    font-size: 0.9rem;
}

.vs-card__body {
    padding: 0.7rem 0.85rem 0.85rem;
}

.vs-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    margin-bottom: 0.35rem;
}

.vs-badge {
    display: inline-block;
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.vs-badge--live {
    background: #ef4444;
}

.vs-badge--upcoming {
    background: #3b82f6;
}

.vs-badge--completed {
    background: #6b7280;
}

.vs-genre-label {
    display: inline-block;
    padding: 0 0.45rem;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    font-size: 0.78rem;
    color: #4338ca;
    text-decoration: none;
}

.vs-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 0.3rem;
    text-align: left;
    overflow-wrap: anywhere;
}

.vs-card--large .vs-card__title {
    font-size: 1.15rem;
}

.vs-card__title a,
.vs-card__channel a {
    color: inherit;
    text-decoration: none;
}

.vs-card__title a:hover,
.vs-card__channel a:hover {
    text-decoration: underline;
}

.vs-card__channel {
    font-size: 0.9rem;
    color: #334155;
    margin: 0 0 0.2rem;
    overflow-wrap: anywhere;
}

.vs-card__time {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* ---- pager ---- */
.vs-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 1.25rem;
}

.vs-pager[hidden] {
    display: none;
}

.vs-pager__btn {
    min-width: 2.2rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #1e293b;
}

.vs-pager__btn.is-current {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
    font-weight: 700;
}

.vs-pager__btn:disabled {
    opacity: 0.4;
}

.vs-pager__gap {
    align-self: center;
    color: #64748b;
}

/* ---- date tabs ---- */
.vs-date-tabs {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    margin-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
}

.vs-date-tab {
    flex: 0 0 auto;
    display: inline-flex;
    gap: 0.25rem;
    align-items: baseline;
    padding: 0.35rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #1e293b;
}

.vs-date-tab.is-saturday .vs-date-tab__weekday {
    color: #2563eb;
}

.vs-date-tab.is-sunday .vs-date-tab__weekday {
    color: #dc2626;
}

.vs-date-tab.is-selected {
    border: 2px solid #4f46e5;
    background: #eef2ff;
    font-weight: 700;
}

.vs-date-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    text-align: left;
}

/* ---- genre nav / feedback ---- */
.vs-genre-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.vs-genre-nav__link {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #c7d2fe;
    color: #3730a3;
    font-weight: 700;
    text-decoration: none;
}

.vs-feedback-cta {
    text-align: center;
    padding: 1.25rem 1rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.vs-feedback-cta p {
    margin-bottom: 0.75rem;
}

@media (max-width: 767px) {
    .vs-page-links {
        flex-direction: column;
    }

    .vs-grid,
    .vs-grid--large,
    .vs-grid--medium {
        grid-template-columns: 1fr;
    }

    .vs-page-title {
        font-size: 1.3rem;
    }
}
