@media (prefers-color-scheme:dark){
  body.cmt_document{
    background:#1C1E21 !important;
  }
}

@media (max-height:414px) and (orientation:landscape){
  body.cmt_document{
    background:#1C1E21 !important;
  }
}

html:not(.middle-view), html:not(.middle-view) body, html:not(.middle-view) #__next{
  height: 100%;
  overscroll-behavior-y: none;
}

body.cmt_document{
  background:white;
}


*:not(input):not(textarea) {
  -webkit-user-select: none; /* disable selection/Copy of UIWebView */
  -webkit-touch-callout: none; /* disable the IOS popup when long-press on a link */
}

/* progress bar */
.progress_bar .play_bar {
  transform-origin: 0 0;
  transition: all 0.25s linear 0s;
}

/* toast */
.toast_layer .inner_toast {
  visibility: hidden;
}

.toast_layer .inner_toast.on,.toast_layer .inner_toast.off {
  visibility: visible;
}

.layer_like {
  animation: unset;
}
.layer_like.on {
  display: block;
  z-index: 99;
}

/* hide header when comment panel is opened in landscape view */
@media (orientation:landscape){
  .mobile article._comment .control_short{
    display: none;
  }

  body {
    height: 100% !important;
  }
}

@media (max-height : calc(408px + 45px)) and (orientation: portrait) {
  .mobile article._comment .control_short{
    display: none;
  }
}

.shortform_items {
  transition-timing-function: cubic-bezier(0.4,0,0.2,1);
}

/* Anchor tag */
a:hover {
  cursor: pointer;
}

/* text word break */
.cmt_wrap p {
  word-wrap: break-word; /* 비아시아 언어의 줄바꿈을 제어한다. 단어를 기준으로 하나의 단어 글자가 길어지면 강제로 끊어서 줄 바꿈 처리 */
}

/* fix carousel snap height */
.mobile .shortform_player {
  height : 100%;
}

.collapse .cmt_wrap .cmt_write .info_write {
  position: absolute;
  top: 17px;
  right: 16px;
  border-top: none;
}

.collapse .write_on .cmt_write {
  padding: 14px 16px;
}

.collapse .cmt_wrap .cmt_write .inner_write {
  padding-top: 12px;
  padding-bottom: 12px;
  padding-right: 0;
  margin-right: 56px;
}

.collapse .cmt_wrap .cmt_write .tf_cmt {
  max-width: 258px;
  max-height: 38px;
  overflow-y: hidden;
}

.collapse .cmt_wrap .cmt_write {
  display: block;
}


/* shrink comment panel when mobile textarea open */
.mobile .shrink .cmt_wrap .cmt_write {
  position: relative;
}

.mobile .shrink .cmt_wrap {
  height: auto;
  padding: 0;
}

/* title max 3 lines */
.item_player .info_player .tit_player .link_txt {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-all;
}

/* header z-index */
.control_short {
  z-index: 20;
}

body > video {
  display: none;
}

.guide_overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0, 0, 0.5);
  text-align: center;
  z-index: 9999;
}

.guide_image {
  background-position: 0 0;
  width : 60%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.temp_input{
  position: absolute;
  height: 0;
  opacity: 0;
  top: 7px;
  left: 0px;
}

._error .control_short .btn_sound {
  display: none;
}
._error .item_player::before{
  display: none;
}

.bottomsheet, .box_bar {
  touch-action: none;
}

.item_cmt {
  transform:translateZ(0)
}

.link_short{
  -webkit-tap-highlight-color: transparent; /* for removing the highlight */
}
.article_shortform .item_more{
  visibility: hidden;
}
.article_shortform .item_more.open{
  visibility: visible;
}
.article_shortform .item_more .share_wrap{
  transform:translateY(100%);
}

.article_shortform .item_more.open .share_wrap{
  transform:translateY(0);
}

.article_shortform .item_more.close .share_wrap{
  transform:translateY(100%);
}

.btn_action .ico_animation {
  width: 40px;
  height: 40px;
}

.extend .shortform_player .item_player .control_panel.close .tit_player{
  -webkit-line-clamp:10;
}

.item_cmt .cmt_wrap{
  transform:translateY(100%);
}

.item_cmt.open .cmt_wrap{
  transform:translateY(0);
}

.item_cmt.close .cmt_wrap{
  transform:translateY(100%);
}

.box_action{
  display:flex;
  flex-wrap: wrap;
  height: 30px;
  width: 100%;
  overflow: hidden;
}

.type_mycmt .link_source:active, .type_mycmt .link_source:hover{
  text-decoration:none;
}

.type_mycmt a.link_source.active{
  text-decoration:underline;
  -webkit-tap-highlight-color:transparent;
  background-color:transparent;
}


.item_player .video_player .thumb_video{
  width:100%;
  transform: scale(1.005);
}


.extend .shortform_player .item_player .control_panel{
  transform: unset;
}

.thumb_profile .thumb_bg {
  fill: #fff;
  stroke: #fff;
  stroke-width: 0;
}

.item_player .profile_player .thumb_profile .thumb_bg{
  fill:#fff;
}

.thumb_profile .thumb_stroke {
  fill: rgba(255,255,255,0.04);
}

.item_player .video_player .thumb_video{
  transform: translate3d(0,0,0);
  z-index: 0;
  position: relative;
}

.item_player .video_player .video_thumb:before{
  z-index: 0;
}

.feedview_tit, .logo_short {
  z-index: 2;
}

.item_player .video_player .video_thumb:before{
  transform: translate3d(0,0,0);
  z-index: 1;
}

.shortform_player .btn_action .txt_num,
.shortform_player .btn_action .ico_short,
.progress_bar,
.tit_profile, .thumb_profile,
.item_player .info_player,
.tit_player,
.btn_subscript,
.item_player:before,
.btn_feedback
{
  transform:translate3d(0,0,0);
}
.shortform_player .btn_action .txt_bestcmt {
  z-index: 10;
}

/* 다음앱 가로모드 대응 */
@media (max-height : 305px) and (orientation: landscape) {
  .control_action .btn_like, .control_action .btn_cmt, .control_action .btn_kakaotalk {
    display: none;
  }
}

.shortform_player > .loading_player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

/* 댓글 창 높이 보정 */
.noti_player {
  height: calc(100% - 1px);
}

/* 숏폼탭 영상 배치 상단 정렬 */
.shorts_tab .carousel-item > video {
  object-position: top;
}

.shorts_tab .carousel-item.universal-player-container,
.shorts_tab .carousel-item .video_player .video_thumb {
  background-position: top;
}

/* 숏폼탭 하단 그라데이션 조정 - 추후 마크업 싱크 필요 */
.shorts_tab .item_player:after {
  background: -moz-linear-gradient(top, rgba(23, 23, 23, 0) 0%, rgba(23, 23, 23, 0.75) 100%);
  background: -webkit-linear-gradient(top, rgba(23, 23, 23, 0) 0%, rgba(23, 23, 23, 0.75) 100%);
  background: linear-gradient(to bottom, rgba(23, 23, 23, 0) 0%, rgba(23, 23, 23, 0.75) 100%);
}
.carousel {
  overflow: hidden;
  height: 100%;
  touch-action: none;
}
.carousel-container {
  width : 100%;
}
.carousel-item {
  height: 100%;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-color : black;
}
.passing {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.player-overlay {
  position : absolute;
  width : 100%;
  height: 100%;
  left : 0;
  top : 0;
}
.universal-player-container {
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-color: #000;
}

/* 토스트 깜박이면서 사라지는 이슈*/
.toast_layer .inner_toast.off {
  animation-fill-mode: forwards;
}