
/* プレイヤー用モーダル背景 */
#ecatvPlayerModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* モーダルの中身 */
.ecatv-modal-content {
    position: relative;
    margin: 2% auto;
    width: 95%;
    max-width: 1000px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

/* ヘッダーエリア（黒背景を確保） */
.ecatv-header-area {
    background: #000;
    width: 100%;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* フッターエリア（下部の黒背景を確保） */
.ecatv-footer-area {
    background: #000;
    width: 100%;
    height: 50px; /* ecatv-modal-header のパディング(10*2) + タイトルの高さ等に合わせる */
    z-index: 10;
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* ヘッダーエリア（タイトルと閉じるボタンのコンテナ） */
.ecatv-modal-header {
    width: 100%;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

/* 映像エリア */
.ecatv-video-area {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

/* タイトル */
#ecatvVideoTitle {
    color: white;
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
    padding-right: 20px;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 閉じるボタン */
.ecatv-close-btn {
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
}

.ecatv-close-btn:hover {
    color: #ccc;
}

/* 読み込み中表示 */
#ecatvLoading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    color: white;
    font-size: 1.5rem;
    line-height: 1.6;
    display: none;
    z-index: 5;
}

/* ビデオ要素 */
#ecatvHlsVideo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

