@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

body {
    font-family: 'Noto Sans SC', sans-serif;
    overflow: hidden;
}

[x-cloak] {
    display: none !important;
}

.page {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    min-height: 0;
}

.page > * {
    min-height: 0;
    flex-shrink: 0;
}

.page > .flex-1 {
    flex-shrink: 1;
    min-height: 0;
}

video.mirror {
    transform: scaleX(-1);
}

.countdown-number {
    font-size: 8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 40px rgba(244, 63, 94, 0.6), 0 0 80px rgba(244, 63, 94, 0.3);
    animation: countdownPulse 1s ease-out;
}

@keyframes countdownPulse {
    0% { transform: scale(1.5); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes flashEffect {
    0% { opacity: 0.9; }
    100% { opacity: 0; }
}

.flash-overlay {
    animation: flashEffect 0.4s ease-out forwards;
}

.color-option {
    cursor: pointer;
    flex-shrink: 0;
}

.color-option:active {
    transform: scale(0.92);
}

.btn-primary {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e11d48, #be123c);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
}

.edit-page-bg {
    background: linear-gradient(135deg, #fff5f6 0%, #ffeef1 30%, #fff0f3 60%, #fef2f4 100%);
    position: relative;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.color-picker-custom {
    position: relative;
    flex-shrink: 0;
}

.color-picker-custom input[type="color"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

@media (max-width: 640px) {
    .countdown-number {
        font-size: 5rem;
    }
}

.button_pica {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 40px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
    transition: all 0.2s ease;
}

.button_pica:hover {
    background: linear-gradient(135deg, #e11d48, #be123c);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.5);
}

.button_pica:active {
    transform: translateY(0);
}

.controls {
    padding: 8px 0;
    display: flex;
    justify-content: center;
}

.filter-current-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 4px;
}

.filter-current-tag .filter-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f43f5e;
}
