
html.avada-is-100-percent-template #main.width-100 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}

.container-fluid {
    padding-left: 0px !important;
    padding-right: 0px !important;
    padding-bottom: 0px !important;
    padding-top: 0px !important;
}

#quickSearchWords button.active {
  background-color: #007bff;
  color: #fff;
  font-weight: bold;
}
.search-wrapper {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 30px;
  border: 1px solid #ccc;
  padding: 0 10px;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
}

#videoSearch {
  flex: 1;
  border: none;
  font-size: 16px;
  padding: 12px 10px;
  border-radius: 30px;
  outline: none;
  min-width: 0; /* Safari에서 flex child 잘리는 현상 방지 */
  background: transparent;
}

#searchBtn {
  background: none;
  border: none;
  font-size: 20px;
  color: #666;
  cursor: pointer;
  white-space: nowrap; /* 줄바꿈 방지 */
  min-width: 30px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#videoCount {
    padding: 0 20px;
}

#desc-short {
    font-size: 18px;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    background: #000000;
    height: 120px;
    padding: 10px;
}

/* 안내 메시지 스타일 */
.video-placeholder-msg {
  font-size: 26px;
  text-align: center;
  color: #888;
  padding: 40px 20px;
  background-color: #f5f5f5;
  border: 2px dashed #ccc;
  border-radius: 10px;
  margin-bottom: 20px;
}


.search-container .search-logo {
    height: 39px;
}

/* 기본 레이아웃 */
.bunny-player-container {
    max-width: 1280px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 15px;
}

.video-main {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#bunny-main-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 비디오 리스트 스타일 */
.video-list-wrapper {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
}

.video-search {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
}

.video-list {
    max-height: 600px;
    overflow-y: auto;
}

#quickSearchWords {
    scrollbar-width: none;
}

#quickSearchWords::-webkit-scrollbar {
    display: none;
}

.quick-scroll-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.scroll-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    background: #fff;
    box-shadow: 0 0 3px rgba(0,0,0,0.1);
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    color: #939393;
}

.quick-scroll-words {
    position: relative;
    flex: 1;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.quick-scroll-words::-webkit-scrollbar {
    display: none;
}

.quick-scroll-words button {
    display: inline-block;
    background: #f8f8f8;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    margin: 0 5px;
    font-size: 14px;
    box-shadow: 0 0 3px rgba(0,0,0,0.1);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.quick-scroll-words button.active {
    background: #333;
    color: #fff;
}

.quick-scroll-words {
    mask-image: linear-gradient(to right, transparent 0%, black 30px, black calc(100% - 30px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30px, black calc(100% - 30px), transparent 100%);
}

.thumb-container {
    position: relative;
    border-radius: 8px;
    background-color: #000;
}

.video-thumb {
    width: 100%;
    height: 94px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.preview-video {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    background: #000;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.video-item {
    cursor: pointer;
    margin-bottom: 5px;
    padding: 0px;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.video-item:hover {
    background-color: #e2e3e4;
}

.video-title {
    font-size: 18px;
    line-height: 1.6;
    max-width: 100%;
    font-weight: 500;
    margin: 5px 0;
}

    .video-title {
        white-space: normal;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }


.video-info {
    flex: 1;
}

.video-meta {
    font-size: 12px;
    color: #666;
}

#videoDescription.expanded {
    max-height: none;
}

#toggleDesc {
    color: #0078d7;
    cursor: pointer;
    text-decoration: none;
}

#toggleDesc:hover {
    text-decoration: underline;
}

.bunny-error {
    padding: 20px;
    background: #ffe3e3;
    border: 2px solid #ff6b6b;
    border-radius: 8px;
    color: #d32f2f;
    text-align: center;
    margin: 15px;
    font-weight: bold;
}

#copyShareBtn {
  font-size: 16px;
  padding: 6px 14px;
  border-radius: 25px;
}

#shareCopiedMsg {
  font-size: 14px;
  font-weight: 500;
}


@media (min-width: 768px) {
    .col-md-8 {
        width: 100%;
        float: left;
    }

    .col-md-4 {
        width: 400px;
        float: left;
    }

    .thumb-container {
        width: 168px;
        margin-right: 10px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .video-thumb {
        height: 94px;
    }
	
	#quickScrollContainer {
    display: flex;
    align-items: center;       /* ✅ 세로 중앙 정렬 */
    justify-content: center;   /* ✅ 좌우 가운데 배치 */
    margin-bottom: 15px;
  }

  #quickScrollLeft,
  #quickScrollRight {
    display: none !important;  /* ✅ 좌우 화살표 제거 */
  }

  #quickSearchWords {
        display: flex;
        flex-wrap: wrap;
        justify-content: left;        /* ✅ 왼쪽 정렬 */
        align-items: center;
        gap: 10px;
        margin: 0 auto;
        padding: 10px 0;
        white-space: normal !important;
        overflow: visible !important;
    }

    #quickScrollLeft,
    #quickScrollRight {
        display: none !important;
    }

    #quickSearchWords button {
        padding: 10px 18px;
        font-size: 15px;
        border-radius: 25px;
        background: #f8f8f8;
        box-shadow: 0 0 3px rgba(0,0,0,0.1);
        cursor: pointer;
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    .search-container {
        display: block;
        padding: 10px;
        height: auto;
    }

    .search-container .search-logo {
        display: block;
        margin: 0 auto 10px auto;
        height: 36px;
    }

    #videoSearch {
        width: 100%;
        padding: 10px;
        font-size: 16px;
        border-radius: 25px;
        margin-bottom: 10px !important;
    }

    #quickScrollContainer {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 0px;
    }

    #quickScrollLeft,
    #quickScrollRight {
        display: none !important;
    }

     #quickSearchWords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  #quickSearchWords button {
    flex: 1 1 calc(50% - 12px); /* 2열 배치 */
    min-width: 140px;
    font-size: 18px; /* 더 큰 글씨 */
    padding: 5px 0; /* 더 높은 버튼 */
    border-radius: 30px;
    background-color: #f1f1f1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-weight: 600;
  }

  #quickSearchWords button:active {
    background-color: #ddd;
  }
    .container-fluid .col-md-8 {
        padding-left: 0;
        padding-right: 0;
    }

    .col-md-8, .col-md-4 {
        width: 100%;
        float: none;
    }

    .col-md-8 {
        margin-bottom: 20px;
    }

    .video-item {
        display: flex;
        align-items: center;
    }

    .thumb-container {
        width: 50%;
        margin-right: 10px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .video-thumb {
        height: 130px;
    }

    .video-title {
        flex-grow: 1;
        font-size: 18px;
    }

    .bunny-player-container {
        grid-template-columns: 1fr;
    }

    .video-list {
        max-height: 400px;
    }
	
	#videoPlayer {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  transition: all 0.2s ease;
}

#videoPlayer.mobile-sticky {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 56.25vw; /* 16:9 비율 */
  z-index: 9999;
  background: #000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mobile-iframe-placeholder {
  height: 0;
  transition: height 0.2s;
}

	
}

#videoSearch {
    margin-bottom: 0px !important;
    border-radius: 20px;
}

@media (min-width: 992px) {
    #videoSearch {
        
        font-size: 18px;
        padding: 10px 20px;
        border-radius: 30px;
        text-align: center;
    }
    .col-md-8 {
        width: calc(100% - 400px) !important;
        float: left;
        padding: 30px !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
    }

    .col-md-4 {
        width: 400px !important;
        float: right;
    }
}
