    #rightPanel {
      position: fixed;
      top: 0;
      right: -230px;
      width: 230px;
      height: 100%;
      background: #fff;
      box-shadow: -2px 0px 10px rgba(0, 0, 0, 0.1);
      transition: right 0.3s ease-in-out;
      padding: 20px;
      overflow-y: auto;
      display: none;
    }

    #rightPanel.open {
      right: 0;
      display: block;
    }

    #rightOpenPanelBtn {
      position: fixed;
      bottom: 19px;
      left: 50%;
      transform: translateX(25px);
      background: #e60000;
      color: #fff;
      padding: 4px 12px;
      border: none;
      outline: 1px solid #fff;
      border-radius: 6px;
      cursor: pointer;
      font-size: 4px;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      width: 28px;
      height: 22px;
      transition: transform 0.2s ease;
    }

    #rightOpenPanelBtn:hover {
      background-color: #c70000;
      transform: translateX(25px) rotate(7deg) scale(1.8); 
    }

    #rightOpenPanelBtn:focus {
      outline: none;
    }

    #rightOpenPanelBtn::before {
      content: '▶';
      color: #ffffff !important;
      font-size: 11px;
      line-height: 1;
    }

    @media (max-width: 600px), (max-height: 500px) {
     #rightOpenPanelBtn {
      display: none; /* 모바일 화면에서는 버튼을 숨김 */
     }
    }

    @media (max-width: 768px) and (orientation: landscape) {
     #rightOpenPanelBtn {
       display: none;
    }
    }

    #rightAddBtn {
      background: #e60000;
      color: #fff;
      padding: 10px 20px;
      border: none;
      border-radius: 50px;
      cursor: pointer;
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: none;
      margin-bottom: 20px;
    }

    .right-video-container {
      display: flex;
      flex-direction: column;
      gap: 20px;
      margin-top: 30px;
      max-height: 80vh;
    }

    .right-video-box {
      background: white;
      padding: 5px;
      border-radius: 10px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      max-width: 200px;
      position: relative;
    }

    .right-video-box iframe,
    [id^="rightiframe"] {
      width: 100%;
      height: 150px;
      border-radius: 8px;
    }

    .right-info {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 10px;
    }

    .right-title {
      font-size: 14px;
      font-weight: bold;
      color: #333;
    }

    #rightModal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: none;
      background: rgba(0,0,0,0.5);
      justify-content: center;
      align-items: center;
    }

    #rightModalContent {
      background: #fff;
      padding: 20px;
      border-radius: 8px;
      width: 300px;
      text-align: center;
    }

    #rightModalContent input {
      width: 95%;
      padding: 8px;
      margin-bottom: 10px;
      font-size: 14px;
    }

    #rightModalContent button {
      background: #000;
      color: #fff;
      padding: 6px 12px;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 13px;
    }

    #rightModalContent .button2 {
  background: #000;
  color: #fff;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

    .right-close-btn {
     position: absolute;
    top: 5px;
    right: 5px;
     background: #e60000;
     color: #fff;
     border: none;
     border-radius: 50%;
     width: 20px;
     height: 20px;
     font-size: 12px;
    line-height: 18px;
    text-align: center;
     cursor: pointer;
     z-index: 2;
    }

    .right-close-btn:hover {
     background-color: #c70000;
    }