/* version1 */
/* public/css/video.css */

/* ビデオ基本スタイル */
video { 
    width: 320px; 
    margin: 6px; 
    border: 2px solid #444;
    border-radius: 8px;
    cursor: pointer;
    background: #000;
  }
  
  /* ビデオコンテナ */
  .video-container {
    display: inline-block;
    position: relative;
    margin: 6px;
  }
  
  /* 自分のプレビュー */
  .video-container.my-preview {
    border: 3px solid #28a745;
  }
  
  .video-container.my-preview video {
    border-color: #28a745;
  }
  
  /* ビデオコントロール */
  .video-controls {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    padding: 8px;
    border-radius: 6px;
    display: flex;
    gap: 8px;
    align-items: center;
  }
  
  .video-controls button {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .video-controls input[type="range"] {
    flex: 1;
    min-width: 60px;
  }
  
  .username-label {
    color: white;
    font-size: 13px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  }
  
  /* 最大化オーバーレイ */
  .maximized-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  
  .maximized-video-area {
    width: 90vw;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
  }
  
  .maximized-video-area video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border: none;
    margin: 0;
  }
  
  /* 縦横入れ替え時の回転 */
  .maximized-video-area video.rotated {
    transform: rotate(90deg);
    max-width: 85vh;
    max-height: 90vw;
  }
  
  /* 最大化コントロール */
  .maximized-controls {
    width: 90vw;
    height: 10vh;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
  }
  
  .maximized-controls button {
    padding: 12px 28px;
    font-size: 16px;
    background: white;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .maximized-controls button:hover {
    background: #007bff;
    color: white;
    transform: scale(1.05);
  }
  
  .maximized-controls .username-label {
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin-right: auto;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  }