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: 90px 56px 56px 56px;
    box-sizing: border-box;
    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);
}

.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);
}

.newsHeader {
    margin-bottom: 26px;
}

.newsCategory {
    display: inline-block;
    font-size: 22px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #ff5d6c;
    font-weight: 700;
    border-left: 5px solid #ff5d6c;
    padding-left: 14px;
    line-height: 1;
}

.newsLayout {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    height: calc(100% - 60px);
    -ms-flex-align: stretch;
    -webkit-box-align: stretch;
    align-items: stretch;
}

.newsHeroCol {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1 1 60%;
    margin-right: 28px;
    min-width: 0;
    /* Become a flex column ourselves so the hero card can grow to fill our
       height without depending on percentage-height resolution. */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-height: 0;
}

.newsListCol {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1 1 40%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
}

.newsArticle {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.newsArticle.newsHero {
    /* Fill the hero column via flex-grow rather than percentage height so
       the card's bottom edge always equals the column's bottom edge. */
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    /* On displays wider than 16:9, the image's padding-bottom produces more
       height than the column has. overflow:hidden clips the excess image
       rather than letting the card overshoot the column. */
    overflow: hidden;
}

.newsHero .newsArticleImg {
    /* Aspect-ratio sized via padding-bottom so old browsers don't have to
       resolve a percentage height through nested flex containers. The
       padding-bottom percentage is measured against the box's own width,
       which is always definite here (the hero column has a flex-basis off
       a known-width row). */
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
    min-height: 0;
}

.newsHero .newsArticleBody {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 24px 28px 26px 28px;
    box-sizing: border-box;
}

.newsHero .newsArticleTitle {
    font-size: 36px;
    line-height: 1.18;
    font-weight: 700;
    margin-bottom: 14px;
    color: #ffffff;
    /* Keep titles to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsHero .newsArticleSnippet {
    font-size: 19px;
    line-height: 1.45;
    font-weight: 300;
    color: #c9d2e2;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsListCol .newsArticle {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    margin-bottom: 18px;
    min-height: 0;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0;
    flex: 1 1 0;
}

.newsListCol .newsArticle:last-child {
    margin-bottom: 0;
}

.newsListCol .newsArticleImg {
    width: 38%;
    min-width: 160px;
    flex-shrink: 0;
}

.newsListCol .newsArticleBody {
    padding: 14px 18px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.newsListCol .newsArticleTitle {
    font-size: 19px;
    line-height: 1.25;
    font-weight: 600;
    margin-bottom: 6px;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsListCol .newsArticleSnippet {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 300;
    color: #aab4c5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsArticleImg {
    background-color: #131c30;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 120px;
}

.newsArticleImg.newsNoImg {
    background-image:
        linear-gradient(135deg, #1a263e 0%, #0e1525 100%);
    background-size: auto;
}

.newsArticleMeta {
    font-size: 12px;
    letter-spacing: 1px;
    color: #94a0b6;
    text-transform: uppercase;
    font-weight: 500;
}

.newsHero .newsArticleMeta {
    font-size: 13px;
}

.newsMetaSep {
    color: #5a6478;
}

#newsTopBar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 18px 36px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: justify;
    -webkit-box-pack: justify;
    justify-content: space-between;
    -ms-flex-align: center;
    -webkit-box-align: center;
    align-items: center;
    background-image: linear-gradient(to bottom, rgba(11, 18, 32, 0.85) 0%, rgba(11, 18, 32, 0) 100%);
    pointer-events: none;
}

#newsBrand {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
}

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

.newsBrandLabel {
    vertical-align: middle;
}

.newsCategoryTag {
    margin-left: 18px;
    padding: 4px 12px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #c9d2e2;
    font-size: 13px;
    letter-spacing: 2px;
    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 {
    text-align: right;
    color: #c9d2e2;
    font-weight: 300;
    line-height: 1.1;
}

#newsClockTime {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
    display: block;
}

#newsClockDate {
    font-size: 13px;
    color: #94a0b6;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#newsCounter {
    position: fixed;
    top: 22px;
    right: 200px;
    z-index: 7;
    color: #94a0b6;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 3px;
    background-color: rgba(0, 0, 0, 0.45);
    padding: 6px 12px;
    border-radius: 4px;
    pointer-events: none;
}

#newsQrCode {
    display: block;
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 8;
    width: 96px;
    height: 96px;
    padding: 6px;
    box-sizing: content-box;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    text-align: center;
    line-height: 0;
    font-size: 0;
}

#newsQrCode img,
#newsQrCode canvas,
#newsQrCode table {
    display: block;
    margin: 0 auto;
    width: 96px;
    height: 96px;
}

#newsHelp {
    position: fixed;
    bottom: 38px;
    right: 130px;
    z-index: 8;
    color: #c9d2e2;
    font-size: 13px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 6px 10px;
    border-radius: 4px;
    max-width: 220px;
    pointer-events: none;
}

#newsStatus {
    position: fixed;
    bottom: 10px;
    left: 12px;
    z-index: 9;
    color: #6e7993;
    font-size: 11px;
    pointer-events: none;
}

@media (max-width: 1100px) {
    .newsHero .newsArticleTitle { font-size: 28px; }
    .newsHero .newsArticleSnippet { font-size: 16px; }
    .newsListCol .newsArticleTitle { font-size: 16px; }
    .newsListCol .newsArticleSnippet { font-size: 13px; }
    .newsScreen { padding: 80px 32px 40px 32px; }
}

@media (max-width: 820px) {
    .newsLayout {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    .newsHeroCol {
        margin-right: 0;
        margin-bottom: 18px;
        flex: 0 0 50%;
    }
    /* hero image keeps its 16:9 padding-bottom from the base rule */
    .newsHero .newsArticleTitle { font-size: 22px; }
    .newsHero .newsArticleSnippet { font-size: 14px; }
    .newsListCol .newsArticleImg { width: 30%; min-width: 110px; }
    .newsListCol .newsArticle { margin-bottom: 10px; }
    .newsListCol .newsArticleTitle { font-size: 14px; }
    .newsListCol .newsArticleSnippet { display: none; }
    .newsScreen { padding: 70px 18px 28px 18px; }
    #newsBrand { font-size: 15px; letter-spacing: 2px; }
    .newsCategoryTag { display: none; }
    #newsClockTime { font-size: 18px; }
    #newsClockDate { font-size: 11px; }
    #newsCounter { right: 16px; top: 56px; }
    #newsQrCode { width: 64px; height: 64px; }
    #newsQrCode img, #newsQrCode canvas, #newsQrCode table { width: 64px; height: 64px; }
    #newsHelp { display: none; }
}
