    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
      }

      body {
        background-color: #000;
        overflow: hidden;
        touch-action: none;
        position: fixed;
        width: 100%;
        height: 100%;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Oxygen, Ubuntu, Cantarell, sans-serif;
      }
      #logo-container {
        position: absolute;
        z-index: 10;
        /*background: rgba(0, 0, 0, 0.5);*/
        border-radius: 8px;
        padding: 5px;
        max-width: 100px;
        max-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
      }

      /* Вертикальная ориентация */
      @media (orientation: portrait) {
        #logo-container {
          bottom: 30px;
          right: 10px;
          max-width: 80px;
          max-height: 30px;
        }
      }

      /* Горизонтальная ориентация */
      @media (orientation: landscape) {
        #logo-container {
          bottom: 20px;
          right: 10px;
          max-width: 80px;
          max-height: 50px;
        }
      }

      #logo-container img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        opacity: 0.7;
      }

      #logo-container img {
        max-width: 100%;
        max-height: 90px;
        object-fit: contain;
      }
      #logo-container span {
        color: white;
        font-size: 14px;
        font-weight: bold;
        padding: 5px 10px;
      }
      #video-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        z-index: 1;
      }

      #video-player {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: contain; /* Оставляем contain как основное значение */
        background-color: #000; /* Черный фон для letterbox */
      }

      .controls {
        position: absolute;
        bottom: 20px;
        left: 0;
        gap: 10px;
        right: 0;
        display: flex;
        justify-content: center;
        z-index: 10;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
      }

      .controls.visible {
        opacity: 0.8;
        pointer-events: auto;
      }

      .control-btn {
        width: 50px;
        height: 50px;
        background: rgba(46, 46, 46, 0.7);
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
        backdrop-filter: blur(5px);
        transition: background 0.4s ease, transform 0.2s ease,
          backdrop-filter 0.4s ease;
        will-change: background, backdrop-filter; /* Для оптимизации анимации */
      }

      .control-btn:active {
        transform: scale(0.9);
        background: rgba(50, 50, 50, 0.7);
      }

      .control-btn svg {
        width: 24px;
        height: 24px;
      }

      #status-message {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(30, 30, 30, 0.7);
        color: white;
        padding: 12px 20px;
        border-radius: 8px;
        text-align: center;
        max-width: 80%;
        z-index: 5;
        font-size: 14px;
        line-height: 1.4;
        display: none;
        backdrop-filter: blur(5px);
        opacity: 0.9;
      }

      #loading-spinner {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 40px;
        height: 40px;
        border: 4px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        border-top-color: white;
        animation: spin 1s ease-in-out infinite;
        display: none;
        z-index: 6;
      }

      @keyframes spin {
        to {
          transform: translate(-50%, -50%) rotate(360deg);
        }
      }

      @media (orientation: portrait) {
        .controls {
          bottom: 40px;
        }

        .control-btn {
          width: 45px;
          height: 45px;
        }

        #status-message {
          font-size: 13px;
          padding: 10px 16px;
        }
      }

       @media (orientation: landscape) {
       .controls {
              padding-left: 15px;
        } 
          #status-message {
            top:30%
        
        }
      }