body {
    margin: 0;
    padding: 0;
    background-color: #000;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.container {
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 200px;
    overflow: hidden;
}

.content-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tabs {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    z-index: 10;
}

.tablinks {
    padding: 10px 10px; /* Reducir padding horizontal de 12px a 10px */
    color: white;
    background: #333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    font-weight: 600;
    text-align: center;
    min-width: 36px; /* Reducir min-width de 36px a 30px */
}

.tablinks.active {
    background: #007bff;
}

.tablinks:hover {
    background: #555;
}

.active-tab-label {
    position: absolute;
    top: 48px;
    left: 10px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    font-weight: 600;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1.2;
}

.active-tab-label.hidden {
    display: none;
}

.tabcontent {
    width: 100%;
    height: 100%;
    background-color: #000;
    display: none;
    position: relative;
    overflow: hidden;
}

.tabcontent iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.loading-overlay.visible {
    opacity: 1;
}

.loading-text {
    color: white;
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 600;
}

.loading-text span {
    display: inline-block;
    animation: pulse 1.2s infinite;
}

.loading-text span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-text span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

.subtabs {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    justify-content: center;
    align-items: flex-start;
}

.subtablinks {
    padding: 8px 14px;
    color: white;
    background: #6b2d5c;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: clamp(0.8rem, 1.8vw, 0.85rem);
    font-weight: 600;
    text-align: center;
}

.subtablinks.active {
    background: #a71d5d;
}

.subtablinks:hover {
    background: #8e3e7a;
}

.subtabcontent {
    width: 100%;
    height: 100%;
    display: none;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

#downloads-720p {
    background-color: #2a2a2a;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

#downloads-1080p {
    background-color: #3a3a3a;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

#downloads-2K {
    background-color: #4a4a4a;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

#downloads-4K {
    background-color: #5a5a5a;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.download-buttons-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 15px;
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    justify-items: center;
    align-items: center;
    max-width: 240px;
}

.download-button {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    background: #007bff;
    border-radius: 50%;
    text-decoration: none;
    overflow: hidden;
}

.download-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.download-button:hover img {
    filter: brightness(1.1);
}

@media (max-width: 600px) {
    .tabs {
        top: 5px;
        left: 5px;
        gap: 3px;
    }
    .tablinks {
        padding: 6px 8px; /* Reducir padding horizontal de 10px a 8px */
        font-size: clamp(0.75rem, 1.8vw, 0.8rem);
        min-width: 29px; /* Reducir min-width de 32px a 28px */
    }
    .active-tab-label {
        top: 42px;
        left: 5px;
        font-size: clamp(0.75rem, 1.8vw, 0.8rem);
        padding: 3px 6px;
        border-radius: 3px;
    }
    .active-tab-label.hidden {
        display: none;
    }
    .subtabs {
        top: 50%;
        left: 5px;
        transform: translateY(-50%);
        flex-direction: column;
        gap: 6px;
    }
    .subtablinks {
        padding: 6px 12px;
        font-size: clamp(0.7rem, 1.6vw, 0.75rem);
    }
    .download-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        max-width: 168px;
    }
    .download-button {
        width: 42px;
        height: 42px;
        border-radius: 50%;
    }
    .download-button img {
        border-radius: 50%;
    }
    .container {
        min-height: 150px;
    }
    .loading-text {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
    }
}