        html, body {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            background: black;
            overflow: hidden;
            touch-action: none;
            touch-action: pan-y; /* ← дозволь вертикальний свайп */
            overflow: hidden;     /* ← опціонально, щоб не скролилось браузером */
            position: fixed;
        }
.error-message {
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 18px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  margin: 20px;
}
    .tab-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 60px;
      display: flex;
      justify-content: space-around;
      align-items: center;
      background: #111;
      z-index: 999;
    }
    .tab-bar button {
      flex: 1;
      height: 100%;
      background: none;
      border: none;
      color: white;
      font-size: 18px;
    }
        
:root {
  /* Змінні для керування відступами */
  --like-panel-gap: 5px;
  --coin-items-gap: 5px;
  --coin-counter-margin: 10px;
}

  font-size: 18px;
}
.splash-fullscreen {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  background: url('/static/images/bg.png')
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}
  
  /* Розміри іконок */
  --icon-size: 36px;
  --icon-size-mobile: 32px;
  
  /* Розміри тексту */
  --text-size: 14px;
  --text-size-mobile: 14px;
}

.like-btn img, .coin-panel img {
  width: var(--icon-size);
  height: var(--icon-size);
  object-fit: contain;
}

/* Стилі для лічильника монет - ідентичні .like-count */
    
.coin-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--coin-items-gap);
}

/* Додаткові заходи для iOS */
@supports (-webkit-touch-callout: none) {
  .like-count, .coin-count {
    font-size: var(--text-size-mobile) !important;
    text-rendering: optimizeLegibility;
  }
}   



        #back-to-profile {
            position: fixed;
            top: 20px;
            left: 20px;
            z-index: 1000;
            background: rgba(0,0,0,0.5);
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: opacity 0.3s;
        }

        #back-to-profile:hover {
            opacity: 0.8;
        }
        .like-btn {
            background: transparent;
            border: none;
            font-size: 24px; /* Зменшений розмір (було 32px) */
            cursor: pointer;
            color: white;
            transition: transform 0.2s ease;
            padding: 0;
            margin: 0;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .like-btn.liked {
            color: #ff0050;
            transform: scale(1.1); /* Зменшений ефект масштабу (було 1.2) */
        }


        /* Анімація лайку */
        .like-animation {
            position: absolute;
            font-size: 24px; /* Зменшений розмір анімації */
            pointer-events: none;
            z-index: 100;
            animation: float-up 0.8s ease-out forwards;
        }

        @keyframes float-up {
            0% { transform: scale(1); opacity: 1; }
            100% { transform: scale(1.3) translateY(-40px); opacity: 0; }
        }
#coin-animation {
    position: fixed;
    font-size: 32px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: transform 1s ease-in-out, opacity 0.5s ease-in;
}


        /* Батьківський контейнер */
#coin-animation-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* Монетка */
.coin-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  animation: popIn 0.6s ease-out forwards, flyToCorner 1.2s ease-in-out forwards;
  animation-delay: 0s, 1s; /* Поява одразу, політ через 1с */
}

/* Плавна поява */
@keyframes popIn {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* Політ у правий верхній кут */
@keyframes flyToCorner {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(calc(100vw - 80px), calc(-100vh + 80px)) scale(0.5);
    opacity: 0;
  }
}

        .video-element {
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;
            background: black;
        }
        
.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.slide-up-enter {
    transform: translateY(100%);
}
.slide-up-enter-active {
    transform: translateY(0);
}
.slide-up-exit {
    transform: translateY(0);
}
.slide-up-exit-active {
    transform: translateY(-100%);
}

.slide-down-enter {
    transform: translateY(-100%);
}
.slide-down-enter-active {
    transform: translateY(0);
}
.slide-down-exit {
    transform: translateY(0);
}
.slide-down-exit-active {
    transform: translateY(100%);
}
        /* Основні кнопки управління */
        #main-controls {
            position: fixed;
            bottom: 90px; /* Зміщено вище, щоб бути над хотбаром */
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 15px;
            z-index: 100;
        }
        
        .control-btn {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            font-size: 20px;
            cursor: pointer;
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* Панель додавання відео */
        #bottom-panel {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background: rgba(0, 0, 0, 0.7);
            padding: 15px;
            display: flex;
            justify-content: space-around;
            z-index: 99;
            backdrop-filter: blur(10px);
        }
        
        .panel-btn {
            background: transparent;
            color: white;
            border: none;
            font-size: 24px;
            cursor: pointer;
            padding: 10px;
        }
        
        /* Сторінка додавання відео */
        #add-video-page {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: black;
            z-index: 1000;
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
            box-sizing: border-box;
        }
        
        #back-btn {
            position: absolute;
            top: 20px;
            left: 20px;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            font-size: 20px;
            cursor: pointer;
        }
        
        #add-video-form {
            width: 100%;
            max-width: 500px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        #video-url-input {
            width: 100%;
            padding: 15px;
            border-radius: 10px;
            border: none;
            font-size: 16px;
        }
        
        #submit-video-btn {
            padding: 15px;
            border-radius: 10px;
            border: none;
            background: #FE2C55;
            color: white;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
        }
        /* Анімація лайку */
        @keyframes heartBeat {
            0% { transform: scale(1); opacity: 0; }
            50% { transform: scale(1.5); opacity: 1; }
            100% { transform: scale(1); opacity: 0; }
        }
        /* Додайте ці стилі до вашого CSS */
        .like-container {
            position: absolute;
            right: 20px;
            bottom: 100px;
            display: flex;
            flex-direction: column;
            align-items: center;
            z-index: 100;
        }
        
        .like-btn {
            background: transparent;
            border: none;
            font-size: 40px;
            cursor: pointer;
            margin-bottom: 5px;
        }
        
        
        .liked {
            color: red;
            animation: heartBeat 0.5s;
        }
        
        @keyframes heartBeat {
            0% { transform: scale(1); }
            25% { transform: scale(1.3); }
            50% { transform: scale(1); }
            75% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }
        .like-animation {
            position: absolute;
            font-size: 100px;
            color: red;
            pointer-events: none;
            animation: heartBeat 1s ease-out;
            z-index: 1000;
        }
        .like-panel {
    position: absolute;
    bottom: 77px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
        }

        .like-btn {
          background: transparent;
          border: none;
          font-size: 28px;
          cursor: pointer;
          color: white;
          transition: transform 0.2s ease;
        }

        .like-btn.liked {
          color: #ff0050;
          transform: scale(1.2);
        }

        #sound-message {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 15px 25px;
            border-radius: 25px;
            font-size: 18px;
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
        }
        
        #sound-message.show {
            opacity: 1;
        }

