/* TV Kętrzyn Video Hub 1.1.64 — mobile modal sticky close + fullscreen polish.
   Clean source for mobile app layer. No legacy selector stacking. */
@media (max-width: 780px) {
    html.tvm-mobile-ux-lock,
    body:has(.tvm-video-hub.is-mobile-rebuild) {
        overflow-x: hidden;
        background: #00141b;
    }

    .tvm-video-hub.is-mobile-rebuild {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        background:
            radial-gradient(circle at 50% -3%, rgba(6, 122, 136, .32), rgba(0, 19, 27, .96) 54%),
            linear-gradient(180deg, #00141b, #001923);
        color: #f4ffff;
        font-family: Inter, Roboto, "Open Sans", "Noto Sans", Arial, sans-serif;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-app,
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-app * {
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-app {
        display: grid;
        gap: 13px;
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
        padding: 12px 10px calc(86px + env(safe-area-inset-bottom));
        color: #f4ffff;
        overflow: hidden;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-header {
        position: sticky;
        top: max(8px, env(safe-area-inset-top));
        z-index: 20;
        display: grid;
        grid-template-columns: 78px minmax(0, 1fr) 56px;
        align-items: center;
        gap: 9px;
        min-height: 74px;
        padding: 11px;
        border: 1px solid rgba(94, 220, 229, .24);
        border-radius: 19px;
        background: linear-gradient(145deg, rgba(3, 40, 52, .97), rgba(2, 29, 42, .97));
        box-shadow: 0 18px 42px rgba(0, 0, 0, .30);
        backdrop-filter: blur(12px);
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-header__brand,
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-header__round-logo {
        color: #fff;
        text-decoration: none;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-header__brand {
        display: grid;
        line-height: 1;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-header__brand strong {
        color: #fff;
        font-size: 27px;
        line-height: .88;
        font-weight: 950;
        letter-spacing: -.04em;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-header__brand small {
        margin-top: 2px;
        color: #fff;
        font-size: 9px;
        line-height: 1;
        font-weight: 950;
        letter-spacing: .03em;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-header__round-logo {
        justify-self: end;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
        overflow: hidden;
        border-radius: 999px;
        border: 1px solid rgba(99, 220, 230, .25);
        background: rgba(0, 167, 191, .12);
        box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
        font-size: 18px;
        font-weight: 950;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-header__round-logo img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-menu__toggle {
        justify-self: center;
        display: grid;
        grid-template-columns: 22px minmax(0, auto) 18px;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        min-width: 0;
        min-height: 43px;
        padding: 8px 10px;
        border: 1px solid rgba(96, 219, 230, .28);
        border-radius: 14px;
        background: rgba(5, 48, 61, .86);
        color: #f4ffff;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
        transition: transform .16s ease, border-color .16s ease, background .16s ease;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-menu__toggle:active,
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-add:active,
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-material-card:active,
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-recent-card:active,
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-load-more:active {
        transform: scale(.985);
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-menu__toggle span {
        color: #72dbe5;
        font-size: 21px;
        line-height: 1;
        text-align: center;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-menu__toggle strong {
        display: block;
        min-width: 0;
        overflow: hidden;
        color: #fff;
        font-size: 12px;
        line-height: 1;
        font-weight: 950;
        text-align: center;
        text-overflow: ellipsis;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-menu__toggle em {
        display: none;
        color: #75dfe7;
        font-style: normal;
        font-size: 20px;
        font-weight: 900;
        line-height: 1;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-app.is-menu-open .tvm-mobile-menu__toggle {
        border-color: rgba(118, 224, 234, .46);
        background: rgba(7, 67, 82, .94);
    }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-app.is-menu-open .tvm-mobile-menu__toggle em { display: inline-flex; }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-app.is-menu-open .tvm-mobile-menu__toggle span { display: none; }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-menu__panel {
        display: grid;
        gap: 8px;
        padding: 12px;
        border: 1px solid rgba(96, 219, 230, .24);
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(3, 37, 51, .98), rgba(1, 22, 33, .98));
        box-shadow: 0 22px 48px rgba(0, 0, 0, .34);
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-menu__panel[hidden] { display: none; }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-menu__panel button {
        position: relative;
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        min-height: 46px;
        padding: 10px 11px;
        border: 0;
        border-radius: 13px;
        background: transparent;
        color: #dffcff;
        text-align: left;
        font-weight: 850;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-menu__panel button::before {
        content: "";
        position: absolute;
        left: 0;
        top: 9px;
        bottom: 9px;
        width: 3px;
        border-radius: 999px;
        background: transparent;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-menu__panel button span { color: #3ec7d6; text-align: center; }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-menu__panel button strong {
        min-width: 0;
        overflow: hidden;
        color: inherit;
        font-size: 13px;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-menu__panel button em {
        display: none;
        padding: 4px 7px;
        border-radius: 999px;
        background: rgba(255, 200, 87, .12);
        color: #ffd27a;
        font-size: 9px;
        font-style: normal;
        font-weight: 950;
        letter-spacing: .04em;
    }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-menu__panel button.is-active {
        background: rgba(17, 143, 157, .22);
        color: #fff;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
    }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-menu__panel button.is-active::before { background: #ffc857; }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-menu__panel button.is-active em { display: inline-flex; }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-action-zone {
        display: grid;
        gap: 10px;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-add {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        width: 100%;
        min-height: 50px;
        padding: 12px 18px;
        border: 0;
        border-radius: 15px;
        background: linear-gradient(135deg, #ffb14a, #ff9d25);
        color: #061722;
        text-align: center;
        box-shadow: 0 16px 34px rgba(255, 157, 37, .20);
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-add span,
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-add strong {
        color: #061722;
        font-weight: 950;
    }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-add strong {
        font-size: 14px;
        line-height: 1;
        letter-spacing: .03em;
        text-transform: uppercase;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-live-card {
        position: relative;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "badge title" "badge desc";
        align-items: center;
        column-gap: 12px;
        row-gap: 3px;
        width: 100%;
        min-height: 66px;
        padding: 12px 14px;
        border: 1px solid rgba(96, 219, 230, .26);
        border-radius: 16px;
        background: linear-gradient(135deg, rgba(2, 42, 55, .94), rgba(5, 70, 82, .82));
        color: #fff;
        text-align: left;
        box-shadow: 0 16px 34px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.05);
        overflow: hidden;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-live-card::after {
        content: "";
        position: absolute;
        inset: -40% -15% auto auto;
        width: 130px;
        height: 130px;
        border-radius: 999px;
        background: rgba(255, 200, 87, .12);
        filter: blur(10px);
        pointer-events: none;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-live-card__badge {
        grid-area: badge;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 78px;
        min-height: 32px;
        padding: 6px 9px;
        border-radius: 999px;
        border: 1px solid rgba(255, 200, 87, .28);
        background: rgba(255, 200, 87, .13);
        color: #ffd47b;
        font-size: 10px;
        font-weight: 950;
        letter-spacing: .08em;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-live-card.is-live .tvm-mobile-live-card__badge::before {
        content: "";
        width: 7px;
        height: 7px;
        margin-right: 7px;
        border-radius: 999px;
        background: #ff4545;
        box-shadow: 0 0 0 5px rgba(255, 69, 69, .16);
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-live-card strong {
        grid-area: title;
        min-width: 0;
        overflow: hidden;
        color: #fff;
        font-size: 15px;
        font-weight: 950;
        line-height: 1.1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-live-card small {
        grid-area: desc;
        display: -webkit-box;
        overflow: hidden;
        color: rgba(225, 249, 252, .78);
        font-size: 12px;
        font-weight: 750;
        line-height: 1.25;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-live-card.is-offline {
        opacity: .82;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-live-card:disabled {
        cursor: default;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-sticky-nav {
        position: fixed;
        left: max(10px, env(safe-area-inset-left));
        right: max(10px, env(safe-area-inset-right));
        bottom: max(10px, env(safe-area-inset-bottom));
        z-index: 40;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        max-width: 420px;
        margin: 0 auto;
        padding: 8px;
        border: 1px solid rgba(107, 224, 234, .26);
        border-radius: 18px;
        background: rgba(1, 22, 32, .92);
        box-shadow: 0 18px 44px rgba(0, 0, 0, .44), inset 0 1px 0 rgba(255,255,255,.05);
        backdrop-filter: blur(14px);
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-sticky-nav button {
        display: grid;
        place-items: center;
        gap: 2px;
        min-height: 46px;
        border: 0;
        border-radius: 13px;
        background: rgba(5, 58, 72, .72);
        color: #fff;
        font-weight: 900;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-sticky-nav button:disabled {
        opacity: .45;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-sticky-nav span {
        color: #72dbe5;
        font-size: 16px;
        line-height: 1;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-sticky-nav strong {
        color: #fff;
        font-size: 10px;
        line-height: 1;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-materials,
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-recent,
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-footer {
        border: 1px solid rgba(96, 219, 230, .20);
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(3, 42, 55, .82), rgba(1, 25, 35, .92));
        box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
        overflow: hidden;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-materials { padding: 16px 12px; }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-materials h2,
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-recent h2 {
        margin: 0;
        color: #fff;
        font-size: 15px;
        line-height: 1.2;
        font-weight: 950;
        letter-spacing: .02em;
        text-transform: uppercase;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-materials__list {
        display: grid;
        gap: 16px;
        margin-top: 14px;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-material-card {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        min-width: 0;
        padding: 12px;
        border: 1px solid rgba(104, 223, 233, .24);
        border-radius: 20px;
        background: linear-gradient(180deg, rgba(8, 68, 80, .78), rgba(3, 42, 54, .82));
        color: #fff;
        text-align: left;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 14px 28px rgba(0,0,0,.18);
        overflow: hidden;
        transition: transform .16s ease, border-color .16s ease, background .16s ease;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-material-card:hover {
        transform: translateY(-2px);
        border-color: rgba(112, 226, 236, .38);
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-material-card__media {
        position: relative;
        display: block;
        width: 100%;
        min-width: 0;
        overflow: hidden;
        border-radius: 16px;
        background: #061c27;
        aspect-ratio: 16 / 9;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-material-card__media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-material-card__shade {
        position: absolute;
        inset: 45% 0 0;
        background: linear-gradient(180deg, transparent, rgba(0,0,0,.58));
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-material-card__play {
        position: absolute;
        left: 10px;
        bottom: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 999px;
        background: rgba(0, 0, 0, .68);
        color: #fff;
        font-size: 13px;
        line-height: 1;
        box-shadow: 0 8px 18px rgba(0,0,0,.28);
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-material-card__duration {
        position: absolute;
        right: 9px;
        bottom: 9px;
        padding: 4px 7px;
        border-radius: 8px;
        color: #fff;
        background: rgba(0,0,0,.70);
        font-size: 11px;
        font-weight: 850;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-material-card__content {
        display: grid;
        gap: 9px;
        min-width: 0;
        padding: 0 2px 2px;
        overflow: hidden;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-material-card__title {
        display: -webkit-box;
        overflow: hidden;
        color: #fff;
        font-size: 17px;
        line-height: 1.14;
        font-weight: 950;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow-wrap: normal;
        word-break: normal;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-material-card__desc {
        display: -webkit-box;
        overflow: hidden;
        color: rgba(226, 248, 250, .84);
        font-size: 13px;
        line-height: 1.36;
        font-weight: 650;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-material-card__meta {
        color: rgba(188, 224, 229, .84);
        font-size: 12px;
        line-height: 1.2;
        font-weight: 850;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-card__tags {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        max-height: 29px;
        overflow: hidden;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-card__tags i {
        display: inline-flex;
        align-items: center;
        min-height: 23px;
        padding: 3px 8px;
        border-radius: 999px;
        border: 1px solid rgba(94, 220, 229, .22);
        background: rgba(3, 115, 128, .26);
        color: rgba(237, 254, 255, .92);
        font-size: 10.5px;
        font-style: normal;
        font-weight: 800;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-material-card__rating {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        width: 100%;
        min-height: 34px;
        margin-top: 2px;
        padding: 6px 10px;
        border-radius: 12px;
        background: rgba(255, 200, 87, .08);
        border: 1px solid rgba(255, 200, 87, .16);
        color: #ffbd55;
        font-size: 14px;
        line-height: 1;
        font-weight: 950;
        text-align: center;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-material-card__rating span { display: inline-flex; gap: 1px; color: #ffbd55; }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-material-card__rating b { color: #fff5db; font-size: 13px; }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-load-more {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 45px;
        margin-top: 14px;
        border: 1px solid rgba(83, 214, 226, .50);
        border-radius: 12px;
        background: rgba(3, 33, 46, .84);
        color: #fff;
        font-size: 13px;
        font-weight: 950;
        letter-spacing: .04em;
        text-transform: uppercase;
    }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-load-more[hidden] { display: none; }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-empty { margin: 0; color: rgba(229, 248, 250, .78); font-weight: 800; }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-recent { padding: 14px; }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-recent__head {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
    }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-recent__head span {
        color: #73dbe5;
        font-size: 11px;
        font-weight: 850;
        text-transform: uppercase;
        white-space: nowrap;
    }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-recent__wrap { position: relative; overflow: visible; }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-recent__wrap::before,
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-recent__wrap::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 6px;
        z-index: 1;
        width: 28px;
        pointer-events: none;
    }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-recent__wrap::before { left: 0; background: linear-gradient(90deg, rgba(2,31,42,.95), transparent); }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-recent__wrap::after { right: 0; background: linear-gradient(270deg, rgba(2,31,42,.95), transparent); }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-recent__rail {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 138px;
        gap: 10px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        padding: 2px 4px 8px;
        scrollbar-width: none;
    }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-recent__rail::-webkit-scrollbar { display: none; }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-recent-card {
        scroll-snap-align: start;
        display: grid;
        gap: 8px;
        width: 138px;
        min-width: 0;
        padding: 9px;
        border: 1px solid rgba(101, 218, 229, .20);
        border-radius: 14px;
        background: rgba(6, 53, 66, .72);
        color: #fff;
        text-align: left;
        overflow: hidden;
        transition: transform .16s ease, border-color .16s ease;
    }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-recent-card:hover { transform: translateY(-2px); border-color: rgba(112,226,236,.34); }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-recent-card__media { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 16 / 10; background: #061c27; }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-recent-card__media b {
        position: absolute;
        left: 7px;
        bottom: 7px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 23px;
        height: 23px;
        border-radius: 999px;
        background: rgba(0, 0, 0, .65);
        color: #fff;
        font-size: 10px;
    }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-recent-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-recent-card strong {
        display: -webkit-box;
        overflow: hidden;
        color: #fff;
        font-size: 11.5px;
        line-height: 1.2;
        font-weight: 900;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-recent-card em { display: flex; align-items: center; gap: 4px; color: #ffbd55; font-size: 11px; font-style: normal; font-weight: 900; }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-recent-card em i { color: #fff5db; font-style: normal; }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-recent__arrow {
        position: absolute;
        top: 50%;
        z-index: 2;
        transform: translateY(-50%);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border: 1px solid rgba(82, 219, 232, .42);
        border-radius: 999px;
        background: rgba(6, 82, 92, .94);
        color: #fff;
        font-size: 24px;
        font-weight: 900;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .30);
    }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-recent__arrow--prev { left: -7px; }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-recent__arrow--next { right: -7px; }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-footer {
        display: grid;
        place-items: center;
        gap: 5px;
        min-height: auto;
        padding: 16px 12px calc(16px + env(safe-area-inset-bottom));
        color: rgba(232, 250, 252, .88);
        text-align: center;
    }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-footer span { color: rgba(232, 250, 252, .92); font-size: 13px; font-weight: 850; }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-footer small { color: rgba(232, 250, 252, .65); font-size: 11px; font-weight: 650; }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-footer__links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 6px;
    }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-footer__links button {
        min-height: 32px;
        padding: 6px 12px;
        border-radius: 999px;
        border: 1px solid rgba(96, 219, 230, .24);
        background: rgba(5, 48, 61, .70);
        color: #fff;
        font-size: 12px;
        font-weight: 850;
    }

    [data-video-modal] .tvm-video-modal__player,
    [data-live-modal] .tvm-modal__video {
        position: relative;
        overflow: hidden;
        border-radius: 18px;
        border: 1px solid rgba(118, 224, 234, .24);
        background: linear-gradient(145deg, #00141b, #031f2a);
        box-shadow: 0 18px 42px rgba(0,0,0,.34);
    }

    [data-video-modal] .tvm-video-modal__player::before,
    [data-live-modal] .tvm-modal__video::before {
        content: "TV KĘTRZYN";
        position: absolute;
        left: 10px;
        top: 10px;
        z-index: 4;
        padding: 5px 8px;
        border-radius: 999px;
        background: rgba(0, 18, 27, .68);
        color: rgba(255,255,255,.88);
        font-size: 9px;
        font-weight: 950;
        letter-spacing: .08em;
        pointer-events: none;
        backdrop-filter: blur(8px);
    }

    [data-video-modal] .tvm-video-modal__dialog {
        position: relative;
        width: min(calc(100vw - 20px), 440px);
        max-width: calc(100vw - 20px);
        margin-inline: auto;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    [data-video-modal] .tvm-video-modal__video,
    [data-video-modal] .tvm-video-modal__content,
    [data-video-modal] .tvm-video-modal__glass,
    [data-video-modal] .tvm-video-modal__related,
    [data-video-modal] .tvm-video-modal__related-list {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    [data-video-modal] .tvm-video-modal__video {
        padding-top: 0;
        padding-bottom: 14px;
    }

    [data-video-modal] .tvm-video-modal__title {
        display: none;
    }

    [data-video-modal] .tvm-video-modal__mobile-title {
        display: block;
        width: 100%;
        min-width: 0;
        margin: 0 0 12px;
        padding: 0 8px;
        color: #fff;
        font-size: 18px;
        line-height: 1.18;
        font-weight: 950;
        letter-spacing: -.01em;
        text-align: center;
        overflow-wrap: break-word;
    }

    [data-video-modal] .tvm-video-modal__close {
        display: none;
    }

    [data-live-modal] .tvm-modal__close {
        display: none;
    }

    [data-video-modal] .tvm-video-modal__fullscreen {
        position: absolute;
        right: 10px;
        bottom: 10px;
        z-index: 9;
        transform: none;
        min-height: 34px;
        padding: 7px 12px;
        border: 1px solid rgba(118, 224, 234, .42);
        border-radius: 999px;
        background: rgba(0, 0, 0, .72);
        color: #fff;
        font-size: 12px;
        font-weight: 950;
        white-space: nowrap;
        box-shadow: 0 10px 22px rgba(0,0,0,.30);
        backdrop-filter: blur(8px);
    }

    [data-video-modal] .tvm-video-modal__fullscreen[data-fullscreen-state="full"] {
        right: 14px;
        bottom: 14px;
        z-index: 2147483647;
        background: rgba(0, 18, 27, .88);
    }

    [data-video-modal] .tvm-video-modal__player:fullscreen,
    [data-video-modal] .tvm-video-modal__player:-webkit-full-screen {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100vw;
        height: 100vh;
        padding: 4vh 2vw;
        background: #000;
        box-sizing: border-box;
    }

    [data-video-modal] .tvm-video-modal__player:fullscreen iframe,
    [data-video-modal] .tvm-video-modal__player:-webkit-full-screen iframe {
        width: min(100vw, calc(100vh * 1.9));
        height: min(86vh, calc(100vw * .5625));
        max-width: 100vw;
        max-height: 90vh;
        margin: auto;
        border-radius: 14px;
        box-shadow: 0 22px 70px rgba(0,0,0,.58);
    }

    [data-video-modal] .tvm-video-modal__rotate-hint {
        position: fixed;
        left: 50%;
        bottom: calc(78px + env(safe-area-inset-bottom));
        z-index: 2147483647;
        display: none;
        width: min(calc(100vw - 34px), 360px);
        transform: translateX(-50%);
        padding: 12px 14px;
        border: 1px solid rgba(118, 224, 234, .32);
        border-radius: 18px;
        background: rgba(0, 18, 27, .84);
        color: #fff;
        font-size: 13px;
        line-height: 1.28;
        font-weight: 900;
        text-align: center;
        box-shadow: 0 18px 44px rgba(0,0,0,.42);
        backdrop-filter: blur(12px);
        pointer-events: none;
    }

    [data-video-modal] .tvm-video-modal__rotate-hint.is-visible {
        display: block;
        animation: tvmRotateHintIn .22s ease both;
    }

    @keyframes tvmRotateHintIn {
        from { opacity: 0; transform: translate(-50%, 10px); }
        to { opacity: 1; transform: translate(-50%, 0); }
    }

    [data-video-modal] .tvm-video-modal__nav,
    .tvm-video-hub .tvm-modal__nav {
        position: absolute;
        top: 50%;
        z-index: 12;
        transform: translateY(-50%);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        min-width: 42px;
        height: 58px;
        padding: 0;
        border-radius: 999px;
        font-size: 0;
        background: rgba(0, 18, 27, .74);
        color: #fff;
        border: 1px solid rgba(118, 224, 234, .38);
        box-shadow: 0 14px 30px rgba(0,0,0,.34);
        backdrop-filter: blur(9px);
        transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
    }

    [data-video-modal] .tvm-video-modal__nav--prev,
    .tvm-video-hub .tvm-modal__nav--prev { left: 8px; }
    [data-video-modal] .tvm-video-modal__nav--next,
    .tvm-video-hub .tvm-modal__nav--next { right: 8px; }

    [data-video-modal] .tvm-video-modal__nav:hover,
    [data-video-modal] .tvm-video-modal__nav:focus-visible,
    .tvm-video-hub .tvm-modal__nav:hover,
    .tvm-video-hub .tvm-modal__nav:focus-visible {
        transform: translateY(calc(-50% - 3px));
        background: rgba(6, 82, 92, .94);
        border-color: rgba(255, 200, 87, .56);
        box-shadow: 0 18px 36px rgba(0,0,0,.40);
    }

    [data-video-modal] .tvm-video-modal__nav--prev::after,
    .tvm-video-hub .tvm-modal__nav--prev::after {
        content: "‹";
        font-size: 34px;
        line-height: 1;
        font-weight: 950;
    }
    [data-video-modal] .tvm-video-modal__nav--next::after,
    .tvm-video-hub .tvm-modal__nav--next::after {
        content: "›";
        font-size: 34px;
        line-height: 1;
        font-weight: 950;
    }

    [data-video-modal] .tvm-video-modal__nav span,
    .tvm-video-hub .tvm-modal__nav span { display: none; }

    [data-video-modal] .tvm-video-rating__stars,
    [data-video-modal] [data-rating-stars] {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        flex-wrap: nowrap;
    }

    [data-video-modal] .tvm-video-modal__star {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border: 1px solid rgba(255, 200, 87, .18);
        border-radius: 999px;
        background: rgba(255, 200, 87, .07);
        color: rgba(255, 210, 122, .46);
        transition: transform .14s ease, background .14s ease, color .14s ease, border-color .14s ease;
    }

    [data-video-modal] .tvm-video-modal__star:hover,
    [data-video-modal] .tvm-video-modal__star.is-hovered {
        transform: translateY(-2px);
        color: #ffd27a;
        border-color: rgba(255, 200, 87, .40);
    }

    [data-video-modal] .tvm-video-modal__star.is-selected,
    [data-video-modal] .tvm-video-modal__star.is-voted,
    [data-video-modal] .tvm-video-modal__star[aria-pressed="true"] {
        color: #ffc857;
        background: rgba(255, 200, 87, .16);
        border-color: rgba(255, 200, 87, .48);
        box-shadow: 0 0 0 3px rgba(255, 200, 87, .08);
    }

    [data-video-modal] .tvm-video-modal__related-list {
        display: grid;
        gap: 10px;
        overflow-x: hidden;
    }

    [data-video-modal] .tvm-video-modal__related-list > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    [data-video-modal] .tvm-video-modal__sticky-closebar,
    [data-live-modal] .tvm-video-modal__sticky-closebar {
        position: sticky;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 18;
        display: flex;
        justify-content: stretch;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        margin: 12px -12px -12px;
        background: linear-gradient(180deg, rgba(0, 20, 27, 0), rgba(0, 20, 27, .94) 42%);
        pointer-events: none;
    }

    [data-video-modal] .tvm-video-modal__sticky-closebar button,
    [data-live-modal] .tvm-video-modal__sticky-closebar button {
        pointer-events: auto;
        width: 100%;
        min-height: 48px;
        border: 1px solid rgba(118, 224, 234, .30);
        border-radius: 17px;
        background: rgba(255, 255, 255, .08);
        color: #fff;
        font-size: 13px;
        font-weight: 950;
        letter-spacing: .01em;
        box-shadow: 0 14px 30px rgba(0,0,0,.30);
        backdrop-filter: blur(12px);
    }

    [data-video-modal] .tvm-video-modal__sticky-closebar button:active,
    [data-live-modal] .tvm-video-modal__sticky-closebar button:active {
        transform: scale(.99);
    }

}

@media (max-width: 370px) {
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-header {
        grid-template-columns: 70px minmax(0, 1fr) 50px;
        gap: 7px;
        padding: 10px;
    }

    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-header__brand strong { font-size: 24px; }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-header__round-logo { width: 48px; height: 48px; }
    .tvm-video-hub.is-mobile-rebuild .tvm-mobile-menu__toggle strong { font-size: 11px; }
}

/* Video Hub Core 1.1.61 — mobile modal top space correction */
@media (max-width: 760px) {
    [data-video-modal]:not([hidden]) {
        align-items: start;
        place-items: start center;
        padding-top: max(6px, env(safe-area-inset-top));
        padding-bottom: 0;
    }

    [data-video-modal] .tvm-video-modal__dialog {
        margin-top: 0;
    }

    [data-video-modal] .tvm-video-modal__video {
        padding-top: 8px;
    }

    [data-video-modal] .tvm-video-modal__mobile-title {
        margin: 0 0 10px;
        padding: 6px 10px 2px;
        min-height: 54px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
