/**
 * 動画一覧・詳細ページ用CSS
 *
 * @package Arkhe_Child
 */

/* =======================================
   動画一覧（タイムライン）
   ======================================= */

.tsuma-video-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.tsuma-video-list--empty {
    padding: 2rem;
    text-align: center;
    color: #666;
}

.tsuma-video-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.tsuma-video-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tsuma-video-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.tsuma-video-card__thumb {
    aspect-ratio: 16 / 9;
    background: #1d2327;
    overflow: hidden;
}

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

.tsuma-video-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3338, #1d2327);
}

.tsuma-video-card__play-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.tsuma-video-card__body {
    padding: 1rem;
}

.tsuma-video-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    line-height: 1.4;
}

.tsuma-video-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0 0 0.5rem;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    color: #666;
}

.tsuma-video-card__stats {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
}

.tsuma-video-list__pagination {
    margin: 2rem 0;
}

.tsuma-video-list__pagination .page-numbers {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    margin: 0 0.15rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
}

.tsuma-video-list__pagination .current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* =======================================
   動画詳細ページ
   ======================================= */

.tsuma-video-single {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.tsuma-video-single__title {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

.tsuma-video-single__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: #666;
}

.tsuma-video-single__player {
    margin-bottom: 1.25rem;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.tsuma-video-single__video {
    display: block;
    width: 100%;
    max-height: 70vh;
    background: #000;
}

.tsuma-video-single__error {
    padding: 2rem;
    text-align: center;
    color: #666;
    background: #f5f5f5;
}

.tsuma-video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.tsuma-video-tags__item {
    padding: 0.25rem 0.75rem;
    background: #f0f0f0;
    border-radius: 999px;
    font-size: 0.85rem;
}

.tsuma-video-single__content {
    margin-bottom: 2rem;
    line-height: 1.7;
}

.tsuma-video-single__comments {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

/* =======================================
   コメントセクション（動画詳細）
   ======================================= */

.tsuma-video-comments {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.tsuma-video-comments__title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.tsuma-video-comments__desc {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.tsuma-video-comments__notice {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #444;
}

.tsuma-video-comments__notice--limit {
    background: #fdecea;
    color: #8a1f17;
}

.tsuma-video-comments__limit {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #555;
}

.tsuma-video-comments__empty {
    margin: 0;
    color: #888;
    font-size: 0.95rem;
}

.tsuma-video-comments .comment-list {
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.tsuma-video-comments .comment {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eee;
}

.tsuma-video-comments .comment-author {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tsuma-video-comments .comment-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.tsuma-video-comments .comment-form {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

/* =======================================
   アーカイブページ
   ======================================= */

.tsuma-video-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.tsuma-video-archive__title {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
}

/* =======================================
   投稿者プロフィール（/videos/author/）
   ======================================= */

.tsuma-video-author-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.tsuma-author-profile {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
}

.tsuma-author-profile__avatar-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

.tsuma-author-profile__name {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
}

.tsuma-author-profile__username {
    margin: 0 0 0.75rem;
    color: #666;
    font-size: 0.95rem;
}

.tsuma-author-profile__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: #555;
}

.tsuma-author-profile__actions {
    margin: 0.75rem 0 0;
}

.tsuma-author-profile__dm {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #2271b1;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.tsuma-author-profile__dm:hover {
    background: #135e96;
    color: #fff !important;
}

.tsuma-video-author-archive__title {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
}

.tsuma-video-card__meta-item a,
.tsuma-video-single__meta a,
.tsuma-comment-author-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tsuma-video-card__meta-item a:hover,
.tsuma-video-single__meta a:hover,
.tsuma-comment-author-link:hover {
    color: #2271b1;
}

/* =======================================
   DMセクション（動画詳細）
   ======================================= */

.tsuma-video-dm {
    margin: 1.5rem 0 2rem;
    padding: 1.25rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

.tsuma-video-dm__title {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.tsuma-video-dm__limit {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #555;
}

.tsuma-video-dm__button {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    background: #2271b1;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}

.tsuma-video-dm__button:hover {
    background: #135e96;
    color: #fff !important;
}

.tsuma-video-dm__notice {
    margin: 0 0 0.75rem;
    color: #666;
}

.tsuma-video-dm__disclaimer {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: #888;
    line-height: 1.5;
}

/* =======================================
   ビジター視聴制限
   ======================================= */

.tsuma-video-view-limit {
    padding: 2rem 1.5rem;
    text-align: center;
    background: #1d2327;
    color: #fff;
}

.tsuma-video-view-limit__title {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.tsuma-video-view-limit__text {
    margin: 0 0 1.25rem;
    color: #dcdcde;
    line-height: 1.6;
}

.tsuma-video-view-limit__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 0;
}

.tsuma-video-view-limit__btn {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    background: #3c434a;
    color: #fff !important;
}

.tsuma-video-view-limit__btn:hover {
    background: #50575e;
    color: #fff !important;
}

.tsuma-video-view-limit__btn--primary {
    background: #2271b1;
}

.tsuma-video-view-limit__btn--primary:hover {
    background: #135e96;
}

.tsuma-video-view-limit__remaining {
    margin: 0;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
}

.tsuma-video-single__player .tsuma-video-view-limit__remaining + .tsuma-video-single__video {
    margin-top: 0;
}
