* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.1) 100%);
    animation: overlayPulse 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

@keyframes overlayPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: headerGlow 3s ease-in-out infinite alternate;
}

@keyframes headerGlow {
    from { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); }
    to { box-shadow: 0 8px 40px rgba(255, 255, 255, 0.3); }
}

.title {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, #fff, #f0f0f0, #fff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    animation: titleShine 4s linear infinite;
}

@keyframes titleShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.time-display {
    font-size: 2rem;
    color: #fff;
    font-weight: 300;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
}

.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.ads-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.external-ads {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    min-height: 120px;
    display: block;
    position: relative;
    overflow: hidden;
}

.ad-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.external-ads::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: adShimmer 3s infinite;
}

@keyframes adShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.external-ads iframe {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    height: auto;
}

#container-dcffe9bdea7393e123c3e2727aadfd9b {
    display: inline-block;
    position: relative;
    z-index: 2;
    width: 468px;
    height: 60px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.ad-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.ad-placeholder p {
    margin: 2px 0;
    font-weight: bold;
}

.ad-placeholder small {
    opacity: 0.7;
    font-size: 0.7rem;
}

.vertical-ad-container {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    display: block;
    position: relative;
    overflow: hidden;
}

.vertical-ad-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: adShimmer 3s infinite;
}

#container-ebaa63b6c5a6e66909367dd4c4e0bd82 {
    display: inline-block;
    position: relative;
    z-index: 2;
    width: 160px;
    height: 300px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
}

.leaderboard-ad-container {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    display: block;
    position: relative;
    overflow: hidden;
}

.leaderboard-ad-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: adShimmer 3s infinite;
}

#container-844d4e05e722fbeb6f257ce8f9c69f15 {
    display: inline-block;
    position: relative;
    z-index: 2;
    width: 728px;
    height: 90px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
}

.mobile-ad-container {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    display: block;
    position: relative;
    overflow: hidden;
}

.mobile-ad-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: adShimmer 3s infinite;
}

#container-00bc00399c72d483973ab0b430a8bbb6 {
    display: inline-block;
    position: relative;
    z-index: 2;
    width: 320px;
    height: 50px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
}

.skyscraper-ad-container {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    display: block;
    position: relative;
    overflow: hidden;
}

.skyscraper-ad-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: adShimmer 3s infinite;
}

#container-0f493b2d7ef755f23a5b1e5822e8cde9 {
    display: inline-block;
    position: relative;
    z-index: 2;
    width: 160px;
    height: 600px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
}

.medium-rectangle-ad-container {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    display: block;
    position: relative;
    overflow: hidden;
}

.medium-rectangle-ad-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: adShimmer 3s infinite;
}

#container-fbf42d8239dc417fd61b791920db3a57 {
    display: inline-block;
    position: relative;
    z-index: 2;
    width: 300px;
    height: 250px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
}

.ads-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.ad-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: adFloat 6s ease-in-out infinite;
    animation-delay: calc(var(--delay) * 0.5s);
}

@keyframes adFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.ad-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

.ad-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: bold;
}

.ad-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.ad-button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-button:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

.info-card h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.info-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 10px;
}

.refresh-counter {
    font-size: 1.1rem;
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 10px;
}

#countdown {
    color: #f5576c;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(245, 87, 108, 0.8);
}

.footer {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .time-display {
        font-size: 1.5rem;
    }
    
    .ads-container {
        grid-template-columns: 1fr;
    }
}

/* Loading animation */
.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

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