/* video_card.css - 動画カード（検索結果リスト）に関連するスタイル */

.resultmsg {
    margin: 16px 0;
    display: flex;
    justify-content: center;
    font-size: 14px;
    color: #606060;
    border: none;
    background-color: transparent;
    padding: 8px 0;
}

.resultmsg-content {
    text-align: left;
    max-width: fit-content;
}

.result {
    max-width: 500px;
    margin: 0 auto;
    scroll-margin-top: 20px;
    /* アンカージャンプ時の余白を確保 */
}

/* 個別のカード行 */
.rsg {
    display: flex;
    width: 100%;
    height: auto;
    padding: 12px 0;
    margin: 0;
    background-color: transparent;
    border-bottom: 1px solid #e5e5e5;
    transition: background-color 0.2s;
}

.rsg:last-child {
    border-bottom: none;
}

.rsg:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* サムネイル部分 */
/* サムネイル部分 */
.result-youtube,
.sld_img {
    border-radius: 8px;
    width: 45%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-right: 12px;
    background-color: #000;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* 微妙な浮遊感を出すシャドウ */
    transition: box-shadow 0.3s ease;
}

.result-youtube:hover,
.sld_img:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* ホバー時に影を深くして浮き上がりを強調 */
}

.result-youtube img,
.sld_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* ホバー時に画像を少し拡大し、明るさを強調 */
.result-youtube:hover img,
.sld_img:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* 再生アイコンのオーバーレイ */
.result-youtube::after,
.sld_img::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.result-youtube:hover::after,
.sld_img:hover::after {
    opacity: 1;
}

/* タイトル・情報ボックス */
.result-vtitle,
.sld_title_box {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.result-vtitle p,
.date_tag_box p {
    margin: 0;
}

.Vtitle,
.sld_title {
    align-self: flex-start;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 500;
    color: #0f0f0f;
    margin-bottom: 2px;
    line-height: 1.3;
    cursor: pointer;
    transition: color 0.2s ease;
}

.Vtitle:hover,
.sld_title:hover {
    color: #065fd4;
    text-decoration: none;
}

.Vtitle a,
.sld_title a {
    text-decoration: none;
    color: inherit;
}

/* 日付とプレイヤー名（タグ） */
.date_tag_box {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    height: 20px;
    font-size: 12px;
    color: #606060;
}

.Pdate {
    display: flex;
    align-items: center;
    margin-right: 0;
}

.playerTag {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playerTag a {
    color: #606060;
    text-decoration: underline;
}

.playerTag a:hover {
    text-decoration: underline;
}

/* ペイジネーション */
.pagenation_box {
    width: 100%;
    margin: 32px 0;
    text-align: center;
}

.pagenation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.pagenation a,
.pagenation .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 18px;
    transition: background-color 0.2s;
    border: none;
}

.pagenation a {
    color: #0f0f0f;
    background-color: #f2f2f2;
}

.pagenation a:hover {
    background-color: #e5e5e5;
}

.pagenation .current {
    color: #ffffff;
    background-color: #0f0f0f;
    cursor: default;
}