*,
*::before,
*::after {
    -webkit-tap-highlight-color: transparent;
}

body.page-ranking {
    position: relative;
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    background-color: #090A0F;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
}

html {
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    background-color: #090A0F;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100%;
    width: 100%;
}

@supports (-webkit-touch-callout: none) {
    html {
        background-attachment: scroll;
    }
    body.page-ranking {
        min-height: -webkit-fill-available;
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    html {
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
        background-attachment: scroll;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        background-position: center center;
    }

    body.page-ranking {
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
        background-attachment: scroll;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        background-position: center center;
    }

    .container {
        overflow-x: hidden;
    }

    main {
        overflow-x: hidden;
    }
}

#download-modal .modal00-bg {
    background-color: rgba(0, 0, 0, 0.7);
}

#download-modal .modal00-content {
    background: #121212;
    border-radius: 20px;
    border: 1px solid rgba(153, 130, 242, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    padding: 30px;
    max-width: 400px;
    width: 90%;
}

#download-modal .title {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

#download-modal p {
    color: rgba(255, 255, 255, 0.9);
}

#download-progress-container {
    width: 160px;
    height: 160px;
    position: relative;
    margin: 30px auto;
}

#progress-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

#progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8px;
}

#progress-indicator {
    fill: none;
    stroke: #9982F2;
    stroke-width: 8px;
    stroke-linecap: round;
    stroke-dasharray: 439.8;
    stroke-dashoffset: 439.8;
    transition: stroke-dashoffset 0.3s ease-in-out;
    filter: drop-shadow(0 0 3px rgba(153, 130, 242, 0.7));
}

#progress-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.progress-percentage {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    background: linear-gradient(45deg, #9982F2, #4F1787);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.remaining-time {
    font-size: 13px;
    color: #ffffff;
    margin-bottom: 5px;
}

.download-size {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.download-speed {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.download-status-text {
    color: #9982F2;
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
    font-size: 16px;
    position: relative;
    padding-left: 26px;
}

.download-status-text::before {
    content: "\f019";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
    position: absolute;
    left: 0;
    top: 0;
    display: inline-block;
}

.download-status-text.completed {
    color: #4cd964;
}

.download-status-text.completed::before {
    content: "\f00c";
    font-weight: 900;
}

.download-status-text.canceled {
    color: #ff3b30;
}

.download-status-text.canceled::before {
    content: "\f00d";
    font-weight: 900;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.download-status-text.pulsing {
    animation: pulse 1.5s infinite ease-in-out;
}

.download-status-text.pulsing::before {
    animation: fa-spin 2s infinite linear;
    content: "\f110";
    font-weight: 900;
    display: inline-block;
}

#download-modal .btn-primary {
    background: linear-gradient(90deg, #9982F2, #4F1787);
    border: none;
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    color: #ffffff;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

#download-modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(153, 130, 242, 0.4);
}

#download-modal .btn-secondary {
    background: #333333;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    color: #ffffff;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

#download-modal .btn-secondary:hover {
    background: #444444;
}

#download-modal .closeBtnBottomCenter {
    margin-top: 15px;
    text-align: center;
}

#download-modal .closeBtnBottomCenter span {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
    cursor: pointer;
    padding: 5px 10px;
}

#download-modal .closeBtnBottomCenter span:hover {
    color: #ffffff;
}

#download-modal .desc-basic {
    background: #121212;
    color: #ffffff;
}

#download-status {
    display: none;
}

.seoSubHeading {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 15px;
    font-weight: normal;
}

.seoFooterText {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #999;
    text-align: center;
    padding: 0 15px;
}

.seoFooterLinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.seoFooterLinks a {
    color: #1da1f2;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.3s;
}

.seoFooterLinks a:hover {
    color: #fff;
}

.noContent {
    text-align: center;
    padding: 50px 0;
    color: #ccc;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
}

.noContent-icon {
    font-size: 48px;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

.noContent h3 {
    margin-bottom: 10px;
    font-size: 24px;
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.noContent p {
    text-align: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.statItem.likeCount {
    overflow: visible;
    position: relative;
    z-index: 5;
}

.statItem.likeCount i {
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.17, 0.89, 0.32, 1.49);
}

.statItem.likeCount i.liked {
    color: #ff4c4c;
    text-shadow: 0 0 10px rgba(255, 76, 76, 0.7);
}

.statItem.likeCount:hover i {
    transform: scale(1.1);
}

.statItem.likeCount::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 76, 76, 0.8) 0%, rgba(255, 76, 76, 0) 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.statItem.likeCount.pulse::after {
    animation: ranking-like-ripple 0.8s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes ranking-like-ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

.payment-status-mark {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.payment-status-mark.free-mark {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(16, 185, 129, 0.9));
    border: 1px solid rgba(34, 197, 94, 0.6);
    padding: 4px 8px;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.payment-status-mark.free-mark span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.payment-status-mark.paid-mark {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    border: 1px solid rgba(239, 68, 68, 0.6);
    padding: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.payment-status-mark.paid-mark i {
    font-size: 0.8rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.thumbnail:hover .payment-status-mark.free-mark {
    background: linear-gradient(135deg, rgba(34, 197, 94, 1), rgba(16, 185, 129, 1));
    transform: scale(1.05);
}

.thumbnail:hover .payment-status-mark.paid-mark {
    background: linear-gradient(135deg, rgba(239, 68, 68, 1), rgba(220, 38, 38, 1));
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .payment-status-mark.free-mark {
        font-size: 0.6rem;
        padding: 3px 6px;
    }

    .payment-status-mark.paid-mark {
        width: 24px;
        height: 24px;
        padding: 4px;
    }

    .payment-status-mark.paid-mark i {
        font-size: 0.7rem;
    }
}

.modal00 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.modal00-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
}

.modal00-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
}

.statItem.downloadCount {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.statItem.downloadCount:hover {
    transform: scale(1.1);
}

.statItem.downloadCount.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}

.statItem.downloadCount.disabled:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: none;
}
