

.mxanime-share-container {
    font-family: 'Poppins', Arial, sans-serif;
    background: #212529;
    color: #fff;
    line-height: 1.5;
    padding: 20px;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

/* Modified container for full width */
.share-buttons .container {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    background: ;
    padding-bottom: 24px;
}

.share-buttons.share-buttons-home .share-buttons-block {
    padding: 1.5rem 0;
}

.share-buttons .share-buttons-block {
    padding: 20px 0;
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
}

.share-buttons .share-buttons-block .share-icon {
    display: inline-block;
    margin-right: 1rem;
    flex-shrink: 0;
}

.share-icon {
    background-image: url('http://mxanime.fun/wp-content/uploads/2025/10/share-icon-DfsW9X2a.gif');
    background-size: cover;
    background-position: center center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
}

.share-buttons .share-buttons-block .sbb-title {
    display: block;
    padding: 0;
    position: relative;
    font-size: 16px;
    flex-shrink: 0;
    font-family: 'Poppins', Arial, sans-serif;
}

.mr-3 {
    margin-right: 1rem !important;
}

.share-buttons .share-buttons-block .sbb-title span {
    font-weight: 500;
    font-size: 16px;
    color: #ffbade;
    font-family: 'Poppins', Arial, sans-serif;
}

.share-buttons .sbb-title span {
    font-size: 1.1em;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.share-buttons .share-buttons-block .sbb-title p {
    font-family: 'Poppins', Arial, sans-serif;
}

.share-buttons-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-left: 10px;
    flex-grow: 1;
    justify-content: flex-start;
    align-items: center;
}

/* Share Count Styles - No Box */
.share-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 15px;
    min-width: 50px;
}

.share-count-number {
    font-size: 14px;
    font-weight: 600;
    color: #ffbade;
    line-height: 1;
}

.share-count-label {
    font-size: 9px;
    color: #aaa;
    margin-top: 1px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-btn {
    border-radius: 20px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    height: 32px;
    line-height: 32px;
    padding: 0 10px;
    color: #fff;
    font-weight: 500;
    transition: all 0.2s ease-in;
    min-width: 120px;
    flex-shrink: 0;
    white-space: nowrap;
    font-family: 'Poppins', Arial, sans-serif;
    gap: 5px;
    position: relative;
    overflow: hidden;
}

/* Shine effect for share buttons */
.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.share-btn:hover::before {
    left: 100%;
}

.fab {
    font-size: 16px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.share-btn i {
    margin-right: 5px;
}

.share-btn.telegram {
    background-color: #0088cc;
}

.share-btn.x {
    background-color: #000000;
}

.share-btn.facebook {
    background-color: #4267B2;
}

.share-btn.reddit {
    background-color: #ff4500;
}

.share-btn.whatsapp {
    background-color: #25D366;
}

.share-btn.more {
    background-color: #95D03A;
    margin:0px!important;
}

/* X Button specific styling to ensure icon visibility */
.share-btn.x i.fa-x-twitter {
    font-size: 14px;
    margin-right: 6px;
}

/* Responsive behavior - More button shrinks first */
@media (max-width: 1300px) {
    .share-btn.more .btn-text {
        display: none;
    }
    
    .share-btn.more {
        min-width: 40px;
        width: 40px;
        justify-content: center;
        padding: 0;
    }
    
    .share-btn.more img {
        margin-right: 0;
    }
}

@media (max-width: 1200px) {
    .share-btn.whatsapp .btn-text {
        display: none;
    }
    
    .share-btn.whatsapp {
        min-width: 40px;
        width: 40px;
        justify-content: center;
        padding: 0;
    }
    
    .share-btn.whatsapp i {
        margin-right: 0;
    }
}

@media (max-width: 1100px) {
    .share-btn.reddit .btn-text {
        display: none;
    }
    
    .share-btn.reddit {
        min-width: 40px;
        width: 40px;
        justify-content: center;
        padding: 0;
    }
    
    .share-btn.reddit i {
        margin-right: 0;
    }
}

@media (max-width: 1000px) {
    .share-btn.facebook .btn-text {
        display: none;
    }
    
    .share-btn.facebook {
        min-width: 40px;
        width: 40px;
        justify-content: center;
        padding: 0;
    }
    
    .share-btn.facebook i {
        margin-right: 0;
    }
}

@media (max-width: 900px) {
    .share-btn.x .btn-text {
        display: none;
    }
    
    .share-btn.x {
        min-width: 40px;
        width: 40px;
        justify-content: center;
        padding: 0;
    }
    
    .share-btn.x i {
        margin-right: 0;
        font-size: 16px;
    }
}

@media (max-width: 800px) {
    .share-btn.telegram .btn-text {
        display: none;
    }
    
    .share-btn.telegram {
        min-width: 40px;
        width: 40px;
        justify-content: center;
        padding: 0;
    }
    
    .share-btn.telegram i {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .share-buttons .share-buttons-block {
        flex-wrap: nowrap;
        justify-content: center;
    }
    
    .share-buttons-container {
        width: auto;
        justify-content: flex-start;
    }
}

@media (max-width: 650px) {
    .share-btn.whatsapp {
        display: none;
    }
}

@media (max-width: 580px) {
    .share-btn.reddit {
        display: none;
    }
}

@media (max-width: 520px) {
    .share-btn.facebook {
        display: none;
    }
}

@media (max-width: 460px) {
    .share-btn.x {
        display: none;
    }
}

@media (max-width: 400px) {
    .share-btn.telegram {
        display: none;
    }
    
    .share-buttons-container {
        justify-content: center;
    }
}

/* Hide circular icon and share count on very small screens */
@media (max-width: 480px) {
    .share-buttons .share-buttons-block .share-icon {
        display: none;
    }
    
    .share-buttons .share-buttons-block .sbb-title {
        margin-right: 0;
    }
    
    .share-count {
        display: none;
    }
}

/* Enhanced Social Share Popup Styles */
.social-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(33,37,41,0.95) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.social-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.social-popup {
    background: #2c3034;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
}

.social-popup-overlay.active .social-popup {
    transform: translateY(0);
}

/* Decorative Images */
.popup-decoration {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.popup-decoration.top {
    top: -80px;
    right: -30px;
    width: 200px;
    height: 200px;
    background-image: url('http://mxanime.fun/wp-content/uploads/2025/10/bbae83986a2f5cc2e680d664524e69d7-removebg-preview.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 1;
}

.popup-decoration.bottom {
    bottom: -80px;
    left: -30px;
    width: 200px;
    height: 200px;
    background-image: url('http://mxanime.fun/wp-content/uploads/2025/10/450ebbbefe3e39aaa4c685ea31a7c072-removebg-preview.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 1;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #444;
    flex-shrink: 0;
    background: rgba(255, 186, 222, 0.05);
}

.popup-header h3 {
    color: #ffbade;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Poppins', Arial, sans-serif;
}

.close-popup {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-popup:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.copy-link-section {
    padding: 15px 20px;
    border-bottom: 1px solid #444;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.02);
}

.copy-link-container {
    display: flex;
}

.url-input {
    flex-grow: 1;
    padding: 10px 14px;
    border-radius: 8px 0 0 8px;
    border: 1px solid #555;
    background: #1a1d21;
    color: #fff;
    font-size: 14px;
    font-family: 'Poppins', Arial, sans-serif;
    transition: border-color 0.2s;
}

.url-input:focus {
    outline: none;
    border-color: #ffbade;
}

.copy-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-family: 'Poppins', Arial, sans-serif;
    min-width: 70px;
}

.copy-btn:hover {
    background: #5a6268;
}

.copy-btn.copied {
    background: #28a745;
}

.social-grid-container {
    overflow-y: auto;
    padding: 15px 20px;
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.01);
}

/* Custom scrollbar for Webkit browsers */
.social-grid-container::-webkit-scrollbar {
    width: 8px;
}

.social-grid-container::-webkit-scrollbar-track {
    background: rgba(255, 186, 222, 0.1);
    border-radius: 4px;
}

.social-grid-container::-webkit-scrollbar-thumb {
   background: rgba(255, 255, 255, .4);
    border-radius: 4px;
}

.social-grid-container::-webkit-scrollbar-thumb:hover {
      background: rgba(0, 0, 0, .2);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Poppins', Arial, sans-serif;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.social-btn i {
    margin-right: 8px;
    font-size: 16px;
}

.fa-brands, .fa-x-twitter {
    color:white;
}

@media (min-width: 769px) {
    .social-popup-overlay {
        align-items: center;
    }
    
    .social-popup {
        border-radius: 16px;
        max-height: 75vh;
        transform: translateY(20px);
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    }
    
    .social-popup-overlay.active .social-popup {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    
    .popup-decoration.top,
    .popup-decoration.bottom {
        width: 150px;
        height: 150px;
    }
    
    .popup-decoration.top {
        top: -60px;
        right: -20px;
    }
    
    .popup-decoration.bottom {
        bottom: -60px;
        left: -20px;
    }
    
    .social-popup {
        max-height: 90vh;
    }
}

@media (max-width: 576px) {
    .social-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .social-popup {
        width: 100%;
    }
    
    .popup-header, .copy-link-section, .social-grid-container {
        padding: 12px 15px;
    }
    
    .popup-decoration.top,
    .popup-decoration.bottom {
        width: 120px;
        height: 120px;
    }
    
    .popup-decoration.top {
        top: -50px;
        right: -15px;
    }
    
    .popup-decoration.bottom {
        bottom: -50px;
        left: -15px;
    }
    
    .popup-header h3 {
        font-size: 16px;
    }
    
    .social-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .social-btn i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .popup-decoration.top,
    .popup-decoration.bottom {
        display: none;
    }
    
    .social-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 8px;
    }
}

@media (max-width: 380px) {
    .social-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .popup-header, .copy-link-section, .social-grid-container {
        padding: 10px 12px;
    }
}