@media (max-width: 640px) {
    body { font-size: 15px; }
    button, input, select, textarea { min-height: 44px; }

    .bottom-nav {
        bottom: calc(10px + env(safe-area-inset-bottom, 0));
        width: calc(100% - 20px);
    }

    .content-area { padding: 0.8rem 0.8rem calc(100px + env(safe-area-inset-bottom, 0)); }

    .feed-container { height: auto; }
    .feed-item { height: auto; padding: 1.1rem; }

    .header-content { padding: 0.8rem 1rem; }
    .auth-container { padding: 1rem; }
    .auth-form { padding: 1.2rem 1.1rem; }

    input, select, textarea { font-size: 16px; }
    .modal-content { padding: 1.6rem 1.2rem; }
    .form-row { flex-direction: column; gap: 0; }
    .setup-buttons { flex-direction: column; }
    .setup-buttons .btn-primary { width: 100%; }
}

@media (max-height: 500px) and (orientation: landscape) {
    .auth-container { padding: 1rem; }
    .feed-item { height: auto; padding: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}