@font-face {
    font-family: 'Roboto Condensed';
    src: url('RobotoCondensed-Regular.ttf');
    font-weight: normal;
}

@font-face {
    font-family: 'Roboto Condensed';
    src: url('RobotoCondensed-Light.ttf');
    font-weight: 100;
}

@font-face {
    font-family: 'Roboto Condensed';
    src: url('RobotoCondensed-LightItalic.ttf');
    font-style: italic;
    font-weight: 100;
}

@font-face {
    font-family: 'Roboto Condensed';
    src: url('RobotoCondensed-Italic.ttf');
    font-style: italic;
    font-weight: normal;
}

@font-face {
    font-family: 'Roboto Condensed';
    src: url('RobotoCondensed-Bold.ttf');
    font-weight: bold;
}

@font-face {
    font-family: 'Roboto Condensed';
    src: url('RobotoCondensed-BoldItalic.ttf');
    font-style: italic;
    font-weight: bold;
}

* {
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
    user-select: none;
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none; /* Disable selection/copy in UIWebView */

    box-sizing: border-box;
}

:focus {
    outline: 1px solid transparent;
}

.app .carousel .items .item.focus,
.app .ad.focus ins img,
.reader .header .buttons .button.focus {
    outline: 5px solid #f00;
    animation: blinky .6s infinite;
    animation-direction: alternate;
    animation-timing-function: linear;
}

@keyframes blinky {
    from { outline-color: rgba(255, 0, 0, 1); }
    to { outline-color: rgba(255, 0, 0, 0); }
}

.app .player .controls .button.focus {
    box-shadow: 0 0 0 5px white;
    animation: blinky-white .6s infinite;
    animation-direction: alternate;
    animation-timing-function: linear;
}

@keyframes blinky-white {
    from { box-shadow: 0 0 0 5px white; }
    to { box-shadow: 0 0 0 5px rgba(0, 0, 0, 0); }
}

html {
    background: #204267;
    height: 100%;
}

body {
    -webkit-touch-callout: none;                /* prevent callout to copy image, etc when tap to hold */
    -webkit-text-size-adjust: none;             /* prevent webkit from resizing text to fit */
    -webkit-user-select: none;                  /* prevent copy paste, to allow, change 'none' to 'text' */
    user-select: none;
    font-family: 'Roboto Condensed', sans-serif;
    color: white;
    background: #204267;
    padding-top: constant(safe-area-inset-top); /* iOS 11.0 */
    padding-top: env(safe-area-inset-top); /* iOS 11.2 */
    height: 100%;
}

a {
    text-decoration: none;
    color: #222;
}

.hidden {
    display: none;
}

.app {
    width: 100%;
    height: 100%;
    position: relative; /* so .player stays down */
}

/* HEADER */
.app header {
    padding: 10px 20px 10px 15px;
    height: 60px;
    display: flex;
    position: relative;
}
.app header .logo {
    flex: 1;
}
.app header .logo img {
    height: 40px;
}
.app header .social {
    display: flex;
    margin: 8px 0;
}
.app header .social li {
    flex-direction: row;
}

.app header .social.search {
}
.app.android-tv .home header .social li.quit {
    display: none;
}
.app header .social li a {
    display: block;
    /* padding-right: 3px; */
}
.app header .social li a img {
    height: 24px;
}

.app header .menu {
    flex: 1;
    display: none;
    align-items: center;
    margin-left: 40px;
}
.app header .menu li {
    margin-right: 20px;
    font-size: 11pt;
}
.app header .menu li a {
    color: white;
}

.app header .hamburger-button {
    padding: 8px;
    margin-right: 16px;
}
.app header .hamburger-button img {
    height: 24px;
}

/* HAMBURGER */
.app.hamburger-open > *:not(.hamburger) {
    filter: blur(3px);
}
.app .hamburger {
    position: fixed;
    background-color: white;
    width: 300px;
    max-width: calc(100% - 36px);
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    z-index: 1338;
    box-shadow: 0 0 8px #00000080;
    transition-property: transform;
    transition-duration: .2s;
}
.app:not(.hamburger-open) .hamburger {
    transform: translateX(-310px);
}
.app .hamburger .back-desktop {
    display: block;
    background-color: white;
    left: 24px;
    top: 24px;
    width: 32px;
}
.app .hamburger ul {
    margin-top: 80px;
    margin-left: 28px;
}
.app .hamburger li {
    margin-bottom: 24px;
}
.app .hamburger li a {
    color: #566e93;
}

/* HOME */
.app .home {
    margin-left: 80px;
    height: 100%;
    overflow-x: hidden;
}
.app:not(.android-tv) .home {
    margin-left: 0;
}
.app.sidebar-open .home {
    margin-left: 300px;
}
.app .home .search {
    display: flex;
}
.app .home .search input[type=text] {
    flex: 1;
    margin-right: 8px;
    padding: 3px 5px;
    font-size: 12pt;
    border: 0 none;
    border-radius: 3px;
    -webkit-user-select: text;
}
.app .home .search button {
    background-color: white;
    color: #666;
    text-transform: uppercase;
    padding: 5px 8px;
    border: 0 none;
    border-radius: 3px;
    letter-spacing: -.5px;
}
.app header .social {
    margin: 8px;
}

.social.search li a {
    cursor: pointer;
}
.search-bar {
    position: absolute;
    top: 0;
    right: 18px;
    height: 100%;
    display: flex;
    align-items: center;
    display: none;
}
.search-bar input {
    border: 0 none;
    padding: 8px 12px 8px 42px;
    border-radius: 9999px;
    background-image: url("../img/search-bar.png");
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: 16px 10px;

    opacity: 0;
    width: 0;
}


/* SIDEBAR */
.app:not(.android-tv) .sidebar {
    display: none;
}
.app .sidebar {
    position: fixed;
    background-color: #0071bc;
    width: 80px;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
    z-index: 1000;
}
.app.sidebar-open .sidebar {
    width: 300px;
    overflow-y: scroll;
}
.app .sidebar .search {
    /* background-image: url("../img/search.png"); */
    background-color: red;
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
    margin: 40px 0;
    border-radius: 100%;
    width: 48px;
    height: 48px;
}
.app.sidebar-open .sidebar .search {
    width: 64px;
    height: 64px;
}
.app.sidebar-open .sidebar .search.focus {
    box-shadow: 0 0 0 5px #204267;
}
.app .sidebar .headers {
    width: 100%;
    max-width: 100%;
    opacity: 0;
    padding: 0 20px;
    margin-bottom: 60px;
}
.app.sidebar-open .sidebar .headers {
    opacity: 1;
}
.app .sidebar .headers .header-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12pt;
    line-height: 32px;
}
.app .sidebar .headers .header-item.focus {
    font-size: 18pt;
    font-weight: bold;
}

.app.animated .home,
.app.animated.sidebar-open .home,
.app.animated .sidebar,
.app.animated.sidebar-open .sidebar,
.app.animated .sidebar .search,
.app.animated.sidebar-open .sidebar .search,
.app.animated .sidebar .headers .header-item,
.app.animated .sidebar .headers .header-item.focus {
    transition-duration: .15s;
}

/* CAROUSEL */
.app .carousel, .app .carousel-spacer {
    margin-bottom: 20px;
}
.app .carousel.live {
    background-color: #f2f2f2;
    padding: 20px 0;
    margin-bottom: 0;
}
.app .carousel.live .header {
    color: #204267;
}
.app .carousel .header {
    font-weight: bold;
    font-size: 14pt;
    padding: 0 0 13px;
    margin-left: 20px;
    cursor: pointer;
}
.app.sidebar-open .carousel .header {
    /*padding: 0;
    height: 0;*/
    opacity: 0;
}
.app.sidebar-open .carousel:not(.current) {
    filter: brightness(0.5);
}
.app.sidebar-open .ad {
    opacity: 0;
}
.app .carousel .items {
    display: flex;
    overflow-x: scroll;
    padding: 5px 20px;
}
.app .carousel .items .item {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    margin-right: 20px;
    height: 160px;
    position: relative;
    cursor: pointer;
}
.app .carousel .items .spacer {
    width: 20px;
    opacity: 0;
}
.app .carousel .items .item,
.app .carousel .items .item .image,
.app .carousel .items .item .meta {
    width: 210px;
}
.app .carousel .items .item .item:last-child {
    box-sizing: content-box;
    padding-right: 20px;
}
.app .carousel .items .item .image {
    height: 110px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}
.app .carousel .items .item .image .play-icons {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
}
.app .carousel .items .item .image .play-icons img {
    width: 48px;
    height: 48px;
    display: none;
}
.app .carousel .items .item .image .play-icons .play-icon {
    display: none;
}
.app .carousel .items .item.has-audio .image .play-icons .play-audio,
.app .carousel .items .item.has-video .image .play-icons .play-video {
    display: block;
}
.app .carousel .items .item .live {
    background: white;
    color: #204267;
    text-transform: uppercase;
    display: inline-block;
    font-size: 9pt;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
    position: absolute;
    top: 5px;
    right: 5px;
}
.app .carousel .items .item .live .circle {
    color: #f00;
    text-transform: none;
    font-weight: normal;
    font-size: 10pt;
}
.app .carousel:not(.live) .items .item .live {
    display: none;
}
.app .carousel .items .item .meta {
    padding: 4px 8px 0;
    background-color: #0071bc;
    color: white;
    flex: 1;
}
.app .carousel .items .item .meta .name {
    white-space: nowrap;
    overflow: hidden;
    line-height: 24px;
    text-overflow: ellipsis;
    font-weight: 100;
}
.app .carousel .items .item .meta .ts {
    font-size: 9pt;
    font-weight: bold;
}
.app .carousel .items .item.load-more .image,
.app .carousel .items .item.load-more .meta {
    background: white;
    color: #204267;
}
.app .carousel .items .item.load-more .meta .name {
    font-weight: bold;
    text-align: right;
}
.app .ad {
    padding: 0 20px 10px;
    width: 100%;
}
.app .ad.live {
    background-color: #f2f2f2;
}
.app .ad ins {
    display: block;
}
.app .ad ins img {
    width: 100%;
    height: 100%;
}

/* POPUP */
.app .popup {
    width: 100%;
    z-index: 1337;
    top: 0;
    left: 0;
    color: #333;
    flex-direction: column;
    overflow: auto;
}
.app .popup {
    display: none;
    position: fixed;
    height: 100%;
}
.app .popup > header {
    background: #204267;
}
body.ios .app .popup header {
    margin-top: constant(safe-area-inset-top);
    margin-top: env(safe-area-inset-top);
}
.app .popup header .back {
    display: flex;
    align-items: center;
}
.app .popup header .back img {
    height: 24px;
}
.app .popup header .cat_name {
    width: calc(100% - 70px);
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
    letter-spacing: 1px;
    color: white;
    line-height: 40px;
}
.app .popup .cat_desc {
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    background: #f6f6f6;
    padding: 12px;
    line-height: 16px;
    font-size: 10pt;
}
.app .popup .posts .archive {
    display: none;
}
/* about popup */
.app .popup .about_text {
    text-align: center;
    font-size: 14pt;
    margin: 40px;
    line-height: 50px;
}
.app .popup .about_text a {
    text-decoration: underline;
}
.app .popup .about_text hr {
    margin: 10px 5px;
    background-color: #ddd;
    border: 0;
    height: 1px;
}

/* READER */
.reader {
    background: white;
    flex: 1;
}
.reader .tv-image {
    display: none;
}
.reader .header {
    margin-bottom: 10px;
}
.reader .header .red {
    height: 40px;
    width: 100%;
    background-color: #f00;
}
.reader .header .buttons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin: -25px 20px 0;
}
.reader:not(.has-audio):not(.has-video) .header .buttons {
    /* display: none; */
}
.reader .header .buttons .button {
    background-color: #004368;
    color: white;
    width: 120px;
    padding: 10px 14px 10px 38px;
    background-image: url(../img/play.png);
    background-repeat: no-repeat;
    background-size: 24px;
    background-position: 8px;
    display: none;
}
.reader.has-audio .header .buttons .button.play-audio,
.reader.has-video .header .buttons .button.play-video {
    display: block;
}
.reader .post {
    margin: 0 20px 20px;
    position: relative;
}
.reader .post .share {
    float: right;
    width: 20px;
}
.app.android-tv .popup .reader .post .share {
    display: none;
}
.reader .post .title {
    font-weight: bold;
    font-size: 18pt;
    color: #204267;
    margin-bottom: 10px;
    line-height: 30px;
}
.reader .post .meta {
    margin-bottom: 15px;
    color: #204267;
}
.reader .post .image {
    margin-bottom: 15px;
    text-align: center;
}
.reader .post img {
    max-width: 100%;
}
.reader .post .text {
    line-height: 24px;
    overflow-x: hidden;
}
.reader .post .text p {
    margin-bottom: 10px;
}
.app:not(.android-tv) .popup .reader .post .text p a {
    color: #204267;
    text-decoration: underline;
}

.featured-slider {
    zmin-height: 540px;
}

.featured-slider .reader .title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
            line-clamp: 2;
    -webkit-box-orient: vertical;
    cursor: pointer;
}
.featured-slider .reader .text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
            line-clamp: 6;
    -webkit-box-orient: vertical;
}

:not(.featured-slider) > .reader .post .slider-button {
    display: none;
}

.featured-slider > .reader {
    transition-property: transform, opacity;
    transition-duration: .2s;
    background: none;
}

.featured-slider > .reader.hide-left {
    transform: translateX(-20px);
    opacity: 0;
}
.featured-slider > .reader.hide-right {
    transform: translateX(20px);
    opacity: 0;
}
.featured-slider .reader {
    height: 550px;
}
.featured-slider .reader .post {
    margin-bottom: -60px;
}
.featured-slider .reader .post .button.back,
.featured-slider .reader .post .back-desktop {
    display: none;
}
.reader .post .slider-button {
    position: absolute;
    z-index: 10;
    background-color: #566e93;
    border-radius: 9999px;
    width: 48px;
    height: 48px;

    transition-property: left, right;
    transition-duration: .2s;
}
.reader .post .slider-button.prev {
    left: -22px;
}
.reader .post .slider-button.prev:hover {
    left: -26px;
}
.reader .post .slider-button.next {
    right: -22px;
    transform: rotate(180deg);
}
.reader .post .slider-button.next:hover {
    right: -26px;
}
.reader .post .slider-button img {
    width: 32px;
    margin: 8px 6px;
}
.reader .post .image img {
    max-height: 120px;
}
.back-desktop {
    display: none;
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: #e30512;
    border-radius: 9999px;
    cursor: pointer;
}
.back-desktop img {
    padding: 6px;
    width: 28px;
    display: block;
}

.category {
    flex: 1;
    background-color: white;
}
.category .header {
    display: none;
}
.category .carousel {
    margin: 36px 0;
}
.category .carousel .items {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    overflow-x: unset;
}
.category .carousel .items .item {
    margin-right: 0;
}

/* PLAYER */
.app .player {
    width: 100%;
    height: 66px;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #f00;
    visibility: hidden;
    z-index: 31337;
    flex-wrap: wrap;
    padding: 8px 15px;
    opacity: 0;
    transition-property: opacity;
    transition-duration: .2s;
}
body.ios .app .player {
    height: unset;
    padding-bottom: constant(safe-area-inset-bottom); /* iOS 11.0 */
    padding-bottom: env(safe-area-inset-bottom); /* iOS 11.2 */
}
.app.android-tv .player, .app .player.video {
    height: unset;
}
.app:not(.android-tv) .player.video {
    padding-bottom: 12px;
}
.app .player.video[data-service="youtube"] .video-player,
.app .player.video[data-service="youtube_live"] .video-player,
.app .player.video[data-service="facebook"] .video-player {
    margin-bottom: 18px;
}
.app .player header {
    display: flex;
}
.app.android-tv .player.video header {
    display: none;
}
.app .player header .name {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 20px;
    padding-left: 3px;
}
.app .player header .close {
    margin-left: 20px;
    line-height: 20px;
    font-size: 16pt;
    color: white;
    cursor: pointer;
}
.app.android-tv .player header .close {
    display: none;
}

.app .player .video-player {
    background-color: #102133;
    margin-top: 10px;
    position: relative;
}
.app .player.video[data-service="youtube"] .video-player .controls-hider,
.app .player.video[data-service="youtube_live"] .video-player .controls-hider,
.app .player.video[data-service="facebook"] .video-player .controls-hider {
    height: 0;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: #102133;
    z-index: 1;
}
.app .player .video-player iframe {
    width: 100%;
}
.app .player .video-player .mejs__container {
    margin-top: 10px;
    margin-right: 0;
}
.app .player .video-player .mejs__container .mejs__button:not(.mejs__fullscreen-button),
.app .player .video-player .mejs__container .mejs__time,
.app .player .video-player .mejs__container .mejs__time-rail {
    visibility: hidden;
}
.app .player .video-player .mejs__container video {
    max-height: 100%;
    width: 100%;
}
.app.android-tv .player .mejs__playpause-button,
.app.android-tv .player .mejs__volume-button,
.app.android-tv .player .mejs__horizontal-volume-slider {
    display: none;
}
.app .player .controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 250px;
}
.app .player .controls .button {
    height: 50px;
    width: 50px;
    border-radius: 100%;
    background-color: #a00;
    text-indent: -9999px;
    margin-right: 20px;
    background-repeat: no-repeat;
    background-size: 50%;
    background-position: center;
}
.app .player .controls .button[data-focus-type="control-back"] {
    margin-right: 200px;
    background-image: url("../img/controls-back.png")
}
.app .player .controls .button[data-focus-type="control-rewind"] {
    background-image: url("../img/controls-rewind.png")
}
.app .player.video {
    background-color: #204267;
}
.app .player.video[data-service="youtube_live"] .controls .button:not([data-focus-type="control-back"]),
.app .player.video[data-service="twitch"] .controls .button:not([data-focus-type="control-back"]),
.app .player.video[data-service="hls"] .controls .button:not([data-focus-type="control-back"]) {
    display: none;
}
.app .player .controls .button[data-focus-type="control-playpause"] {
    height: 70px;
    width: 70px;
    background-image: url("../img/controls-play.png")
}
.app .player[data-state="play"] .controls .button[data-focus-type="control-playpause"] {
    background-image: url("../img/controls-pause.png")
}
.app .player .controls .button[data-focus-type="control-forward"] {
    background-image: url("../img/controls-forward.png")
}

/* MEJS */
.player .mejs__container {
    margin-right: 4px;
}
.player .mejs__container,
.player .mejs__container .mejs__controls {
    background: transparent !important;
}
.player .mejs__controls {
    padding: 0;
}
.player .mejs__button {
    width: 24px;
    margin-right: 4px;
}
.player .mejs__button > button {
    margin-left: 0;
}
.player .mejs__time {
    padding: 14px 0 0;
}
.player .mejs__time-rail {
    padding-top: 9px;
}
.player video {
    max-width: 100%;
}

.plyr__video-embed iframe {
    pointer-events: none !important;
}

.button {
    cursor: pointer;
}

@media all and (max-width: 350px) {
    .app .home header {
        padding: 4px;
    }
}

.hero-header .hero-header-cover {
    font-size: 18pt;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 0 48px;
    background-color: #72bfffa8;
    line-height: 32px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.hero-header .hero-header-cover .button.back {
    font-size: 12pt;
}

.hero-header .hero-header-inner {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    filter: grayscale(1) blur(3px) contrast(0.5);
    transform: scale(1.1);
    background-color: #0071bc;
}

@media all and (min-width: 900px) {
    .reader .post .button.back {
        display: none;
    }
    .reader .post .back-desktop {
        display: block;
    }
    .reader .post .slider-button.prev {
        left: -32px;
    }
    .reader .post .slider-button.prev:hover {
        left: -36px;
    }
    .reader .post .slider-button.next {
        right: -80px;
        transform: rotate(180deg);
    }
    .reader .post .slider-button.next:hover {
        right: -84px;
    }

    .app .popup header {
    }
    .hero-header {
        min-height: 160px;
        overflow: hidden;
        position: relative;
    }
    .hero-header .hero-header-inner {
        height: 160px;
    }
    .hero-header .hero-header-cover {
        height: 100%;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        padding: 0 36px;
    }
    .reader .header .red {
        background-color: #0071bc;
        height: 60px;
    }
    .reader .header .buttons {
        margin: -48px 60px 35px;
        justify-content: flex-start;
    }
    .reader .header .buttons .button {
        background-image: none;
        padding: 10px 14px;
        width: auto;
        margin-right: 10px;
    }
    .reader .header .buttons .button.back {
        display: block;
    }
    .reader .image {
        display: none;
    }
    .reader .tv-image {
        display: block;
        position: absolute;
        top: 40px;
        right: 60px;
        width: 35%;
        height: 300px;
    }
    .reader .tv-image img {
        width: 100%;
    }
    .reader .post {
        margin: 0 60px 20px;
        max-width: 50%;
    }

    .app header .menu {
        display: flex;
    }
    .app .hamburger-button {
        display: none;
    }
    .app header .logo {
        margin-left: 8px;
        flex: 0;
    }
}
