.video-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.video-card-link,
.video-card-link img {
    -webkit-user-drag: none;
}

.video-card-link:hover,
.video-card-link:focus {
    color: inherit;
    text-decoration: none;
}

.video-card-link:focus-visible {
    outline: 2px solid #00f2fe;
    outline-offset: 3px;
    border-radius: 10px;
}

.video-card-wrapper {
    box-sizing: border-box;
    height: 100%;
    padding: 3px;
}

.video-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.video-card-thumbnail-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background-color: #1f1f23;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.video-card-thumbnail-wrap > .video-card-link {
    width: 100%;
    height: 100%;
}

.video-card-thumbnail-wrap.is-youtube {
    border: 2px solid #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.video-card-thumbnail-wrap.is-twitch {
    border: 2px solid #9146ff;
    box-shadow: 0 0 10px rgba(145, 70, 255, 0.3);
}

.video-card:has(.video-card-link:hover) .video-card-thumbnail-wrap,
.video-card:focus-within .video-card-thumbnail-wrap {
    transform: translateY(-2px);
}

.video-card:has(.video-card-link:hover) .video-card-thumbnail-wrap.is-youtube,
.video-card:focus-within .video-card-thumbnail-wrap.is-youtube {
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.42);
}

.video-card:has(.video-card-link:hover) .video-card-thumbnail-wrap.is-twitch,
.video-card:focus-within .video-card-thumbnail-wrap.is-twitch {
    box-shadow: 0 0 18px rgba(145, 70, 255, 0.42);
}

.video-card-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background:
        radial-gradient(circle at 50% 52%, rgba(214, 53, 232, 0.28), transparent 58%),
        linear-gradient(135deg, rgba(43, 234, 255, 0.16), rgba(219, 40, 231, 0.2));
    transition: transform 0.3 ease;
}

.video-card:has(.video-card-link:hover) .video-card-thumbnail,
.video-card:focus-within .video-card-thumbnail {
    transform: scale(1.05);
}

.video-card-type-badge,
.video-card-duration-badge {
    position: absolute;
    z-index: 10;
    max-width: calc(100% - 16px);
    border-radius: 5px;
    background-color: rgba(5, 7, 12, 0.78);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: 6px 7px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.video-card-type-badge {
    top: 8px;
    left: 8px;
}

.video-card-duration-badge {
    right: 8px;
    bottom: 8px;
}

.video-card-platform {
    position: absolute;
    bottom: 6px;
    left: 6px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);

    background-color: rgba(0, 0, 0, 0.65); /* 半透明の黒背景 */
    padding: 3px 6px; /* 文字の周囲に余白を追加 */
    border-radius: 4px; /* 角丸 */
    pointer-events: none;
}

.video-card-platform img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.video-card-details {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.video-card-streamer-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 2px solid #2beaff;
    border-radius: 50%;
    object-fit: cover;
}

.video-card-copy {
    flex: 1;
    min-width: 0;
}

.video-card-title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.video-card-creator,
.video-card-streamer-name {
    margin-top: 4px;
    overflow: hidden;
    color: #b0b0b0;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-card-channel-name {
    color: #b0b0b0;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 0.2rem;
}

.video-card-creator {
    color: #d3d8df;
}

.video-card-meta {
    margin-top: 2px;
    color: #8f8f9a;
    font-size: 0.82rem;
    line-height: 1.4;
}

.video-card-view-count,
.video-card-published-at {
    display: block;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 20;
    opacity: 0.9;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
}

.video-play-circle {
    fill: #2beaff;
    transform-origin: center;
    transition: fill 0.2s ease, transform 0.2s ease;
}

.video-play-icon {
    fill: #fff;
}

.video-card:has(.video-card-link:hover) .play-button-overlay,
.video-link:hover .play-button-overlay {
    opacity: 1;
}

.video-card:has(.video-card-link:hover) .video-play-circle,
.video-link:hover .video-play-circle {
    fill: #2beaff;
    transform: scale(1.08);
}
