*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    --alp-logo-size: clamp(118px, 18vmin, 210px);
    --alp-logo-top: 28px;
    --alp-logo-gap: 24px;
    --content-top: max(55%, calc(var(--alp-logo-top) + var(--alp-logo-size) + var(--alp-logo-gap) + 185px));
}

body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    cursor: default;
}

body.is-loading .center-content,
body.is-loading .social-links,
body.is-loading .corner-decoration {
    opacity: 0;
}

.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    background:
        radial-gradient(circle at center, rgba(170, 124, 17, 0.22), transparent 38%),
        #000;
    color: #f5d76e;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loading-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-spinner {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid rgba(245, 215, 110, 0.2);
    border-top-color: #f5d76e;
    box-shadow: 0 0 18px rgba(218, 165, 32, 0.45);
    animation: loadingSpin 0.9s linear infinite;
}

.loading-text {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(245, 215, 110, 0.78);
}

@keyframes loadingSpin {
    to {
        transform: rotate(360deg);
    }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: 5;
}

.corner-decoration {
    position: fixed;
    width: 300px;
    height: 300px;
    background: url('corners.png') no-repeat center center;
    background-size: contain;
    z-index: 20;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.8;
}

.top-left {
    top: -50px;
    left: -50px;
}

.top-right {
    top: -50px;
    right: -50px;
    transform: scaleX(-1);
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: #000;
    pointer-events: none;
}

.video-background video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
    pointer-events: none;
}

body.mobile-light .video-background video {
    display: none;
}

body.mobile-light .video-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 42%, rgba(170, 124, 17, 0.32), transparent 38%),
        linear-gradient(145deg, #050403 0%, #151005 48%, #000 100%);
}

body.mobile-light .video-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.center-content {
    position: fixed;
    top: min(var(--content-top), 76%);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.titles-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    margin-bottom: -5px;
}

.title-divider {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 8px 0;
    opacity: 0.6;
}

.main-title {
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 0.15em;
    margin-bottom: 5px;
    text-shadow:
        0 0 15px rgba(218, 165, 32, 0.8),
        0 0 30px rgba(218, 165, 32, 0.5),
        0 0 60px rgba(218, 165, 32, 0.3);
    animation: goldPulse 4s ease-in-out infinite;
}

@keyframes goldPulse {

    0%,
    100% {
        text-shadow: 0 0 15px rgba(218, 165, 32, 0.8), 0 0 30px rgba(218, 165, 32, 0.5);
    }

    50% {
        text-shadow: 0 0 25px rgba(218, 165, 32, 1), 0 0 50px rgba(218, 165, 32, 0.8), 0 0 80px rgba(218, 165, 32, 0.4);
    }
}

.subtitle {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.8vw, 1.3rem);
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    margin-top: 5px;
}

.center-content h1 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.4rem, 3.5vw, 2.8rem);
    color: #ffffff;
    letter-spacing: 0.06em;
    white-space: nowrap;
    opacity: 0.9;
    margin: 10px 0;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.5);
    animation: pulseGlow 3.5s ease-in-out infinite;
}

.countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 1;
}

.countdown-label {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    color: rgba(218, 165, 32, 0.7);
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: clamp(78px, 8vw, 118px);
    min-height: clamp(82px, 8vw, 112px);
    padding: 15px 20px;
    background: linear-gradient(180deg, rgba(218, 165, 32, 0.08) 0%, rgba(218, 165, 32, 0.03) 100%);
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 14px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(218, 165, 32, 0.1);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.countdown-block:hover {
    transform: translateY(-5px);
    border-color: rgba(218, 165, 32, 0.6);
}

.countdown-value {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 600;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    color: #ffffff;
    line-height: 1;
    text-shadow:
        0 0 8px rgba(218, 165, 32, 0.5),
        0 0 20px rgba(218, 165, 32, 0.25);
}

.countdown-unit {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 300;
    font-size: clamp(0.6rem, 1vw, 0.8rem);
    color: rgba(218, 165, 32, 0.6);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 6px;
}

.countdown-separator {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 300;
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    color: rgba(218, 165, 32, 0.35);
    padding-bottom: 20px;
}

@keyframes pulseGlow {

    0%,
    100% {
        text-shadow:
            0 0 10px rgba(255, 255, 255, 0.9),
            0 0 20px rgba(255, 255, 255, 0.7),
            0 0 40px rgba(255, 255, 255, 0.45),
            0 0 80px rgba(255, 255, 255, 0.25),
            0 0 120px rgba(255, 255, 255, 0.12);
    }

    50% {
        text-shadow:
            0 0 15px rgba(255, 255, 255, 1),
            0 0 35px rgba(255, 255, 255, 0.85),
            0 0 65px rgba(255, 255, 255, 0.55),
            0 0 110px rgba(255, 255, 255, 0.35),
            0 0 170px rgba(255, 255, 255, 0.18);
    }
}

.play-button-container {
    position: relative;
    margin-top: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.play-button-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(218, 165, 32, 0.8), rgba(218, 165, 32, 0.2), transparent 70%);
    border-radius: 50%;
    filter: blur(8px);
    animation: pulsePlayGlow 2.5s ease-in-out infinite;
    z-index: 1;
}

.play-button {
    position: relative;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f5d76e, #d4af37, #aa7c11);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    box-shadow:
        0 0 15px rgba(218, 165, 32, 0.6),
        inset 0 0 10px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow:
        0 0 25px rgba(218, 165, 32, 0.8),
        inset 0 0 15px rgba(255, 255, 255, 0.6);
}

.play-button:active {
    transform: scale(0.95);
}

.play-icon {
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid #ffffff;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
}

@keyframes pulsePlayGlow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

.social-links {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    z-index: 50;
    pointer-events: auto;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(218, 165, 32, 0.8);
    text-decoration: none;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.2rem;
    font-style: italic;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    text-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
}

.social-link:hover {
    color: #fff;
    transform: translateY(-3px);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.alpmedya-link {
    position: fixed;
    top: var(--alp-logo-top);
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.35rem;
    color: rgba(245, 215, 110, 0.92);
}

.alpmedya-link:hover {
    transform: translateX(-50%) translateY(-3px);
}

.social-link svg,
.alpmedya-logo {
    filter: drop-shadow(0 0 5px rgba(218, 165, 32, 0.5));
}

.alpmedya-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.alpmedya-link .alpmedya-logo {
    width: var(--alp-logo-size);
    height: var(--alp-logo-size);
}

@media (max-width: 600px) {
    body {
        --alp-logo-size: clamp(150px, 34vmin, 230px);
        --alp-logo-top: 54px;
        --alp-logo-gap: 18px;
        --content-top: calc(var(--alp-logo-top) + var(--alp-logo-size) + var(--alp-logo-gap) + 160px);
    }

    .loading-spinner {
        width: 46px;
        height: 46px;
    }

    .loading-text {
        font-size: 0.85rem;
    }

    body::after {
        background: radial-gradient(circle at center, transparent 20%, rgba(0, 0, 0, 0.55) 100%);
    }

    .corner-decoration {
        width: 150px;
        height: 150px;
        mix-blend-mode: normal;
        opacity: 0.55;
    }

    .top-left {
        top: -20px;
        left: -20px;
    }

    .top-right {
        top: -20px;
        right: -20px;
    }

    .main-title {
        font-size: clamp(2rem, 12vw, 3.5rem);
        text-shadow: 0 0 14px rgba(218, 165, 32, 0.75);
        animation: none;
    }

    .center-content h1 {
        white-space: normal;
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.65);
        animation: none;
    }

    .title-divider {
        width: 80px;
    }

    .countdown-block {
        width: clamp(62px, 20vw, 76px);
        min-height: 70px;
        padding: 8px 10px;
        border-radius: 10px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
        backdrop-filter: none;
        transition: none;
    }

    .countdown-block:hover {
        transform: none;
    }

    .center-content {
        gap: 15px;
        top: min(var(--content-top), 82%);
    }

    .play-button {
        width: 55px;
        height: 55px;
        box-shadow: 0 0 12px rgba(218, 165, 32, 0.55);
        transition: transform 0.2s ease;
    }

    .play-button-container::before {
        filter: none;
        opacity: 0.45;
        animation: none;
    }

    .play-icon {
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-left: 16px solid #ffffff;
        margin-left: 5px;
    }

    .social-links {
        bottom: 20px;
        left: 20px;
        gap: 10px;
    }

    .social-link {
        font-size: 1rem;
        text-shadow: none;
    }

    .alpmedya-link {
        flex-direction: column;
        gap: 4px;
        font-size: 1.1rem;
    }

    .social-link svg,
    .alpmedya-logo {
        filter: none;
    }

    .alpmedya-logo {
        width: 24px;
        height: 24px;
    }

}

@media (max-width: 600px) and (max-height: 760px) {
    body {
        --alp-logo-size: clamp(120px, 28vmin, 170px);
        --alp-logo-top: 30px;
        --alp-logo-gap: 12px;
        --content-top: calc(var(--alp-logo-top) + var(--alp-logo-size) + var(--alp-logo-gap) + 140px);
    }

    .main-title {
        font-size: clamp(1.8rem, 10vw, 3rem);
    }

    .countdown-container {
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
