[style*="--aspect-ratio"]>:first-child {
    width: 100%;
    height: auto;
}
@supports (--custom:property) {
    [style*="--aspect-ratio"] {
        position: relative;
    }
    [style*="--aspect-ratio"]::before {
        content: "";
        display: block;
        padding-bottom: calc(100% / (var(--aspect-ratio)));
    }
    [style*="--aspect-ratio"]>:first-child {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
    }
}
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s;
    z-index: 99999;
}
.popup {
    width: 240px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.close-button {
    background: #f83324;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}
.popup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.popup-overlay.visible {
    visibility: visible;
    opacity: 1;
}
.title-wrap {
    background: #1c1c1c;
    margin-bottom: 20px;
    padding-bottom: 10px;
}
.player-wrap iframe {
    width: 100%;
    height: auto;
}
.mobileShow {
    display: none;
}

.nav-pills .nav-item {
    margin-right: 15px;
}

.nav-pills .nav-item .nav-link {
    font-weight: 600;
    color: #fff;
    background: #f90;
    border-radius: 1px;
    transition: color .3s ease, background .3s ease;
}

.v-owner {
    position: absolute;
    right: 8px;
    top: 5px;
    font-size: 12px;
    color: #6d6d6d;
}

.buttonInside {
    position: relative;
    margin-bottom: 10px;
}

.copy-in {
    position: absolute;
    right: 5px;
    top: 5px;
    border: none;
    outline: 0;
    text-align: center;
    font-weight: 700;
    padding: 2px;
}

.copy-in:hover {
    cursor: pointer;
}

.export-txt {
    height: 42px !important;
}

.ads-container {
    margin: 20px 0; /* Space above and below the ads */
    text-align: center; /* Center the ads */
}

.ads-grid {
    display: grid; /* Use CSS Grid for layout */
    justify-content: center; /* Center the grid horizontally */
    gap: 10px; /* Space between the ads */
}

/* Desktop: 2x2 grid with larger ads */
@media (min-width: 768px) {
    .ads-grid {
        grid-template-columns: repeat(2, 400px); /* Two columns, each 400px wide */
    }
    .ad-item img {
        width: 400px; /* Fixed width for desktop ads */
        height: auto; /* Maintain aspect ratio */
    }
}

/* Mobile: Stacked vertically with smaller ads */
@media (max-width: 767px) {
    .ads-grid {
        grid-template-columns: 1fr; /* One column, full width */
    }
    .ad-item img {
        width: 350px; /* Fixed width for mobile ads */
        height: auto; /* Maintain aspect ratio */
    }
}

@media only screen and (max-device-width: 480px) {
    .mobileShow {
        display: inline;
    }
    .mobileHide {
        display: none;
    }
}
textarea {
    resize: none;
}
