:root { --app-height: 100dvh; }
body { background-color: #000; color: white; font-family: sans-serif; }

#bg-layer {
    position: fixed; inset: 0; z-index: 0;
    background-image: url('https://images.unsplash.com/photo-1770110628704-86ba8c7b3b1c?q=80&w=1920&auto=format&fit=crop');
    background-size: cover; background-position: center;
    filter: brightness(1.0) contrast(1.2);
}

.overlay-tech {
    position: fixed; inset: 0; z-index: 1;
    background: radial-gradient(circle at center, transparent, rgba(0,0,0,0.9));
    pointer-events: none;
}

#dynamic-island {
    background: #000; border-radius: 30px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8), 0 0 1px rgba(255,255,255,0.3);
}

.island-idle { width: 110px; height: 34px; }
.island-error { width: 260px; height: 44px; background: #330000 !important; border: 1px solid #ff4444; }
.island-success { width: 240px; height: 44px; background: #00331a !important; border: 1px solid #00ff88; }

.keypad-btn {
    width: 85px; height: 85px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white; cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0, 0.2, 1);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}

.keypad-btn:active {
    transform: scale(1.15);
    background: rgba(59, 130, 246, 0.4);
    border-color: #60a5fa;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
}

.tech-tag { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); color: #60a5fa; backdrop-filter: blur(10px); }
.dot { width: 12px; height: 12px; border: 1.5px solid rgba(255,255,255,0.3); border-radius: 50%; transition: 0.3s; }
.dot.filled { background: #60a5fa; border-color: #60a5fa; box-shadow: 0 0 15px #3b82f6; transform: scale(1.1); }
/* Khung chứa hiệu ứng kính mờ tinh tế */
.weather-widget-premium {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    max-width: 460px;
    margin: 20px auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.glass-clock-widget {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px 25px;
    max-width: 320px;
    margin: 20px auto;
    text-align: center;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Định dạng giờ phút giây */
#widget-time {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.2;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Định dạng ngày tháng */
#widget-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Movie Card Styles */
.movie-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px; padding: 14px;
    backdrop-filter: blur(15px);
    display: flex; gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none !important;
    transition: background 0.3s, border-color 0.3s;
}

.movie-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
}

.movie-poster { width: 80px; height: 110px; object-fit: cover; border-radius: 12px; }

.unlock-fly-up { transform: translateY(-100dvh); opacity: 0; filter: blur(15px); }
.content-fade-in { animation: contentIn 0.8s ease forwards; }

@keyframes contentIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.shake { animation: shake 0.4s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.custom-scrollbar::-webkit-scrollbar { display: none; }
