/* Created code by WULAN */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: black;
  overflow: hidden;
}

.container {
  position: relative;
  width: 100%;
  height: 100vh;
}

video {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  -ms-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgb(119, 119, 119);
  opacity: 0.5;
  z-index: 1;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  color: white;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid white;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.username {
  font-weight: bold;
  font-size: 14px;
}

.meta-info {
  display: flex;
  gap: 6px;
  font-size: 12px;
}

.live-tag {
  background: #ff2dcf;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: bold;
}

.viewer-tag {
  background: #555;
  padding: 2px 6px;
  border-radius: 6px;
}

.follow-btn {
  background-color: #fe2c55;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

.follow-btn:hover {
  background-color: #e02549;
}

.top-left {
  background: rgba(255, 0, 0, 0.8);
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: bold;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.live-button {
    position: absolute;
    display: flex;
    background-color: #e00060;
    color: white;
    align-items: center;
    justify-content: center;
    width: 100%;
    bottom: 20px;
    border: none;
    padding: 15px 0;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.live-button:hover {
    background: #e00060;
}

.comment-box {
  position: absolute;
  bottom: 100px;
  left: 10px;
  max-height: 40%;
  overflow: hidden;
  width: 70%;
}

.comment {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  animation: fadeInUp 0.3s ease;
}

.comment img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  margin-right: 6px;
}

.comment-content {
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 10px;
  border-radius: 16px;
  color: white;
  font-size: 13px;
}

.comment-name {
  font-weight: bold;
  margin-right: 5px;
}

.vertical-actions {
  position: absolute;
  right: 16px;
  bottom: 135px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  color: white;
  pointer-events: auto;
}

.vertical-actions .action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.vertical-actions .action span {
  font-size: 11px;
}

.comment-input-wrapper {
  position: absolute;
  bottom: 20px;
  left: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: 10px;
  color: white;
}

.comment-input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  outline: none;
}

.comment-input-wrapper .dots {
  background: none;
  border: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

.like-btn {
  position: absolute;
  right: 10px;
  bottom: 90px;
  pointer-events: auto;
  font-size: 24px;
  background: none;
  border: none;
  color: white;
}

.heart {
  position: absolute;
  right: 20px;
  bottom: 90px;
  font-size: 20px;
  animation: float 1s ease forwards;
  color: #ff2d55;
  pointer-events: none;
}

@keyframes float {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-100px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
