.modern-player-container {
    position: relative;
    width: 100%;
    /* Balandlikni o'chiramiz, o'rniga aspect-ratio qo'yamiz */
    aspect-ratio: 16 / 9; 
    background: #0f0f0f;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* Ichidagi iframe ham to'liq yopishib turishi uchun */
#actualPlayer, #actualPlayer iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.player-cover {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, #1a1a1a 0%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.4s ease;
}

.player-cover:hover {
    background: radial-gradient(circle, #222 0%, #050505 100%);
}

/* Play tugmasi */
.play-btn-visual {
    position: relative;
    width: clamp(60px, 10vw, 80px); /* Ekran o'zgarishiga qarab o'lchami o'zgaradi */
    height: clamp(60px, 10vw, 80px);
    background: #D20068;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.play-icon-shape {
    width: 0;
    height: 0;
    border-style: solid;
    /* Uchburchak o'lchami tugmaga qarab moslashadi */
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 5px;
}

.pulse-ring {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%;
    background: #D20068;
    opacity: 0.6;
    z-index: -1;
    animation: play-pulse 2s infinite;
}

@keyframes play-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

.player-cover:hover .play-btn-visual {
    transform: scale(1.1);
}

/* @media qismiga endi height yozish shart emas, chunki aspect-ratio hammasini o'zi hisoblaydi */
@media (max-width: 768px) {
    .play-btn-visual {
        /* Kichik ekranlarda uchburchakni ham biroz kichraytirish mumkin */
    }
}



.play-btn-dark {
    position: relative;
    width: clamp(60px, 10vw, 80px);
    height: clamp(60px, 10vw, 80px);
    background: rgba(42, 42, 42, 0.9); /* To'q kulrang/qora */
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Kursor borganda (Hover) */
.player-cover:hover .play-btn-dark {
    transform: scale(1.1);
    background: #D20068; /* Pushtiga o'zgaradi */
    border-color: #D20068;
    box-shadow: 0 0 30px rgba(233, 30, 99, 0.6);
}




/* Asosiy konteyner - 100% kenglikda turadi */
.reklama-container-player {
    width: 100%;
    height: 300px; /* Qat'iy balandlik */
    background: #1a1a1a; /* Sayt foni */
    border: 1px solid #333;
    border-left: 4px solid #D20068; /* Pushti chiziq */
    margin: 20px 0;
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center; /* Kontentni markazga suradi */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Reklama yozuvi (label) */
.reklama-label {
    position: absolute;
    top: 0;
    right: 0;
    background: #D20068;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    font-weight: bold;
    border-bottom-left-radius: 4px;
    letter-spacing: 1px;
    z-index: 10;
}

/* Reklama kodi turadigan ichki blok */
.reklama-content {
    width: 100%;
    max-width: 600px; /* Kompyuterda reklama kengligi */
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

/* REKLAMA ICHIDAGI RASM YOKI IFRAME LARNI SIG'DIRISH */
.reklama-content img, 
.reklama-content iframe, 
.reklama-content ins,
.reklama-content video {
    max-width: 100% !important;
    max-height: 100% !important; /* Balandlikdan oshib ketmasligi uchun */
    width: auto !important;      /* Proporsiyani buzmaydi */
    height: auto !important;     /* Proporsiyani buzmaydi */
    object-fit: contain !important; /* Rasmni qirqmasdan ramkaga sig'diradi */
    display: block;
}

/* Mobil versiya uchun sozlamalar */
@media screen and (max-width: 768px) {
    .reklama-container-player {
        height: 250px;
        margin: 15px 0;
    }
    
    .reklama-content {
        max-width: 250px; /* Mobilda reklama kengligi kichrayadi */
    }
}

