html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #0b1220;
    color: #f3f6fb;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -ms-touch-action: none;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#newsStage {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: #0b1220;
    background-image:
        radial-gradient(circle at 18% 12%, rgba(60, 110, 200, 0.16) 0%, rgba(11, 18, 32, 0) 55%),
        radial-gradient(circle at 80% 88%, rgba(220, 60, 90, 0.10) 0%, rgba(11, 18, 32, 0) 55%);
    z-index: 1;
    overflow: hidden;
}

.newsScreen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    opacity: 0;
    -webkit-transition: opacity 1100ms ease-in-out, transform 1500ms ease-out;
    transition: opacity 1100ms ease-in-out, transform 1500ms ease-out;
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
    overflow: hidden;
}

.newsScreen.newsScreenVisible {
    opacity: 1;
}

.newsScreen.newsAnimateIn {
    opacity: 1;
    -webkit-transform: scale(1.0);
    transform: scale(1.0);
}

.newsScreen.newsAnimateOut {
    opacity: 0;
    -webkit-transform: scale(0.985);
    transform: scale(0.985);
}

#newsLoading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    background-color: rgba(11, 18, 32, 0.78);
    pointer-events: none;
    opacity: 1;
    -webkit-transition: opacity 350ms ease;
    transition: opacity 350ms ease;
}

#newsLoading.newsLoadingHidden {
    opacity: 0;
}

.newsLoadingBox {
    position: absolute;
    top: 42%;
    left: 50%;
    margin-left: -17vh;
    width: 34vh;
    max-width: 76vw;
    text-align: center;
    color: #f3f6fb;
}

.newsLoadingSpinner {
    width: 5.8vh;
    height: 5.8vh;
    margin: 0 auto 2vh auto;
    border: 0.55vh solid rgba(255, 255, 255, 0.18);
    border-top-color: #ff5d6c;
    border-radius: 50%;
    -webkit-animation: newsLoadingSpin 900ms linear infinite;
    animation: newsLoadingSpin 900ms linear infinite;
}

.newsLoadingTitle {
    font-size: 2.4vh;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 0.8vh;
}

.newsLoadingText {
    font-size: 1.55vh;
    line-height: 1.35;
    color: #aab4c5;
}

#newsLoading.newsLoadingError {
    z-index: 6;
    background-color: rgba(11, 18, 32, 0.92);
}

#newsLoading.newsLoadingError .newsLoadingSpinner {
    display: none;
}

#newsLoading.newsLoadingError .newsLoadingTitle {
    color: #ff8686;
}

@-webkit-keyframes newsLoadingSpin {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes newsLoadingSpin {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.newsHeader {
    position: absolute;
    top: 12.4vh;
    left: 6vh;
    right: 6vh;
    height: 8.8vh;
    overflow: hidden;
}

.newsCategory {
    display: block;
    font-size: 2.55vh;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #ff5d6c;
    font-weight: 700;
    border-left: 0.55vh solid #ff5d6c;
    padding-left: 1.6vh;
    line-height: 1.22;
}

.newsSourceImage {
    display: block;
    max-width: 18vh;
    max-height: 3.5vh;
    margin: 0 0 0.8vh 0;
}

.newsSourceTitle {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.newsLayout {
    position: absolute;
    top: 23.8vh;
    left: 4.8vh;
    right: 4.8vh;
    bottom: 5.8vh;
    overflow: hidden;
}

.newsArticle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1vh;
    overflow: hidden;
    box-shadow: 0 2.5vh 6vh rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-sizing: border-box;
    overflow: hidden;
}

.newsSlot1 {
    top: 0;
    left: 0;
    width: 49%;
    height: 48.2%;
}

.newsSlot2 {
    top: 0;
    left: 51%;
    width: 49%;
    height: 48.2%;
}

.newsSlot3 {
    top: 51.8%;
    left: 0;
    width: 49%;
    height: 48.2%;
}

.newsSlot4 {
    top: 51.8%;
    left: 51%;
    width: 49%;
    height: 48.2%;
}

.newsArticleImg {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 34%;
    height: 100%;
    background-color: #131c30;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.newsArticleBody {
    position: absolute;
    top: 0;
    left: 34%;
    right: 0;
    bottom: 4.6vh;
    padding: 2.2vh 2.4vh;
    box-sizing: border-box;
    overflow: hidden;
}

.newsArticle.newsTextOnly .newsArticleBody {
    left: 0;
    width: auto;
    padding-left: 3vh;
    padding-right: 3vh;
}

.newsArticleTitle {
    font-size: 3.2vh;
    line-height: 1.22;
    font-weight: 700;
    margin-bottom: 1vh;
    color: #ffffff;
    display: block;
    padding-bottom: 0.24em;
    overflow: visible;
}

.newsArticle.newsTextOnly .newsArticleTitle {
    max-height: none;
}

.newsArticleSnippet {
    font-size: 1.95vh;
    line-height: 1.3;
    font-weight: 300;
    color: #aab4c5;
    margin-bottom: 0;
    display: block;
    max-height: none;
    overflow: hidden;
}

.newsArticle.newsTextOnly .newsArticleSnippet {
    max-height: none;
}

.newsArticleMeta {
    position: absolute;
    left: 34%;
    right: 2.4vh;
    bottom: 2vh;
    font-size: 1.35vh;
    line-height: 1.2;
    letter-spacing: 0;
    color: #94a0b6;
    text-transform: uppercase;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.newsArticle .newsArticleMeta {
    margin-left: 2.4vh;
}

.newsArticle.newsTextOnly .newsArticleMeta {
    left: 3vh;
    margin-left: 0;
}

#newsTopBar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    z-index: 5;
    padding: 1.4vh 2.2vh;
    background-image: linear-gradient(to bottom, rgba(11, 18, 32, 0.85) 0%, rgba(11, 18, 32, 0) 100%);
    pointer-events: none;
}

#newsBrand {
    position: absolute;
    top: 1.4vh;
    left: 2.2vh;
    right: 245px;
    color: #ffffff;
    font-size: 2.2vh;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.newsBrandDot {
    display: inline-block;
    width: 1.35vh;
    height: 1.35vh;
    border-radius: 50%;
    background-color: #ff5d6c;
    box-shadow: 0 0 12px #ff5d6c;
    margin-right: 1.4vh;
    vertical-align: middle;
    -webkit-animation: newsLivePulse 2s ease-in-out infinite;
    animation: newsLivePulse 2s ease-in-out infinite;
}

.newsBrandLabel {
    vertical-align: middle;
}

@-webkit-keyframes newsLivePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

@keyframes newsLivePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

#newsClock {
    position: absolute;
    top: 1.7vh;
    right: 165px;
    text-align: right;
    color: #c9d2e2;
    font-weight: 300;
    line-height: 1.1;
    padding-top: 0.4vh;
}

#newsClockTime {
    font-size: 2.9vh;
    font-weight: 600;
    letter-spacing: 0;
    color: #ffffff;
    display: block;
}

#newsClockDate {
    font-size: 1.45vh;
    color: #94a0b6;
    letter-spacing: 0;
    text-transform: uppercase;
}

#newsCounter {
    display: block;
    position: absolute;
    top: 2.2vh;
    right: 255px;
    color: #94a0b6;
    font-size: 1.45vh;
    font-weight: 300;
    letter-spacing: 0;
    background-color: rgba(0, 0, 0, 0.45);
    padding: 0.7vh 1.3vh;
    border-radius: 0.45vh;
    pointer-events: none;
}

#newsQrCode {
    display: block;
    position: absolute;
    top: 1.4vh;
    right: 2.2vh;
    z-index: 8;
    opacity: 0.92;
    pointer-events: auto;
}

.rcRoomQrCodeLink {
    display: block;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    width: 88px;
    border: solid 5px #fff;
    border-radius: 6px;
    color: #fff;
    background-color: #fff;
    box-shadow: 0 0 0 1px #fff;
    text-align: center;
    -webkit-transition: opacity 1s ease;
    transition: opacity 1s ease;
    text-decoration: none;
    line-height: normal;
}

.rcTechLabel {
    background-color: #000;
    color: #fff;
    font-family: monospace;
    font-size: 8px;
    font-weight: bold;
    margin: 0 0 4px 0;
    padding: 2px;
    letter-spacing: 0;
    line-height: 1.2;
}

.rcRoomQrCode {
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    width: 88px;
    height: 88px;
    overflow: hidden;
}

.rcRoomQrCode img,
.rcRoomQrCode canvas {
    display: block;
    width: 88px;
    height: 88px;
}

.rcRoomId {
    background-color: #000;
    color: #fff;
    font-family: monospace;
    font-size: 10px;
    padding: 2px;
    margin: 4px 0 0 0;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

#newsStatus {
    position: fixed;
    bottom: 1.1vh;
    left: 1.3vh;
    z-index: 9;
    color: #6e7993;
    font-size: 1.25vh;
    pointer-events: none;
}

@media (orientation: portrait) {
    .newsHeader {
        top: 10vh;
        left: 2.8vh;
        right: 2.8vh;
        height: 7.4vh;
    }

    .newsCategory {
        font-size: 2vh;
    }

    .newsSourceImage {
        max-width: 13vh;
        max-height: 2.8vh;
        margin-bottom: 0.6vh;
    }

    .newsLayout {
        top: 18vh;
        left: 2.8vh;
        right: 2.8vh;
        bottom: 3vh;
    }

    .newsSlot1 {
        top: 0;
        left: 0;
        width: 100%;
        height: 23.2%;
    }

    .newsSlot2 {
        top: 25.6%;
        left: 0;
        width: 100%;
        height: 23.2%;
    }

    .newsSlot3 {
        top: 51.2%;
        left: 0;
        width: 100%;
        height: 23.2%;
    }

    .newsSlot4 {
        top: 76.8%;
        left: 0;
        width: 100%;
        height: 23.2%;
    }

    .newsArticleImg {
        width: 30%;
    }

    .newsArticleBody {
        left: 30%;
        bottom: 3.3vh;
        padding: 1.15vh 1.35vh;
    }

    .newsArticleTitle {
        font-size: 1.62vh;
        line-height: 1.24;
        max-height: none;
        margin-bottom: 0.5vh;
    }

    .newsArticleSnippet {
        font-size: 1.18vh;
        line-height: 1.28;
        max-height: none;
    }

    .newsArticle.newsTextOnly .newsArticleTitle {
        max-height: none;
    }

    .newsArticle.newsTextOnly .newsArticleSnippet {
        max-height: none;
    }

    .newsArticleMeta {
        left: 30%;
        right: 1.35vh;
        bottom: 1.1vh;
        font-size: 0.95vh;
        margin-left: 1.35vh;
    }

    .newsArticle.newsTextOnly .newsArticleMeta {
        left: 1.8vh;
        margin-left: 0;
    }

    #newsBrand {
        font-size: 1.7vh;
        letter-spacing: 0;
        right: 170px;
    }

    #newsClockTime {
        font-size: 2vh;
    }

    #newsClock {
        right: 130px;
    }

    #newsClockDate {
        font-size: 1.2vh;
    }

    #newsCounter {
        font-size: 1.2vh;
        top: 30px;
        right: 230px;
    }

    .rcRoomQrCodeLink {
        width: 72px;
        border-width: 4px;
    }

    .rcRoomQrCode,
    .rcRoomQrCode img,
    .rcRoomQrCode canvas {
        width: 72px;
        height: 72px;
    }

    .rcRoomId {
        font-size: 9px;
    }
}

@media (orientation: portrait) and (max-width: 520px) {
    .newsHeader {
        top: 148px;
    }

    .newsLayout {
        top: 220px;
    }
}

@media (orientation: landscape) and (max-height: 650px) {
    .newsHeader {
        top: 15vh;
        left: 4vh;
        right: 4vh;
        height: 8vh;
    }

    .newsLayout {
        top: 25.5vh;
        left: 4vh;
        right: 4vh;
        bottom: 5vh;
    }

    .newsCategory {
        font-size: 2.25vh;
    }

    .newsSourceImage {
        max-width: 15vh;
        max-height: 3vh;
        margin-bottom: 0.6vh;
    }

    #newsBrand {
        right: 205px;
    }

    #newsClock {
        right: 145px;
    }

    #newsCounter {
        right: 217px;
    }

    .newsArticleTitle {
        font-size: 2.65vh;
        max-height: none;
    }

    .newsArticleSnippet {
        font-size: 1.65vh;
        max-height: none;
    }

    .newsArticle.newsTextOnly .newsArticleTitle {
        max-height: none;
    }

    .newsArticle.newsTextOnly .newsArticleSnippet {
        max-height: none;
    }

    .newsArticleBody {
        bottom: 4vh;
        padding: 1.8vh 2vh;
    }

    .newsArticleMeta {
        right: 2vh;
        bottom: 1.6vh;
        font-size: 1.15vh;
        margin-left: 2vh;
    }

    .rcRoomQrCodeLink {
        width: 68px;
        border-width: 4px;
    }

    .rcTechLabel {
        display: none;
    }

    .rcRoomQrCode,
    .rcRoomQrCode img,
    .rcRoomQrCode canvas {
        width: 68px;
        height: 68px;
    }

    .rcRoomId {
        font-size: 8px;
        margin-top: 3px;
    }

}

.lean-paint #newsStage {
    background-image: none;
}

.lean-paint .newsArticle,
.lean-paint #newsQrCode,
.lean-paint .rcRoomQrCodeLink,
.lean-paint .newsBrandDot {
    box-shadow: none;
    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.lean-paint #newsTopBar,
.lean-paint .newsArticle,
.lean-paint #newsCounter {
    background-image: none;
}
