﻿/********** Fonts **********/
@font-face {
    font-family: 'Teletext0';
    src: url('/fonts/MODE7GX0.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Teletext1';
    src: url('/fonts/MODE7GX1.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Teletext2';
    src: url('/fonts/MODE7GX2.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Teletext3';
    src: url('/fonts/MODE7GX3.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Teletext4';
    src: url('/fonts/MODE7GX4.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/********** Application **********/
* {
    font-family: 'Nunito', sans-serif;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    overflow: hidden;
}

.app-shell {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.app-site-header {
    flex: 0 0 auto;
}

.app-site-footer {
    flex: 0 0 auto;
    width: 100%;
    color: blue;
    height: 29px;
    border-top: 1px solid lightgrey;
    z-index: 1000;
    align-content: center;
}

.app-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 12px;
}

.app-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.page-toolbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: white;
}

/********** App Header **********/
@media screen and (max-width: 559px) {
    .app-header-container {
        background-image: url('../images/MobileMontage.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        -webkit-justify-content: center;
        justify-content: center;
        text-align: center;
        height: 31px;
    }

    .app-header-text {
        font-size: 24px;
        text-shadow: -2px -2px 0 white, 2px -2px 0 white, -2px 2px 0 white, 2px 2px 0 white;
    }
}

@media screen and (min-width: 560px) {
    .app-header-container {
        background-image: url('../images/Montage.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        -webkit-justify-content: center;
        justify-content: center;
        text-align: center;
        height: 49px;
    }

    .app-header-text {
        font-size: 36px;
        text-shadow: -2px -2px 0 white, 2px -2px 0 white, -2px 2px 0 white, 2px 2px 0 white;
    }
}

.app-page-header * {
    font-family: 'Teletext3' !important;
    text-align: center;
    padding: 0 4px;
}

#clock-hh {
    padding: 0 0 0 4px;
}

#clock-mm {
    padding: 0;
}

#clock-ss {
    padding: 0;
}

#page-number {
    padding: 0 4px 0 0;
}

@media screen and (max-width: 559px) {
    .app-page-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        background-color: black;
        align-items: center;
        height: 48px;
        font-size: 15px;
        padding: 0 10px;
    }
}

@media screen and (min-width: 560px) {
    .app-page-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        background-color: black;
        align-items: center;
        height: 24px;
        font-size: 15px;
        padding: 0 10px;
    }
}

.rubik-dirt-regular {
    font-family: "Rubik Dirt", system-ui;
    font-weight: 400;
    font-style: normal;
}

/********** App Footer **********/
.app-footer-container {
}

.footer-wrap {
}

.ticker-ghost {
}

.ticker-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.ticker-button-wrap {
    padding-right: 2px;
}

.ticker-button {
}

.button-showticker {
    margin-left: 2px;
}

.ticker-bar {
    width: 100%;
    overflow: hidden;
}

/********** Home/Menu **********/
@media screen and (min-width: 768px) {
    .home-page {
        padding: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .home-nav-grid {
        display: flex;
        flex-direction: row;
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 800px;
        width: 100%;
    }

    .home-nav-card {
        position: relative;
        display: block;
        width: 100%;
        max-width: 240px;
        aspect-ratio: 1 / 1;
        border-radius: 16px;
        overflow: hidden;
        text-decoration: none;
        box-shadow: 0 6px 18px rgba(0,0,0,0.18);
        transition: transform 160ms ease, box-shadow 160ms ease;
        outline: none;
    }

        .home-nav-card:focus-visible {
            box-shadow: 0 0 0 3px #fff, 0 0 0 6px #0ea5e9;
        }

        .home-nav-card:hover {
            transform: translateY(-2px);
        }

    .home-card-figure {
        margin: 0;
        position: relative;
        aspect-ratio: 1;
    }

    .home-card-link {
        display: block;
        height: 100%;
        width: 100%;
        text-decoration: none;
        color: inherit;
    }

    .home-card-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        opacity: 0.8;
        filter: grayscale(100%);
        transition: filter 220ms ease, transform 220ms ease;
    }

    .home-nav-card:hover .home-card-image,
    .home-nav-card.active .home-card-image {
        filter: none;
    }

    .home-nav-card:hover .home-card-image {
        transform: scale(1.02);
    }

    .home-card-caption {
        position: absolute;
        left: 0;
        bottom: 0;
        padding: 10px 12px;
        background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
        width: 100%;
        color: #fff;
    }

    .home-caption-text {
        font-weight: 700;
        font-size: 12px;
        letter-spacing: 0.2px;
        text-shadow: 0 2px 4px rgba(0,0,0,0.6);
        display: inline-block;
    }

    .home-nav-card.active {
        box-shadow: 0 0 0 2px rgba(255,255,255,0.7), 0 6px 18px rgba(0,0,0,0.24);
    }

    .home-nav-card {
        perspective: 1200px;
    }

    .home-card-inner {
        position: relative;
        height: 100%;
        width: 100%;
        border-radius: inherit;
        transform-style: preserve-3d;
        transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
    }


    .home-nav-card.is-flipped .home-card-inner {
        transform: rotateY(180deg);
    }

    .home-card-face {
        position: absolute;
        inset: 0;
        border-radius: inherit;
        overflow: hidden;
        backface-visibility: hidden;
    }

    .home-card-front {
        display: block;
    }

    .home-nav-card.is-flipped .home-card-front {
        pointer-events: none;
    }

    .home-card-back {
        transform: rotateY(180deg);
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        background: linear-gradient(160deg, #1e1e1e, #2a2a2a);
        color: #fff;
    }

    .home-back-header {
        display: grid;
        grid-template-columns: 56px 1fr;
        gap: 10px;
        align-items: center;
    }

    .home-card-mini {
        width: 56px;
        height: 56px;
        object-fit: cover;
        border-radius: 8px;
    }

    .home-back-title {
        margin: 0;
        font-size: 14px;
        line-height: 1.1;
        text-transform: uppercase;
        letter-spacing: .4px;
    }

    .home-card-desc {
        margin: 0;
        font-size: 13px;
        line-height: 1.35;
        color: #e9e9e9;
    }

    .home-card-picdesc {
        margin: 0;
        font-style: italic;
        font-size: 13px;
        line-height: 1.35;
        color: #e9e9e9;
    }

    .home-back-cta {
        margin-top: auto;
        align-self: end;
        display: inline-block;
        padding: 4px 8px;
        border-radius: 10px;
        background: #ffffff;
        color: #111;
        font-weight: 800;
        text-decoration: none;
        transition: transform .2s ease, box-shadow .2s ease;
        box-shadow: 0 6px 16px rgba(0,0,0,.25);
    }

        .home-back-cta:hover,
        .home-back-cta:focus-visible {
            transform: translateY(-1px);
            box-shadow: 0 10px 22px rgba(0,0,0,.3);
            outline: none;
        }

    .home-info-btn {
        position: absolute;
        top: 8px;
        right: 8px;
        height: 28px;
        width: 28px;
        border-radius: 999px;
        border: 0;
        background: rgba(0, 0, 0, 0.55);
        color: #fff;
        font-weight: 800;
        font-size: 14px;
        display: grid;
        place-items: center;
        cursor: pointer;
        transition: background .2s ease, transform .2s ease;
        z-index: 2;
    }

        .home-info-btn:hover,
        .home-info-btn:focus-visible {
            background: rgba(0, 0, 0, 0.75);
            transform: scale(1.06);
            outline: none;
        }

        .home-info-btn.close {
            background: rgba(0,0,0,.35);
        }

    .home-nav-card:not(.is-flipped):hover .home-card-image,
    .home-nav-card.active .home-card-image {
        filter: none;
        transform: scale(1.02);
    }
}

@media screen and (max-width: 767px) {
    .home-page {
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .home-nav-grid {
        display: flex;
        flex-direction: row;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 800px;
        width: 100%;
    }

    .home-nav-card {
        position: relative;
        display: block;
        width: 100%;
        max-width: 160px;
        aspect-ratio: 1 / 1;
        border-radius: 16px;
        overflow: hidden;
        text-decoration: none;
        box-shadow: 0 6px 18px rgba(0,0,0,0.18);
        transition: transform 160ms ease, box-shadow 160ms ease;
        outline: none;
    }

        .home-nav-card:focus-visible {
            box-shadow: 0 0 0 3px #fff, 0 0 0 6px #0ea5e9;
        }

        .home-nav-card:hover {
            transform: translateY(-2px);
        }

    .home-card-figure {
        margin: 0;
        position: relative;
        aspect-ratio: 1;
    }

    .home-card-link {
        display: block;
        height: 100%;
        width: 100%;
        text-decoration: none;
        color: inherit;
    }

    .home-card-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        opacity: 0.8;
        filter: grayscale(100%);
        transition: filter 220ms ease, transform 220ms ease;
    }

    .home-nav-card:hover .home-card-image,
    .home-nav-card.active .home-card-image {
        filter: none;
    }

    .home-nav-card:hover .home-card-image {
        transform: scale(1.02);
    }

    .home-card-caption {
        position: absolute;
        left: 0;
        bottom: 0;
        padding: 10px 12px;
        background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
        color: #fff;
    }

    .home-caption-text {
        font-weight: 700;
        font-size: 11px;
        letter-spacing: 0.2px;
        text-shadow: 0 2px 4px rgba(0,0,0,0.6);
        display: inline-block;
        text-wrap: wrap;
    }

    .home-nav-card.active {
        box-shadow: 0 0 0 2px rgba(255,255,255,0.7), 0 6px 18px rgba(0,0,0,0.24);
    }

    .home-nav-card {
        perspective: 1200px;
    }

    .home-card-inner {
        position: relative;
        height: 100%;
        width: 100%;
        border-radius: inherit;
        transform-style: preserve-3d;
        transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
    }


    .home-nav-card.is-flipped .home-card-inner {
        transform: rotateY(180deg);
    }

    .home-card-face {
        position: absolute;
        inset: 0;
        border-radius: inherit;
        overflow: hidden;
        backface-visibility: hidden;
    }

    .home-card-front {
        display: block;
    }

    .home-nav-card.is-flipped .home-card-front {
        pointer-events: none;
    }

    .home-card-back {
        transform: rotateY(180deg);
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        background: linear-gradient(160deg, #1e1e1e, #2a2a2a);
        color: #fff;
    }

    .home-back-header {
        display: grid;
        grid-template-columns: 56px 1fr;
        gap: 10px;
        align-items: center;
    }

    .home-card-mini {
        width: 56px;
        height: 56px;
        object-fit: cover;
        border-radius: 8px;
    }

    .home-back-title {
        margin: 0;
        font-size: 14px;
        line-height: 1.1;
        text-transform: uppercase;
        letter-spacing: .4px;
    }

    .home-card-desc {
        margin: 0;
        font-size: 13px;
        line-height: 1.35;
        color: #e9e9e9;
    }

    .home-card-picdesc {
        margin: 0;
        font-style: italic;
        font-size: 13px;
        line-height: 1.35;
        color: #e9e9e9;
    }

    .home-back-cta {
        margin-top: auto;
        align-self: end;
        display: inline-block;
        padding: 4px 8px;
        border-radius: 10px;
        background: #ffffff;
        color: #111;
        font-weight: 800;
        text-decoration: none;
        transition: transform .2s ease, box-shadow .2s ease;
        box-shadow: 0 6px 16px rgba(0,0,0,.25);
    }

        .home-back-cta:hover,
        .home-back-cta:focus-visible {
            transform: translateY(-1px);
            box-shadow: 0 10px 22px rgba(0,0,0,.3);
            outline: none;
        }

    .home-info-btn {
        position: absolute;
        top: 8px;
        right: 8px;
        height: 28px;
        width: 28px;
        border-radius: 999px;
        border: 0;
        background: rgba(0, 0, 0, 0.55);
        color: #fff;
        font-weight: 800;
        font-size: 14px;
        display: grid;
        place-items: center;
        cursor: pointer;
        transition: background .2s ease, transform .2s ease;
        z-index: 2;
    }

        .home-info-btn:hover,
        .home-info-btn:focus-visible {
            background: rgba(0, 0, 0, 0.75);
            transform: scale(1.06);
            outline: none;
        }

        .home-info-btn.close {
            background: rgba(0,0,0,.35);
        }

    .home-nav-card:not(.is-flipped):hover .home-card-image,
    .home-nav-card.active .home-card-image {
        filter: none;
        transform: scale(1.02);
    }
}

.generic-button-toolbar {
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
    margin-right: 10px;
}

.generic-actionbutton-home {
    background-image: url('../nav/Home.png');
    background-color: gold;
    color: white;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 36px 36px;
    padding-left: 36px;
    height: 40px;
    width: 6px;
    line-height: 42px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 4px;
    display: block;
}

.generic-actionbutton-filters-off {
    background-image: url('../icons/filters-36-white.png');
    background-color: blue;
    color: white;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px 28px;
    padding-left: 36px;
    height: 40px;
    line-height: 40px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 4px;
}

.generic-actionbutton-filters-on {
    background-image: url('../icons/filters-36-black.png');
    background-color: lightgrey;
    color: white;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px 28px;
    padding-left: 36px;
    height: 40px;
    line-height: 40px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 4px;
}

.generic-actionbutton-reset {
    background-image: url('../icons/reset-filters-36-white.png');
    background-color: blue;
    color: white;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px 28px;
    padding-left: 36px;
    height: 40px;
    line-height: 40px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 4px;
}

.generic-actionbutton-close {
    background-image: url('../icons/close-36-white.png');
    background-color: red;
    color: white;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
    padding-left: 24px;
    height: 28px;
    line-height: 28px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 4px;
}

.generic-actionbutton-list-off {
    background-image: url('../icons/list-36-white.png');
    background-color: blue;
    color: white;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px 28px;
    padding-left: 36px;
    height: 40px;
    line-height: 40px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 4px;
}

.generic-actionbutton-list-on {
    background-image: url('../icons/list-36-black.png');
    background-color: lightgrey;
    color: white;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px 28px;
    padding-left: 36px;
    height: 40px;
    line-height: 40px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 4px;
}

.generic-button-label-container {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.generic-page-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.generic-filter-container {
    flex: 0 1 auto;
    padding: 6px 10px;
    white-space: nowrap;
    max-width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-bottom: 10px;
}

.generic-filter-box {
    display: block;
    width: 100%;
    border-radius: 8px;
    width: fit-content;
    display: flex;
    padding: 5px;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 10px;
    border: 1px solid lightgrey;
}

@media screen and (min-width: 768px) {
    .generic-filter-button {
        font-weight: bold;
        font-size: 12px;
        border: 1px solid grey;
        text-decoration: none;
        background-color: aliceblue;
        border-radius: 10px;
        margin: 5px;
        text-transform: uppercase;
        text-align: left;
        padding: 6px 8px;
        cursor: pointer;
        color: black;
    }
}

@media screen and (max-width: 767px) {
    .generic-filter-button {
        font-weight: bold;
        font-size: 11px;
        border: 1px solid grey;
        text-decoration: none;
        background-color: aliceblue;
        border-radius: 10px;
        margin: 3px;
        text-transform: uppercase;
        text-align: left;
        padding: 4px 6px;
        cursor: pointer;
        color: black;
    }
}

.generic-filter-button:is(:hover, :focus-visible) {
    border-color: #93c5fd;
    outline: none;
}

.generic-filter-button.is-active,
.generic-filter-button[aria-pressed="true"] {
    background: #2563eb;
    border-color: #1d4ed8;
    color: white;
}

.generic-filter-button.is-disabled,
.generic-filter-button[aria-disabled="true"] {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

    .generic-filter-button.is-disabled:hover,
    .generic-filter-button[aria-disabled="true"]:hover {
        filter: none;
        transform: none;
    }

.generic-rating-container {
}

.generic-results {
    overflow: visible;
    max-height: none;
}

.generic-results-header {
    margin: 10px 0 10px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.generic-ratings-title {
    background-color: purple;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
    padding: 2px 4px;
    border-radius: 6px;
    width: fit-content;
}

.generic-popover-backdrop {
    position: fixed;
    inset: 0;
    background: transparent; /* click-catcher only */
    z-index: 9998;
}

.generic-popover {
    position: fixed;
    z-index: 9999;
    max-width: min(320px, calc(100vw - 24px));
    background: #fff;
    border: 1px solid rgba(0,0,0,0.25);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.22);
    padding: 12px 36px 12px 12px;
    font-size: 14px;
    line-height: 1.35;
}

.generic-popover-header {
    font-weight: bold;
    margin-bottom: 6px;
    padding-right: 20px;
}

.generic-popover-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 0;
    background: rgba(0,0,0,0.06);
    cursor: pointer;
    font-size: 18px;
    line-height: 26px;
}

    .generic-popover-close:hover {
        background: rgba(0,0,0,0.10);
    }

/********** A-Z **********/
@media screen and (min-width: 768px) {
    .atoz-az-grid {
        --tile: 100px;
        display: grid;
        grid-template-columns: repeat(auto-fill, var(--tile));
        gap: 12px;
        margin-bottom: 12px;
    }
}

@media screen and (max-width: 767px) {
    .atoz-az-grid {
        --tile: 90px;
        display: grid;
        grid-template-columns: repeat(auto-fill, var(--tile));
        gap: 10px;
        margin-bottom: 10px;
    }
}

.atoz-tile {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    width: var(--tile);
    height: var(--tile);
}

    .atoz-tile is-active {
    }

.atoz-img-wrap {
    position: relative;
    width: var(--tile);
    height: var(--tile);
    border-radius: 12px;
    overflow: hidden;
    background: #0b0f1a;
    box-shadow: 0 1px 6px rgba(0,0,0,.18);
}

    .atoz-img-wrap has-img {
    }

.atoz-tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(.88) contrast(.92);
    transform: scale(1.02);
    transition: filter 160ms ease, transform 160ms ease;
}

.atoz-tile-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.28), rgba(0,0,0,.08));
    pointer-events: none;
}

.atoz-tile-letter {
    position: absolute;
    right: calc(var(--tile) * 0.12);
    bottom: calc(var(--tile) * 0.08);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 0 8px rgba(0,0,0,.6);
    pointer-events: none;
}

    .atoz-tile-letter.wide {
        font-size: 18px;
    }

.atoz-tile:focus-visible .atoz-img-wrap, .atoz-tile.is-active .atoz-img-wrap, .atoz-tile:hover .atoz-img-wrap {
    outline: 2px solid rgba(255,255,255,.45);
    outline-offset: 2px;
}

.atoz-tile:hover .atoz-tile-img, .atoz-tile:focus-visible .atoz-tile-img, .atoz-tile.is-active .atoz-tile-img {
    filter: grayscale(0) brightness(1) contrast(1);
    transform: scale(1.03);
}

.atoz-programmes-wrap {
    height: 100%;
    overflow-y: auto;
}

/********** Search **********/
.search-searchwrap {
    width: 97%;
}

.search-searchbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 12px;
}

.search-searchbar-icon {
    opacity: 0.7;
}

.search-searchbar-input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 1rem;
    line-height: 1.5;
}

.search-searchbar-clear {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 8px;
    padding: 2px 8px;
    cursor: pointer;
}

.search-searchbar-btn {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
}

    .search-searchbar-btn[disabled] {
        opacity: 0.5;
        cursor: not-allowed;
    }

.search-searchbar-hint {
    color: #6b7280;
}

.search-searchbar-status {
    color: #374151;
    font-size: 12px;
    font-weight: bold;
}

.search-others {
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.search-state {
    color: #6b7280;
}

/********** WorldOfSport **********/
.worldofsport-sport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 120px);
    gap: 12px;
    margin-bottom: 12px;
}

.worldofsport-sport-tile {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    width: 120px;
    height: 120px;
    justify-items: center;
}

.worldofsport-img-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    border-radius: 999px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 1px 6px rgba(0,0,0,.18);
    align-content: center;
}

.worldofsport-tile-img {
    max-width: 60px;
    max-height: 60px;
    object-fit: cover;
    transform: scale(1.02);
    transition: filter 160ms ease, transform 160ms ease;
}

.worldofsport-tile-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.28), rgba(0,0,0,.08));
    pointer-events: none;
}

.worldofsport-tile-name {
    font-size: 11px;
    line-height: 1;
    color: darkgreen;
    text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 0 8px rgba(0,0,0,.6);
    pointer-events: none;
}

.worldofsport-sport-tile:focus-visible .worldofsport-img-wrap, .worldofsport-sport-tile.is-active .worldofsport-img-wrap, .worldofsport-sport-tile:hover .atoz-img-wrap {
    outline: 2px solid rgba(255,255,255,.45);
    outline-offset: 2px;
}

.worldofsport-sport-tile:hover .worldofsport-tile-img, .worldofsport-sport-tile:focus-visible .worldofsport-tile-img, .worldofsport-sport-tile.is-active .worldofsport-tile-img {
    filter: saturate(3) brightness(3) contrast(1);
    transform: scale(1.1);
}

.worldofsport-events-box {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.worldofsport-image-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.worldofsport-events-column {
    display: flex;
    flex-direction: row;
    gap: 4px;
    flex-wrap: wrap;
}

/********** WhatsItAllAbout **********/
.about-tile-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 13px;
}

.about-tile-intro {
    background-color: antiquewhite;
    border-radius: 8px;
    padding: 16px;
    width: 380px;
    text-align: justify;
}

.about-tile-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
}

.about-tile-largetitle {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
}

.about-tile-contribute {
    background-color: antiquewhite;
    border-radius: 8px;
    padding: 16px;
    width: 230px;
    text-align: justify;
}

.about-tile-source {
    background-color: antiquewhite;
    border-radius: 8px;
    padding: 16px;
    width: 360px;
    text-align: justify;
}

.about-coffee-container * {
    width: 100px;
    height: 100px;
    margin-top: 10px;
}

.about-dashboard-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    padding: 10px;
    text-align: center;
}

.about-dashboard-films {
    height: 100px;
    width: 180px;
    background-color: rgb(182, 250, 212);
    border-radius: 8px;
}

.about-dashboard-tvprogrammes {
    height: 100px;
    width: 180px;
    background-color: rgb(246, 195, 247);
    border-radius: 8px;
}

.about-dashboard-broadcasts {
    height: 100px;
    width: 180px;
    background-color: lightgoldenrodyellow;
    border-radius: 8px;
}

.about-dashboard-ratingsets {
    height: 100px;
    width: 180px;
    background-color: lightskyblue;
    border-radius: 8px;
}

.about-dashboard-ratings {
    height: 100px;
    width: 180px;
    background-color: peachpuff;
    border-radius: 8px;
}

.about-dashboard-latestrating {
    display: flex;
    flex-direction: row;
    background-color: khaki;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 10px;
    justify-self: center;
    flex-wrap: wrap;
}

.about-latest-label {
    font-size: 18px;
    font-weight: 600;
    margin-right: 6px;
}

.about-latest-value {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.about-dashboard-label {
    margin-top: 15px;
    font-weight: 800;
}

.about-dashboard-value {
    margin-top: 10px;
    font-weight: 600;
    font-size: 28px;
}

.about-coverage-container {
    margin: 10px;
    width: 100%;
    justify-self: center;
}

.about-additional-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 13px;
}

.about-additional-acknowledgements {
    background-color: antiquewhite;
    border-radius: 8px;
    padding: 16px;
    width: 420px;
    text-align: justify;
}

.about-additional-technical {
    background-color: antiquewhite;
    border-radius: 8px;
    padding: 16px;
    width: 430px;
    text-align: justify;
}

@media screen and (min-width: 768px) {
    .coverage-card {
        background: antiquewhite;
        border-radius: 8px;
        padding: 10px;
        max-width: 1200px;
        width: 99%;
        justify-self: center;
    }
}

@media screen and (max-width: 767px) {
    .coverage-card {
        background: antiquewhite;
        border-radius: 8px;
        padding: 6px;
        width: 95%;
        justify-self: center;
    }
}

.coverage-header {
    margin-top: -5px;
    margin-bottom: 0px;
}

.coverage-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cg-controls {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 16px;
}

.cg-toggle {
    border: 1px solid #d0d7de;
    background: #fff;
    padding: .4rem .6rem;
    border-radius: .6rem;
    cursor: pointer;
    font-weight: 600;
}

    .cg-toggle::before {
        content: "▸";
        margin-right: 6px;
    }

    .cg-toggle[aria-expanded="true"]::before {
        content: "▾";
    }


.yearly {
    font-size: 13px;
    width: 100%;
    margin-top: 4px;
}

.monthly {
    margin-top: 4px;
}

.weekly {
    margin-top: 4px;
}

.yearly-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.year-card {
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: .3rem .4rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.year-label {
    font-weight: 700;
    min-width: 2ch;
    text-align: right;
}

.table-scroll {
    overflow-x: auto;
}

.cg-table-monthly {
    font-size: 13px;
    width: auto;
    border-collapse: separate;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

    .cg-table-monthly th, .cg-table-monthly td {
        padding: .2rem .3rem;
        text-align: center;
        border-bottom: 1px solid #f0f2f4;
    }

    .cg-table-monthly thead th {
        top: 0;
        background: #fafafa;
        z-index: 1;
        font-weight: 700;
    }

.cg-table-weekly {
    font-size: 12px;
    width: auto;
    border-collapse: separate;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

    .cg-table-weekly th, .cg-table-weekly td {
        padding: .1rem .2rem;
        text-align: center;
        border-bottom: 1px solid #f0f2f4;
    }

    .cg-table-weekly thead th {
        top: 0;
        background: #fafafa;
        z-index: 1;
        font-weight: 700;
    }

.sticky-left {
    position: sticky;
    left: 0;
    background: #fafafa;
    z-index: 2;
    text-align: left;
    padding-left: .6rem;
}

/* Use button for accessibility/focusability */
.bubble {
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 999px;
    font-size: .6rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    cursor: pointer;
}

    .bubble[disabled] {
        cursor: default;
    }

.bubble--green {
    background: #22c55e22;
    color: #16a34a;
    border: 1px solid #16a34a44;
}

.bubble--grey {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

/* Overlay: keep padding, but respect notches/safe areas */
.cg-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    z-index: 1000;
    display: grid;
    place-items: center;
    /* Use padding that includes safe-area insets */
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

/* Modal: fit within overlay padding, center, never touch edges */
.cg-modal {
    /* Instead of width: min(560px, 96vw); do this: */
    width: 100%; /* fill the available (padded) overlay area */
    max-width: 560px; /* cap on larger screens */
    margin-inline: auto; /* ensure it centers in case grid fallback */
    font-size: 13px;
    background: #ffffff;
    color: #111827;
    border-radius: .75rem;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box; /* avoids any width overflow from padding/borders */
}

/* Optional: prevent long names from forcing horizontal scroll */
.cg-modal-body {
    padding: 0 .6rem .6rem .6rem;
    overflow: auto;
    overflow-wrap: anywhere;
}

    .cg-modal-body ul {
        margin-left: -20px;
    }

/* (Optional) On very small screens, give a bit more height */
@media (max-width: 480px) {
    .cg-modal {
        max-height: calc(100dvh - 2rem);
    }
}


.cg-modal-header {
    display: grid;
    grid-template-columns: 1fr auto; /* left content, right close */
    align-items: start;
    gap: .75rem;
    padding: 10px;
}

.cg-modal-title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
}

.cg-modal-subtitle {
    margin-top: .15rem;
    font-size: .9rem;
    color: #6b7280;
}

.cg-modal-close {
    border: none;
    background: transparent;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
}

.cg-modal-loading {
    opacity: .9;
}

.cg-modal-error {
    color: #b91c1c;
    font-weight: 600;
}

.tt-empty {
    opacity: .7;
    font-style: italic;
}

/* Fade reused for modal */
.fade-enter-active, .fade-leave-active {
    transition: opacity .12s;
}

.fade-enter-from, .fade-leave-to {
    opacity: 0;
}

.tiny-note {
    color: #6b7280;
    font-size: .85rem;
    margin-top: .25rem;
}

/********** PointsOfView **********/
.pov-main {
    color: black;
    background: transparent;
    font-size: 13px;
}

    .pov-main a {
        color: black;
    }

    .pov-main h1, .pov-main h2 {
        color: black;
    }

.pov-main {
    padding: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.pov-header {
    margin-bottom: 16px;
}

    .pov-header h1 {
        font-size: clamp(24px, 3vw, 36px);
        margin: 0 0 8px;
    }

.pov-lead {
    margin: 0;
    opacity: .9
}

.pov-card {
    background-color: antiquewhite;
    border: 0;
    border-radius: 16px;
    padding: clamp(12px,2vw,20px);
    box-shadow: 0 6px 20px rgba(0,0,0,.2)
}

.pov-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 768px) {
    .pov-grid {
        grid-template-columns: 1fr;
    }
}

.pov-field {
    display: grid;
    gap: 6px;
}

    .pov-field > span {
        font-weight: 600;
        opacity: .95;
    }

    .pov-field input[type="text"], .pov-field input[type="email"], .pov-field select, .pov-field textarea {
        background-color: blanchedalmond;
        color: black;
        border: 1px solid #2a2d34;
        border-radius: 10px;
        padding: 10px 12px;
        outline: none;
    }

    .pov-field textarea {
        resize: vertical;
    }

        .pov-field input::placeholder, .pov-field textarea::placeholder {
            color: rgba(255,255,255,.6);
        }

.pov-required > span:after {
    content: ' *';
    color: #ffb703
}

.pov-message {
    margin-top: 12px
}

.pov-count {
    font-size: 12px;
    opacity: .7;
    text-align: right
}

.pov-hint {
    color: orangered;
    opacity: .95;
    text-align: right;
}

.pov-invalid input, .pov-invalid textarea {
    border-color: #ff6b6b;
}

.pov-attachments {
    margin-top: 8px
}

    .pov-attachments summary {
        display: flex;
        gap: 8px;
        align-items: baseline;
    }

.pov-summary-h {
    font-weight: 700;
}

.pov-files {
    list-style: none;
    padding: 8px 0 0;
    margin: 0
}

    .pov-files li {
        display: flex;
        gap: 12px;
        align-items: center;
        padding: 6px 0;
        border-bottom: 1px dashed #2a2d34
    }

    .pov-files .pov-name {
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .pov-files .pov-size {
        font-variant-numeric: tabular-nums;
        opacity: .85
    }

    .pov-files .pov-link {
        background: none;
        border: none;
        color: #9ac6ff;
        text-decoration: underline;
        cursor: pointer
    }

.pov-consent {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.pov-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.pov-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
}

    .pov-button[disabled] {
        opacity: .6;
        cursor: not-allowed
    }

    .pov-button.ghost {
        background: transparent;
        border: 1px solid #2a2d34;
        color: black;
    }

    .pov-button:not(.ghost) {
        background: linear-gradient(180deg,#2f80ed,#1f62b8);
        color: #fff
    }

.pov-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    margin-right: 8px;
    animation: spin .7s linear infinite
}

.pov-banner {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 12px
}

    .pov-banner.success {
        background: #0e3a16;
        border: 1px solid #1d6f2a;
        color: #a6f1b0
    }

    .pov-banner.error {
        background: #3a0e0e;
        border: 1px solid #6f1d1d;
        color: #f1b0b0
    }

.pov-fade-enter-active, .pov-fade-leave-active {
    transition: opacity .2s
}

.pov-fade-enter-from, .pov-fade-leave-to {
    opacity: 0
}

.pov-alt {
    margin: 18px 0 0;
    opacity: .95
}

.pov-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0
}

@keyframes spin {
    to {
        transform: rotate(1turn)
    }
}

input[type="file"] {
    font-family: 'Nunito';
}

input[type="checkbox"] {
    width: 1.5rem;
    height: 1.5rem;
    color: dodgerblue;
    vertical-align: middle;
    -webkit-appearance: none;
    background: none;
    border: 0;
    outline: 0;
    flex-grow: 0;
    border-radius: 50%;
    background-color: #FFFFFF;
    transition: background 300ms;
    cursor: pointer;
}

input[type=checkbox]::before {
    content: "";
    color: transparent;
    display: block;
    width: inherit;
    height: inherit;
    border-radius: inherit;
    border: 0;
    background-color: transparent;
    background-size: contain;
    box-shadow: inset 0 0 0 1px #CCD3D8;
}

input[type=checkbox]:checked {
    background-color: currentcolor;
}

    input[type=checkbox]:checked::before {
        box-shadow: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E %3Cpath d='M15.88 8.29L10 14.17l-1.88-1.88a.996.996 0 1 0-1.41 1.41l2.59 2.59c.39.39 1.02.39 1.41 0L17.3 9.7a.996.996 0 0 0 0-1.41c-.39-.39-1.03-.39-1.42 0z' fill='%23fff'/%3E %3C/svg%3E");
    }

input[type=checkbox]:disabled {
    background-color: #CCD3D8;
    opacity: 0.84;
    cursor: not-allowed;
}

/********** RatingCard **********/
.ratingcardlist-results-empty {
    padding: 1rem;
    opacity: .8;
}

.ratingcardlist-ratings-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ratingcardlist-ratings-item, .ratingcardlist-ratings-item > * {
}

.ratingcard-container {
    position: relative;
    padding: 8px;
    display: flex;
    flex-direction: row;
    border: 1px solid lightgrey;
    border-radius: 4px;
    background-color: ghostwhite;
    min-height: 40px;
    align-items: center;
    margin-bottom: 4px;
}

    .ratingcard-container.has-set-tab {
        padding-top: 8px !important;
        margin-top: 28px;
    }

        .ratingcard-container.has-set-tab::before {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            height: 1px;
            background: rgba(255,255,255,.18);
        }

@media screen and (max-width: 767px) {
    .ratingcard-ratingset-tab {
        position: absolute;
        top: -40px !important;
        left: 4px !important;
        z-index: 1;
        background-color: ghostwhite !important;
        color: maroon !important;
        border: 1px solid lightgrey !important;
        border-bottom: none;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        padding: 4px 10px !important;
        max-width: calc(100% - 24px);
        box-shadow: none !important;
    }


    .ratingcard-ratingset-tab-text {
        display: block;
        font-weight: 700;
        font-size: .85rem;
        line-height: 1.1;
        white-space: nowrap;
        text-wrap: wrap;
    }
}

@media screen and (min-width: 768px) {
    .ratingcard-ratingset-tab {
        position: absolute;
        top: -24.5px !important;
        left: 4px !important;
        z-index: 1;
        background-color: ghostwhite !important;
        color: maroon !important;
        border: 1px solid lightgrey !important;
        border-bottom: none;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        padding: 4px 10px !important;
        max-width: calc(100% - 24px);
        box-shadow: none !important;
    }


    .ratingcard-ratingset-tab-text {
        display: block;
        font-weight: 700;
        font-size: .85rem;
        line-height: 1.1;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
}

.ratingcard-narrow-rowsplitter {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ratingcard-firstrow {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.ratingcard-secondrow {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-left: 6px;
}

.ratingcard-rank {
    min-width: 2.2em;
    height: 2.2em;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

@media screen and (min-width: 768px) {

    .ratingcard-programme-container {
        display: flex;
        flex-direction: row;
        width: 100%;
    }

    .ratingcard-programme-details {
        display: flex;
        flex-direction: column;
        padding: 10px;
        flex: 1;
        justify-content: center;
    }
}

@media screen and (max-width: 767px) {
    .ratingcard-programme-container {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .ratingcard-rank {
        align-self: start;
    }

    .ratingcard-programme-details {
        display: flex;
        flex-direction: row;
        padding: 0 10px;
        flex: 1;
        align-items: center;
        gap: 10px;
    }

    
}

.ratingcard-programme-leftdetails {
    display: flex;
    flex-direction: column;
}

.ratingcard-programme-rightdetails {
    display: flex;
    flex-direction: column;
}

.ratingcard-programme-ratinginfo {
    display: flex;
    flex-direction: row;
    padding: 10px;
    justify-content: space-between;
}

.ratingcard-strand-name {
    font-size: 13px;
    color: purple;
    font-weight: bold;
    text-transform: uppercase;
}

.ratingcard-programme-name {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
}

.ratingcard-sport-container {
    background-color: rgba(216, 255, 239, 0.8);
    border: 1px solid lightgrey;
    border-radius: 4px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    width: fit-content;
}

.ratingcard-sportprogramme-name {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 4px;
}

.ratingcard-sport-box {
    display: flex;
    flex-direction: column;
}

.ratingcard-sport-type {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.ratingcard-sport-icon {
    border: 1px solid grey;
    border-radius: 999px;
    padding: 1px;
    height: 30px;
    width: 30px;
}

.ratingcard-sport-detail {
    display: flex;
    flex-direction: column;
}

.ratingcard-sport-name {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    color: brown;
}

.ratingcard-sport-event {
    font-size: 12px;
    font-weight: bold;
}

.ratingcard-sport-fixture {
    font-size: 12px;
}

.ratingcard-programme-info {
    display: flex;
    flex-direction: row;
    gap: 4px;
    font-size: 13px;
    font-weight: bold;
    color: purple;
    align-items: center;
    margin-top: 4px;
}

.ratingcard-film-info {
    display: flex;
    flex-direction: row;
    gap: 4px;
    font-size: 16px;
    color: red;
}

.ratingcard-flag-container {
}

.ratingcard-country-flag {
}

.ratingcard-alternative-name {
    background-color: purple;
    color: white;
    font-weight: bold;
    margin-right: 4px;
    padding: 0 2px;
}

.ratingcard-production-companies {
    display: flex;
    flex-direction: row;
    align-items: center;
    color: darkgreen;
    font-style: italic;
    font-size: 13px;
    gap: 4px;
}

.ratingcard-extra-company::before {
    content: ' / ';
}

.ratingcard-spacer {
    flex: 1;
}

.ratingcard-programme-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40px;
    justify-content: center;
}

.ratingcard-rating {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 120px;
    justify-content: end;
    gap: 4px;
}

.ratingcard-programme-notes {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    width: 20px;
}

.ratingcard-note-button {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    margin: 12px 6px 6px 6px;
}

.ratingcard-programme-company {
    display: flex;
    flex-direction: column;
    margin: 0 5px 0 20px;
    align-items: center;
    justify-content: center;
}

.ratingcard-programme-date {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-left: 5px;
    justify-content: center;
}

.ratingcard-calendar-badge {
    width: 56px;
    border-radius: 12px;
    border: 1px solid grey;
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ratingcard-calendar-head {
    height: 10px;
    background-color: red;
}

.ratingcard-calendar-body {
    padding: 2px;
    gap: 2px;
    color: black;
    font-weight: 700;
    line-height: 1.1;
    background-color: white;
}

.ratingcard-calendar-day {
    color: blue;
    font-size: 14px;
    height: 16px;
}

.ratingcard-calendar-date {
    color: red;
    font-weight: bold;
    font-size: 16px;
    height: 18px;
}

.ratingcard-calendar-month {
    color: blue;
    font-size: 14px;
    height: 16px;
}

.ratingcard-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

.ratingcard-popover {
    max-width: 320px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    padding: 12px 12px 14px;
    z-index: 1000;
}

.ratingcard-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.ratingcard-close-button {
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.ratingcard-popover-body {
    font-size: 12px;
}

/********** ProgrammeTileList **********/
@media screen and (min-width: 768px) {
    .programmetilelist {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: auto;
    }
}

@media screen and (max-width: 767px) {
    .programmetilelist {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin: auto;
    }
}

.programmetilelist-tile {
    position: relative;
    width: 99%;
}

    .programmetilelist-tile.is-active {
        outline: 2px solid #3b82f6;
        outline-offset: 2px;
        border-radius: 14px;
        width: 99%;
    }

.programmetilelist-tile-chooser {
    position: absolute;
    inset: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 14px;
}

/********** ProgrammeTile **********/
@media screen and (min-width: 768px) {
    .programmetile {
        display: flex;
        flex-direction: row;
        gap: 6px;
        padding: 13px;
        border-radius: 12px;
        background: linear-gradient(180deg, #ffffff, #fafafa);
        border: 1px solid #e6e6e6;
        box-shadow: 0 1px 1px rgba(0,0,0,0.04), 0 6px 18px rgba(0,0,0,0.06);
        text-decoration: none;
        color: inherit;
        align-items: center;
    }
    
    .programmetile-othercolumns {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 767px) {
    .programmetile {
        display: flex;
        flex-direction: row;
        gap: 6px;
        padding: 11px;
        border-radius: 12px;
        background: linear-gradient(180deg, #ffffff, #fafafa);
        border: 1px solid #e6e6e6;
        box-shadow: 0 1px 1px rgba(0,0,0,0.04), 0 6px 18px rgba(0,0,0,0.06);
        text-decoration: none;
        color: inherit;
        align-items: center;
    }

    .programmetile-othercolumns {
        display: flex;
        flex-direction: column;
        gap: 6px;
        
    }
}

    .programmetile:focus-visible {
        outline: 2px solid #3b82f6;
        outline-offset: 2px;
    }

    .programmetile:hover {
        box-shadow: 0 2px 4px rgba(0,0,0,0.06), 0 10px 22px rgba(0,0,0,0.08);
        transform: translateY(-1px);
        transition: box-shadow 120ms ease, transform 120ms ease;
    }

.programmetile-flagcolumn {
    display: flex;
    flex-direction: column;
}



.programmetile-namecolumn {
    display: flex;
    flex-direction: column;
}

.programmetile-descriptioncolumn {
    display: flex;
    flex-direction: column;
}

.programmetile-genrecolumn {
    display: flex;
    flex-direction: column;
}

.programmetile-companycolumn {
    display: flex;
    flex-direction: column;
}

.programmetile-rail {
    display: grid;
    grid-template-rows: auto 1fr;
    align-items: start;
    justify-items: center;
    gap: 10px;
}

.programmetile-flag {
    width: 28px;
    height: 19px;
    border-radius: 4px;
    display: block;
    box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 -1px 0 rgba(0,0,0,0.08) inset, 0 1px 3px rgba(0,0,0,0.12);
}

    .programmetile-flag.flag-placeholder {
        background: #f0f0f0;
        color: #9b9b9b;
        font-weight: 600;
        font-size: 10px;
        line-height: 19px;
        text-align: center;
    }

.programmetile-body {
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 6px;
}

.programmetile-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin: 0;
    color: #1f2937;
    max-height: 2.6em;
    overflow: hidden;
    margin-left: 4px;
    display: -webkit-box;
    text-transform: uppercase;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.programmetile-description {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    color: #333;
    background: #f5f5f5;
    border: 1px solid #ececec;
    display: inline-flex;
    text-transform: uppercase;
    font-weight: bold;
    align-items: center;
    width: fit-content;
    gap: 6px;
}

    .programmetile-description[data-type~="film"] {
        background-color: rgb(182, 250, 212);
    }

    .programmetile-description[data-type~="series"], .programmetile-description[data-type~="episode"], .programmetile-description[data-type~="event"],
    .programmetile-description[data-type~="broadcast"], .programmetile-description[data-type~="special"], .programmetile-description[data-type~="play"],
    .programmetile-description[data-type~="TV"] {
        background-color: rgb(246, 195, 247);
    }



.programmetile-genres {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow: hidden;
    align-items: center;
}

.programmetile-genre {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: bold;
    color: #374151;
    background: #eef2ff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 2px 6px;
    white-space: nowrap;
}

.programmetile-more {
    flex: 0 0 auto;
    font-size: 11px;
    color: #6b7280;
}

.programmetile-companies {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    overflow: hidden;
}

.programmetile-company {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    color: black;
    background-color: antiquewhite;
    border-radius: 999px;
    padding: 4px 8px;
    white-space: nowrap;
}

/********** Ticker **********/
.ticker {
    overflow: hidden;
    contain: layout paint;
}

.track {
    display: flex;
    backface-visibility: hidden;
    transform: translate3d(0,0,0);
}

.content {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    padding-right: 2rem;
    white-space: nowrap;
}

.item::after {
    content: "* * *";
    opacity: .5;
    margin-left: 2.25rem;
}

.item:last-child::after {
    content: "";
}

@media (prefers-reduced-motion: reduce) {
    .track {
        transform: none !important;
    }
}

.item {
    font-family: 'Teletext1' !important;
}

/********** Back To Top **********/
[hidden] {
    display: none !important;
}

.btt {
    position: fixed;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    cursor: pointer;
    transition: transform 160ms ease, opacity 160ms ease;
    opacity: .95;
    width: 46px;
    height: 46px;
    background: rgba(0,0,0,.75);
    left: 50%;
    bottom: 16px;
    --tx: -50%;
    --ty: 0;
    transform: translate(var(--tx), var(--ty));
}

    .btt:hover {
        --ty: -2px;
    }

    .btt:focus-visible {
        outline: 2px solid #9bea00;
        outline-offset: 3px;
    }

    .btt svg {
        width: 22px;
        height: 22px;
        pointer-events: none;
        fill: currentColor;
    }

@media (prefers-reduced-motion: reduce) {
    .btt {
        transition: none;
    }
}

@media print {
    .btt {
        display: none !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/********** Human Check **********/
.human-check-figure {
    max-width: 420px;
    margin: 1rem auto 0.75rem;
    text-align: center;
}

    .human-check-figure img {
        width: 100%;
        height: auto;
    }

.human-check-panel {
    max-width: 420px;
    margin: 0.75rem auto 0;
    text-align: center;
}

.human-check-widget {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.human-check-status {
    font-size: 0.95rem;
    color: #cbd5e1; /* adjust to your theme */
    margin-bottom: 0.25rem;
}
