/**
 * イチ円動画 — エンゲージメントUI（お気に入り・保護者メニュー・タップ再生）
 * 視聴者拡大計画 Phase B（DOCS/ICHIEN_VIDEO_VIEWER_GROWTH_PLAN.md）
 */

.iev-watch-title-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.iev-watch-title-row .iev-watch-title {
    flex: 1 1 auto;
    min-width: 0;
}

.iev-watch-engage {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    position: relative;
}

/* お気に入り（ハート）: 説明不要のメタファー・大きめタップ領域 */
.iev-engage-fav-btn {
    appearance: none;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 999px;
    width: 44px;
    height: 44px;
    font-size: 22px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--dt-transition, 0.18s cubic-bezier(0.4, 0, 0.2, 1));
}

.iev-engage-fav-btn:hover {
    background: var(--dt-accent-soft, #eef2ff);
    border-color: var(--dt-accent-border, rgba(99, 102, 241, 0.35));
}

.iev-engage-fav-btn.is-favorited {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.35);
}

/* 保護者メニュー（鍵）: 全保護者操作の単一入口 */
.iev-engage-block-menu {
    position: relative;
}

.iev-engage-block-summary {
    list-style: none;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 999px;
    width: 44px;
    height: 44px;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--dt-transition, 0.18s cubic-bezier(0.4, 0, 0.2, 1));
}

.iev-engage-block-summary::-webkit-details-marker {
    display: none;
}

.iev-engage-block-summary:hover {
    background: var(--dt-accent-soft, #eef2ff);
    border-color: var(--dt-accent-border, rgba(99, 102, 241, 0.35));
}

.iev-engage-block-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 60;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--dt-radius, 12px);
    box-shadow: var(--dt-shadow-lg, 0 12px 32px rgba(16, 24, 40, 0.12));
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 240px;
}

.iev-engage-block-btn,
.iev-engage-block-link {
    appearance: none;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 0.92rem;
    color: #374151;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--dt-transition, 0.18s cubic-bezier(0.4, 0, 0.2, 1));
}

.iev-engage-block-btn:hover,
.iev-engage-block-link:hover {
    background: var(--dt-accent-soft, #eef2ff);
    color: var(--dt-accent-hover, #4f46e5);
}

.iev-engage-block-btn:disabled {
    color: #9ca3af;
    cursor: default;
}

/* タップ1回再生オーバーレイ（自動再生がブロックされたとき） */
.iev-tap-to-play {
    position: absolute;
    inset: 0;
    z-index: 30;
    appearance: none;
    border: none;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}

.iev-tap-to-play__icon {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: #fff;
    color: #4338ca;
    font-size: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 8px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.3);
}

/* つづきをみる（ホーム最上部の1タップ再生カード） */
.iev-resume-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--dt-radius-lg, 16px);
    padding: 14px 16px;
    margin: 0 0 18px;
    text-decoration: none;
    transition: var(--dt-transition, 0.18s cubic-bezier(0.4, 0, 0.2, 1));
}

.iev-resume-hero:hover {
    box-shadow: var(--dt-shadow, 0 4px 12px rgba(16, 24, 40, 0.06));
}

.iev-resume-hero__thumb {
    flex: 0 0 auto;
    width: 128px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    object-fit: cover;
    background: #c7d2fe;
}

.iev-resume-hero__body {
    flex: 1 1 auto;
    min-width: 0;
}

.iev-resume-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #4338ca;
    margin: 0 0 4px;
}

.iev-resume-hero__title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.iev-resume-hero__play {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #4f46e5;
    color: #fff;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

@media (max-width: 720px) {
    .iev-resume-hero__thumb {
        width: 96px;
    }

    .iev-resume-hero__title {
        font-size: 0.92rem;
    }
}

/* 年齢帯チップ（ホーム: 年齢×言語の棚） */
.iev-home-aud-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.iev-home-aud-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: 0.92rem;
    text-decoration: none;
    transition: var(--dt-transition, 0.18s cubic-bezier(0.4, 0, 0.2, 1));
}

.iev-home-aud-chip:hover {
    background: var(--dt-accent-soft, #eef2ff);
    color: var(--dt-accent-hover, #4f46e5);
    border-color: var(--dt-accent-border, rgba(99, 102, 241, 0.35));
}

.iev-home-aud-chip.is-active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
    font-weight: 600;
}
