#tv-milas-youtube-root.tmy-root {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 999999;
    font-family: inherit;
}

#tv-milas-youtube-root .tmy-panel {
    width: 340px;
    max-width: calc(100vw - 36px);
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

#tv-milas-youtube-root .tmy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0b67a8;
    color: #ffffff;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 700;
}

#tv-milas-youtube-root .tmy-close {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 20px;
    line-height: 24px;
    cursor: pointer;
    padding: 0;
}

#tv-milas-youtube-root .tmy-frame {
    position: relative;
    width: 100%;
    background: #000000;
    aspect-ratio: 16 / 9;
}

#tv-milas-youtube-root .tmy-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

#tv-milas-youtube-root .tmy-title {
    display: block;
    padding: 10px 12px 6px;
    color: #111111;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
}

#tv-milas-youtube-root .tmy-title:hover {
    text-decoration: underline;
}

#tv-milas-youtube-root .tmy-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px 10px;
}

#tv-milas-youtube-root .tmy-prev,
#tv-milas-youtube-root .tmy-next {
    border: 0;
    border-radius: 999px;
    background: #0b67a8;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 12px;
    cursor: pointer;
}

#tv-milas-youtube-root .tmy-prev:hover,
#tv-milas-youtube-root .tmy-next:hover {
    opacity: 0.9;
}

#tv-milas-youtube-root .tmy-counter {
    font-size: 12px;
    color: #666666;
    white-space: nowrap;
}

#tv-milas-youtube-root .tmy-youtube-link {
    display: block;
    padding: 0 12px 12px;
    color: #0b67a8;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

#tv-milas-youtube-root .tmy-youtube-link:hover {
    text-decoration: underline;
}

#tv-milas-youtube-root .tmy-mobile-icon {
    display: none;
    width: 74px;
    height: 74px;
    border: 0;
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

#tv-milas-youtube-root .tmy-mobile-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#tv-milas-youtube-root.tmy-closed .tmy-panel {
    display: none;
}

@media (max-width: 768px) {
    #tv-milas-youtube-root.tmy-root {
        left: 12px;
        bottom: 12px;
    }

    #tv-milas-youtube-root .tmy-panel {
        display: none;
        width: calc(100vw - 24px);
        max-width: 360px;
    }

    #tv-milas-youtube-root .tmy-mobile-icon {
        display: block;
    }

    #tv-milas-youtube-root.tmy-mobile-open .tmy-panel {
        display: block;
    }

    #tv-milas-youtube-root.tmy-mobile-open .tmy-mobile-icon {
        display: none;
    }
}
