/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgb(38, 84, 130);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Common image styles */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.spruce_image,
.gift_image {
    width: 100%;
    height: auto;
}

/* ============================================
   PLAYER STYLES
   ============================================ */
.player {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    z-index: 10;
}

.player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.my_player_box {
    position: absolute;
    margin: 0;
    z-index: 20;
}

.player-control-wrapper {
    float: left;
    position: relative;
    margin: 0;
    padding: 0;
}

.my_play,
.my_play_pause {
    background-image: url('resources/play.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.my_play:hover,
.my_play_pause:hover {
    opacity: 0.8;
}

.telephone {
    display: none;
}

/* ============================================
   PORTRAIT ORIENTATION STYLES
   ============================================ */

/* Extra small devices (phones, 680px and down) - Portrait */
@media only screen and (max-width: 680px) and (orientation: portrait) {
    body {
        background-image: url(resources/_x36_.png);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .christmastree_image_box {
        display: block;
        width: 55%;
        position: absolute;
        bottom: 0%;
        left: 0%;
    }
    
    .gift_image_box {
        display: block;
        width: 37%;
        position: absolute;
        right: 7%;
        bottom: 0%;
    }
    
    .branch_right_bottom_box {
        transform: rotateZ(32deg);
        display: block;
        width: 16%;
        position: fixed;
        right: 1%;
        bottom: 7.5%;
        z-index: -1;
    }
    
    .branch_top_right_box {
        display: block;
        width: 50%;
        position: fixed;
        transform: translateY(-40%) scale(2.2) rotate(8deg);
        top: 0;
        right: 8%;
    }
    
    .branch_top_left_box {
        display: block;
        width: 50%;
        position: fixed;
        top: 0;
        left: 0%;
        transform: translateY(-11%) translateX(-32%) scale(2.2) rotate(-35deg);
    }
    
    .new_year_abbrau_box {
        display: block;
        width: 56%;
        position: fixed;
        left: 20%;
        top: 10%;
        transform: scaleX(1.6) scaleY(1.5);
    }
    
    .territory_box {
        display: block;
        width: 71%;
        position: absolute;
        left: 16%;
        top: 17%;
    }
    
    .phone_box {
        display: block;
        width: 7.8%;
        position: absolute;
        left: 3.8%;
        top: 23%;
    }
    
    .call_to_air_box {
        display: block;
        width: 38%;
        position: absolute;
        left: 17%;
        top: 23%;
    }
    
    .listen_air_box {
        display: block;
        width: 36%;
        position: absolute;
        left: 17%;
        top: 30.2%;
    }
    
    .tg_channel_box {
        display: block;
        width: 29%;
        position: absolute;
        right: 7%;
        top: 29.5%;
    }
    
    .tg_qr_box {
        display: block;
        width: 10%;
        position: absolute;
        right: 23.5%;
        top: 22.5%;
    }
    
    .tg_icon_box {
        display: block;
        width: 10%;
        position: absolute;
        right: 8%;
        top: 22.5%;
    }
    
    .particles_box {
        width: 9%;
        position: absolute;
        right: 25%;
        bottom: 3%;
        transform: rotateZ(45deg);
    }
    
    .particles_2_box {
        width: 4%;
        position: fixed;
        right: 20%;
        bottom: 25%;
        transform: scale(5.3);
    }
    
    .particles_3_box {
        width: 9%;
        position: absolute;
        right: 0%;
        top: 14%;
        transform: scale(1.3);
    }
    
    .player {
        width: 89.6vw;
        height: 37vh;
        top: 38%;
        left: 5%;
    }
    
    .my_player_box {
        left: 2.1%;
        top: 28%;
    }
    
    .my_play,
    .my_play_pause {
        width: 3.8%;
        min-width: 44px;
        max-width: 50px;
        height: auto;
        aspect-ratio: 1;
    }
}

/* Small devices (600px - 767px) - Portrait */
@media only screen and (min-width: 600px) and (max-width: 767px) and (orientation: portrait) {
    body {
        background-image: url(resources/_x36_.png);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .christmastree_image_box {
        display: block;
        width: 55%;
        position: absolute;
        bottom: 0%;
        left: 0%;
    }
    
    .gift_image_box {
        display: block;
        width: 37%;
        position: absolute;
        right: 7%;
        bottom: 0%;
    }
    
    .branch_right_bottom_box {
        transform: rotateZ(32deg);
        display: block;
        width: 16%;
        position: absolute;
        right: 1%;
        bottom: 7.5%;
        z-index: -1;
    }
    
    .branch_top_right_box {
        display: block;
        width: 50%;
        position: fixed;
        transform: translateY(-40%) scale(2.2) rotate(8deg);
        top: 0;
        right: 8%;
    }
    
    .branch_top_left_box {
        display: block;
        width: 50%;
        position: fixed;
        top: 0;
        left: 0%;
        transform: translateY(-11%) translateX(-32%) scale(2.2) rotate(-35deg);
    }
    
    .new_year_abbrau_box {
        display: block;
        width: 62%;
        position: fixed;
        left: 20%;
        top: 10%;
        transform: scaleX(1.6) scaleY(1.5);
    }
    
    .territory_box {
        display: block;
        width: 71%;
        position: absolute;
        left: 16%;
        top: 17%;
    }
    
    .phone_box {
        display: block;
        width: 7.8%;
        position: absolute;
        left: 3.8%;
        top: 23%;
    }
    
    .call_to_air_box {
        display: block;
        width: 38%;
        position: absolute;
        left: 17%;
        top: 23%;
    }
    
    .listen_air_box {
        display: block;
        width: 36%;
        position: absolute;
        left: 17%;
        top: 30.2%;
    }
    
    .tg_channel_box {
        display: block;
        width: 29%;
        position: absolute;
        right: 7%;
        top: 32.5%;
    }
    
    .tg_qr_box {
        display: block;
        width: 10%;
        position: absolute;
        right: 23.5%;
        top: 22.5%;
    }
    
    .tg_icon_box {
        display: block;
        width: 10%;
        position: absolute;
        right: 8%;
        top: 26.5%;
    }
    
    .particles_box {
        width: 9%;
        position: absolute;
        right: 25%;
        bottom: 3%;
        transform: rotateZ(45deg);
    }
    
    .particles_2_box {
        width: 4%;
        position: fixed;
        right: 20%;
        bottom: 25%;
        transform: scale(5.3);
    }
    
    .particles_3_box {
        width: 9%;
        position: fixed;
        right: 0%;
        top: 14%;
        transform: scale(1.3);
    }
    
    .player {
        width: 89.6vw;
        height: 37vh;
        top: 38%;
        left: 5%;
    }
    
    .my_player_box {
        left: 2.1%;
        top: 28%;
    }
    
    .my_play,
    .my_play_pause {
        width: 7.8%;
        min-width: 40px;
        max-width: 90px;
        height: auto;
        aspect-ratio: 1;
    }
}

/* Medium devices (768px - 991px) - Portrait */
@media only screen and (min-width: 768px) and (max-width: 991px) and (orientation: portrait) {
    body {
        background-image: url(resources/_x36_.png);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .christmastree_image_box {
        display: block;
        width: 55%;
        position: absolute;
        bottom: 0%;
        left: 0%;
    }
    
    .gift_image_box {
        display: block;
        width: 37%;
        position: absolute;
        right: 7%;
        bottom: 0%;
    }
    
    .branch_right_bottom_box {
        transform: rotateZ(32deg);
        display: block;
        width: 16%;
        position: absolute;
        right: 1%;
        bottom: 7.5%;
        z-index: -1;
    }
    
    .branch_top_right_box {
        display: block;
        width: 50%;
        position: fixed;
        transform: translateY(-40%) scale(2.2) rotate(8deg);
        top: 0;
        right: 8%;
    }
    
    .branch_top_left_box {
        display: block;
        width: 50%;
        position: fixed;
        top: 0;
        left: 0%;
        transform: translateY(-11%) translateX(-32%) scale(2.2) rotate(-35deg);
    }
    
    .new_year_abbrau_box {
        display: block;
        width: 62%;
        position: fixed;
        left: 20%;
        top: 10%;
        transform: scaleX(1.6) scaleY(1.5);
    }
    
    .territory_box {
        display: block;
        width: 71%;
        position: absolute;
        left: 16%;
        top: 17%;
    }
    
    .phone_box {
        display: block;
        width: 7.8%;
        position: absolute;
        left: 3.8%;
        top: 23%;
    }
    
    .call_to_air_box {
        display: block;
        width: 38%;
        position: absolute;
        left: 17%;
        top: 23%;
    }
    
    .listen_air_box {
        display: block;
        width: 36%;
        position: absolute;
        left: 17%;
        top: 31.7%;
    }
    
    .tg_channel_box {
        display: block;
        width: 29%;
        position: absolute;
        right: 7%;
        top: 32.5%;
    }
    
    .tg_qr_box {
        display: block;
        width: 10%;
        position: absolute;
        right: 23.5%;
        top: 22.5%;
    }
    
    .tg_icon_box {
        display: block;
        width: 10%;
        position: absolute;
        right: 8%;
        top: 22.5%;
    }
    
    .particles_box {
        width: 9%;
        position: absolute;
        right: 25%;
        bottom: 3%;
        transform: rotateZ(45deg);
    }
    
    .particles_2_box {
        width: 4%;
        position: fixed;
        right: 20%;
        bottom: 25%;
        transform: scale(5.3);
    }
    
    .particles_3_box {
        width: 9%;
        position: absolute;
        right: 0%;
        top: 14%;
        transform: scale(1.3);
    }
    
    .player {
        width: 89.6vw;
        height: 37vh;
        top: 38%;
        left: 5%;
    }
    
    .my_player_box {
        left: 2.6%;
        top: 29%;
    }
    
    .my_play,
    .my_play_pause {
        width: 7.8%;
        min-width: 80px;
        max-width: 80px;
        height: auto;
        aspect-ratio: 1;
    }
}

/* Large devices (992px - 1199px) - Portrait */
@media only screen and (min-width: 992px) and (max-width: 1199px) and (orientation: portrait) {
    body {
        background-image: url(resources/_x36_.png);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .christmastree_image_box {
        display: block;
        width: 55%;
        position: absolute;
        bottom: 0%;
        left: 0%;
    }
    
    .gift_image_box {
        display: block;
        width: 37%;
        position: absolute;
        right: 7%;
        bottom: 0%;
    }
    
    .branch_right_bottom_box {
        transform: rotateZ(32deg);
        display: block;
        width: 16%;
        position: absolute;
        right: 1%;
        bottom: 7.5%;
        z-index: -1;
    }
    
    .branch_top_right_box {
        display: block;
        width: 50%;
        position: fixed;
        transform: translateY(-40%) scale(2.2) rotate(8deg);
        top: 0;
        right: 8%;
    }
    
    .branch_top_left_box {
        display: block;
        width: 50%;
        position: fixed;
        top: 0;
        left: 0%;
        transform: translateY(-11%) translateX(-32%) scale(2.2) rotate(-35deg);
    }
    
    .new_year_abbrau_box {
        display: block;
        width: 62%;
        position: fixed;
        left: 20%;
        top: 10%;
        transform: scaleX(1.6) scaleY(1.5);
    }
    
    .territory_box {
        display: block;
        width: 71%;
        position: absolute;
        left: 16%;
        top: 17%;
    }
    
    .phone_box {
        display: block;
        width: 7.8%;
        position: absolute;
        left: 3.8%;
        top: 23%;
    }
    
    .call_to_air_box {
        display: block;
        width: 38%;
        position: absolute;
        left: 17%;
        top: 23%;
    }
    
    .listen_air_box {
        display: block;
        width: 36%;
        position: absolute;
        left: 17%;
        top: 32.2%;
    }
    
    .tg_channel_box {
        display: block;
        width: 29%;
        position: absolute;
        right: 7%;
        top: 32.5%;
    }
    
    .tg_qr_box {
        display: block;
        width: 10%;
        position: absolute;
        right: 23.5%;
        top: 22.5%;
    }
    
    .tg_icon_box {
        display: block;
        width: 10%;
        position: absolute;
        right: 8%;
        top: 22.5%;
    }
    
    .particles_box {
        width: 9%;
        position: absolute;
        right: 25%;
        bottom: 3%;
        transform: rotateZ(45deg);
    }
    
    .particles_2_box {
        width: 4%;
        position: fixed;
        right: 20%;
        bottom: 25%;
        transform: scale(5.3);
    }
    
    .particles_3_box {
        width: 9%;
        position: absolute;
        right: 0%;
        top: 14%;
        transform: scale(1.3);
    }
    
    .player {
        width: 89.6vw;
        height: 37vh;
        top: 38%;
        left: 5%;
    }
    
    .my_player_box {
        left: 2.1%;
        top: 30%;
    }
    
    .my_play,
    .my_play_pause {
        width: 3.8%;
        min-width: 105px;
        max-width: 105px;
        height: auto;
        aspect-ratio: 1;
    }
}

/* Extra large devices (1200px and up) - Portrait */
@media only screen and (min-width: 1200px) and (orientation: portrait) {
    body {
        background-image: url(resources/_x36_.png);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .christmastree_image_box {
        display: block;
        width: 22%;
        position: absolute;
        bottom: 0%;
        left: 3%;
    }
    
    .gift_image_box {
        display: block;
        width: 11%;
        position: absolute;
        right: 9%;
        bottom: 0%;
    }
    
    .branch_right_bottom_box {
        transform: rotateZ(32deg);
        display: block;
        width: 16%;
        position: absolute;
        right: 1%;
        bottom: 7.5%;
        z-index: -1;
    }
    
    .branch_top_right_box {
        display: block;
        width: 50%;
        position: absolute;
        transform: translateY(-53%) scale(1.2) rotate(9deg);
        top: 0;
        right: 0%;
    }
    
    .branch_top_left_box {
        display: block;
        width: 50%;
        position: absolute;
        top: 0;
        left: 0%;
        transform: translateY(-35%) translateX(-32%) scale(1.2) rotate(-35deg);
    }
    
    .new_year_abbrau_box {
        display: block;
        width: 44%;
        position: absolute;
        left: 28%;
        top: 16%;
        transform: scaleX(1.6) scaleY(1.5);
    }
    
    .territory_box {
        display: block;
        width: 41%;
        position: absolute;
        left: 30%;
        top: 35%;
    }
    
    .phone_box {
        display: block;
        width: 3.8%;
        position: absolute;
        left: 3.8%;
        bottom: 54%;
    }
    
    .call_to_air_box {
        display: block;
        width: 18%;
        position: absolute;
        left: 9%;
        bottom: 53%;
    }
    
    .listen_air_box {
        display: block;
        width: 18%;
        position: absolute;
        left: 9%;
        bottom: 45.5%;
    }
    
    .tg_channel_box {
        display: block;
        width: 18%;
        position: absolute;
        right: 7%;
        bottom: 53.5%;
    }
    
    .tg_qr_box {
        display: block;
        width: 6%;
        position: absolute;
        right: 16.5%;
        bottom: 36.5%;
    }
    
    .tg_icon_box {
        display: block;
        width: 6%;
        position: absolute;
        right: 8%;
        bottom: 36.5%;
    }
    
    .particles_box {
        width: 9%;
        position: absolute;
        right: 20%;
        bottom: 3%;
        transform: rotateZ(45deg);
    }
    
    .particles_2_box {
        width: 9%;
        position: absolute;
        right: 0%;
        bottom: 14%;
        transform: scale(1.3);
    }
    
    .particles_3_box {
        width: 9%;
        position: absolute;
        right: 0%;
        top: 14%;
        transform: scale(1.3);
    }
    
    .player {
        width: 35.6vw;
        height: 41vh;
        bottom: 10%;
        left: 33%;
    }
    
    .my_player_box {
        left: 3.1%;
        bottom: 42.7%;
    }
    
    .my_play,
    .my_play_pause {
        width: 3.8%;
        min-width: 45px;
        max-width: 80px;
        height: auto;
        aspect-ratio: 1;
    }
}

/* ============================================
   LANDSCAPE ORIENTATION STYLES
   ============================================ */

/* Mobile/Tablet Landscape (up to 991px): Full width player */
@media only screen and (max-width: 991px) and (orientation: landscape) {
    body {
        background-size: cover;
        background-position: center;
    }
    
    /* Hide all decorative elements in landscape for mobile/tablet */
    .christmastree_image_box,
    .gift_image_box,
    .branch_right_bottom_box,
    .branch_top_right_box,
    .branch_top_left_box,
    .new_year_abbrau_box,
    .territory_box,
    .phone_box,
    .call_to_air_box,
    .listen_air_box,
    .tg_channel_box,
    .tg_qr_box,
    .tg_icon_box,
    .particles_box,
    .particles_2_box,
    .particles_3_box,
    .my_player_box {
        display: none !important;
    }
    
    /* Player full width in landscape for mobile/tablet */
    .player {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw !important;
        height: 100vh !important;
        border-radius: 0;
        z-index: 1000;
    }
}

/* Laptop/Desktop Landscape (992px and up): Normal layout */
@media only screen and (min-width: 992px) and (orientation: landscape) {
    body {
        background-image: url(resources/_x36_.png);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    /* Show all elements normally for laptop/desktop landscape */
    .christmastree_image_box {
        display: block;
        width: 22%;
        position: absolute;
        bottom: 0%;
        left: 3%;
    }
    
    .gift_image_box {
        display: block;
        width: 11%;
        position: absolute;
        right: 9%;
        bottom: 0%;
    }
    
    .branch_right_bottom_box {
        transform: rotateZ(32deg);
        display: block;
        width: 16%;
        position: absolute;
        right: 1%;
        bottom: 7.5%;
        z-index: -1;
    }
    
    .branch_top_right_box {
        display: block;
        width: 50%;
        position: absolute;
        transform: translateY(-53%) scale(1.2) rotate(9deg);
        top: 0;
        right: 0%;
    }
    
    .branch_top_left_box {
        display: block;
        width: 50%;
        position: absolute;
        top: 0;
        left: 0%;
        transform: translateY(-35%) translateX(-32%) scale(1.2) rotate(-35deg);
    }
    
    .new_year_abbrau_box {
        display: block;
        width: 44%;
        position: absolute;
        left: 28%;
        top: 16%;
        transform: scaleX(1.6) scaleY(1.5);
    }
    
    .territory_box {
        display: block;
        width: 41%;
        position: absolute;
        left: 30%;
        top: 35%;
    }
    
    .phone_box {
        display: block;
        width: 3.8%;
        position: absolute;
        left: 3.8%;
        bottom: 54%;
    }
    
    .call_to_air_box {
        display: block;
        width: 18%;
        position: absolute;
        left: 9%;
        bottom: 53%;
    }
    
    .listen_air_box {
        display: block;
        width: 18%;
        position: absolute;
        left: 9%;
        bottom: 45.5%;
    }
    
    .tg_channel_box {
        display: block;
        width: 18%;
        position: absolute;
        right: 7%;
        bottom: 53.5%;
    }
    
    .tg_qr_box {
        display: block;
        width: 6%;
        position: absolute;
        right: 16.5%;
        bottom: 36.5%;
    }
    
    .tg_icon_box {
        display: block;
        width: 6%;
        position: absolute;
        right: 8%;
        bottom: 36.5%;
    }
    
    .particles_box {
        width: 9%;
        position: absolute;
        right: 20%;
        bottom: 3%;
        transform: rotateZ(45deg);
    }
    
    .particles_2_box {
        width: 9%;
        position: absolute;
        right: 0%;
        bottom: 14%;
        transform: scale(1.3);
    }
    
    .particles_3_box {
        width: 9%;
        position: absolute;
        right: 0%;
        top: 14%;
        transform: scale(1.3);
    }
    
    /* Normal player size for laptop/desktop landscape */
    .player {
        width: 35.6vw;
        height: 41vh;
        bottom: 10%;
        left: 33%;
        position: absolute;
        border-radius: 12px;
    }
    
    .my_player_box {
        display: block;
        left: 3%;
        bottom: 42%;
    }
    
    .my_play,
    .my_play_pause {
        width: 3.8%;
        min-width: 96px;
        max-width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
}
