body {
    margin: 0;
    font-family: 'Arial', sans-serif;
}

.screen-lock {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}

/* Keep announcement visible above Video.js / native fullscreen layers */
.screen-lock.screen-lock--in-player,
:fullscreen .screen-lock,
:-webkit-full-screen .screen-lock,
.vjs-fullscreen .screen-lock,
.video-js.vjs-fullscreen .screen-lock {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483647;
}

.lock-message {
    text-align: center;
    color: #000;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    font-weight: 500;
    position: relative;
    font-size: 16px;
    line-height: 1.4;
    min-width: 280px;
    max-width: 90vw;
}

/* Flight phase neon borders — SVG stroke aligned to message box edge */
.lock-message.lock-message--phase {
    z-index: 0;
    isolation: isolate;
    border: none;
    border-radius: 14px;
    padding: 0;
    overflow: visible;
    background: transparent;
    transform: translateZ(0);
    box-shadow: none;
}

.lock-message-border-glow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.lock-message-border-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.lock-message-inner {
    position: relative;
    z-index: 1;
    margin: 4px;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    min-width: calc(280px - 8px);
    max-width: calc(90vw - 8px);
    text-align: center;
}

.lock-message-border-track,
.lock-message-border-trail,
.lock-message-border-light {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    shape-rendering: geometricPrecision;
}

/* Dim static frame */
.lock-message-border-track {
    stroke: var(--neon-base-ring);
    stroke-width: 3px;
    opacity: 0.5;
}

/* Soft comet tail */
.lock-message-border-trail {
    stroke: var(--neon-trail-mid);
    stroke-width: 7px;
    stroke-dasharray: 58 42;
    opacity: 0.7;
    filter: blur(1.4px);
    will-change: stroke-dashoffset;
    animation: lock-message-border-travel 4.8s linear infinite;
}

/* Bright leading spark */
.lock-message-border-light {
    stroke: var(--neon-core);
    stroke-width: 3.5px;
    stroke-dasharray: 12 88;
    will-change: stroke-dashoffset;
    filter:
        drop-shadow(0 0 3px var(--neon-hotspot))
        drop-shadow(0 0 7px var(--neon-core))
        drop-shadow(0 0 16px var(--neon-glow));
    animation: lock-message-border-travel 4.8s linear infinite;
}

@keyframes lock-message-border-travel {
    0% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -100;
    }
}

/* Taxi — blue */
.lock-message.lock-message--taxi {
    --neon-trail-mid: rgba(0, 214, 255, 0.72);
    --neon-core: #00d8ff;
    --neon-hotspot: #ffffff;
    --neon-base-ring: rgba(0, 170, 255, 0.34);
    --neon-glow: rgba(0, 190, 255, 0.95);
    box-shadow:
        0 0 28px rgba(0, 180, 255, 0.18),
        0 8px 32px rgba(0, 0, 0, 0.18);
}

/* Climb — green */
.lock-message.lock-message--climb {
    --neon-trail-mid: rgba(72, 255, 168, 0.72);
    --neon-core: #00ff88;
    --neon-hotspot: #ffffff;
    --neon-base-ring: rgba(0, 220, 120, 0.34);
    --neon-glow: rgba(0, 255, 136, 0.95);
    box-shadow:
        0 0 28px rgba(0, 255, 136, 0.18),
        0 8px 32px rgba(0, 0, 0, 0.18);
}

/* Descent — red */
.lock-message.lock-message--descent {
    --neon-trail-mid: rgba(255, 95, 110, 0.72);
    --neon-core: #ff3b4f;
    --neon-hotspot: #ffffff;
    --neon-base-ring: rgba(255, 59, 79, 0.34);
    --neon-glow: rgba(255, 59, 79, 0.95);
    box-shadow:
        0 0 28px rgba(255, 59, 79, 0.18),
        0 8px 32px rgba(0, 0, 0, 0.18);
}

@media (prefers-reduced-motion: reduce) {
    .lock-message-border-trail,
    .lock-message-border-light {
        animation: none;
        stroke-dasharray: none;
        stroke-dashoffset: 0;
        opacity: 1;
        filter: none;
    }

    .lock-message-border-light {
        stroke: var(--neon-core);
        stroke-width: 3px;
    }
}

.lock-message.lock-message--phase > *:not(.lock-message-border-glow) {
    position: relative;
    z-index: 1;
}

/* Override Video.js fullscreen styles when announcement is mounted inside the player (Android) */
.video-js .screen-lock .lock-message,
.vjs-fullscreen .screen-lock .lock-message,
.screen-lock.screen-lock--in-player .lock-message {
    color: #000 !important;
    background-color: #fff !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
}

.video-js .screen-lock .lock-message.lock-message--phase,
.vjs-fullscreen .screen-lock .lock-message.lock-message--phase,
.screen-lock.screen-lock--in-player .lock-message.lock-message--phase {
    background: transparent !important;
}

.video-js .screen-lock .lock-message.lock-message--phase .lock-message-inner,
.vjs-fullscreen .screen-lock .lock-message.lock-message--phase .lock-message-inner,
.screen-lock.screen-lock--in-player .lock-message.lock-message--phase .lock-message-inner {
    background: #fff !important;
}

.screen-lock .lock-message #message_text2,
.screen-lock .lock-message #message_text2 .translatable-text {
    display: block !important;
    color: #000 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 10px !important;
}

.screen-lock .lock-message #message_text {
    display: block !important;
    color: #333 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.announcement-login-link {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: inline-block;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: bold;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .announcement-login-link {
        top: 10px;
        right: 10px;
        padding: 10px 20px;
        font-size: 14px;
    }
}
