.stream-multiview-form {
    position: relative;
    height: 100%;
    transition: transform 0.2s ease;
}

.stream-multiview-button,
.stream-multiview-form img {
    -webkit-user-drag: none;
}

.stream-multiview-button {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;

    -webkit-user-drag: none;
}

.stream-multiview-form:has(.stream-multiview-button:hover) {
    transform: translateY(-4px);
}

.stream-multiview-button:focus-visible {
    border-radius: 8px;
    outline: 3px solid #00f2fe;
    outline-offset: 4px;
}

.stream-multiview-form .stream-card-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    transition: box-shadow 0.2s ease;
}

.stream-multiview-form .stream-card-youtube {
    border: 2px solid #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.stream-multiview-form:has(.stream-multiview-button:hover) .stream-card-youtube {
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.7);
}

.stream-multiview-form .stream-card-twitch {
    border: 2px solid #9146ff;
    box-shadow: 0 0 10px rgba(145, 70, 255, 0.3);
}

.stream-multiview-form:has(.stream-multiview-button:hover) .stream-card-twitch {
    box-shadow: 0 0 18px rgba(145, 70, 255, 0.7);
}

.stream-multiview-form .stream-card-thumbnail {
    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;
}

.stream-multiview-form:has(.stream-multiview-button:hover) .stream-card-thumbnail {
    transform: scale(1.05);
}

.stream-multiview-form .live-badge {
    position: absolute;
    top: 7.5px;
    left: 7.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem; /* アイコンとテキストの間隔 */
    padding: 0px 7.5px; /* 内側の余白 */
    background-image: linear-gradient(135deg, #ff0000 0%, #FF8C00 100%); /* 赤からオレンジのグラデーション */
    border-radius: 5px; /* 角を丸く */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* ドロップシャドウ */
    overflow: hidden; /* コンテンツがはみ出さないように */
    white-space: nowrap; /* テキストを改行しない */
}

.stream-multiview-form .live-badge img {
    height: 20px; /* アイコンの高さ */
    width: auto; /* 幅は自動調整 */
}

.stream-multiview-form .live-badge-text {
    color: white; /* 文字色 */
    font-weight: 600; /* 太字 */
    font-style: italic; /* 斜体 */
    font-size: 14px; /* 文字サイズ */
    letter-spacing: -0.25px; /* 文字間隔を少し詰める */
}

.stream-multiview-form .stream-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;
}

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

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

.stream-multiview-form .stream-card-details .streamer-icon {
    width: 40px;
    height: 40px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid #2beaff;
    box-shadow: 0 0 24px rgba(43, 234, 255, 0.45);
    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));
}

.stream-multiview-form .stream-card-info {
    min-width: 0;
}

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

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

.stream-multiview-form .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;
}

.stream-multiview-form .stream-card-meta {
    color: #8f8f9a;
    font-size: 0.82rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.stream-multiview-form .tags-container {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.5rem;

    /* 構造的に確実に高さを制御するために max-height を設定 */
    max-height: 50px;
}

.stream-multiview-form .tags {
    display: flex;
    flex-wrap: wrap; /* 画面が狭い場合は折り返す */
    row-gap: 5px;
    column-gap: 6px;
}

.stream-multiview-form .tag {
    background-color: #323234; /* ダークグレー */
    color: #efeff1;
    padding: 2px 8px;
    border-radius: 9999px; /* ピル型（完全な角丸） */
    font-size: 0.7rem;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
