/* YouTube風の動画視聴画面スタイル */

/* メインコンテナ */
#Vimeo_ShowMovieWebControl_ascx {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
}

/* 動画プレーヤーエリア */
#Vimeo_ShowMovieWebControl_ascx .video-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 0 auto;
    background-color: #000;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Vimeoプレーヤー */
#Vimeo_ShowMovieWebControl_ascx .video-player,
#Vimeo_ShowMovieWebControl_ascx #sample {
    width: 100% !important;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    display: block;
}

#Vimeo_ShowMovieWebControl_ascx #sample iframe {
    width: 100% !important;
    height: 100% !important;
}

/* 動画情報セクション（タイトルとアクションボタン） */
#Vimeo_ShowMovieWebControl_ascx .video-info-section {
    background-color: #ffffff;
    padding: 16px;
    margin-top: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 動画タイトル */
#Vimeo_ShowMovieWebControl_ascx .video-title {
    text-align: left;
    font-size: 20px;
    font-weight: 600;
    color: #030303;
    padding: 0 0 12px 0;
    margin: 0;
    line-height: 1.4;
}

/* アクションボタンコンテナ */
#Vimeo_ShowMovieWebControl_ascx .video-actions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* アクションボタン共通スタイル */
#Vimeo_ShowMovieWebControl_ascx .action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f1f1f1;
    color: #030303;
    text-decoration: none;
    min-height: 36px;
    box-sizing: border-box;
}

#Vimeo_ShowMovieWebControl_ascx .action-button:hover {
    background-color: #e5e5e5;
}

#Vimeo_ShowMovieWebControl_ascx .action-button:active {
    transform: scale(0.98);
}

/* いいねボタン - 属性セレクタでASP.NETの動的IDに対応 */
input[type="submit"][id$="BUTTON_GOOD"],
#Vimeo_ShowMovieWebControl_ascx .like-button {
    position: relative;
    padding: 10px 16px 10px 40px;
    min-height: 36px;
    box-sizing: border-box;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: color 150ms ease-in-out, background-color 150ms ease-in-out, transform 150ms ease-in-out;
}

input[type="submit"][id$="BUTTON_GOOD"]::before,
#Vimeo_ShowMovieWebControl_ascx .like-button::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M91.6 13A28.7 28.7 0 0 0 51 13l-1 1-1-1A28.7 28.7 0 0 0 8.4 53.8l1 1L50 95.3l40.5-40.6 1-1a28.6 28.6 0 0 0 0-40.6z' fill='%23606060'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 150ms ease-in-out, background-image 150ms ease-in-out;
}

/* いいねボタンOFF時の光るアニメーション */
@keyframes likeButtonGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(6, 95, 212, 0);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(6, 95, 212, 0.3);
    }
}

input[type="submit"][id$="BUTTON_GOOD"].ButtonBlue,
#Vimeo_ShowMovieWebControl_ascx .like-button.ButtonBlue {
    background-color: #f1f1f1;
    color: #030303;
    border: 1px solid transparent;
    animation: likeButtonGlow 2s ease-in-out infinite;
}

input[type="submit"][id$="BUTTON_GOOD"].ButtonBlue::before,
#Vimeo_ShowMovieWebControl_ascx .like-button.ButtonBlue::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M91.6 13A28.7 28.7 0 0 0 51 13l-1 1-1-1A28.7 28.7 0 0 0 8.4 53.8l1 1L50 95.3l40.5-40.6 1-1a28.6 28.6 0 0 0 0-40.6z' fill='%23606060'/%3E%3C/svg%3E");
}

input[type="submit"][id$="BUTTON_GOOD"].ButtonBlue:hover,
#Vimeo_ShowMovieWebControl_ascx .like-button.ButtonBlue:hover {
    background-color: #e5e5e5;
    transform: scale(1.02);
}

input[type="submit"][id$="BUTTON_GOOD"].ButtonBlue:hover::before,
#Vimeo_ShowMovieWebControl_ascx .like-button.ButtonBlue:hover::before {
    transform: translateY(-50%) scale(1.1);
}

input[type="submit"][id$="BUTTON_GOOD"].ButtonGreen,
#Vimeo_ShowMovieWebControl_ascx .like-button.ButtonGreen {
    background-color: #065fd4;
    color: #ffffff;
    border: 1px solid transparent;
}

input[type="submit"][id$="BUTTON_GOOD"].ButtonGreen::before,
#Vimeo_ShowMovieWebControl_ascx .like-button.ButtonGreen::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M91.6 13A28.7 28.7 0 0 0 51 13l-1 1-1-1A28.7 28.7 0 0 0 8.4 53.8l1 1L50 95.3l40.5-40.6 1-1a28.6 28.6 0 0 0 0-40.6z' fill='%23ff0000'/%3E%3C/svg%3E");
    transform: translateY(-50%) scale(1.1);
}

input[type="submit"][id$="BUTTON_GOOD"].ButtonGreen:hover,
#Vimeo_ShowMovieWebControl_ascx .like-button.ButtonGreen:hover {
    background-color: #0554c0;
    transform: scale(1.02);
}

input[type="submit"][id$="BUTTON_GOOD"].ButtonGreen:hover::before,
#Vimeo_ShowMovieWebControl_ascx .like-button.ButtonGreen:hover::before {
    transform: translateY(-50%) scale(1.15);
}

input[type="submit"][id$="BUTTON_GOOD"]:active,
#Vimeo_ShowMovieWebControl_ascx .like-button:active {
    transform: scale(0.98);
}

/* リスト保存ボタン */
#Vimeo_ShowMovieWebControl_ascx .list-button {
    background-color: #f1f1f1;
    color: #030303;
}

#Vimeo_ShowMovieWebControl_ascx .list-button:hover {
    background-color: #e5e5e5;
}

/* URLコピーボタン */
#Vimeo_ShowMovieWebControl_ascx .copy-button,
#Vimeo_ShowMovieWebControl_ascx #BUTTON_COPY_URL,
#Vimeo_ShowMovieWebControl_ascx #BUTTON_COPY_URL_TOP {
    background-color: #065fd4;
    color: #ffffff;
}

#Vimeo_ShowMovieWebControl_ascx .copy-button:hover,
#Vimeo_ShowMovieWebControl_ascx #BUTTON_COPY_URL:hover,
#Vimeo_ShowMovieWebControl_ascx #BUTTON_COPY_URL_TOP:hover {
    background-color: #0554c0;
}

/* 統計情報カードコンテナ */
#Vimeo_ShowMovieWebControl_ascx .video-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

/* 統計情報カード */
#Vimeo_ShowMovieWebControl_ascx .stat-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

#Vimeo_ShowMovieWebControl_ascx .stat-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#Vimeo_ShowMovieWebControl_ascx .stat-label {
    font-size: 13px;
    color: #606060;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: left;
}

#Vimeo_ShowMovieWebControl_ascx .stat-value {
    font-size: 16px;
    color: #030303;
    font-weight: 600;
    text-align: left;
}

/* 視聴ステータスカード */
#Vimeo_ShowMovieWebControl_ascx .status-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
}

#Vimeo_ShowMovieWebControl_ascx .status-card .stat-label {
    margin-bottom: 0;
    min-width: 120px;
}

#Vimeo_ShowMovieWebControl_ascx .status-card .status-value {
    flex: 1;
}

/* 視聴ステータスバッジ */
#Vimeo_ShowMovieWebControl_ascx .Contents_Status_None,
#Vimeo_ShowMovieWebControl_ascx .Contents_Status_Start,
#Vimeo_ShowMovieWebControl_ascx .Contents_Status_End,
#Vimeo_ShowMovieWebControl_ascx .Contents_Status_Pass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
}

#Vimeo_ShowMovieWebControl_ascx .Contents_Status_None {
    background-color: #f1f1f1;
    color: #606060;
}

#Vimeo_ShowMovieWebControl_ascx .Contents_Status_Start {
    background-color: #e3f2fd;
    color: #1976d2;
}

#Vimeo_ShowMovieWebControl_ascx .Contents_Status_End {
    background-color: #e8f5e9;
    color: #388e3c;
}

#Vimeo_ShowMovieWebControl_ascx .Contents_Status_Pass {
    background-color: #fff3e0;
    color: #f57c00;
}

/* ナビゲーションボタン（前の動画、次の動画） */
#Vimeo_ShowMovieWebControl_ascx > div > div:last-child + div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

#Vimeo_ShowMovieWebControl_ascx #BUTTON_PRE,
#Vimeo_ShowMovieWebControl_ascx #BUTTON_NEXT,
#Vimeo_ShowMovieWebControl_ascx #BUTTON_PRE_FROM_LIST,
#Vimeo_ShowMovieWebControl_ascx #BUTTON_NEXT_FROM_LIST {
    padding: 10px 20px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    background-color: #f1f1f1;
    color: #030303;
    text-decoration: none;
    display: inline-block;
}

#Vimeo_ShowMovieWebControl_ascx #BUTTON_PRE:hover,
#Vimeo_ShowMovieWebControl_ascx #BUTTON_NEXT:hover,
#Vimeo_ShowMovieWebControl_ascx #BUTTON_PRE_FROM_LIST:hover,
#Vimeo_ShowMovieWebControl_ascx #BUTTON_NEXT_FROM_LIST:hover {
    background-color: #e5e5e5;
}

/* URLコピーメッセージ */
#Vimeo_ShowMovieWebControl_ascx #COPY_URL_MESSAGE {
    font-size: 12px;
    color: #065fd4;
    margin-top: 4px;
    text-align: center;
}

/* スイッチ（連続再生、表示リストのフォーカス） */
#Vimeo_ShowMovieWebControl_ascx .switch_owner_user_loop,
#Vimeo_ShowMovieWebControl_ascx .switch_user_loop_back,
#Vimeo_ShowMovieWebControl_ascx #switch_owner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: #ffffff;
    border-radius: 12px;
    margin-top: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#Vimeo_ShowMovieWebControl_ascx .switch_text {
    font-size: 14px;
    color: #030303;
    font-weight: 500;
}

/* リンクリスト */
#Vimeo_ShowMovieWebControl_ascx #video_links {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
}

#Vimeo_ShowMovieWebControl_ascx #video_links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#Vimeo_ShowMovieWebControl_ascx #video_links ul li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    gap: 8px;
}

#Vimeo_ShowMovieWebControl_ascx #video_links ul li:last-child {
    border-bottom: none;
}

#Vimeo_ShowMovieWebControl_ascx #video_links ul li.active-link {
    background-color: #f1f1f1;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 0 -12px;
}

#Vimeo_ShowMovieWebControl_ascx #video_links .link-like-div {
    color: #065fd4;
    font-weight: 500;
    font-size: 14px;
    min-width: 80px;
}

#Vimeo_ShowMovieWebControl_ascx #video_links a {
    color: #030303;
    text-decoration: none;
    font-size: 14px;
    flex: 1;
}

#Vimeo_ShowMovieWebControl_ascx #video_links a:hover {
    color: #065fd4;
}

/* よくある質問リンク */
#Vimeo_ShowMovieWebControl_ascx > div > div:last-child + div + div {
    text-align: center;
    margin-top: 24px;
    padding: 16px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    #Vimeo_ShowMovieWebControl_ascx {
        padding: 12px;
    }

    #Vimeo_ShowMovieWebControl_ascx .video-title {
        font-size: 18px;
    }

    #Vimeo_ShowMovieWebControl_ascx .video-stats-container {
        grid-template-columns: 1fr;
    }

    #Vimeo_ShowMovieWebControl_ascx .stat-label {
        font-size: 12px;
    }

    #Vimeo_ShowMovieWebControl_ascx .stat-value {
        font-size: 14px;
    }

    #Vimeo_ShowMovieWebControl_ascx .action-button {
        font-size: 13px;
        padding: 8px 14px;
    }

    #Vimeo_ShowMovieWebControl_ascx #BUTTON_PRE,
    #Vimeo_ShowMovieWebControl_ascx #BUTTON_NEXT,
    #Vimeo_ShowMovieWebControl_ascx #BUTTON_COPY_URL {
        font-size: 13px;
        padding: 8px 16px;
    }
}

/* スクロールバーのスタイル */
#Vimeo_ShowMovieWebControl_ascx #video_links::-webkit-scrollbar {
    width: 8px;
}

#Vimeo_ShowMovieWebControl_ascx #video_links::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#Vimeo_ShowMovieWebControl_ascx #video_links::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

#Vimeo_ShowMovieWebControl_ascx #video_links::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* リスト保存ポップアップのスタイル改善 */
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ポップアップヘッダー（閉じるボタン） */
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup input[type="submit"][id$="VIDEO_LIST_CloseButton"],
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup input[type="button"][id$="VIDEO_LIST_CloseButton"],
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup button[id$="VIDEO_LIST_CloseButton"] {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f1f1f1;
    color: #030303;
    border: none;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    min-width: 36px;
    box-sizing: border-box;
}

#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup input[type="submit"][id$="VIDEO_LIST_CloseButton"]:hover,
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup input[type="button"][id$="VIDEO_LIST_CloseButton"]:hover,
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup button[id$="VIDEO_LIST_CloseButton"]:hover {
    background-color: #e5e5e5;
}

/* ポップアップ内のUpdatePanel */
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup .UpdatePanel {
    margin-top: 8px;
}

/* ボタンを囲むdiv */
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup .UpdatePanel > div:first-child {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 新しい再生リスト作成ボタン */
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup input[type="submit"][id$="BUTTON_NEW_VIDEOLIST"],
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup input[type="button"][id$="BUTTON_NEW_VIDEOLIST"],
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup button[id$="BUTTON_NEW_VIDEOLIST"] {
    width: 50%;
    min-width: 200px;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid #065fd4;
    background-color: #065fd4;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 auto;
    box-sizing: border-box;
    display: block;
    font-family: inherit;
    box-shadow: 0 2px 4px rgba(6, 95, 212, 0.2);
}

#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup input[type="submit"][id$="BUTTON_NEW_VIDEOLIST"]:hover,
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup input[type="button"][id$="BUTTON_NEW_VIDEOLIST"]:hover,
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup button[id$="BUTTON_NEW_VIDEOLIST"]:hover {
    background-color: #0554c0;
    border-color: #0554c0;
    box-shadow: 0 4px 8px rgba(6, 95, 212, 0.3);
    transform: translateY(-1px);
}

/* 新しいリスト作成フォーム */
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup div[id$="VIDEOLIST_ADD_Panel"] {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-top: 12px;
}

#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup input[type="text"][id$="TEXTBOX_VIDEOLIST"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d3d3d3;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup input[type="text"][id$="TEXTBOX_VIDEOLIST"]:focus {
    border-color: #065fd4;
}

#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup input[type="submit"][id$="BUTTON_VIDEOLIST_ADD"],
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup input[type="button"][id$="BUTTON_VIDEOLIST_ADD"],
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup button[id$="BUTTON_VIDEOLIST_ADD"] {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    background-color: #065fd4;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup input[type="submit"][id$="BUTTON_VIDEOLIST_ADD"]:hover,
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup input[type="button"][id$="BUTTON_VIDEOLIST_ADD"]:hover,
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup button[id$="BUTTON_VIDEOLIST_ADD"]:hover {
    background-color: #0554c0;
}

/* バリデーションエラー */
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup .OELNGIFRequiredFieldValidator {
    color: #d93025;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* 再生リストパネル */
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup .PlayListPanel {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
    margin-top: 16px;
}

/* チェックボックスリスト */
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup .PlayListPanel > div > div,
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup .PlayListPanel .UpdatePanel > div > div {
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
}

#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup .PlayListPanel > div > div:last-child,
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup .PlayListPanel .UpdatePanel > div > div:last-child {
    border-bottom: none;
}

#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup .PlayListPanel input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #065fd4;
    flex-shrink: 0;
}

#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup .PlayListPanel label,
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup .PlayListPanel span[id$="CHECKBOX_VIDEOLIST"] {
    font-size: 14px;
    color: #030303;
    cursor: pointer;
    flex: 1;
    user-select: none;
    display: flex;
    align-items: center;
}

#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup .PlayListPanel label:hover,
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup .PlayListPanel span[id$="CHECKBOX_VIDEOLIST"]:hover {
    color: #065fd4;
}

/* モーダル背景 */
#Vimeo_ShowMovieWebControl_ascx .ModalBackground {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* スクロールバーのスタイル（ポップアップ内） */
#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup .PlayListPanel::-webkit-scrollbar {
    width: 8px;
}

#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup .PlayListPanel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup .PlayListPanel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

#Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup .PlayListPanel::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* レスポンシブ対応（ポップアップ） */
@media (max-width: 768px) {
    #Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup {
        width: 95%;
        max-height: 90vh;
    }

    #Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup > div:first-child {
        padding: 20px 16px 12px 16px;
    }

    #Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup .PlayListPanel {
        padding: 0 16px 16px 16px;
    }

    #Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup div[id$="VIDEOLIST_ADD_Panel"] {
        flex-direction: column;
    }

    #Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup input[type="submit"][id$="BUTTON_VIDEOLIST_ADD"],
    #Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup input[type="button"][id$="BUTTON_VIDEOLIST_ADD"],
    #Vimeo_ShowMovieWebControl_ascx .Controls-PlayListSavePopup button[id$="BUTTON_VIDEOLIST_ADD"] {
        width: 100%;
    }
}

/* レスポンシブ対応（アクションボタン） */
@media (max-width: 768px) {
    #Vimeo_ShowMovieWebControl_ascx .video-actions-container {
        gap: 6px;
    }

    #Vimeo_ShowMovieWebControl_ascx .action-button,
    input[type="submit"][id$="BUTTON_GOOD"],
    #Vimeo_ShowMovieWebControl_ascx .like-button {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 32px;
    }

    input[type="submit"][id$="BUTTON_GOOD"],
    #Vimeo_ShowMovieWebControl_ascx .like-button {
        padding-left: 32px;
    }

    input[type="submit"][id$="BUTTON_GOOD"]::before,
    #Vimeo_ShowMovieWebControl_ascx .like-button::before {
        width: 14px;
        height: 14px;
        left: 10px;
    }

    #Vimeo_ShowMovieWebControl_ascx .heart-icon {
        width: 14px !important;
        height: 14px !important;
        left: 10px !important;
    }

    /* スイッチとテキストを縦並びに */
    #Vimeo_ShowMovieWebControl_ascx #switch_owner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    #Vimeo_ShowMovieWebControl_ascx .switch_text {
        order: 1;
        margin: 0 !important;
    }

    #Vimeo_ShowMovieWebControl_ascx #div_auto_video_link {
        order: 2;
    }

    /* スイッチのコンテナサイズを調整 */
    #Vimeo_ShowMovieWebControl_ascx .switch {
        width: 130px !important;
        height: 34px !important;
    }

    /* スイッチの内側の球をスマホ表示で調整 */
    #Vimeo_ShowMovieWebControl_ascx .slider {
        height: 34px !important;
    }

    #Vimeo_ShowMovieWebControl_ascx .slider:before {
        height: 26px !important;
        width: 26px !important;
        left: 4px !important;
        bottom: 4px !important;
    }

    #Vimeo_ShowMovieWebControl_ascx input:checked + .slider:before {
        transform: translateX(calc(130px - 26px - 8px)) !important;
    }

    /* ON/OFFテキストを表示 */
    #Vimeo_ShowMovieWebControl_ascx .auto_video_link_switch_text {
        display: block !important;
        left: 50px !important;
        top: 4px !important;
    }
}
