/* ===== ConnectPro Footer ===== */
.cpf-site-footer {
    width: 100%;
    background: var(--cpf-bg, rgba(255,255,255,0.65));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--cpf-text, #3a3550);
    padding: var(--cpf-padding-top, 36px) 20px var(--cpf-padding-bottom, 24px);
    margin-top: 40px;
    box-sizing: border-box;
    border-top: 1px solid rgba(150,130,180,0.15);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cpf-footer-inner {
    max-width: var(--cpf-content-width, 1100px);
    margin: 0 auto;
    text-align: center;
}

.cpf-footer-title {
    margin: 0 0 22px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.6px;
    background: linear-gradient(90deg,
        var(--cpf-accent-1, #b06ab3) 0%,
        var(--cpf-accent-2, #4568dc) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.cpf-footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px 32px;
    margin-bottom: 20px;
}

.cpf-footer-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--cpf-text, #3a3550);
    text-decoration: none;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(150,130,180,0.18);
    border-radius: 50px;
    transition: transform .25s ease, box-shadow .25s ease,
                background .25s ease, color .25s ease;
}

.cpf-footer-item:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg,
        var(--cpf-accent-1, #b06ab3) 0%,
        var(--cpf-accent-2, #4568dc) 100%);
    color: #fff;
    box-shadow: 0 10px 22px rgba(69,104,220,0.35);
}

.cpf-footer-icon {
    font-size: 17px;
    line-height: 1;
    display: inline-block;
    transition: transform .3s ease;
}

.cpf-footer-item:hover .cpf-footer-icon {
    transform: scale(1.2) rotate(-8deg);
}

.cpf-footer-copy {
    font-size: 12.5px;
    opacity: .7;
    letter-spacing: .3px;
    padding-top: 16px;
    border-top: 1px solid rgba(150,130,180,0.15);
    margin-top: 8px;
}

/* ===== LEGAL LINKS ===== */
.cpf-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 14px;
    margin: 16px 0 4px;
    font-size: 13px;
}

.cpf-legal-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cpf-text, #3a3550);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(150,130,180,0.15);
    transition: all .25s ease;
    opacity: 0.85;
}

.cpf-legal-link:hover {
    opacity: 1;
    color: #fff;
    background: linear-gradient(135deg,
        var(--cpf-accent-1, #b06ab3) 0%,
        var(--cpf-accent-2, #4568dc) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(69,104,220,0.3);
}

.cpf-legal-icon {
    font-size: 13px;
    line-height: 1;
}

.cpf-legal-sep {
    opacity: 0.35;
    font-size: 12px;
}

/* ===== QR KOD ===== */
.cpf-qr-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 18px auto 12px;
}

.cpf-qr-label {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    opacity: 0.75;
}

.cpf-qr-link {
    display: inline-flex;
    padding: 10px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(150,130,180,0.25);
    box-shadow: 0 6px 18px rgba(69,104,220,0.12);
    transition: transform .25s ease, box-shadow .25s ease;
}

.cpf-qr-link:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 26px rgba(69,104,220,0.28);
}

.cpf-qr-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 6px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .cpf-site-footer { padding: var(--cpf-mobile-padding-top, 26px) 16px var(--cpf-mobile-padding-bottom, 18px); }
    .cpf-footer-info { gap: 12px; flex-direction: column; }
    .cpf-footer-item {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        font-size: 13.5px;
        padding: 10px 14px;
    }
    .cpf-footer-title { font-size: 15px; margin-bottom: 16px; }
    .cpf-footer-copy { font-size: 11.5px; }

    .cpf-legal-links {
        flex-direction: column;
        gap: 8px;
        font-size: 12.5px;
    }
    .cpf-legal-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    .cpf-legal-sep { display: none; }

    .cpf-qr-block { margin: 14px auto 10px; }
    .cpf-qr-link { padding: 8px; }
}

/* ===== Connect Pro TV between page content and footer ===== */
.cpf-tv-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 42px 20px 48px;
    margin: 0 auto;
}

.cpf-tv-stage[hidden],
body.yd-portal-checkout-page:not(.yd-portal-checkout-locked) .cpf-tv-stage {
    display: none !important;
}

.cpf-tv {
    width: min(920px, 100%);
    padding: 11px 11px 0;
    box-sizing: border-box;
    border: 1px solid #303036;
    border-radius: 19px 19px 13px 13px;
    background: linear-gradient(145deg, #26262b, #09090b 65%);
    box-shadow: 0 20px 42px rgba(0,0,0,.28), 0 4px 10px rgba(0,0,0,.16);
}

.cpf-tv-screen {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 7px 7px 2px 2px;
    background: #100c0f;
    line-height: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.cpf-tv-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cpf-tv-chin {
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpf-tv-power-led {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #bc1b2d;
    box-shadow: 0 0 7px rgba(230,43,65,.65);
}

.cpf-tv-stand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -1px;
}

.cpf-tv-neck {
    width: 72px;
    height: 27px;
    background: linear-gradient(90deg, #17171b, #323238 50%, #17171b);
    clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}

.cpf-tv-base {
    width: min(210px, 34vw);
    height: 10px;
    border-radius: 50% 50% 4px 4px;
    background: linear-gradient(180deg, #34343a, #101013);
    box-shadow: 0 8px 12px rgba(0,0,0,.18);
}

@media (max-width: 600px) {
    .cpf-tv-stage { padding: 30px 16px 36px; }
    .cpf-tv { padding: 6px 6px 0; border-radius: 12px 12px 9px 9px; }
    .cpf-tv-chin { height: 13px; }
    .cpf-tv-neck { width: 54px; height: 20px; }
    .cpf-tv-base { height: 8px; }
}

/* ===== Modern ambient TV screen effect ===== */
.cpf-tv-stage {
    position: relative;
    isolation: isolate;
    perspective: 1100px;
}

.cpf-tv-stage::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(940px, 82vw);
    aspect-ratio: 1.7 / 1;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(195, 35, 66, .27) 0%, rgba(107, 63, 170, .18) 42%, rgba(34, 113, 206, .10) 63%, transparent 76%);
    filter: blur(44px);
    opacity: .78;
    pointer-events: none;
}

.cpf-tv {
    position: relative;
    transform: translateZ(0);
    transition: transform .55s cubic-bezier(.2, .75, .25, 1), box-shadow .55s ease;
}

.cpf-tv-screen {
    position: relative;
}

.cpf-tv-screen::after { display: none; }

@media (hover: hover) and (pointer: fine) {
    .cpf-tv:hover {
        transform: translateY(-6px) rotateX(1.5deg) scale(1.008);
        box-shadow: 0 28px 56px rgba(0,0,0,.32), 0 0 28px rgba(177, 54, 112, .12);
    }
}

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


/* ===== Interactive hover labels for the TV screen tiles ===== */
.cpf-tv-hotspots {
    position: absolute;
    z-index: 2;
    inset: 0;
}

.cpf-tv-cursor-remote {
    position: absolute;
    z-index: 4;
    top: 0;
    left: 0;
    display: block;
    width: 28px;
    height: 64px;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.48);
    border-radius: 12px;
    background: linear-gradient(145deg, #3b3b45, #111116 72%);
    box-shadow: 0 6px 15px rgba(0,0,0,.56), inset 0 1px 1px rgba(255,255,255,.22), 0 0 9px rgba(107,195,255,.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(10px, 8px) rotate(-12deg) scale(.82);
    transform-origin: top left;
    transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}

.cpf-tv-screen.cpf-tv-cursor-active .cpf-tv-cursor-remote {
    opacity: 1;
    visibility: visible;
    transform: translate(10px, 8px) rotate(-12deg) scale(1);
    transition-delay: 0s;
}

.cpf-tv-remote-power {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ff5265;
    box-shadow: 0 0 6px rgba(255,82,101,.9);
    transform: translateX(-50%);
}

.cpf-tv-remote-pad {
    position: absolute;
    top: 17px;
    left: 50%;
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    background: linear-gradient(145deg, #24242b, #09090c);
    transform: translateX(-50%);
}

.cpf-tv-remote-pad::before,
.cpf-tv-remote-pad::after {
    content: "";
    position: absolute;
    background: rgba(240,245,255,.55);
    border-radius: 2px;
}

.cpf-tv-remote-pad::before { width: 9px; height: 2px; }
.cpf-tv-remote-pad::after { width: 2px; height: 9px; }

.cpf-tv-remote-pad > span {
    z-index: 1;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 4px rgba(255,255,255,.75);
}

.cpf-tv-remote-buttons {
    position: absolute;
    bottom: 7px;
    left: 50%;
    display: flex;
    gap: 3px;
    transform: translateX(-50%);
}

.cpf-tv-remote-buttons i {
    display: block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #f34858;
    box-shadow: 0 0 3px currentColor;
}

.cpf-tv-remote-buttons i:nth-child(2) { background: #53d98a; }
.cpf-tv-remote-buttons i:nth-child(3) { background: #ffd34e; }
.cpf-tv-remote-buttons i:nth-child(4) { background: #4a9dff; }

.cpf-tv-hotspot {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 0;
    border-radius: 1.8%;
    color: #fff;
    cursor: pointer;
    transition: background .22s ease, box-shadow .22s ease, transform .22s ease;
}

.cpf-tv-hotspot--live { left: 2.58%; top: 25.55%; width: 31.4%; height: 52%; }
.cpf-tv-hotspot--movies { left: 35.4%; top: 26.5%; width: 16.1%; height: 22.5%; }
.cpf-tv-hotspot--series { left: 52.6%; top: 26.5%; width: 16%; height: 22.5%; }
.cpf-tv-hotspot--account { left: 35.4%; top: 51%; width: 16.1%; height: 22.6%; }
.cpf-tv-hotspot--playlist { left: 52.6%; top: 51%; width: 16%; height: 22.6%; }
.cpf-tv-hotspot--settings { left: 70%; top: 26.5%; width: 27.5%; height: 15.4%; }
.cpf-tv-hotspot--reload { left: 70%; top: 43.75%; width: 27.5%; height: 15.3%; }
.cpf-tv-hotspot--exit { left: 70%; top: 61%; width: 27.5%; height: 15.4%; }

.cpf-tv-cta {
    display: flex;
    align-items: center;
    gap: 9px;
    max-width: calc(100% - 8px);
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.48);
    border-radius: 999px;
    background: rgba(12, 10, 15, .84);
    color: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,.35), 0 0 16px rgba(210,39,70,.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(7px) scale(.94);
    transition: opacity .22s ease, transform .22s ease;
    white-space: nowrap;
    pointer-events: none;
}

.cpf-tv-cta-copy {
    display: grid;
    gap: 2px;
    text-align: left;
}

.cpf-tv-cta-copy strong {
    font: 700 clamp(8px, .88vw, 12px)/1.1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: .01em;
}

.cpf-tv-cta-copy small {
    font: 500 clamp(7px, .68vw, 9px)/1.1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    opacity: .72;
}

.cpf-tv-cta-arrow {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.13);
    font: 700 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (hover: hover) and (pointer: fine) {
    .cpf-tv-hotspot:hover {
        z-index: 3;
        background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(174,25,49,.29));
        box-shadow: inset 0 0 0 2px rgba(255,255,255,.88), 0 0 22px rgba(210,39,70,.18);
    }

    .cpf-tv-hotspot:hover .cpf-tv-cta {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cpf-tv-hotspot,
    .cpf-tv-cta,
    .cpf-tv-cursor-remote { transition: none; }
}


/* ===== 360-degree moon orbit around the TV ===== */
.cpf-tv-orbit-system {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(920px, 100%);
}

.cpf-tv-orbit,
.cpf-tv-orbit-front {
    position: absolute;
    left: 50%;
    top: 47%;
    width: min(calc(100% + 84px), calc(100vw - 24px));
    aspect-ratio: 1.55 / 1;
    box-sizing: border-box;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(18deg);
    pointer-events: none;
}

.cpf-tv-orbit {
    z-index: 0;
    border: 1px solid rgba(183, 202, 237, .22);
    box-shadow: 0 0 16px rgba(111, 156, 230, .08), inset 0 0 12px rgba(111, 156, 230, .035);
}

.cpf-tv-orbit-system > .cpf-tv { z-index: 1; }

.cpf-tv-orbit-front { z-index: 3; }

.cpf-tv-logo-orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: cpf-tv-logo-revolution 18s linear infinite;
}

.cpf-tv-orbit-logo {
    position: absolute;
    left: 50%;
    top: 0;
    display: block;
    width: clamp(38px, 4.2vw, 54px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
}

.cpf-tv-orbit-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: cpf-tv-orb-counter-rotation 18s linear infinite;
}

@keyframes cpf-tv-logo-revolution {
    from { transform: rotate(0turn); }
    to { transform: rotate(1turn); }
}

@keyframes cpf-tv-orb-counter-rotation {
    from { transform: rotate(0turn); }
    to { transform: rotate(-1turn); }
}

@media (max-width: 600px) {
    .cpf-tv-orbit,
    .cpf-tv-orbit-front {
        width: min(calc(100% + 32px), calc(100vw - 8px));
        aspect-ratio: 1.35 / 1;
        top: 46%;
    }
    .cpf-tv-orbit-logo { width: clamp(34px, 8vw, 42px); }
}

@media (prefers-reduced-motion: reduce) {
    .cpf-tv-logo-orbit,
    .cpf-tv-orbit-logo img { animation: none !important; }
}

/* User guide shortcut at the TV screen's lower-right corner. */
.cpf-tv-guide-link {
    position: absolute;
    z-index: 6;
    right: 18px;
    bottom: 25px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 15px;
    background: linear-gradient(145deg, #8b50c8, #56327a);
    box-shadow: 0 8px 20px rgba(15,8,24,.42), 0 0 0 3px rgba(255,255,255,.13);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.cpf-tv-guide-link svg {
    display: block;
    width: 27px;
    height: 27px;
}

.cpf-tv-guide-link:hover,
.cpf-tv-guide-link:focus-visible {
    transform: translateY(-3px) scale(1.05);
    filter: brightness(1.12);
    color: #fff;
    box-shadow: 0 11px 24px rgba(15,8,24,.48), 0 0 0 4px rgba(255,255,255,.24);
}

.cpf-tv-guide-link:focus-visible {
    outline: 3px solid #f2d8ff;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .cpf-tv-guide-link {
        right: 12px;
        bottom: 18px;
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
    .cpf-tv-guide-link svg { width: 23px; height: 23px; }
}

@media (prefers-reduced-motion: reduce) {
    .cpf-tv-guide-link { transition: none; }
}
