html, body {
    overflow: hidden;
    margin: 0px;
    padding: 0px;
    height: 100%;
    width: 100%;
    position: fixed;
}

html, body {
    overscroll-behavior-y: none;
}


html {
}

body {
/*    opacity: 0;*/
    background-color: #140714;
}

body {
    margin: 0px 0px;
}

* {
    background-repeat: no-repeat;
    font-family: Noto Sans SC, Sans Serif, Helvetica;
    color: #898389;
    outline: none;
}

iframe {
    border: none;
    position: absolute;
    top: 0px;
    left: 100vw;
    width: 100vw;
    height: 100vh;
/*    transition: left 0.3s;*/
    z-index: 3;
    pointer-events: none;
/*    box-shadow: -4px 0px 8px rgb(100 100 100 / 36%);*/
}
iframe[data-enabled] {
    z-index: 3;
    left: 0px;
/*    transition: left 0.3s;*/
    pointer-events: all;
}
iframe[data-shrinked] {
    height: 4px;
    bottom: 0px;
    width: 100vw;
    top:  auto;
}
iframe[data-popup] {
    border: none;
    position: absolute;
    top: auto;
    left: 0px;
    width: 100vw;
    height: 100vh;
    z-index: 3;
    pointer-events: none;

    box-shadow: none;
    opacity: 0;
/*    transition: .3s all;*/
    transition: none;
}
iframe[data-popup='1'] {
    opacity: 1;
    pointer-events: all;
    background-color: rgba(30,30,30,0.7);
}
.popup-body {
/*    backdrop-filter: blur(20px);*/
    background-color: transparent;
}
.popup-body .content {
    top: auto !important;
    bottom: 0px;
    height: 50vh;
    min-height: 400px;
    background-color: #140714;
/*    box-shadow: 0px -4px 8px rgb(100 100 100 / 36%);*/
}
.popup-message {
    padding: 20px;
    font-size: 16px;
}

input[type=file] {
    padding: 0px;
    background-color: transparent;
    height: 40px;
}
input[type=file]::file-selector-button {
    margin-right: 20px;
    border: none;
    background: #FF004F;
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: background .2s ease-in-out;
}

.startup {
    background-image: url('../img/startup.png');
    background-repeat: no-repeat;
    background-position: 0px 0px;
    background-size: cover;
}

.highlight { color: #FFFFFF !important; }
.lowkey { color: #2C1F2C !important; }
.color-contrast,
.color-contrast > * { color: #FF004F !important; }
.border-contrast { border-color: #FF004F !important; }
.bg-contrast { background-color: #FF004F !important; }
.light-bg { background-color: #2C1F2C !important; }
.input { background-color: #2C1F2C; border: none; }
.value-list { background-color: #2C1F2C; border: none; }
.value-list-item { background-color: #2C1F2C; }
.input:focus {
    box-shadow: 0px 0px 4px 4px rgba(255,0,79,0.7);
}

.header, .footer, .content {
    transition: all 0.5s;
    opacity: 0;
}
.header[data-loaded] {
/*    transition: top .5s;*/
}
.footer[data-loaded] {
/*    transition: bottom .8s;*/
}
.content[data-loaded] {
/*    transition: top .5s;*/
}
.popup-body .content[data-loaded] {
    opacity: 0.9 !important;
}

.header {
    z-index:1;
    height:40px;
    position:absolute;
    top:0px;
    width:calc(100% - 20px);
    padding: 10px;
    vertical-align: middle;
    background-color: #140714;
}
.header > * {
    display: inline-block;
    position: absolute;
}
.header > .left { left: 7px; width: 36px; }
.header > .right { right: 7px; width: 36px; }
.header > .center { left: 50px !important; right: 50px !important; }
.header > .center > #page-title {
    text-align: center;
    line-height: 28px;
    padding: 8px 0px 4px 0px;
}
.footer {
    z-index: 1;
    height: 64px;
    position:absolute;
    bottom: 0px;
    width: 100%;
    text-align: center;
    border-top: 1px solid #898389;
    background-color: #140714;
}
.footer[data-hide] {
    bottom: -89px;
/*    transition: bottom .5s;*/
}
.content {
    z-index:0;
    position:absolute;
    padding-top:0px;
    padding-bottom:90px;
    top:54px;
    bottom: 0px;
    width:100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.button {
    text-align: center;
    border: none;
    font-size: 14px;
    width: calc(100%);
}

.hv-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.v-center {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.h-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.content.noheader {
    top: 0px;
}
.content.nofooter {
    padding-bottom: 0px;
}

.popup {
    position: absolute;
    bottom: 40px;
    width: calc(100% - 100px);
    margin: 0px 25px;
    padding: 15px 25px;
    border: 1px solid #898389;
    border-radius: 10px;
    background-color: #140714;
}

.popup .title {
    text-align: center;
    margin: 6px 0px;
    font-size: 18px;
}

.popup .label {
    margin: 8px 0px 4px 0px;
    font-size: 14px;
}

.popup .input {
    width: calc(100% - 28px);
    border: 1px solid #898389;
    border-radius: 14px;
    font-size: 14px;
    margin: 4px 0px;
    padding: 10px 14px;
    background-color: #140714;
}

.popup .button {
    text-align: center;
    margin: 20px 0px;
    border-radius: 20px;
    padding: 8px 0px;
    font-size: 14px;
    background: linear-gradient(135deg, rgba(255,0,79) 0%, rgba(0,0,0,0) 90%);
}

.popup .tooltip {
    font-size: 12px;
    text-align: center;
}

.error::placeholder {
    color: #FF004F;
}

.info-block {
    text-align: center;
}

.info-block .title {
    text-align: center;
    margin: 4px 0px;
    font-size: 24px;
}

.info-block .button {
    text-align: center;
    margin: 20px 0px;
    border-radius: 20px;
    border: none;
    padding: 8px 0px;
    font-size: 14px;
    background: linear-gradient(135deg, rgba(255,0,79) 0%, rgba(0,0,0,0) 90%);
    display: block;
    width: calc(100%);
}

.info-block .tool-button {
    border: none;
    height: 36px;
    background: #FF004F;
    color: white;
    padding: 4px 0px;
    border-radius: 10px;
    font-size: 14px;
    display: inline-block;
}

.menu {
    background-color: #140714;
}

/*
    tab control
*/
.tab-control {
  padding: 20px 0px 10px 0px;
  white-space: nowrap;
  overflow-x: auto;
}
.tab-control > * {
  margin: 4px 10px;
}
.tab-control > * {
  border-bottom: 2px solid transparent;
  padding: 4px 0px;
}
.tab-control > *[data-selected=true] {
  border-bottom: 2px solid red;
}
.tab-view {
  padding: 10px;
}

/*
    video item for creator
*/
.creator-video-item {
    position: relative;
    display: flex;
    width: 100%;
    height: 100px;
}
.creator-video-item .preview {
    width: 180px;
    height: 100%;
    background-size: cover;
    border-radius: 4px;
}
.creator-video-item .timespan {
    position: absolute;
    bottom: 0;
    left: 140px;
    color: #ffffff;
    font-size: 14px;
}
.creator-video-item .preview .tag {
    position: absolute;
    top: 0px;
    left: 0px;
    font-size: 12px;
    padding: 2px 4px;
    background: pink;
}
.creator-video-item .preview .tag-1 {
    background: darkgray;
}
.creator-video-item .preview .tag0 {
    background: gold;
}
.creator-video-item .info {
    flex: 1;
    padding: 0px 5px;
}
.creator-video-item .video-info {
    position: absolute;
    bottom: 0;
}
.creator-video-item .video-info > div {
    display: inline-block;
}
.creator-video-item .title {
    max-height: calc(100% - 20px);
}

.video-item > .preview > .title {
    position: absolute;
    top: 0px;
    left: 0px;
    color: white;
/*    width: calc(100% - 40px);*/
    width: calc(100% - 45px);
    padding: 2px 40px 2px 5px;
    background-color: rgba(100,100,100,0.4);
}
.video-item > .preview > .view {
    display: block;
    width: 100%;
    height: 100%;
}
.video-item > .preview > .view > * {
    width: 100%;
    height: 100%;
}
.video-item > .preview {
    margin: 0px 0px;
    width: calc(100vw);
    height: calc((60vw - 15px));
    background-position: center;
    background-size: contain;
    font-size: 16px;
    position: relative;
}
.video-item .preview .tag {
    position: absolute;
    top: 0px;
    right: 0px;
    font-size: 12px;
    padding: 2px 4px;
    background: pink;
}
.video-item .preview .tag-1 {
    background: darkgray;
}
.video-item .preview .tag0 {
    background: gold;
}

.video-item > .info {
    width: calc(100vw - 24px);
    margin: 14px 12px 20px 12px;
}
.video-item > .info > * {
    vertical-align: middle;
}
.video-item > .info > img {
    border-radius: 300px;
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border: 2px solid white;
    float: left;
}

.video-item > .info > .name {
    margin-top: 1px;
    display: block;
    line-height: 28px;
    max-width: calc(100vw - 220px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.video-item > .info > .upload {
    display: block;
    font-size: 10px;
    line-height: 14px;
}

.video-item > .info > .likes {
    float: right;
    background-image: url('../img/icon/unlike.png');
    padding: 0px 0px 0px 28px;
    background-repeat: no-repeat;
    background-size: 22px;
    background-position: left center;
    margin-top: 10px;
    margin-left: 16px;
    line-height: 24px;
    font-size: 16px;
}
.video-item > .info > .collect {
    float: right;
    background-image: url('../img/icon/uncollect.png');
    padding: 0px 0px 0px 28px;
    background-repeat: no-repeat;
    background-size: 22px;
    background-position: left center;
    margin-top: 10px;
    margin-left: 16px;
    line-height: 24px;
    font-size: 16px;
}
.video-item > .info > .comments {
    float: right;
    background-image: url('../img/icon/comment.png');
    padding: 0px 0px 0px 28px;
    background-repeat: no-repeat;
    background-size: 22px;
    background-position: left center;
    margin-top: 10px;
    margin-left: 16px;
    line-height: 24px;
    font-size: 16px;
}

.discover-video-item {
    position: absolute;
    width: 100%;
    background-position: center;
    background-size: cover;
    top: 40px;
    height: calc(100% - 0px);
/*    bottom: 10px;*/
}
.discover-video-item * {
    color: #ffffff;
}
.discover-video-item .info {
    position: absolute;
    bottom: 0px;
    margin: 0px !important;
    padding: 15px 15px 20px 15px;
    background-color: rgba(100,100,100,0.4);
    width: calc(100% - 30px) !important;
    translate: 0px -30px;
}
.discover-video-item.video-item .stat span {
    color: white;
}
.discover-video-item .info img {
    position: relative;
    top: calc(100% - 60px);
    border-radius: 300px;
    width: 50px;
    height: 50px;
    margin-right: 12px;
    border: 2px solid gray;
}
.discover-video-item .icon {
    position: relative;
    z-index: 3;
    width: 48px;
    height: 48px;
    background-size: 36px;
    background-position: center;
}
.discover-video-item .icon-outer {
    position: absolute;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    background-color: #898389;
    opacity: 0.5;
}
.discover-video-item .info-1-r > div {
    padding: 5px 0px;
}
.discover-video-item .title {
    max-width: calc(100vw - 84px);
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-top: 10px;
}
.discover-video-item .preview .tag {
    position: absolute;
    top: 0px;
    left: 0px;
    right: auto;
    font-size: 10px;
    padding: 2px 4px;
    background: pink;
}
.discover-video-item .preview .tag-1 {
    background: darkgray;
}
.discover-video-item .preview .tag0 {
    background: gold;
}

.video-item .stat {
    height: 20px;
    line-height: 20px;
    margin-bottom: 10px;
}
.video-item .stat span {
    color: #898389;
    font-size: 11px;
}

/*
    icon
*/
.icon.viewed {
    background-image: url('../img/icon/viewed.png');
}
.icon.unlike {
    background-image: url('../img/icon/unlike.png');
}
.icon.likes {
    background-image: url('../img/icon/unlike.png');
}
.icon.comment {
    background-image: url('../img/icon/comment.png');
}
.icon.likew {
    background-image: url('../img/icon/like.png');
}
.icon.unlikew {
    background-image: url('../img/icon/unlike-red.png');
}
.icon.collect {
    background-image: url('../img/icon/collect.png');
}
.icon.uncollect {
    background-image: url('../img/icon/uncollect-white.png');
}

/*
    user item for comment
*/
.post-item {
    display: flex;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}
.post-item .post {
    flex: 1;
    font-size: 14px;
}
.post-item .post > div {
    margin-bottom: 5px;
    margin-top: 5px;
}
.post-item .post .title span:first-child {
    font-size: 16px;
    color: #ffffff;
}
.post-item .post .title span:not(:first-child) {
    margin-left: 10px;
}
.post-item .cover {
    float: left;
    width: 144px;
    height: 81px;
    margin-right: 10px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}
.post-item .cover > img {
    width: 100%
}


.comment-item {
    display: flex;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}
.comment-item .user-icon {
    margin-right: 10px;
}
.comment-item .user-icon > img {
    width: 50px;
    height: 50px;
    border-radius: 50px;
}
.comment-item .comment {
    flex: 1;
    font-size: 14px;
}
.comment-item .comment > div {
    margin-bottom: 5px;
    margin-top: 5px;
}
.comment-item .comment .title span:first-child {
    font-size: 16px;
    color: #ffffff;
}
.comment-item .comment .title span:not(:first-child) {
    margin-left: 10px;
}

.sysmsg-item {
    padding: 10px 10px 40px 10px;
    margin: 3px 0px;
    background-color: #222;
}
.sysmsg-item .datetime {
    margin-left: 20px;
    font-size: 16px;
}
.sysmsg-item .body {
    margin-top: 5px;
}

.follower-item {
    display: flex;
    width: 100%;
    height: auto;
}
.follower-item .user-icon {
    padding-right: 10px;
}
.follower-item .user-icon > img {
    width: 50px;
    height: 50px;
    border-radius: 50px;
}
.follower-item .info {
    flex: 1;
}

/*
    topup item
*/
.topup-item {
    display: inline-block;
    width: calc(50% - 6px);
    height: 90px;
    border: 1px solid #FF004F;
    border-radius: 16px;
    margin: 4px;
    padding: 12px 0px;
    text-align: center;
    background-image: url('../img/info-block.png');
    background-size: cover;
}
.topup-item * {
    pointer-events: none;
}
.topup-item:nth-child(odd) {
    margin-left: 0px;
}
.topup-item:nth-child(even) {
    margin-right: 0px;
}
.topup-item > div:first-child {
    margin-bottom: 4px;
}
.topup-item > div:last-child {
    margin-top: 4px;
}
.topup-item > div:first-child span {
    color: #ffa996;
    font-size: 24px;
}
.topup-item > div span {
    color: #ffffff;
    font-size: 20px;
}
.topup-item > div:last-child span {
    color: #ffa996;
    font-size: 16px;
}
.currency.cny::before {
    content: 'CN\00A5';
    margin-right: 2px;
}

.vip-topup-item {
    position: relative;
    background-size: contain;
    height: calc((100vw - 40px) * 0.422);
    margin-bottom: 10px;
    background-size: cover;
}
.vip-topup-item:last-child {
    margin-bottom: 0px;
}
.vip-topup-item .price {
    position: absolute;
    top: 45px;
    left: 18px;
}
.vip-topup-item .price span {
    color: #ffffff;
    font-size: 36px;
}
.vip-topup-item .price .currency {
    font-size: 28px;
}
.vip-topup-item .price span:last-child {
    color: rgba(40,40,40,0.5);
    font-size: 24px;
    margin-left: 5px;
    text-decoration: line-through;
}
.vip-topup-item .statement {
    position: absolute;
    bottom: 10px;
    left: 18px;
    color: rgba(0,0,0,0.5);
    font-weight: 500;
    font-size: 15px;
}


/*@keyframes loading-animation {
    0%      { rotate: 0deg; }
    12.5%   { rotate: 45deg; }
    25%     { rotate: 90deg; }
    37.5%   { rotate: 135deg; }
    50%     { rotate: 180deg; }
    62.5%   { rotate: 225deg; }
    75%     { rotate: 270deg; }
    87.5%   { rotate: 315deg; }
    100%    { rotate: 360deg; }
}
*/
@keyframes loading-animation {
    from {
        transform: rotate(0deg);
    } to {
        transform: rotate(360deg);
    }
}

.loading-icon {
    position: absolute;
    top: 0px;
    bottom: 0px;
    width: 100vw;
    z-index: 1001;
/*    backdrop-filter: blur(20px);*/
    background-color: transparent;
    z-index: 1000001;
}

.loading-icon div {
    position: absolute;
    top: calc(50% - 60px);
    left: calc(50% - 60px);
    width: 120px;
    height: 120px;
    background-image: url('../img/icon/loading.png');
    animation-name: loading-animation;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    background-size: 120px;
    background-position: center;
}

.post-view {
    text-align: left;
    margin: 10px 10px 30px 10px;
}

.post-view .creator {
    clear: both;
}

.post-view .creator img {
    float: left;
    width: 40px;
    height: 40px;
    border-radius: 40px;
    margin-right: 10px;
}

.post-view .creator .nickname {
    color: white;
    margin-right: 20px;
}

.post-view .creator .timestamp {
    color: gray;
    font-size: 14px;
}

.post-view .subject {
    clear: both;
    color: white;
    margin: 10px 0px;
}
.post-view .stat {
    clear: both;
    font-size: 12px;
}
.post-view .stat > * {
    display: inline-block;
    padding-left: 24px;
    background-size: 20px;
    background-repeat: no-repeat;
    margin-right: 16px;
    height: 24px;
    vertical-align: top;
    line-height: 20px;
}
.post-view .stat .image-count {
    background-image: url('../img/icon/folder.png');
}
.post-view .stat .viewed {
    background-image: url('../img/icon/viewed.png');
}
.post-view .stat .liked {
    background-image: url('../img/icon/unlike.png');
}
.post-view .stat .collected {
    background-image: url('../img/icon/uncollect.png');
}
.post-view .stat .commented {
    background-image: url('../img/icon/comment.png');
}

.post-view .cover {
    width: 100%;
    height: calc(100% * 9 / 16);
    overflow: hidden;
    clear: both;
}

.post-view .cover > * {
    width: 33%;
    margin-right: 0.5%;
    margin-bottom: 5px;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
}

.post-view .cover > div > img {
    width: 100%;
}

.post-view .cover > *:last-child {
    margin-right: 0%;
}

.post-view .cover > *:first-child {
    width: 100%;
    margin-right: 0%;
}

.post-view .cover > div {
    height: calc((100vw - 20px) * 0.33);
    vertical-align: top;
}

