/* ==========================================================================
   WORLD-TV — Second Player Start + Activation
   Стиль как у первого TVIP-плеера.
   Макет под 1280x720.
========================================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    width: 1280px;
    height: 720px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #050207;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

.wtv-start-page {
    position: relative;
    width: 1280px;
    height: 720px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 45%, rgba(160, 0, 35, 0.20), transparent 35%),
        radial-gradient(circle at 84% 78%, rgba(110, 0, 22, 0.18), transparent 32%),
        linear-gradient(135deg, #050207 0%, #09040a 50%, #030305 100%);
}

/* ==========================================================================
   SPLASH
========================================================================== */

.wtv-splash-wrap {
    position: absolute;
    left: 0;
    top: -22px;
    width: 1280px;
    height: 720px;
    text-align: center;
    z-index: 2;
}

.wtv-splash-image {
    width: 1260px;
    height: 720px;
    margin-top: 22px;
    object-fit: contain;
    display: inline-block;
    animation: wtvSplashBreath 4.2s ease-in-out infinite;
}

.wtv-fallback-logo {
    display: none;
    position: absolute;
    left: 0;
    top: 120px;
    width: 1280px;
    text-align: center;
    animation: wtvSplashBreath 4.2s ease-in-out infinite;
}

.wtv-fallback-name {
    color: #ffffff;
    font-size: 88px;
    line-height: 96px;
    font-weight: 900;
    letter-spacing: -4px;
    text-shadow:
        0 0 28px rgba(255, 18, 83, 0.42),
        0 20px 50px rgba(0, 0, 0, 0.68);
}

.wtv-fallback-sub {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 25px;
    line-height: 32px;
    font-weight: 800;
    letter-spacing: 7px;
}

.wtv-dark-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 1280px;
    height: 720px;
    z-index: 3;
    background:
        radial-gradient(circle at 50% 50%, rgba(130, 0, 32, 0.10) 0%, rgba(0, 0, 0, 0) 42%),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.02) 0%,
            rgba(0, 0, 0, 0.06) 55%,
            rgba(0, 0, 0, 0.34) 100%
        );
    pointer-events: none;
}

/* ==========================================================================
   LOADING
========================================================================== */

.wtv-loading-zone {
    position: absolute;
    left: 50%;
    top: 575px;
    width: 430px;
    height: 104px;
    margin-left: -215px;
    text-align: center;
    z-index: 5;
    opacity: 1;
    transition: opacity 0.28s ease;
}

.wtv-loading-zone.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.wtv-loading-title {
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 24px;
    font-weight: bold;
    letter-spacing: 0.2px;
    text-shadow: 0 0 18px rgba(255, 25, 90, 0.34);
}

.wtv-loading-track {
    width: 430px;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 75, 120, 0.20);
}

.wtv-loading-progress {
    width: 0%;
    height: 8px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            #9d002f 0%,
            #ff155c 42%,
            #ff5c92 72%,
            #ff165e 100%
        );
    box-shadow:
        0 0 14px rgba(255, 35, 100, 0.72),
        0 0 32px rgba(255, 35, 100, 0.34);
    transition: width 0.34s ease;
}

.wtv-loading-text {
    margin-top: 11px;
    min-height: 20px;
    font-size: 15px;
    line-height: 19px;
    color: rgba(235, 235, 245, 0.84);
}

/* ==========================================================================
   ACTIVATION
========================================================================== */

.wtv-activate-box {
    position: absolute;
    left: 50%;
    top: 430px;
    width: 760px;
    height: 228px;
    margin-left: -380px;
    z-index: 10;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition:
        opacity 0.30s ease,
        transform 0.30s ease,
        visibility 0.30s ease;
}

.wtv-activate-box.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wtv-activate-title {
    font-size: 31px;
    line-height: 36px;
    font-weight: bold;
    text-shadow: 0 0 22px rgba(255, 16, 80, 0.32);
}

.wtv-activate-subtitle {
    margin-top: 9px;
    font-size: 18px;
    line-height: 22px;
    color: rgba(242, 242, 248, 0.82);
}

.wtv-code-row {
    width: 540px;
    height: 70px;
    margin: 22px auto 0 auto;
    text-align: center;
}

.wtv-code-cell {
    display: inline-block;
    width: 68px;
    height: 68px;
    margin: 0 8px;
    border-radius: 18px;
    border: 2px solid rgba(255, 89, 131, 0.42);
    background: rgba(11, 5, 13, 0.70);
    box-shadow:
        inset 0 0 16px rgba(255, 0, 72, 0.06),
        0 0 12px rgba(255, 0, 72, 0.10);
    color: rgba(255, 255, 255, 0.78);
    font-size: 34px;
    line-height: 64px;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
}

.wtv-code-cell.is-filled {
    color: #ffffff;
    border-color: rgba(255, 82, 130, 0.92);
    background: rgba(100, 8, 34, 0.72);
    box-shadow:
        inset 0 0 18px rgba(255, 16, 92, 0.16),
        0 0 22px rgba(255, 20, 84, 0.32);
}

.wtv-code-cell.is-error {
    border-color: rgba(255, 70, 70, 0.98);
    box-shadow:
        inset 0 0 18px rgba(255, 0, 0, 0.18),
        0 0 22px rgba(255, 60, 60, 0.42);
}

.wtv-activate-message {
    margin-top: 17px;
    min-height: 22px;
    font-size: 17px;
    line-height: 22px;
    color: rgba(241, 241, 248, 0.84);
}

.wtv-activate-message.is-error {
    color: #ff7d8c;
}

.wtv-activate-message.is-success {
    color: #81ffb0;
}

.wtv-activate-hint {
    margin-top: 8px;
    font-size: 13px;
    line-height: 17px;
    color: rgba(255, 255, 255, 0.42);
}

/* ==========================================================================
   ANIMATION
========================================================================== */

@keyframes wtvSplashBreath {
    0% {
        transform: scale(1);
        opacity: 0.99;
    }

    50% {
        transform: scale(1.003);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.99;
    }
}


/* WORLD-TV MSX start v80 */
html,
body {
    width: 100vw !important;
    height: 100vh !important;
    background: #000 !important;
}

.wtv-start-page {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    margin-left: -640px !important;
    margin-top: -360px !important;
}
