/* Custom Styles & Animations */
body {
    background-color: #0a0a0a;
    background-image: url('../images/bg2.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #e5e5e5;
    overflow-x: hidden;
    cursor: url('../images/Cursors/normal cursor.cur'), default;
}

/* MU Custom Cursors */
a,
button,
[role="button"],
.cursor-pointer,
.btn-mu,
.swiper-slide,
.class-avatar-nav {
    cursor: url('../images/Cursors/link select.cur'), pointer;
}

input,
textarea,
[contenteditable] {
    cursor: url('../images/Cursors/text.cur'), text;
}

.loading,
.busy {
    cursor: url('../images/Cursors/busy.cur'), wait;
}

/* Badge Wave Animation */
@keyframes badgeWave {

    0%,
    40%,
    100% {
        transform: translateY(0);
    }

    20% {
        transform: translateY(-8px);
    }
}

.badge-wave {
    animation: badgeWave 3s ease-in-out infinite;
}

.wave-delay-0 {
    animation-delay: 0s;
}

.wave-delay-1 {
    animation-delay: 0.2s;
}

.wave-delay-2 {
    animation-delay: 0.4s;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    width: 100%;
    max-height: 100vh;
    overflow: hidden;
    background-color: transparent;
}

.hero-video {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: auto;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(10, 10, 10, 0.4) 0%, transparent 12%),
        linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, transparent 15%);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-12px);
    }

    60% {
        transform: translateX(-50%) translateY(-6px);
    }
}

/* ===== Mobile Hero ===== */
@media (max-width: 768px) {
    .hero-scroll-indicator {
        bottom: 0.5rem;
    }

    .hero-scroll-indicator i {
        font-size: 1.2rem;
    }
}

/* ===== Info Section ===== */
.info-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.4rem 0;
}

.info-label {
    color: #9ca3af;
    white-space: nowrap;
    flex-shrink: 0;
}

.info-label::after {
    content: ' :';
}

.info-value {
    font-weight: 600;
    text-align: right;
}

.countdown-box {
    background: rgba(212, 133, 10, 0.1);
    border: 1px solid rgba(212, 133, 10, 0.3);
    border-radius: 0;
    padding: 0.5rem 0.75rem;
    min-width: 3.5rem;
    text-align: center;
}

.info-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.text-glow {
    text-shadow: 0 0 10px rgba(210, 182, 129, 0.8), 0 0 20px rgba(210, 182, 129, 0.4);
}

.text-glow-gold {
    text-shadow: 0 0 10px rgba(228, 214, 187, 0.8), 0 0 20px rgba(228, 214, 187, 0.4);
}

.box-glow {
    box-shadow: 0 0 15px rgba(110, 70, 40, 0.3);
    transition: all 0.3s ease;
}

.box-glow:hover {
    box-shadow: 0 0 25px rgba(210, 182, 129, 0.5);
    transform: translateY(-5px);
}

.btn-mu {
    background: linear-gradient(to bottom, #D2B681, #6E4628);
    border: 1px solid #E4D6BB;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.btn-mu::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.btn-mu:hover {
    box-shadow: 0 0 20px rgba(210, 182, 129, 0.8);
    transform: scale(1.05);
}

@keyframes shine {
    0% {
        left: -100%;
        top: -100%;
    }

    20% {
        left: 100%;
        top: 100%;
    }

    100% {
        left: 100%;
        top: 100%;
    }
}

.glass-panel {
    background: rgba(23, 23, 23, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 108, 66, 0.2);
}

/* Scroll Reveal Utility */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Classes Swiper */
.classes-swiper {
    padding-bottom: 2rem !important;
    padding-top: 1rem !important;
}

/* Class Avatar Nav Styles */
.class-avatar-nav.active .avatar-label {
    opacity: 1;
    transform: translateY(0);
}

.class-avatar-nav:hover .avatar-label {
    opacity: 1;
    transform: translateY(0);
}

.avatar-label {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Thêm Class cho khung hình thoi (Diamond) */
.diamond-clip {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.stat-bar-bg {
    background: rgba(255, 255, 255, 0.1);
}

/* Safe Character Animations */
.classes-swiper .swiper-slide:not(.swiper-slide-active) .char-anim-item {
    opacity: 0;
    transform: translateY(20px);
}

.classes-swiper .swiper-slide-active .char-anim-item {
    animation: charFadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.classes-swiper .swiper-slide:not(.swiper-slide-active) .char-anim-img {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
    filter: blur(8px);
}

.classes-swiper .swiper-slide-active .char-anim-img {
    animation: charImgEnter 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.stat-progress-fill {
    transform: scaleX(0);
    transform-origin: left;
}

.classes-swiper .swiper-slide-active .stat-progress-fill {
    animation: statFill 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Delays */
.delay-title {
    animation-delay: 0.1s;
}

.delay-desc {
    animation-delay: 0.3s;
}

.delay-stats {
    animation-delay: 0.5s;
}

.classes-swiper .swiper-slide-active .stat-progress-fill {
    animation-delay: 0.8s;
}

.classes-swiper .swiper-slide-active .char-anim-img {
    animation-delay: 0.5s;
}

/* Keyframes */
@keyframes charFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes charImgEnter {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

@keyframes statFill {
    to {
        transform: scaleX(1);
    }
}

/* ===== Đua Top Section ===== */

/* Tab Buttons */
.duatop-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.duatop-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e5e5e5;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.duatop-tab.active {
    background: linear-gradient(135deg, rgba(210, 182, 129, 0.2), rgba(110, 70, 40, 0.3));
    border-color: rgba(210, 182, 129, 0.6);
    color: #D2B681;
    box-shadow: 0 0 20px rgba(210, 182, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(210, 182, 129, 0.5);
}

.duatop-tab.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(210, 182, 129, 0) 0%, rgba(210, 182, 129, 0.1) 50%, rgba(210, 182, 129, 0) 100%);
    animation: tabShimmer 3s ease-in-out infinite;
}

@keyframes tabShimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Content Transition */
.duatop-content {
    transition: opacity 0.5s ease-in-out;
}

/* Card Styling */
.duatop-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.duatop-card:hover {
    transform: translateY(-8px);
}

/* Info Row */
.duatop-info-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.duatop-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
    align-items: flex-start;
}

/* Icon Box */
.duatop-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.duatop-info-row:last-child .duatop-icon-box {
    margin-top: 2px;
}

.duatop-card:hover .duatop-icon-box {
    transform: scale(1.1);
}

/* Labels & Values */
.duatop-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin-bottom: 1px;
    line-height: 1;
}

.duatop-value {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Prize Items */
.duatop-prizes {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.duatop-prize-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    border-left: 2px solid rgba(210, 182, 129, 0.3);
    transition: all 0.3s ease;
}

.duatop-prize-item:hover {
    background: rgba(210, 182, 129, 0.08);
    border-left-color: rgba(210, 182, 129, 0.7);
    transform: translateX(4px);
}

/* Card Title */
.duatop-card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-family: 'Prata', serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Badge */
.duatop-badge {
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}