/* ========================= */
/* Promo Bubble Zone         */
/* ========================= */

.promo-img-wrap {
    position: relative;
    overflow: hidden;
}

.promo-bubble-zone {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 28%;
    pointer-events: none;
    overflow: hidden;
}

.promo-bubble {
    position: absolute;
    width: 210px;
    padding: 8px 12px;

    background: rgba(255, 255, 255, 0.94);
    border-radius: 16px;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.22),
        0 0 8px rgba(255, 255, 255, 0.95),
        0 0 8px rgba(255, 80, 100, 0.25),
        inset 0 0 5px rgba(255, 255, 255, 0.85);

    white-space: normal;
    word-break: break-word;
    line-height: 1.28;
    color: #3a1f26;
    font-size: 15px;
    font-weight: 800;
    text-align: center;

    backdrop-filter: blur(4px);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;

    animation-play-state: paused;
}

/* ========================= */
/* Main Floating Bubbles     */
/* ========================= */

.promo-bubble.bubble-cn:not(.promo-deadline) {
    animation: bubbleFloatCN 15s infinite alternate ease-in-out;
}

.promo-bubble.bubble-en:not(.promo-deadline) {
    animation: bubbleFloatEN 23s infinite alternate ease-in-out;
}

.promo-bubble.bubble-date {
    width: auto;
    min-width: 170px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    background: rgba(255, 248, 250, 0.94);
    color: #b0002a;
    animation: bubbleFloatDate 18s infinite alternate ease-in-out;
}

@keyframes bubbleFloatCN {
    0%   { top: 30%; left: 30%; }
    25%  { top: 42%; left: 68%; }
    50%  { top: 58%; left: 50%; }
    75%  { top: 68%; left: 32%; }
    100% { top: 38%; left: 72%; }
}

@keyframes bubbleFloatEN {
    0%   { top: 66%; left: 35%; }
    25%  { top: 48%; left: 65%; }
    50%  { top: 26%; left: 48%; }
    75%  { top: 60%; left: 25%; }
    100% { top: 35%; left: 70%; }
}

@keyframes bubbleFloatDate {
    0%   { top: 20%; left: 50%; }
    50%  { top: 28%; left: 58%; }
    100% { top: 22%; left: 45%; }
}

/* ========================= */
/* Parents' Day Heart Fall   */
/* Fresh Red Bigger Version  */
/* ========================= */

#parents-day-floating {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;

    pointer-events: none;
    overflow: hidden;

    z-index: 999;
}

.parents-floating-item {
    position: absolute;
    top: -36px;

    color: #e60033;
    line-height: 1;
    font-weight: 900;

    animation-name: heartFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;

    opacity: 0.68;

    text-shadow:
        0 0 2px rgba(255, 255, 255, 1),
        0 0 5px rgba(255, 255, 255, 0.75),
        0 1px 3px rgba(120, 0, 30, 0.32);

    filter: drop-shadow(0 1px 2px rgba(120, 0, 30, 0.28));

    will-change: transform, opacity;
}

body:not(.dark) .parents-floating-item {
    color: #e60033;
    opacity: 0.68;
}

body.dark .parents-floating-item {
    color: #ff4d6d;
    opacity: 0.78;
}

@keyframes heartFall {
    0% {
        transform: translate3d(0, -36px, 0) rotate(0deg) scale(0.9);
        opacity: 0;
    }

    10% {
        opacity: 0.62;
    }

    45% {
        transform: translate3d(38px, 45vh, 0) rotate(120deg) scale(1.08);
        opacity: 0.72;
    }

    75% {
        transform: translate3d(-28px, 75vh, 0) rotate(220deg) scale(1);
        opacity: 0.58;
    }

    100% {
        transform: translate3d(24px, 110vh, 0) rotate(320deg) scale(0.9);
        opacity: 0;
    }
}

/* ========================= */
/* Floating Promo Button     */
/* ========================= */

#promo-btn {
    position: fixed !important;
    bottom: 10px !important;

    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: fit-content !important;

    background: linear-gradient(135deg, #e60033, #ff5f7e);
    color: #fff;

    padding: 7px 22px;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.25;
    text-align: center;

    border-radius: 50px;
    white-space: nowrap;
    cursor: pointer;

    z-index: 9999999 !important;

    box-shadow:
        0 0 10px rgba(230, 0, 51, 0.58),
        0 0 18px rgba(255, 120, 145, 0.58);

    animation: parentPromoFlash 1.35s infinite alternate ease-in-out;
}

@keyframes parentPromoFlash {
    0% {
        transform: scale(1);
        box-shadow:
            0 0 10px rgba(230, 0, 51, 0.58),
            0 0 16px rgba(255, 120, 145, 0.48);
    }

    100% {
        transform: scale(1.08);
        box-shadow:
            0 0 16px rgba(230, 0, 51, 0.88),
            0 0 28px rgba(255, 120, 145, 0.78);
    }
}

/* ========================= */
/* Promo Modal               */
/* ========================= */

#promo-modal {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 99999;
}

#promo-modal.hidden {
    display: none;
}

.promo-modal-content {
    position: relative;

    background: transparent;
    border-radius: 12px;
    padding: 0;

    width: 95vw;
    max-width: 95vw;
    height: auto;
    max-height: 95vh;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    animation: popup 0.25s ease;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes popup {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.promo-top-buttons {
    position: absolute;
    top: 8px;
    right: 8px;

    display: flex;
    gap: 10px;

    z-index: 20;
}

#promo-mode-btn {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;

    border: none;
    padding: 6px 10px;

    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
}

.promo-close {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;

    padding: 6px 11px;
    border-radius: 50%;

    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.promo-modal-content img {
    display: block;

    max-width: 100%;
    max-height: 95vh;

    width: auto;
    height: auto;

    object-fit: contain;
    position: relative;
    z-index: 2;
}

.promo-modal-content::before {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#promo-img.full-height {
    height: 95vh;
    max-height: 95vh;
    width: auto;
    object-fit: contain;
}

#promo-img.full-cover {
    width: 100%;
    height: 95vh;
    max-height: 95vh;
    object-fit: cover;
}

/* ========================= */
/* Mobile                    */
/* ========================= */

@media (max-width: 480px) {
    #promo-btn {
        padding: 9px 16px;
        font-size: 14px;
        bottom: 15px !important;
    }

    #promo-mode-btn {
        font-size: 11px;
        padding: 5px 8px;
    }

    .promo-close {
        font-size: 18px;
        padding: 5px 10px;
    }

    .promo-modal-content {
        width: 98vw;
        max-width: 98vw;
        border-radius: 10px;
    }

    .promo-bubble {
        width: 170px;
        font-size: 13px;
        padding: 7px 10px;
    }

    .promo-bubble.bubble-date {
        min-width: 150px;
        font-size: 12px;
        padding: 7px 12px;
    }

    .parents-floating-item {
        font-size: 16px !important;
    }
}












/* ========================= */
/* Promo Bubble Zone - FULL AREA SAFE FLOAT */
/* ========================= */

.promo-img-wrap {
    position: relative;
    overflow: hidden;
}

.promo-bubble-zone {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    pointer-events: none;
    overflow: hidden;
    z-index: 8;
}

/* Base bubble */
.promo-bubble {
    position: absolute;

    width: 190px;
    max-width: 42%;

    padding: 9px 14px;

    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.22),
        0 0 12px rgba(255, 255, 255, 0.95),
        0 0 14px rgba(230, 0, 51, 0.18);

    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
    color: #3a1f26;
    font-size: 15px;
    font-weight: 800;
    text-align: center;

    backdrop-filter: blur(5px);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;

    animation-play-state: paused;
}

/* Date bubble */
.promo-bubble.bubble-date {
    width: auto;
    min-width: 180px;
    max-width: 42%;

    padding: 10px 22px;

    font-size: 16px;
    color: #b0002a;
    background: rgba(255, 248, 250, 0.96);

    animation: bubbleFloatDate 18s infinite alternate ease-in-out;
}

/* CN bubble */
.promo-bubble.bubble-cn {
    animation: bubbleFloatCN 16s infinite alternate ease-in-out;
}

/* EN bubble */
.promo-bubble.bubble-en {
    animation: bubbleFloatEN 22s infinite alternate ease-in-out;
}

/* IMPORTANT:
   left values kept between 32% and 68%
   so bubbles do not get clipped at poster sides.
*/
@keyframes bubbleFloatCN {
    0%   { top: 24%; left: 36%; }
    25%  { top: 38%; left: 64%; }
    50%  { top: 54%; left: 52%; }
    75%  { top: 68%; left: 38%; }
    100% { top: 42%; left: 66%; }
}

@keyframes bubbleFloatEN {
    0%   { top: 36%; left: 38%; }
    25%  { top: 58%; left: 64%; }
    50%  { top: 72%; left: 50%; }
    75%  { top: 48%; left: 36%; }
    100% { top: 62%; left: 66%; }
}

@keyframes bubbleFloatDate {
    0%   { top: 18%; left: 50%; }
    35%  { top: 26%; left: 62%; }
    70%  { top: 34%; left: 40%; }
    100% { top: 22%; left: 55%; }
}

/* ========================= */
/* Mobile                    */
/* ========================= */

@media (max-width: 480px) {
    .promo-bubble {
        width: 160px;
        max-width: 70%;
        font-size: 13px;
        padding: 8px 12px;
    }

    .promo-bubble.bubble-date {
        min-width: 155px;
        max-width: 75%;
        font-size: 13px;
        padding: 9px 14px;
    }

    @keyframes bubbleFloatCN {
        0%   { top: 24%; left: 50%; }
        50%  { top: 48%; left: 50%; }
        100% { top: 34%; left: 50%; }
    }

    @keyframes bubbleFloatEN {
        0%   { top: 58%; left: 50%; }
        50%  { top: 72%; left: 50%; }
        100% { top: 62%; left: 50%; }
    }

    @keyframes bubbleFloatDate {
        0%   { top: 16%; left: 50%; }
        50%  { top: 25%; left: 50%; }
        100% { top: 20%; left: 50%; }
    }
}